Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Dec 13, 2024
1 parent 3f15e1e commit 0a46981
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"resolutions": {
"elliptic@6.5.4": "^6.5.7",
"fast-xml-parser@^4.3.4": "^4.4.1",
"ws@7.4.6": "^7.5.10"
"ws@7.4.6": "^7.5.10",
"@metamask/keyring-api@^12.0.0": "npm:@metamask-previews/keyring-api@12.0.0-ac29af4",
"@metamask/eth-snap-keyring@^7.0.0": "npm:@metamask-previews/eth-snap-keyring@7.0.0-ac29af4"
},
"devDependencies": {
"@babel/core": "^7.23.5",
Expand Down
4 changes: 4 additions & 0 deletions packages/accounts-controller/src/AccountsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { SnapKeyring } from '@metamask/eth-snap-keyring';
import {
EthAccountType,
EthMethod,
EthScopes,
isEvmAccountType,
} from '@metamask/keyring-api';
import { KeyringTypes } from '@metamask/keyring-controller';
Expand Down Expand Up @@ -203,6 +204,7 @@ export const EMPTY_ACCOUNT = {
options: {},
methods: [],
type: EthAccountType.Eoa,
scopes: [EthScopes.Namespace],
metadata: {
name: '',
keyring: {
Expand Down Expand Up @@ -582,6 +584,7 @@ export class AccountsController extends BaseController<
EthMethod.SignTypedDataV3,
EthMethod.SignTypedDataV4,
],
scopes: [EthScopes.Namespace],
type: EthAccountType.Eoa,
metadata: {
name: '',
Expand Down Expand Up @@ -656,6 +659,7 @@ export class AccountsController extends BaseController<
EthMethod.SignTypedDataV3,
EthMethod.SignTypedDataV4,
],
scopes: [EthScopes.Namespace],
type: EthAccountType.Eoa,
metadata: {
name: this.#populateExistingMetadata(id, 'name') ?? '',
Expand Down
36 changes: 24 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2673,15 +2673,16 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-snap-keyring@npm:^7.0.0":
version: 7.0.0
resolution: "@metamask/eth-snap-keyring@npm:7.0.0"
"@metamask/eth-snap-keyring@npm:@metamask-previews/eth-snap-keyring@7.0.0-ac29af4":
version: 7.0.0-ac29af4
resolution: "@metamask-previews/eth-snap-keyring@npm:7.0.0-ac29af4"
dependencies:
"@ethereumjs/tx": "npm:^4.2.0"
"@metamask/eth-sig-util": "npm:^8.0.0"
"@metamask/keyring-api": "npm:^12.0.0"
"@metamask/keyring-internal-api": "npm:^1.0.0"
"@metamask/keyring-internal-snap-client": "npm:^1.0.0"
"@metamask/keyring-api": "npm:12.0.0"
"@metamask/keyring-internal-api": "npm:1.0.0"
"@metamask/keyring-internal-snap-client": "npm:1.0.0"
"@metamask/keyring-utils": "npm:1.0.0"
"@metamask/snaps-controllers": "npm:^9.10.0"
"@metamask/snaps-sdk": "npm:^6.7.0"
"@metamask/snaps-utils": "npm:^8.3.0"
Expand All @@ -2691,9 +2692,8 @@ __metadata:
uuid: "npm:^9.0.1"
webextension-polyfill: "npm:^0.12.0"
peerDependencies:
"@metamask/keyring-api": ^12.0.0
"@metamask/providers": ^18.1.0
checksum: 10/7a82cd2c19204776d31e29716844ac6f304ce4b136b36728be8e7b19ac2be6b46d0c72cc9707c48669a7a342994ce401aafbfe3f0b47769748ab86ae2169cbbd
checksum: 10/4c565f9a7d4ab5dc0771c3f8c1167360056dffc21c03c5c8ecdbc42de727c377a36d8f9544eded9addc8b01c855bda6634085a74c20511cbb4561bd8d9962d2b
languageName: node
linkType: hard

Expand Down Expand Up @@ -2950,7 +2950,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/keyring-api@npm:^12.0.0":
"@metamask/keyring-api@npm:12.0.0":
version: 12.0.0
resolution: "@metamask/keyring-api@npm:12.0.0"
dependencies:
Expand All @@ -2962,6 +2962,18 @@ __metadata:
languageName: node
linkType: hard

"@metamask/keyring-api@npm:@metamask-previews/keyring-api@12.0.0-ac29af4":
version: 12.0.0-ac29af4
resolution: "@metamask-previews/keyring-api@npm:12.0.0-ac29af4"
dependencies:
"@metamask/keyring-utils": "npm:1.0.0"
"@metamask/superstruct": "npm:^3.1.0"
"@metamask/utils": "npm:^9.3.0"
bech32: "npm:^2.0.0"
checksum: 10/770d556ef2832dc32a73fa1c349b6c5ab112e3d26c928fa7a24058655307a360bcc5c94f475a010a83ba5903642f8a366c65015726ceb9de209eb657f0617776
languageName: node
linkType: hard

"@metamask/keyring-controller@npm:^19.0.2, @metamask/keyring-controller@workspace:packages/keyring-controller":
version: 0.0.0-use.local
resolution: "@metamask/keyring-controller@workspace:packages/keyring-controller"
Expand Down Expand Up @@ -3000,7 +3012,7 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/keyring-internal-api@npm:^1.0.0":
"@metamask/keyring-internal-api@npm:1.0.0, @metamask/keyring-internal-api@npm:^1.0.0":
version: 1.0.0
resolution: "@metamask/keyring-internal-api@npm:1.0.0"
dependencies:
Expand All @@ -3012,7 +3024,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/keyring-internal-snap-client@npm:^1.0.0":
"@metamask/keyring-internal-snap-client@npm:1.0.0":
version: 1.0.0
resolution: "@metamask/keyring-internal-snap-client@npm:1.0.0"
dependencies:
Expand Down Expand Up @@ -3045,7 +3057,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/keyring-utils@npm:^1.0.0":
"@metamask/keyring-utils@npm:1.0.0, @metamask/keyring-utils@npm:^1.0.0":
version: 1.0.0
resolution: "@metamask/keyring-utils@npm:1.0.0"
dependencies:
Expand Down

0 comments on commit 0a46981

Please # to comment.