@metamask-previews/keyring-internal-api 9.1.0-8202c83 → 9.1.1-8508712
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 +8 -1
- package/dist/types.cjs +0 -4
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +22 -50
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +22 -50
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +0 -4
- package/dist/types.mjs.map +1 -1
- package/package.json +2 -2
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
|
+
## [9.1.1]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/keyring-api` from `^21.1.0` to `^21.2.0` ([#395](https://github.com/MetaMask/accounts/pull/395))
|
|
15
|
+
|
|
10
16
|
## [9.1.0]
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -151,7 +157,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
151
157
|
- This new version fixes a bug with CJS re-exports.
|
|
152
158
|
- Initial release ([#24](https://github.com/MetaMask/accounts/pull/24))
|
|
153
159
|
|
|
154
|
-
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@9.1.
|
|
160
|
+
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@9.1.1...HEAD
|
|
161
|
+
[9.1.1]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@9.1.0...@metamask/keyring-internal-api@9.1.1
|
|
155
162
|
[9.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@9.0.0...@metamask/keyring-internal-api@9.1.0
|
|
156
163
|
[9.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@8.1.0...@metamask/keyring-internal-api@9.0.0
|
|
157
164
|
[8.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@8.0.0...@metamask/keyring-internal-api@8.1.0
|
package/dist/types.cjs
CHANGED
|
@@ -12,10 +12,6 @@ exports.InternalAccountMetadataStruct = (0, keyring_utils_1.object)({
|
|
|
12
12
|
metadata: (0, keyring_utils_1.object)({
|
|
13
13
|
name: (0, superstruct_1.string)(),
|
|
14
14
|
nameLastUpdatedAt: (0, keyring_utils_1.exactOptional)((0, superstruct_1.number)()),
|
|
15
|
-
// We use `disabled` here instead of `enabled` since this can be optional
|
|
16
|
-
// and better match this kind of expression: !disabled (which covers both
|
|
17
|
-
// the `false` and `undefined` values.
|
|
18
|
-
disabled: (0, keyring_utils_1.exactOptional)((0, superstruct_1.boolean)()),
|
|
19
15
|
snap: (0, keyring_utils_1.exactOptional)((0, keyring_utils_1.object)({
|
|
20
16
|
id: (0, superstruct_1.string)(),
|
|
21
17
|
enabled: (0, superstruct_1.boolean)(),
|
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4FAA4F;AAC5F,8BAA8B;;;AAE9B,uDAc+B;AAC/B,2DAAgE;AAEhE,uDAAgE;AAQnD,QAAA,6BAA6B,GAAG,IAAA,sBAAM,EAAC;IAClD,QAAQ,EAAE,IAAA,sBAAM,EAAC;QACf,IAAI,EAAE,IAAA,oBAAM,GAAE;QACd,iBAAiB,EAAE,IAAA,6BAAa,EAAC,IAAA,oBAAM,GAAE,CAAC;QAC1C,
|
|
1
|
+
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4FAA4F;AAC5F,8BAA8B;;;AAE9B,uDAc+B;AAC/B,2DAA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C,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,IAAA,sBAAM,EAAC;IACjD,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,IAAA,sBAAM,EAAC;IACjD,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,IAAA,sBAAM,EAAC;IAChD,GAAG,iCAAmB,CAAC,MAAM;IAC7B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAwBU,QAAA,sBAAsB,GAU/B;IACF,CAAC,GAAG,4BAAc,CAAC,GAAG,EAAE,CAAC,EAAE,mCAA2B;IACtD,CAAC,GAAG,4BAAc,CAAC,OAAO,EAAE,CAAC,EAAE,uCAA+B;IAC9D,CAAC,GAAG,4BAAc,CAAC,KAAK,EAAE,CAAC,EAAE,qCAA6B;IAC1D,CAAC,GAAG,4BAAc,CAAC,IAAI,EAAE,CAAC,EAAE,oCAA4B;IACxD,CAAC,GAAG,4BAAc,CAAC,MAAM,EAAE,CAAC,EAAE,sCAA8B;IAC5D,CAAC,GAAG,4BAAc,CAAC,IAAI,EAAE,CAAC,EAAE,oCAA4B;IACxD,CAAC,GAAG,4BAAc,CAAC,WAAW,EAAE,CAAC,EAAE,oCAA4B;IAC/D,CAAC,GAAG,4BAAc,CAAC,GAAG,EAAE,CAAC,EAAE,mCAA2B;CACvD,CAAC;AAYW,QAAA,qBAAqB,GAAG,IAAA,sBAAM,EAAC;IAC1C,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n// FIXME: Those rules seem to be triggering a false positive on the `InternalAccountStructs`\n// and `InternalAccountTypes`.\n\nimport {\n BtcAccountType,\n EthAccountType,\n KeyringAccountStruct,\n SolAccountType,\n BtcP2pkhAccountStruct,\n BtcP2shAccountStruct,\n BtcP2wpkhAccountStruct,\n BtcP2trAccountStruct,\n EthEoaAccountStruct,\n EthErc4337AccountStruct,\n SolDataAccountStruct,\n TrxAccountType,\n TrxEoaAccountStruct,\n} from '@metamask/keyring-api';\nimport { exactOptional, object } from '@metamask/keyring-utils';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { boolean, string, number } from '@metamask/superstruct';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType\n | TrxAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\nexport const InternalEthEoaAccountStruct = object({\n ...EthEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalEthErc4337AccountStruct = object({\n ...EthErc4337AccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2pkhAccountStruct = object({\n ...BtcP2pkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2shAccountStruct = object({\n ...BtcP2shAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2wpkhAccountStruct = object({\n ...BtcP2wpkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2trAccountStruct = object({\n ...BtcP2trAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalSolDataAccountStruct = object({\n ...SolDataAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalTrxEoaAccountStruct = object({\n ...TrxEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;\n\nexport type InternalEthErc4337Account = Infer<\n typeof InternalEthErc4337AccountStruct\n>;\n\nexport type InternalBtcP2pkhAccount = Infer<\n typeof InternalBtcP2pkhAccountStruct\n>;\n\nexport type InternalBtcP2shAccount = Infer<typeof InternalBtcP2shAccountStruct>;\n\nexport type InternalBtcP2wpkhAccount = Infer<\n typeof InternalBtcP2wpkhAccountStruct\n>;\n\nexport type InternalBtcP2trAccount = Infer<typeof InternalBtcP2trAccountStruct>;\n\nexport type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;\n\nexport type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;\n\nexport const InternalAccountStructs: Record<\n string,\n | Struct<InternalEthEoaAccount>\n | Struct<InternalEthErc4337Account>\n | Struct<InternalBtcP2pkhAccount>\n | Struct<InternalBtcP2shAccount>\n | Struct<InternalBtcP2wpkhAccount>\n | Struct<InternalBtcP2trAccount>\n | Struct<InternalSolDataAccount>\n | Struct<InternalTrxEoaAccount>\n> = {\n [`${EthAccountType.Eoa}`]: InternalEthEoaAccountStruct,\n [`${EthAccountType.Erc4337}`]: InternalEthErc4337AccountStruct,\n [`${BtcAccountType.P2pkh}`]: InternalBtcP2pkhAccountStruct,\n [`${BtcAccountType.P2sh}`]: InternalBtcP2shAccountStruct,\n [`${BtcAccountType.P2wpkh}`]: InternalBtcP2wpkhAccountStruct,\n [`${BtcAccountType.P2tr}`]: InternalBtcP2trAccountStruct,\n [`${SolAccountType.DataAccount}`]: InternalSolDataAccountStruct,\n [`${TrxAccountType.Eoa}`]: InternalTrxEoaAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2pkhAccount\n | InternalBtcP2shAccount\n | InternalBtcP2wpkhAccount\n | InternalBtcP2trAccount\n | InternalSolDataAccount\n | InternalTrxEoaAccount;\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
|
package/dist/types.d.cts
CHANGED
|
@@ -8,13 +8,12 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
8
8
|
keyring: {
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
|
-
nameLastUpdatedAt?: number;
|
|
12
|
-
disabled?: boolean;
|
|
13
11
|
snap?: {
|
|
14
12
|
name: string;
|
|
15
13
|
id: string;
|
|
16
14
|
enabled: boolean;
|
|
17
15
|
};
|
|
16
|
+
nameLastUpdatedAt?: number;
|
|
18
17
|
lastSelected?: number;
|
|
19
18
|
};
|
|
20
19
|
}, {
|
|
@@ -24,18 +23,16 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
24
23
|
keyring: {
|
|
25
24
|
type: string;
|
|
26
25
|
};
|
|
27
|
-
nameLastUpdatedAt?: number;
|
|
28
|
-
disabled?: boolean;
|
|
29
26
|
snap?: {
|
|
30
27
|
name: string;
|
|
31
28
|
id: string;
|
|
32
29
|
enabled: boolean;
|
|
33
30
|
};
|
|
31
|
+
nameLastUpdatedAt?: number;
|
|
34
32
|
lastSelected?: number;
|
|
35
33
|
}, {
|
|
36
34
|
name: Struct<string, null>;
|
|
37
35
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
38
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
39
36
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
40
37
|
name: string;
|
|
41
38
|
id: string;
|
|
@@ -74,13 +71,12 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
74
71
|
keyring: {
|
|
75
72
|
type: string;
|
|
76
73
|
};
|
|
77
|
-
nameLastUpdatedAt?: number;
|
|
78
|
-
disabled?: boolean;
|
|
79
74
|
snap?: {
|
|
80
75
|
name: string;
|
|
81
76
|
id: string;
|
|
82
77
|
enabled: boolean;
|
|
83
78
|
};
|
|
79
|
+
nameLastUpdatedAt?: number;
|
|
84
80
|
lastSelected?: number;
|
|
85
81
|
};
|
|
86
82
|
address: string;
|
|
@@ -93,18 +89,16 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
93
89
|
keyring: {
|
|
94
90
|
type: string;
|
|
95
91
|
};
|
|
96
|
-
nameLastUpdatedAt?: number;
|
|
97
|
-
disabled?: boolean;
|
|
98
92
|
snap?: {
|
|
99
93
|
name: string;
|
|
100
94
|
id: string;
|
|
101
95
|
enabled: boolean;
|
|
102
96
|
};
|
|
97
|
+
nameLastUpdatedAt?: number;
|
|
103
98
|
lastSelected?: number;
|
|
104
99
|
}, {
|
|
105
100
|
name: Struct<string, null>;
|
|
106
101
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
107
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
108
102
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
109
103
|
name: string;
|
|
110
104
|
id: string;
|
|
@@ -166,13 +160,12 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
166
160
|
keyring: {
|
|
167
161
|
type: string;
|
|
168
162
|
};
|
|
169
|
-
nameLastUpdatedAt?: number;
|
|
170
|
-
disabled?: boolean;
|
|
171
163
|
snap?: {
|
|
172
164
|
name: string;
|
|
173
165
|
id: string;
|
|
174
166
|
enabled: boolean;
|
|
175
167
|
};
|
|
168
|
+
nameLastUpdatedAt?: number;
|
|
176
169
|
lastSelected?: number;
|
|
177
170
|
};
|
|
178
171
|
address: string;
|
|
@@ -185,18 +178,16 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
185
178
|
keyring: {
|
|
186
179
|
type: string;
|
|
187
180
|
};
|
|
188
|
-
nameLastUpdatedAt?: number;
|
|
189
|
-
disabled?: boolean;
|
|
190
181
|
snap?: {
|
|
191
182
|
name: string;
|
|
192
183
|
id: string;
|
|
193
184
|
enabled: boolean;
|
|
194
185
|
};
|
|
186
|
+
nameLastUpdatedAt?: number;
|
|
195
187
|
lastSelected?: number;
|
|
196
188
|
}, {
|
|
197
189
|
name: Struct<string, null>;
|
|
198
190
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
199
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
200
191
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
201
192
|
name: string;
|
|
202
193
|
id: string;
|
|
@@ -260,13 +251,12 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
260
251
|
keyring: {
|
|
261
252
|
type: string;
|
|
262
253
|
};
|
|
263
|
-
nameLastUpdatedAt?: number;
|
|
264
|
-
disabled?: boolean;
|
|
265
254
|
snap?: {
|
|
266
255
|
name: string;
|
|
267
256
|
id: string;
|
|
268
257
|
enabled: boolean;
|
|
269
258
|
};
|
|
259
|
+
nameLastUpdatedAt?: number;
|
|
270
260
|
lastSelected?: number;
|
|
271
261
|
};
|
|
272
262
|
address: string;
|
|
@@ -279,18 +269,16 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
279
269
|
keyring: {
|
|
280
270
|
type: string;
|
|
281
271
|
};
|
|
282
|
-
nameLastUpdatedAt?: number;
|
|
283
|
-
disabled?: boolean;
|
|
284
272
|
snap?: {
|
|
285
273
|
name: string;
|
|
286
274
|
id: string;
|
|
287
275
|
enabled: boolean;
|
|
288
276
|
};
|
|
277
|
+
nameLastUpdatedAt?: number;
|
|
289
278
|
lastSelected?: number;
|
|
290
279
|
}, {
|
|
291
280
|
name: Struct<string, null>;
|
|
292
281
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
293
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
294
282
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
295
283
|
name: string;
|
|
296
284
|
id: string;
|
|
@@ -355,13 +343,12 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
355
343
|
keyring: {
|
|
356
344
|
type: string;
|
|
357
345
|
};
|
|
358
|
-
nameLastUpdatedAt?: number;
|
|
359
|
-
disabled?: boolean;
|
|
360
346
|
snap?: {
|
|
361
347
|
name: string;
|
|
362
348
|
id: string;
|
|
363
349
|
enabled: boolean;
|
|
364
350
|
};
|
|
351
|
+
nameLastUpdatedAt?: number;
|
|
365
352
|
lastSelected?: number;
|
|
366
353
|
};
|
|
367
354
|
address: string;
|
|
@@ -374,18 +361,16 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
374
361
|
keyring: {
|
|
375
362
|
type: string;
|
|
376
363
|
};
|
|
377
|
-
nameLastUpdatedAt?: number;
|
|
378
|
-
disabled?: boolean;
|
|
379
364
|
snap?: {
|
|
380
365
|
name: string;
|
|
381
366
|
id: string;
|
|
382
367
|
enabled: boolean;
|
|
383
368
|
};
|
|
369
|
+
nameLastUpdatedAt?: number;
|
|
384
370
|
lastSelected?: number;
|
|
385
371
|
}, {
|
|
386
372
|
name: Struct<string, null>;
|
|
387
373
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
388
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
389
374
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
390
375
|
name: string;
|
|
391
376
|
id: string;
|
|
@@ -450,13 +435,12 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
450
435
|
keyring: {
|
|
451
436
|
type: string;
|
|
452
437
|
};
|
|
453
|
-
nameLastUpdatedAt?: number;
|
|
454
|
-
disabled?: boolean;
|
|
455
438
|
snap?: {
|
|
456
439
|
name: string;
|
|
457
440
|
id: string;
|
|
458
441
|
enabled: boolean;
|
|
459
442
|
};
|
|
443
|
+
nameLastUpdatedAt?: number;
|
|
460
444
|
lastSelected?: number;
|
|
461
445
|
};
|
|
462
446
|
address: string;
|
|
@@ -469,18 +453,16 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
469
453
|
keyring: {
|
|
470
454
|
type: string;
|
|
471
455
|
};
|
|
472
|
-
nameLastUpdatedAt?: number;
|
|
473
|
-
disabled?: boolean;
|
|
474
456
|
snap?: {
|
|
475
457
|
name: string;
|
|
476
458
|
id: string;
|
|
477
459
|
enabled: boolean;
|
|
478
460
|
};
|
|
461
|
+
nameLastUpdatedAt?: number;
|
|
479
462
|
lastSelected?: number;
|
|
480
463
|
}, {
|
|
481
464
|
name: Struct<string, null>;
|
|
482
465
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
483
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
484
466
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
485
467
|
name: string;
|
|
486
468
|
id: string;
|
|
@@ -545,13 +527,12 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
545
527
|
keyring: {
|
|
546
528
|
type: string;
|
|
547
529
|
};
|
|
548
|
-
nameLastUpdatedAt?: number;
|
|
549
|
-
disabled?: boolean;
|
|
550
530
|
snap?: {
|
|
551
531
|
name: string;
|
|
552
532
|
id: string;
|
|
553
533
|
enabled: boolean;
|
|
554
534
|
};
|
|
535
|
+
nameLastUpdatedAt?: number;
|
|
555
536
|
lastSelected?: number;
|
|
556
537
|
};
|
|
557
538
|
address: string;
|
|
@@ -564,18 +545,16 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
564
545
|
keyring: {
|
|
565
546
|
type: string;
|
|
566
547
|
};
|
|
567
|
-
nameLastUpdatedAt?: number;
|
|
568
|
-
disabled?: boolean;
|
|
569
548
|
snap?: {
|
|
570
549
|
name: string;
|
|
571
550
|
id: string;
|
|
572
551
|
enabled: boolean;
|
|
573
552
|
};
|
|
553
|
+
nameLastUpdatedAt?: number;
|
|
574
554
|
lastSelected?: number;
|
|
575
555
|
}, {
|
|
576
556
|
name: Struct<string, null>;
|
|
577
557
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
578
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
579
558
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
580
559
|
name: string;
|
|
581
560
|
id: string;
|
|
@@ -640,13 +619,12 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
640
619
|
keyring: {
|
|
641
620
|
type: string;
|
|
642
621
|
};
|
|
643
|
-
nameLastUpdatedAt?: number;
|
|
644
|
-
disabled?: boolean;
|
|
645
622
|
snap?: {
|
|
646
623
|
name: string;
|
|
647
624
|
id: string;
|
|
648
625
|
enabled: boolean;
|
|
649
626
|
};
|
|
627
|
+
nameLastUpdatedAt?: number;
|
|
650
628
|
lastSelected?: number;
|
|
651
629
|
};
|
|
652
630
|
address: string;
|
|
@@ -659,18 +637,16 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
659
637
|
keyring: {
|
|
660
638
|
type: string;
|
|
661
639
|
};
|
|
662
|
-
nameLastUpdatedAt?: number;
|
|
663
|
-
disabled?: boolean;
|
|
664
640
|
snap?: {
|
|
665
641
|
name: string;
|
|
666
642
|
id: string;
|
|
667
643
|
enabled: boolean;
|
|
668
644
|
};
|
|
645
|
+
nameLastUpdatedAt?: number;
|
|
669
646
|
lastSelected?: number;
|
|
670
647
|
}, {
|
|
671
648
|
name: Struct<string, null>;
|
|
672
649
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
673
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
674
650
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
675
651
|
name: string;
|
|
676
652
|
id: string;
|
|
@@ -731,13 +707,12 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
731
707
|
keyring: {
|
|
732
708
|
type: string;
|
|
733
709
|
};
|
|
734
|
-
nameLastUpdatedAt?: number;
|
|
735
|
-
disabled?: boolean;
|
|
736
710
|
snap?: {
|
|
737
711
|
name: string;
|
|
738
712
|
id: string;
|
|
739
713
|
enabled: boolean;
|
|
740
714
|
};
|
|
715
|
+
nameLastUpdatedAt?: number;
|
|
741
716
|
lastSelected?: number;
|
|
742
717
|
};
|
|
743
718
|
address: string;
|
|
@@ -750,18 +725,16 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
750
725
|
keyring: {
|
|
751
726
|
type: string;
|
|
752
727
|
};
|
|
753
|
-
nameLastUpdatedAt?: number;
|
|
754
|
-
disabled?: boolean;
|
|
755
728
|
snap?: {
|
|
756
729
|
name: string;
|
|
757
730
|
id: string;
|
|
758
731
|
enabled: boolean;
|
|
759
732
|
};
|
|
733
|
+
nameLastUpdatedAt?: number;
|
|
760
734
|
lastSelected?: number;
|
|
761
735
|
}, {
|
|
762
736
|
name: Struct<string, null>;
|
|
763
737
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
764
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
765
738
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
766
739
|
name: string;
|
|
767
740
|
id: string;
|
|
@@ -783,6 +756,8 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
783
756
|
type: import("@metamask/superstruct").Struct<"tron:eoa", "tron:eoa">;
|
|
784
757
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
785
758
|
methods: import("@metamask/superstruct").Struct<import("@metamask/keyring-api").TrxMethod[], import("@metamask/superstruct").Struct<import("@metamask/keyring-api").TrxMethod, {
|
|
759
|
+
signMessage: import("@metamask/keyring-api").TrxMethod.SignMessage;
|
|
760
|
+
signTransaction: import("@metamask/keyring-api").TrxMethod.SignTransaction;
|
|
786
761
|
signMessageV2: import("@metamask/keyring-api").TrxMethod.SignMessageV2;
|
|
787
762
|
verifyMessageV2: import("@metamask/keyring-api").TrxMethod.VerifyMessageV2;
|
|
788
763
|
}>>;
|
|
@@ -829,13 +804,12 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
829
804
|
keyring: {
|
|
830
805
|
type: string;
|
|
831
806
|
};
|
|
832
|
-
nameLastUpdatedAt?: number;
|
|
833
|
-
disabled?: boolean;
|
|
834
807
|
snap?: {
|
|
835
808
|
name: string;
|
|
836
809
|
id: string;
|
|
837
810
|
enabled: boolean;
|
|
838
811
|
};
|
|
812
|
+
nameLastUpdatedAt?: number;
|
|
839
813
|
lastSelected?: number;
|
|
840
814
|
};
|
|
841
815
|
address: string;
|
|
@@ -848,18 +822,16 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
848
822
|
keyring: {
|
|
849
823
|
type: string;
|
|
850
824
|
};
|
|
851
|
-
nameLastUpdatedAt?: number;
|
|
852
|
-
disabled?: boolean;
|
|
853
825
|
snap?: {
|
|
854
826
|
name: string;
|
|
855
827
|
id: string;
|
|
856
828
|
enabled: boolean;
|
|
857
829
|
};
|
|
830
|
+
nameLastUpdatedAt?: number;
|
|
858
831
|
lastSelected?: number;
|
|
859
832
|
}, {
|
|
860
833
|
name: Struct<string, null>;
|
|
861
834
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
862
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
863
835
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
864
836
|
name: string;
|
|
865
837
|
id: string;
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQd,cAAc,EAEf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQd,cAAc,EAEf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoDnB,CAAC;;;;;;;;kBAM8B,CAAC;;EAvDnD,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoGssB,CAAC;;;;;;;;kBAA0M,CAAC;;EAjG57B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,wBAAwB,GAAG,KAAK,CAC1C,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,MAAM,EACJ,MAAM,CAAC,qBAAqB,CAAC,GAC7B,MAAM,CAAC,yBAAyB,CAAC,GACjC,MAAM,CAAC,uBAAuB,CAAC,GAC/B,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,wBAAwB,CAAC,GAChC,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,qBAAqB,CAAC,CAUhC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,CAAC;AAE1B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAbhC,CAAF;;;;;;;;kBAOqB,CAAC;;;EASpB,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/types.d.mts
CHANGED
|
@@ -8,13 +8,12 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
8
8
|
keyring: {
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
|
-
nameLastUpdatedAt?: number;
|
|
12
|
-
disabled?: boolean;
|
|
13
11
|
snap?: {
|
|
14
12
|
name: string;
|
|
15
13
|
id: string;
|
|
16
14
|
enabled: boolean;
|
|
17
15
|
};
|
|
16
|
+
nameLastUpdatedAt?: number;
|
|
18
17
|
lastSelected?: number;
|
|
19
18
|
};
|
|
20
19
|
}, {
|
|
@@ -24,18 +23,16 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
24
23
|
keyring: {
|
|
25
24
|
type: string;
|
|
26
25
|
};
|
|
27
|
-
nameLastUpdatedAt?: number;
|
|
28
|
-
disabled?: boolean;
|
|
29
26
|
snap?: {
|
|
30
27
|
name: string;
|
|
31
28
|
id: string;
|
|
32
29
|
enabled: boolean;
|
|
33
30
|
};
|
|
31
|
+
nameLastUpdatedAt?: number;
|
|
34
32
|
lastSelected?: number;
|
|
35
33
|
}, {
|
|
36
34
|
name: Struct<string, null>;
|
|
37
35
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
38
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
39
36
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
40
37
|
name: string;
|
|
41
38
|
id: string;
|
|
@@ -74,13 +71,12 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
74
71
|
keyring: {
|
|
75
72
|
type: string;
|
|
76
73
|
};
|
|
77
|
-
nameLastUpdatedAt?: number;
|
|
78
|
-
disabled?: boolean;
|
|
79
74
|
snap?: {
|
|
80
75
|
name: string;
|
|
81
76
|
id: string;
|
|
82
77
|
enabled: boolean;
|
|
83
78
|
};
|
|
79
|
+
nameLastUpdatedAt?: number;
|
|
84
80
|
lastSelected?: number;
|
|
85
81
|
};
|
|
86
82
|
address: string;
|
|
@@ -93,18 +89,16 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
93
89
|
keyring: {
|
|
94
90
|
type: string;
|
|
95
91
|
};
|
|
96
|
-
nameLastUpdatedAt?: number;
|
|
97
|
-
disabled?: boolean;
|
|
98
92
|
snap?: {
|
|
99
93
|
name: string;
|
|
100
94
|
id: string;
|
|
101
95
|
enabled: boolean;
|
|
102
96
|
};
|
|
97
|
+
nameLastUpdatedAt?: number;
|
|
103
98
|
lastSelected?: number;
|
|
104
99
|
}, {
|
|
105
100
|
name: Struct<string, null>;
|
|
106
101
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
107
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
108
102
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
109
103
|
name: string;
|
|
110
104
|
id: string;
|
|
@@ -166,13 +160,12 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
166
160
|
keyring: {
|
|
167
161
|
type: string;
|
|
168
162
|
};
|
|
169
|
-
nameLastUpdatedAt?: number;
|
|
170
|
-
disabled?: boolean;
|
|
171
163
|
snap?: {
|
|
172
164
|
name: string;
|
|
173
165
|
id: string;
|
|
174
166
|
enabled: boolean;
|
|
175
167
|
};
|
|
168
|
+
nameLastUpdatedAt?: number;
|
|
176
169
|
lastSelected?: number;
|
|
177
170
|
};
|
|
178
171
|
address: string;
|
|
@@ -185,18 +178,16 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
185
178
|
keyring: {
|
|
186
179
|
type: string;
|
|
187
180
|
};
|
|
188
|
-
nameLastUpdatedAt?: number;
|
|
189
|
-
disabled?: boolean;
|
|
190
181
|
snap?: {
|
|
191
182
|
name: string;
|
|
192
183
|
id: string;
|
|
193
184
|
enabled: boolean;
|
|
194
185
|
};
|
|
186
|
+
nameLastUpdatedAt?: number;
|
|
195
187
|
lastSelected?: number;
|
|
196
188
|
}, {
|
|
197
189
|
name: Struct<string, null>;
|
|
198
190
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
199
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
200
191
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
201
192
|
name: string;
|
|
202
193
|
id: string;
|
|
@@ -260,13 +251,12 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
260
251
|
keyring: {
|
|
261
252
|
type: string;
|
|
262
253
|
};
|
|
263
|
-
nameLastUpdatedAt?: number;
|
|
264
|
-
disabled?: boolean;
|
|
265
254
|
snap?: {
|
|
266
255
|
name: string;
|
|
267
256
|
id: string;
|
|
268
257
|
enabled: boolean;
|
|
269
258
|
};
|
|
259
|
+
nameLastUpdatedAt?: number;
|
|
270
260
|
lastSelected?: number;
|
|
271
261
|
};
|
|
272
262
|
address: string;
|
|
@@ -279,18 +269,16 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
279
269
|
keyring: {
|
|
280
270
|
type: string;
|
|
281
271
|
};
|
|
282
|
-
nameLastUpdatedAt?: number;
|
|
283
|
-
disabled?: boolean;
|
|
284
272
|
snap?: {
|
|
285
273
|
name: string;
|
|
286
274
|
id: string;
|
|
287
275
|
enabled: boolean;
|
|
288
276
|
};
|
|
277
|
+
nameLastUpdatedAt?: number;
|
|
289
278
|
lastSelected?: number;
|
|
290
279
|
}, {
|
|
291
280
|
name: Struct<string, null>;
|
|
292
281
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
293
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
294
282
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
295
283
|
name: string;
|
|
296
284
|
id: string;
|
|
@@ -355,13 +343,12 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
355
343
|
keyring: {
|
|
356
344
|
type: string;
|
|
357
345
|
};
|
|
358
|
-
nameLastUpdatedAt?: number;
|
|
359
|
-
disabled?: boolean;
|
|
360
346
|
snap?: {
|
|
361
347
|
name: string;
|
|
362
348
|
id: string;
|
|
363
349
|
enabled: boolean;
|
|
364
350
|
};
|
|
351
|
+
nameLastUpdatedAt?: number;
|
|
365
352
|
lastSelected?: number;
|
|
366
353
|
};
|
|
367
354
|
address: string;
|
|
@@ -374,18 +361,16 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
374
361
|
keyring: {
|
|
375
362
|
type: string;
|
|
376
363
|
};
|
|
377
|
-
nameLastUpdatedAt?: number;
|
|
378
|
-
disabled?: boolean;
|
|
379
364
|
snap?: {
|
|
380
365
|
name: string;
|
|
381
366
|
id: string;
|
|
382
367
|
enabled: boolean;
|
|
383
368
|
};
|
|
369
|
+
nameLastUpdatedAt?: number;
|
|
384
370
|
lastSelected?: number;
|
|
385
371
|
}, {
|
|
386
372
|
name: Struct<string, null>;
|
|
387
373
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
388
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
389
374
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
390
375
|
name: string;
|
|
391
376
|
id: string;
|
|
@@ -450,13 +435,12 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
450
435
|
keyring: {
|
|
451
436
|
type: string;
|
|
452
437
|
};
|
|
453
|
-
nameLastUpdatedAt?: number;
|
|
454
|
-
disabled?: boolean;
|
|
455
438
|
snap?: {
|
|
456
439
|
name: string;
|
|
457
440
|
id: string;
|
|
458
441
|
enabled: boolean;
|
|
459
442
|
};
|
|
443
|
+
nameLastUpdatedAt?: number;
|
|
460
444
|
lastSelected?: number;
|
|
461
445
|
};
|
|
462
446
|
address: string;
|
|
@@ -469,18 +453,16 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
469
453
|
keyring: {
|
|
470
454
|
type: string;
|
|
471
455
|
};
|
|
472
|
-
nameLastUpdatedAt?: number;
|
|
473
|
-
disabled?: boolean;
|
|
474
456
|
snap?: {
|
|
475
457
|
name: string;
|
|
476
458
|
id: string;
|
|
477
459
|
enabled: boolean;
|
|
478
460
|
};
|
|
461
|
+
nameLastUpdatedAt?: number;
|
|
479
462
|
lastSelected?: number;
|
|
480
463
|
}, {
|
|
481
464
|
name: Struct<string, null>;
|
|
482
465
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
483
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
484
466
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
485
467
|
name: string;
|
|
486
468
|
id: string;
|
|
@@ -545,13 +527,12 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
545
527
|
keyring: {
|
|
546
528
|
type: string;
|
|
547
529
|
};
|
|
548
|
-
nameLastUpdatedAt?: number;
|
|
549
|
-
disabled?: boolean;
|
|
550
530
|
snap?: {
|
|
551
531
|
name: string;
|
|
552
532
|
id: string;
|
|
553
533
|
enabled: boolean;
|
|
554
534
|
};
|
|
535
|
+
nameLastUpdatedAt?: number;
|
|
555
536
|
lastSelected?: number;
|
|
556
537
|
};
|
|
557
538
|
address: string;
|
|
@@ -564,18 +545,16 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
564
545
|
keyring: {
|
|
565
546
|
type: string;
|
|
566
547
|
};
|
|
567
|
-
nameLastUpdatedAt?: number;
|
|
568
|
-
disabled?: boolean;
|
|
569
548
|
snap?: {
|
|
570
549
|
name: string;
|
|
571
550
|
id: string;
|
|
572
551
|
enabled: boolean;
|
|
573
552
|
};
|
|
553
|
+
nameLastUpdatedAt?: number;
|
|
574
554
|
lastSelected?: number;
|
|
575
555
|
}, {
|
|
576
556
|
name: Struct<string, null>;
|
|
577
557
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
578
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
579
558
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
580
559
|
name: string;
|
|
581
560
|
id: string;
|
|
@@ -640,13 +619,12 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
640
619
|
keyring: {
|
|
641
620
|
type: string;
|
|
642
621
|
};
|
|
643
|
-
nameLastUpdatedAt?: number;
|
|
644
|
-
disabled?: boolean;
|
|
645
622
|
snap?: {
|
|
646
623
|
name: string;
|
|
647
624
|
id: string;
|
|
648
625
|
enabled: boolean;
|
|
649
626
|
};
|
|
627
|
+
nameLastUpdatedAt?: number;
|
|
650
628
|
lastSelected?: number;
|
|
651
629
|
};
|
|
652
630
|
address: string;
|
|
@@ -659,18 +637,16 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
659
637
|
keyring: {
|
|
660
638
|
type: string;
|
|
661
639
|
};
|
|
662
|
-
nameLastUpdatedAt?: number;
|
|
663
|
-
disabled?: boolean;
|
|
664
640
|
snap?: {
|
|
665
641
|
name: string;
|
|
666
642
|
id: string;
|
|
667
643
|
enabled: boolean;
|
|
668
644
|
};
|
|
645
|
+
nameLastUpdatedAt?: number;
|
|
669
646
|
lastSelected?: number;
|
|
670
647
|
}, {
|
|
671
648
|
name: Struct<string, null>;
|
|
672
649
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
673
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
674
650
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
675
651
|
name: string;
|
|
676
652
|
id: string;
|
|
@@ -731,13 +707,12 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
731
707
|
keyring: {
|
|
732
708
|
type: string;
|
|
733
709
|
};
|
|
734
|
-
nameLastUpdatedAt?: number;
|
|
735
|
-
disabled?: boolean;
|
|
736
710
|
snap?: {
|
|
737
711
|
name: string;
|
|
738
712
|
id: string;
|
|
739
713
|
enabled: boolean;
|
|
740
714
|
};
|
|
715
|
+
nameLastUpdatedAt?: number;
|
|
741
716
|
lastSelected?: number;
|
|
742
717
|
};
|
|
743
718
|
address: string;
|
|
@@ -750,18 +725,16 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
750
725
|
keyring: {
|
|
751
726
|
type: string;
|
|
752
727
|
};
|
|
753
|
-
nameLastUpdatedAt?: number;
|
|
754
|
-
disabled?: boolean;
|
|
755
728
|
snap?: {
|
|
756
729
|
name: string;
|
|
757
730
|
id: string;
|
|
758
731
|
enabled: boolean;
|
|
759
732
|
};
|
|
733
|
+
nameLastUpdatedAt?: number;
|
|
760
734
|
lastSelected?: number;
|
|
761
735
|
}, {
|
|
762
736
|
name: Struct<string, null>;
|
|
763
737
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
764
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
765
738
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
766
739
|
name: string;
|
|
767
740
|
id: string;
|
|
@@ -783,6 +756,8 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
783
756
|
type: import("@metamask/superstruct").Struct<"tron:eoa", "tron:eoa">;
|
|
784
757
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
785
758
|
methods: import("@metamask/superstruct").Struct<import("@metamask/keyring-api").TrxMethod[], import("@metamask/superstruct").Struct<import("@metamask/keyring-api").TrxMethod, {
|
|
759
|
+
signMessage: import("@metamask/keyring-api").TrxMethod.SignMessage;
|
|
760
|
+
signTransaction: import("@metamask/keyring-api").TrxMethod.SignTransaction;
|
|
786
761
|
signMessageV2: import("@metamask/keyring-api").TrxMethod.SignMessageV2;
|
|
787
762
|
verifyMessageV2: import("@metamask/keyring-api").TrxMethod.VerifyMessageV2;
|
|
788
763
|
}>>;
|
|
@@ -829,13 +804,12 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
829
804
|
keyring: {
|
|
830
805
|
type: string;
|
|
831
806
|
};
|
|
832
|
-
nameLastUpdatedAt?: number;
|
|
833
|
-
disabled?: boolean;
|
|
834
807
|
snap?: {
|
|
835
808
|
name: string;
|
|
836
809
|
id: string;
|
|
837
810
|
enabled: boolean;
|
|
838
811
|
};
|
|
812
|
+
nameLastUpdatedAt?: number;
|
|
839
813
|
lastSelected?: number;
|
|
840
814
|
};
|
|
841
815
|
address: string;
|
|
@@ -848,18 +822,16 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
848
822
|
keyring: {
|
|
849
823
|
type: string;
|
|
850
824
|
};
|
|
851
|
-
nameLastUpdatedAt?: number;
|
|
852
|
-
disabled?: boolean;
|
|
853
825
|
snap?: {
|
|
854
826
|
name: string;
|
|
855
827
|
id: string;
|
|
856
828
|
enabled: boolean;
|
|
857
829
|
};
|
|
830
|
+
nameLastUpdatedAt?: number;
|
|
858
831
|
lastSelected?: number;
|
|
859
832
|
}, {
|
|
860
833
|
name: Struct<string, null>;
|
|
861
834
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
862
|
-
disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
863
835
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
864
836
|
name: string;
|
|
865
837
|
id: string;
|
package/dist/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQd,cAAc,EAEf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B
|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AC,uBAAuB,CAAC,GAC/B,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,wBAAwB,CAAC,GAChC,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,qBAAqB,CAAC,CAUhC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,CAAC;AAE1B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAbhC,CAAF;;;;;;;;kBAOqB,CAAC;;;EASpB,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/types.mjs
CHANGED
|
@@ -9,10 +9,6 @@ export const InternalAccountMetadataStruct = object({
|
|
|
9
9
|
metadata: object({
|
|
10
10
|
name: string(),
|
|
11
11
|
nameLastUpdatedAt: exactOptional(number()),
|
|
12
|
-
// We use `disabled` here instead of `enabled` since this can be optional
|
|
13
|
-
// and better match this kind of expression: !disabled (which covers both
|
|
14
|
-
// the `false` and `undefined` values.
|
|
15
|
-
disabled: exactOptional(boolean()),
|
|
16
12
|
snap: exactOptional(object({
|
|
17
13
|
id: string(),
|
|
18
14
|
enabled: boolean(),
|
package/dist/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4FAA4F;AAC5F,8BAA8B;AAE9B,OAAO,EACL,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,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,GAAG,EAAE,CAAC,EAAE,2BAA2B;IACtD,CAAC,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,EAAE,+BAA+B;IAC9D,CAAC,GAAG,cAAc,CAAC,KAAK,EAAE,CAAC,EAAE,6BAA6B;IAC1D,CAAC,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC,EAAE,4BAA4B;IACxD,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,8BAA8B;IAC5D,CAAC,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC,EAAE,4BAA4B;IACxD,CAAC,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,EAAE,4BAA4B;IAC/D,CAAC,GAAG,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE,2BAA2B;CACvD,CAAC;AAYF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;IAC1C,GAAG,oBAAoB,CAAC,MAAM;IAC9B,GAAG,6BAA6B,CAAC,MAAM;CACxC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n// FIXME: Those rules seem to be triggering a false positive on the `InternalAccountStructs`\n// and `InternalAccountTypes`.\n\nimport {\n BtcAccountType,\n EthAccountType,\n KeyringAccountStruct,\n SolAccountType,\n BtcP2pkhAccountStruct,\n BtcP2shAccountStruct,\n BtcP2wpkhAccountStruct,\n BtcP2trAccountStruct,\n EthEoaAccountStruct,\n EthErc4337AccountStruct,\n SolDataAccountStruct,\n TrxAccountType,\n TrxEoaAccountStruct,\n} from '@metamask/keyring-api';\nimport { exactOptional, object } from '@metamask/keyring-utils';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { boolean, string, number } from '@metamask/superstruct';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType\n | TrxAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\nexport const InternalEthEoaAccountStruct = object({\n ...EthEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalEthErc4337AccountStruct = object({\n ...EthErc4337AccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2pkhAccountStruct = object({\n ...BtcP2pkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2shAccountStruct = object({\n ...BtcP2shAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2wpkhAccountStruct = object({\n ...BtcP2wpkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2trAccountStruct = object({\n ...BtcP2trAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalSolDataAccountStruct = object({\n ...SolDataAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalTrxEoaAccountStruct = object({\n ...TrxEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;\n\nexport type InternalEthErc4337Account = Infer<\n typeof InternalEthErc4337AccountStruct\n>;\n\nexport type InternalBtcP2pkhAccount = Infer<\n typeof InternalBtcP2pkhAccountStruct\n>;\n\nexport type InternalBtcP2shAccount = Infer<typeof InternalBtcP2shAccountStruct>;\n\nexport type InternalBtcP2wpkhAccount = Infer<\n typeof InternalBtcP2wpkhAccountStruct\n>;\n\nexport type InternalBtcP2trAccount = Infer<typeof InternalBtcP2trAccountStruct>;\n\nexport type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;\n\nexport type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;\n\nexport const InternalAccountStructs: Record<\n string,\n | Struct<InternalEthEoaAccount>\n | Struct<InternalEthErc4337Account>\n | Struct<InternalBtcP2pkhAccount>\n | Struct<InternalBtcP2shAccount>\n | Struct<InternalBtcP2wpkhAccount>\n | Struct<InternalBtcP2trAccount>\n | Struct<InternalSolDataAccount>\n | Struct<InternalTrxEoaAccount>\n> = {\n [`${EthAccountType.Eoa}`]: InternalEthEoaAccountStruct,\n [`${EthAccountType.Erc4337}`]: InternalEthErc4337AccountStruct,\n [`${BtcAccountType.P2pkh}`]: InternalBtcP2pkhAccountStruct,\n [`${BtcAccountType.P2sh}`]: InternalBtcP2shAccountStruct,\n [`${BtcAccountType.P2wpkh}`]: InternalBtcP2wpkhAccountStruct,\n [`${BtcAccountType.P2tr}`]: InternalBtcP2trAccountStruct,\n [`${SolAccountType.DataAccount}`]: InternalSolDataAccountStruct,\n [`${TrxAccountType.Eoa}`]: InternalTrxEoaAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2pkhAccount\n | InternalBtcP2shAccount\n | InternalBtcP2wpkhAccount\n | InternalBtcP2trAccount\n | InternalSolDataAccount\n | InternalTrxEoaAccount;\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/keyring-internal-api",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.1-8508712",
|
|
4
4
|
"description": "MetaMask Keyring Internal API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"metamask",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test:watch": "jest --watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@metamask/keyring-api": "21.
|
|
48
|
+
"@metamask/keyring-api": "21.3.0",
|
|
49
49
|
"@metamask/keyring-utils": "3.1.0",
|
|
50
50
|
"@metamask/superstruct": "^3.1.0"
|
|
51
51
|
},
|