Skip to content

feat: apply node/chain deep-link params with user confirmation - #19

Open
digitalSloth wants to merge 1 commit into
mainfrom
feature/deep-links
Open

digitalSloth wants to merge 1 commit into
mainfrom
feature/deep-links

Conversation

@digitalSloth

Copy link
Copy Markdown
Owner

A URL can carry node/chainId/networkId query params so a link can point the wallet at a specific network (e.g. a testnet). The wallet boots normally on its current network, then shows a confirmation dialog naming the exact node and chain/network IDs a link is requesting nothing is applied until the user explicitly approves.

On confirm, the dialog stays open with a disabled "Connecting..." state while the change is verified via the existing changeNode/ updateNetworkConfig path (the same one the network settings UI uses), which checks reachability before persisting. On failure the dialog shows the error inline with a retry option, and the chain/network id is rolled back to its previous value so a failed switch never leaves the wallet on its old node paired with a mismatched chain id. Declining or cancelling leaves the current network untouched.

A URL can carry node/chainId/networkId query params so a link can point
the wallet at a specific network (e.g. a testnet). The wallet boots
normally on its current network, then shows a confirmation dialog
naming the exact node and chain/network IDs a link is requesting nothing
is applied until the user explicitly approves.

On confirm, the dialog stays open with a disabled "Connecting..." state
while the change is verified via the existing changeNode/
updateNetworkConfig path (the same one the network settings UI uses),
which checks reachability before persisting. On failure the dialog
shows the error inline with a retry option, and the chain/network id is
rolled back to its previous value so a failed switch never leaves the
wallet on its old node paired with a mismatched chain id. Declining or
cancelling leaves the current network untouched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant