generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 9
feat(keyring-api)!: add scopes field to KeyringAccount
#101
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d21a49d
feat!: add scopes field to KeyringAccount
ccharly 322a57e
test(keyring-snap-bridge): fix missing scopes + use new *Scopes const…
ccharly ab1eaab
feat(keyring-snap-bridge): inject scopes during create/update events
ccharly 14d58ec
test(keyring-api): ignore constant files from coverage
ccharly 2eaa897
fix(keyring-api): uses nonempty for scopes array
ccharly a872861
refactor(keyring-api): forces scopes on EthEoaAccountStruct
ccharly f0d8242
fix(keyring-snap-bridge): force scopes for EOA accounts + now require…
ccharly 00a3a8a
Merge branch 'main' into feat/keyring-account-scopes
ccharly ac29af4
fix: fix bad conflict resolutions
ccharly 500260c
chore: update README
ccharly 470fa67
chore: add BTC scopes
gantunesr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| /* istanbul ignore file */ | ||
|
|
||
| /** | ||
| * Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}. | ||
| */ | ||
| export enum BtcScopes { | ||
| Namespace = 'bip122', | ||
| Mainnet = 'bip122:000000000019d6689c085ae165831e93', | ||
| Testnet = 'bip122:000000000933ea01ad0ee984209779ba', | ||
| Testnet4 = 'bip122:00000000da84f2bafbbc53dee25a72ae', | ||
| Signet = 'bip122:00000008819873e925422c1ff0f99f7c', | ||
| Regtest = 'bip122:regtest', | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export * from './constants'; | ||
| export * from './types'; |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| /* istanbul ignore file */ | ||
|
|
||
| /** | ||
| * Scopes for EVM account type. See {@link KeyringAccount.scopes}. | ||
| */ | ||
| export enum EthScopes { | ||
| Namespace = 'eip155', | ||
| Mainnet = 'eip155:1', | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| export * from './constants'; | ||
| export * from './erc4337'; | ||
| export * from './types'; | ||
| export * from './utils'; |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| /* istanbul ignore file */ | ||
|
|
||
| /** | ||
| * Scopes for Solana account type. See {@link KeyringAccount.scopes}. | ||
| */ | ||
| export enum SolScopes { | ||
| Namespace = 'solana', | ||
| Devnet = 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1', | ||
| Mainnet = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', | ||
| Testnet = 'solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z', | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export * from './constants'; | ||
| export * from './types'; |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.