secretkeylabs / xverse-web-extension

Other
46 stars 23 forks source link

Enhancement: Implement Listeners for Account and Network Changes and Non-Intrusive Account Retrieval #703

Closed 0xboga closed 4 months ago

0xboga commented 11 months ago

Story

As a developer integrating Sats Connect with Xverse wallets I want to have listeners for account and network changes, and a non-intrusive method for account retrieval So that the user experience is smooth, and the application can dynamically adapt to account or network changes without frequent user confirmations.

Acceptance Criteria

Prerequisite

Scenario 1: Listener for Account Change

Given the user has connected their Xverse wallet to the application When there is a change in the user's account (like switching accounts) Then the application should automatically detect and adapt to this change without requiring user confirmation.

Scenario 2: Listener for Network Change

Given the user has connected their Xverse wallet to the application When there is a change in the Bitcoin network (like switching from mainnet to testnet) Then the application should automatically detect and adapt to this network change.

Scenario 3: Non-Intrusive Account Retrieval

Given the user has already given permission for their account details to be used When the application needs to retrieve the user’s account information Then the application should be able to do so without triggering a wallet pop-up confirmation every time.

teebszet commented 4 months ago

closing in favour of the sats-connect issue