Skip to content

Commit fc095aa

Browse files
committed
feat: add SimpleKeyringV2
1 parent d6a0c20 commit fc095aa

File tree

7 files changed

+1191
-3
lines changed

7 files changed

+1191
-3
lines changed

packages/keyring-api/src/api/v2/wrapper/keyring-wrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export abstract class KeyringWrapper<
142142
* Implementations are responsible for interpreting the
143143
* {@link CreateAccountOptions} (for example BIP-44 derivation or
144144
* private-key import) and returning the resulting {@link KeyringAccount}
145-
* objects. Implementors should also ensure that the resolver is updated so
145+
* objects. Implementors should also ensure that the registry is updated so
146146
* that {@link getAccount} works for newly created accounts.
147147
*/
148148
abstract createAccounts(
@@ -154,7 +154,7 @@ export abstract class KeyringWrapper<
154154
* keyring.
155155
*
156156
* Implementations are expected to translate the ID to an underlying
157-
* address (typically via the resolver) and then invoke the appropriate
157+
* address (typically via the registry) and then invoke the appropriate
158158
* removal mechanism on the legacy keyring.
159159
*/
160160
abstract deleteAccount(accountId: AccountId): Promise<void>;

packages/keyring-eth-simple/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
"dependencies": {
4747
"@ethereumjs/util": "^9.1.0",
4848
"@metamask/eth-sig-util": "^8.2.0",
49+
"@metamask/keyring-api": "workspace:^",
4950
"@metamask/utils": "^11.1.0",
51+
"async-mutex": "^0.5.0",
5052
"ethereum-cryptography": "^2.1.2",
5153
"randombytes": "^2.1.0"
5254
},

0 commit comments

Comments
 (0)