forked from anoma/namada
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/261 - Extension events improvements (anoma#262)
* begin updating to identify parent account by ID * clean up * Update keyring to store "parentId" for derived accounts * Add store to persist selected parent account, return accounts by parentId * Implement message for account switching from extension * Set up parent account querying and messaging * Initialize parent account from storage for persistence * Clean up provider tests * Add events service/hooks, begin setting up for extension account changed * Simplify handler, prepare to broadcast chainId affected by changed accounts * Restructure extensionEvents service to account for additional extensions * Begin implementing event handlers in extension for accounts * Add background content service for events * continue hooking up content service, clean up * senderTabId shouldn't be required for now, hook up to Settings page * Clean up * Move initial call to dispatch account changed message to service * Simplified event broadcast and provider in interface * Update to track connected interfaces by tab ID * Clean up * Add single store instantiated at start up for tracking tab IDs * clean up * clean up, only append to store if chain ID matches * Fix to invoke "connect()" when querying accounts, needed to track tab ID * Move tab storage to local storage, track timestamp to later expire * Add logic to update tab timestamp when interface reconnects * Simplify logic
- Loading branch information
Showing
12 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,3 +57,8 @@ export enum KeyRingStatus { | |
Locked, | ||
Unlocked, | ||
} | ||
|
||
export type TabStore = { | ||
tabId: number; | ||
timestamp: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters