-
Notifications
You must be signed in to change notification settings - Fork 4
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
How can the dapp disconnect from the wallet? #57
Comments
Hi @hrajchert, I think it should be part of the demo implementation here: https://github.com/fabianbormann/cip-0045-demo-implementation/blob/main/demo-dapp/src/App.tsx#L78 Please let me know in case that it doesn't fit your needs. |
Hi @fabianbormann! Thanks for the reply, sadly I wasn't able to use the demo code as I'm not using the For more context, I'm trying to add mobile support to Marlowe contracts by adding some connector capabilities to the Marlowe TS-SDK. The PR that I mentioned allows any Marlowe user to interact with Marlowe contracts using a cip-45 wallet, but I had some problems trying to do a more realistic prototype. The prototype I had in mind was a split-the-bill dapp, where a restaurant can charge a table splitting the bill among the different diners. Each diner could say how much tip they want to give, and the tips are distributed automatically to the staff. The flow I had in mind:
|
I found the code for wallet core 😅, but I'm not sure the code there applies to my example |
@hrajchert did it work for you? Otherwise I would invite you to join our CF Dev Discord server. https://discord.gg/HwTp2wyhjy There is a channel for cip45 (which I should maybe rename to cardano-connect) and we could probably have a deeper discussion there or we could have a call 😊 ? |
Hi @fabianbormann, as I mentioned in the message the disconnection method available in the demo app does not work for me as I'm not using the If you have some time I would love to have a call and discuss use cases :). |
My twitter handle is @YetAnotherAiGuy or my Discord user is abundzugamer ;) .. Would be nice if you could reach out to me on one channel so that we can find a good meeting slot. |
I've seen that the class
CardanoPeerConnect
that wallets should implement have a disconnect method, but the dapp classDAppPeerConnect
only has anonDisconnect
handler. How can I terminate the connection from the dapp?The text was updated successfully, but these errors were encountered: