statechannels / SCBridge-Wallet

MIT License
2 stars 3 forks source link

Enable "ejection" flow #90

Closed geoknee closed 1 year ago

geoknee commented 1 year ago

In the UI, we have an "eject" button.

This should trigger the challenge flow on the contract, remove the intermediary from the UI, disable the L2 pay button.

(In a full implementation we would need to follow up with some other contract calls to make the funds spendable. In the backend, we would want to detect this "finalized" mode, and route user operations directly to the entrypoint (rather than the intermediary).

For demo purposes, let's just kick of the process, and freeze the buttons in the UI / display a modal or somethign "regaining control of your wallet... hourglass.. this will take 7 minutes...."

bitwiseguy commented 1 year ago

We could use a modal similar to this one: https://github.com/statechannels/SCBridge-Wallet/tree/main/src/modals