@metamask-previews/account-api 2.1.0-b143371 → 2.1.1-13dc8e8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.1.1]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/keyring-api` from `^24.1.0` to `^24.2.0` ([#660](https://github.com/MetaMask/accounts/pull/660))
|
|
15
|
+
|
|
10
16
|
## [2.1.0]
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -199,7 +205,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
199
205
|
|
|
200
206
|
- Add `AccountGroup` and `AccountWallet` ([#307](https://github.com/MetaMask/accounts/pull/307))
|
|
201
207
|
|
|
202
|
-
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/account-api@2.1.
|
|
208
|
+
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/account-api@2.1.1...HEAD
|
|
209
|
+
[2.1.1]: https://github.com/MetaMask/accounts/compare/@metamask/account-api@2.1.0...@metamask/account-api@2.1.1
|
|
203
210
|
[2.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/account-api@2.0.0...@metamask/account-api@2.1.0
|
|
204
211
|
[2.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/account-api@1.1.1...@metamask/account-api@2.0.0
|
|
205
212
|
[1.1.1]: https://github.com/MetaMask/accounts/compare/@metamask/account-api@1.1.0...@metamask/account-api@1.1.1
|
|
@@ -18,6 +18,8 @@ export declare const MOCK_SNAP_ACCOUNT_1: Bip44Account<{
|
|
|
18
18
|
type: "private-key";
|
|
19
19
|
} | {
|
|
20
20
|
type: "custom";
|
|
21
|
+
} | {
|
|
22
|
+
type: "mpc";
|
|
21
23
|
};
|
|
22
24
|
exportable?: boolean;
|
|
23
25
|
};
|
|
@@ -39,6 +41,8 @@ export declare const MOCK_SNAP_ACCOUNT_3: Bip44Account<{
|
|
|
39
41
|
type: "private-key";
|
|
40
42
|
} | {
|
|
41
43
|
type: "custom";
|
|
44
|
+
} | {
|
|
45
|
+
type: "mpc";
|
|
42
46
|
};
|
|
43
47
|
exportable?: boolean;
|
|
44
48
|
};
|
|
@@ -59,6 +63,8 @@ export declare const MOCK_SNAP_ACCOUNT_4: Bip44Account<{
|
|
|
59
63
|
type: "private-key";
|
|
60
64
|
} | {
|
|
61
65
|
type: "custom";
|
|
66
|
+
} | {
|
|
67
|
+
type: "mpc";
|
|
62
68
|
};
|
|
63
69
|
exportable?: boolean;
|
|
64
70
|
};
|
|
@@ -92,6 +98,8 @@ export declare const MOCK_WALLET_1_EVM_ACCOUNT: Bip44Account<{
|
|
|
92
98
|
type: "private-key";
|
|
93
99
|
} | {
|
|
94
100
|
type: "custom";
|
|
101
|
+
} | {
|
|
102
|
+
type: "mpc";
|
|
95
103
|
};
|
|
96
104
|
exportable?: boolean;
|
|
97
105
|
};
|
|
@@ -112,6 +120,8 @@ export declare const MOCK_WALLET_1_SOL_ACCOUNT: Bip44Account<{
|
|
|
112
120
|
type: "private-key";
|
|
113
121
|
} | {
|
|
114
122
|
type: "custom";
|
|
123
|
+
} | {
|
|
124
|
+
type: "mpc";
|
|
115
125
|
};
|
|
116
126
|
exportable?: boolean;
|
|
117
127
|
};
|
|
@@ -132,6 +142,8 @@ export declare const MOCK_WALLET_1_BTC_P2WPKH_ACCOUNT: Bip44Account<{
|
|
|
132
142
|
type: "private-key";
|
|
133
143
|
} | {
|
|
134
144
|
type: "custom";
|
|
145
|
+
} | {
|
|
146
|
+
type: "mpc";
|
|
135
147
|
};
|
|
136
148
|
exportable?: boolean;
|
|
137
149
|
};
|
|
@@ -152,6 +164,8 @@ export declare const MOCK_WALLET_1_BTC_P2TR_ACCOUNT: Bip44Account<{
|
|
|
152
164
|
type: "private-key";
|
|
153
165
|
} | {
|
|
154
166
|
type: "custom";
|
|
167
|
+
} | {
|
|
168
|
+
type: "mpc";
|
|
155
169
|
};
|
|
156
170
|
exportable?: boolean;
|
|
157
171
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.cts","sourceRoot":"","sources":["../../src/mocks/accounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,8BAA8B;AAgB7E,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAe;AAc3C,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAc1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAc1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,cAAc,CAe3D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,cAAc,CAelE,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,cAAc,CAehE,CAAC;AAEF,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"accounts.d.cts","sourceRoot":"","sources":["../../src/mocks/accounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,8BAA8B;AAgB7E,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAe;AAc3C,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAc1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAc1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,cAAc,CAe3D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,cAAc,CAelE,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,cAAc,CAehE,CAAC;AAEF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
} | {
|
|
20
20
|
type: "custom";
|
|
21
|
+
} | {
|
|
22
|
+
type: "mpc";
|
|
21
23
|
};
|
|
22
24
|
exportable?: boolean;
|
|
23
25
|
};
|
|
@@ -39,6 +41,8 @@ export declare const MOCK_SNAP_ACCOUNT_3: Bip44Account<{
|
|
|
39
41
|
type: "private-key";
|
|
40
42
|
} | {
|
|
41
43
|
type: "custom";
|
|
44
|
+
} | {
|
|
45
|
+
type: "mpc";
|
|
42
46
|
};
|
|
43
47
|
exportable?: boolean;
|
|
44
48
|
};
|
|
@@ -59,6 +63,8 @@ export declare const MOCK_SNAP_ACCOUNT_4: Bip44Account<{
|
|
|
59
63
|
type: "private-key";
|
|
60
64
|
} | {
|
|
61
65
|
type: "custom";
|
|
66
|
+
} | {
|
|
67
|
+
type: "mpc";
|
|
62
68
|
};
|
|
63
69
|
exportable?: boolean;
|
|
64
70
|
};
|
|
@@ -92,6 +98,8 @@ export declare const MOCK_WALLET_1_EVM_ACCOUNT: Bip44Account<{
|
|
|
92
98
|
type: "private-key";
|
|
93
99
|
} | {
|
|
94
100
|
type: "custom";
|
|
101
|
+
} | {
|
|
102
|
+
type: "mpc";
|
|
95
103
|
};
|
|
96
104
|
exportable?: boolean;
|
|
97
105
|
};
|
|
@@ -112,6 +120,8 @@ export declare const MOCK_WALLET_1_SOL_ACCOUNT: Bip44Account<{
|
|
|
112
120
|
type: "private-key";
|
|
113
121
|
} | {
|
|
114
122
|
type: "custom";
|
|
123
|
+
} | {
|
|
124
|
+
type: "mpc";
|
|
115
125
|
};
|
|
116
126
|
exportable?: boolean;
|
|
117
127
|
};
|
|
@@ -132,6 +142,8 @@ export declare const MOCK_WALLET_1_BTC_P2WPKH_ACCOUNT: Bip44Account<{
|
|
|
132
142
|
type: "private-key";
|
|
133
143
|
} | {
|
|
134
144
|
type: "custom";
|
|
145
|
+
} | {
|
|
146
|
+
type: "mpc";
|
|
135
147
|
};
|
|
136
148
|
exportable?: boolean;
|
|
137
149
|
};
|
|
@@ -152,6 +164,8 @@ export declare const MOCK_WALLET_1_BTC_P2TR_ACCOUNT: Bip44Account<{
|
|
|
152
164
|
type: "private-key";
|
|
153
165
|
} | {
|
|
154
166
|
type: "custom";
|
|
167
|
+
} | {
|
|
168
|
+
type: "mpc";
|
|
155
169
|
};
|
|
156
170
|
exportable?: boolean;
|
|
157
171
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../../src/mocks/accounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,8BAA8B;AAgB7E,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAe;AAc3C,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAc1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAc1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,cAAc,CAe3D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,cAAc,CAelE,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,cAAc,CAehE,CAAC;AAEF,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../../src/mocks/accounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,8BAA8B;AAgB7E,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAe;AAc3C,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAc1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,cAAc,CAc1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,cAAc,CAe3D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,cAAc,CAelE,CAAC;AAEF,eAAO,MAAM,uBA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{
|
|
2
2
|
"name": "@metamask-previews/account-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1-13dc8e8",
|
|
4
4
|
"description": "MetaMask Account API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"account",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@metamask/keyring-api": "24.
|
|
69
|
+
"@metamask/keyring-api": "24.2.0",
|
|
70
70
|
"@metamask/keyring-utils": "5.0.0",
|
|
71
71
|
"uuid": "^9.0.1"
|
|
72
72
|
},
|