-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broadcast onDisconnect() & onNetworkChange() injected API events #17
Comments
onNetworkChange is a good idea. Gonna add that one. |
100% on the onNetworkChange(), thank you very much! Regarding the onDisconnect() event, it's useful for updating the UI on apps that use the wallet during runtime. |
So onDisconnect would probably work best then if an endpoint |
Agreed! Listening for disconnections is important as well as it enables more interaction via 3rd party apps and gets users closer to the classic 'account' user journey. |
This is the main point, user's should be able to interface with the wallet without necessarily opening the extension. |
I get the idea, but the reason why you connect the wallet in first place is because you trust the website you visit. Why would you want to disconnect it again? |
@alessandrokonrad For instance, I am building an interface that uses NFTs within your wallet to "login" to the website. If the user wants to log out (privacy or other), disconnecting your wallet could theoretically act as a catalyst or action to do so. Also, what if you change your mind about trusting a website? |
Perhaps your view changed of the website, or you only wanted to check it out but would prefer it not have automatic access from now on, depending on how you're implementing your whitelist. It is probably something good to have. Could we start the discussion in the cardano-foundation/CIPs#88 over which events we need to put in the standard? It was an oversight I think as I had included a disconnect event in the Ergo EIP-0012 standard we based the CIP on. |
As the initial CIP-30 PR cardano-foundation/CIPs#88 was merged without an events API (since it wasn't finalized), we have put up a new PR cardano-foundation/CIPs#151 to amend it for events. Events-related discussion should take place in that PR. |
Callbacks on Disconnect (aka remove from Whitelist) and on switching between Testnet & Mainnet would be very helpful, consider adding these?
Functionality should be similar to the onAccountChange() injected API call.
The text was updated successfully, but these errors were encountered: