@metamask-previews/keyring-internal-api 11.0.1-023fc63 → 11.0.1-1fa477f
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 +1 -1
- package/dist/compatibility/keyring-request.d.cts +5 -5
- package/dist/compatibility/keyring-request.d.mts +5 -5
- package/dist/types.cjs +16 -17
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +201 -196
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +201 -196
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +1 -2
- package/dist/types.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
### Changed
|
|
11
11
|
|
|
12
12
|
- Bump `@metamask/keyring-utils` from `^3.2.0` to `^3.3.1` ([#544](https://github.com/MetaMask/accounts/pull/544), [#546](https://github.com/MetaMask/accounts/pull/546))
|
|
13
|
-
- Bump `@metamask/keyring-api` from `^23.1.0` to `^23.
|
|
13
|
+
- Bump `@metamask/keyring-api` from `^23.1.0` to `^23.5.0` ([#562](https://github.com/MetaMask/accounts/pull/562), [#569](https://github.com/MetaMask/accounts/pull/569), [#583](https://github.com/MetaMask/accounts/pull/583), [#587](https://github.com/MetaMask/accounts/pull/587))
|
|
14
14
|
|
|
15
15
|
## [11.0.1]
|
|
16
16
|
|
|
@@ -5,12 +5,12 @@ import type { Infer } from "@metamask/superstruct";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const KeyringRequestWithoutOriginStruct: import("@metamask/superstruct").Struct<{
|
|
7
7
|
id: string;
|
|
8
|
-
scope: string;
|
|
9
|
-
account: string;
|
|
10
8
|
request: {
|
|
11
9
|
method: string;
|
|
12
10
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
13
11
|
};
|
|
12
|
+
scope: string;
|
|
13
|
+
account: string;
|
|
14
14
|
}, Omit<{
|
|
15
15
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
16
16
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -21,7 +21,7 @@ export declare const KeyringRequestWithoutOriginStruct: import("@metamask/supers
|
|
|
21
21
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
22
22
|
}, {
|
|
23
23
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
-
params: import("@metamask/superstruct").
|
|
24
|
+
params: import("@metamask/superstruct").ExactOptionalStruct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
|
|
25
25
|
}>;
|
|
26
26
|
}, "origin">>;
|
|
27
27
|
export type KeyringRequestWithoutOrigin = Infer<typeof KeyringRequestWithoutOriginStruct>;
|
|
@@ -35,8 +35,8 @@ export declare const KeyringResponseWithoutOriginStruct: import("@metamask/super
|
|
|
35
35
|
url?: string;
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
|
-
pending: false;
|
|
39
38
|
result: import("@metamask/utils").Json;
|
|
39
|
+
pending: false;
|
|
40
40
|
}, null>;
|
|
41
41
|
export type KeyringResponseWithoutOrigin = Infer<typeof KeyringResponseWithoutOriginStruct>;
|
|
42
42
|
export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
@@ -46,8 +46,8 @@ export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruc
|
|
|
46
46
|
url?: string;
|
|
47
47
|
};
|
|
48
48
|
} | {
|
|
49
|
-
pending: false;
|
|
50
49
|
result: import("@metamask/utils").Json;
|
|
50
|
+
pending: false;
|
|
51
51
|
}, null>;
|
|
52
52
|
/**
|
|
53
53
|
* Converts a keyring request to a keyring request v1.
|
|
@@ -5,12 +5,12 @@ import type { Infer } from "@metamask/superstruct";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const KeyringRequestWithoutOriginStruct: import("@metamask/superstruct").Struct<{
|
|
7
7
|
id: string;
|
|
8
|
-
scope: string;
|
|
9
|
-
account: string;
|
|
10
8
|
request: {
|
|
11
9
|
method: string;
|
|
12
10
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
13
11
|
};
|
|
12
|
+
scope: string;
|
|
13
|
+
account: string;
|
|
14
14
|
}, Omit<{
|
|
15
15
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
16
16
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -21,7 +21,7 @@ export declare const KeyringRequestWithoutOriginStruct: import("@metamask/supers
|
|
|
21
21
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
22
22
|
}, {
|
|
23
23
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
-
params: import("@metamask/superstruct").
|
|
24
|
+
params: import("@metamask/superstruct").ExactOptionalStruct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[], null>;
|
|
25
25
|
}>;
|
|
26
26
|
}, "origin">>;
|
|
27
27
|
export type KeyringRequestWithoutOrigin = Infer<typeof KeyringRequestWithoutOriginStruct>;
|
|
@@ -35,8 +35,8 @@ export declare const KeyringResponseWithoutOriginStruct: import("@metamask/super
|
|
|
35
35
|
url?: string;
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
|
-
pending: false;
|
|
39
38
|
result: import("@metamask/utils").Json;
|
|
39
|
+
pending: false;
|
|
40
40
|
}, null>;
|
|
41
41
|
export type KeyringResponseWithoutOrigin = Infer<typeof KeyringResponseWithoutOriginStruct>;
|
|
42
42
|
export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
@@ -46,8 +46,8 @@ export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruc
|
|
|
46
46
|
url?: string;
|
|
47
47
|
};
|
|
48
48
|
} | {
|
|
49
|
-
pending: false;
|
|
50
49
|
result: import("@metamask/utils").Json;
|
|
50
|
+
pending: false;
|
|
51
51
|
}, null>;
|
|
52
52
|
/**
|
|
53
53
|
* Converts a keyring request to a keyring request v1.
|
package/dist/types.cjs
CHANGED
|
@@ -4,55 +4,54 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.InternalAccountStruct = exports.InternalAccountStructs = exports.InternalXlmAccountStruct = exports.InternalTrxEoaAccountStruct = exports.InternalSolDataAccountStruct = exports.InternalBtcP2trAccountStruct = exports.InternalBtcP2wpkhAccountStruct = exports.InternalBtcP2shAccountStruct = exports.InternalBtcP2pkhAccountStruct = exports.InternalEthErc4337AccountStruct = exports.InternalEthEoaAccountStruct = exports.InternalAccountMetadataStruct = void 0;
|
|
6
6
|
const keyring_api_1 = require("@metamask/keyring-api");
|
|
7
|
-
const keyring_utils_1 = require("@metamask/keyring-utils");
|
|
8
7
|
const superstruct_1 = require("@metamask/superstruct");
|
|
9
|
-
exports.InternalAccountMetadataStruct = (0,
|
|
10
|
-
metadata: (0,
|
|
8
|
+
exports.InternalAccountMetadataStruct = (0, superstruct_1.object)({
|
|
9
|
+
metadata: (0, superstruct_1.object)({
|
|
11
10
|
name: (0, superstruct_1.string)(),
|
|
12
|
-
nameLastUpdatedAt: (0,
|
|
13
|
-
snap: (0,
|
|
11
|
+
nameLastUpdatedAt: (0, superstruct_1.exactOptional)((0, superstruct_1.number)()),
|
|
12
|
+
snap: (0, superstruct_1.exactOptional)((0, superstruct_1.object)({
|
|
14
13
|
id: (0, superstruct_1.string)(),
|
|
15
14
|
})),
|
|
16
|
-
lastSelected: (0,
|
|
15
|
+
lastSelected: (0, superstruct_1.exactOptional)((0, superstruct_1.number)()),
|
|
17
16
|
importTime: (0, superstruct_1.number)(),
|
|
18
|
-
keyring: (0,
|
|
17
|
+
keyring: (0, superstruct_1.object)({
|
|
19
18
|
type: (0, superstruct_1.string)(),
|
|
20
19
|
}),
|
|
21
20
|
}),
|
|
22
21
|
});
|
|
23
|
-
exports.InternalEthEoaAccountStruct = (0,
|
|
22
|
+
exports.InternalEthEoaAccountStruct = (0, superstruct_1.object)({
|
|
24
23
|
...keyring_api_1.EthEoaAccountStruct.schema,
|
|
25
24
|
...exports.InternalAccountMetadataStruct.schema,
|
|
26
25
|
});
|
|
27
|
-
exports.InternalEthErc4337AccountStruct = (0,
|
|
26
|
+
exports.InternalEthErc4337AccountStruct = (0, superstruct_1.object)({
|
|
28
27
|
...keyring_api_1.EthErc4337AccountStruct.schema,
|
|
29
28
|
...exports.InternalAccountMetadataStruct.schema,
|
|
30
29
|
});
|
|
31
|
-
exports.InternalBtcP2pkhAccountStruct = (0,
|
|
30
|
+
exports.InternalBtcP2pkhAccountStruct = (0, superstruct_1.object)({
|
|
32
31
|
...keyring_api_1.BtcP2pkhAccountStruct.schema,
|
|
33
32
|
...exports.InternalAccountMetadataStruct.schema,
|
|
34
33
|
});
|
|
35
|
-
exports.InternalBtcP2shAccountStruct = (0,
|
|
34
|
+
exports.InternalBtcP2shAccountStruct = (0, superstruct_1.object)({
|
|
36
35
|
...keyring_api_1.BtcP2shAccountStruct.schema,
|
|
37
36
|
...exports.InternalAccountMetadataStruct.schema,
|
|
38
37
|
});
|
|
39
|
-
exports.InternalBtcP2wpkhAccountStruct = (0,
|
|
38
|
+
exports.InternalBtcP2wpkhAccountStruct = (0, superstruct_1.object)({
|
|
40
39
|
...keyring_api_1.BtcP2wpkhAccountStruct.schema,
|
|
41
40
|
...exports.InternalAccountMetadataStruct.schema,
|
|
42
41
|
});
|
|
43
|
-
exports.InternalBtcP2trAccountStruct = (0,
|
|
42
|
+
exports.InternalBtcP2trAccountStruct = (0, superstruct_1.object)({
|
|
44
43
|
...keyring_api_1.BtcP2trAccountStruct.schema,
|
|
45
44
|
...exports.InternalAccountMetadataStruct.schema,
|
|
46
45
|
});
|
|
47
|
-
exports.InternalSolDataAccountStruct = (0,
|
|
46
|
+
exports.InternalSolDataAccountStruct = (0, superstruct_1.object)({
|
|
48
47
|
...keyring_api_1.SolDataAccountStruct.schema,
|
|
49
48
|
...exports.InternalAccountMetadataStruct.schema,
|
|
50
49
|
});
|
|
51
|
-
exports.InternalTrxEoaAccountStruct = (0,
|
|
50
|
+
exports.InternalTrxEoaAccountStruct = (0, superstruct_1.object)({
|
|
52
51
|
...keyring_api_1.TrxEoaAccountStruct.schema,
|
|
53
52
|
...exports.InternalAccountMetadataStruct.schema,
|
|
54
53
|
});
|
|
55
|
-
exports.InternalXlmAccountStruct = (0,
|
|
54
|
+
exports.InternalXlmAccountStruct = (0, superstruct_1.object)({
|
|
56
55
|
...keyring_api_1.XlmAccountStruct.schema,
|
|
57
56
|
...exports.InternalAccountMetadataStruct.schema,
|
|
58
57
|
});
|
|
@@ -67,7 +66,7 @@ exports.InternalAccountStructs = {
|
|
|
67
66
|
[`${keyring_api_1.TrxAccountType.Eoa}`]: exports.InternalTrxEoaAccountStruct,
|
|
68
67
|
[`${keyring_api_1.XlmAccountType.Account}`]: exports.InternalXlmAccountStruct,
|
|
69
68
|
};
|
|
70
|
-
exports.InternalAccountStruct = (0,
|
|
69
|
+
exports.InternalAccountStruct = (0, superstruct_1.object)({
|
|
71
70
|
...keyring_api_1.KeyringAccountStruct.schema,
|
|
72
71
|
...exports.InternalAccountMetadataStruct.schema,
|
|
73
72
|
});
|
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,6DAA6D;;;AAE7D,uDAgB+B;
|
|
1
|
+
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,6DAA6D;;;AAE7D,uDAgB+B;AAE/B,uDAA8E;AASjE,QAAA,6BAA6B,GAAG,IAAA,oBAAM,EAAC;IAClD,QAAQ,EAAE,IAAA,oBAAM,EAAC;QACf,IAAI,EAAE,IAAA,oBAAM,GAAE;QACd,iBAAiB,EAAE,IAAA,2BAAa,EAAC,IAAA,oBAAM,GAAE,CAAC;QAC1C,IAAI,EAAE,IAAA,2BAAa,EACjB,IAAA,oBAAM,EAAC;YACL,EAAE,EAAE,IAAA,oBAAM,GAAE;SACb,CAAC,CACH;QACD,YAAY,EAAE,IAAA,2BAAa,EAAC,IAAA,oBAAM,GAAE,CAAC;QACrC,UAAU,EAAE,IAAA,oBAAM,GAAE;QACpB,OAAO,EAAE,IAAA,oBAAM,EAAC;YACd,IAAI,EAAE,IAAA,oBAAM,GAAE;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,IAAA,oBAAM,EAAC;IAChD,GAAG,iCAAmB,CAAC,MAAM;IAC7B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,IAAA,oBAAM,EAAC;IACpD,GAAG,qCAAuB,CAAC,MAAM;IACjC,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,IAAA,oBAAM,EAAC;IAClD,GAAG,mCAAqB,CAAC,MAAM;IAC/B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,IAAA,oBAAM,EAAC;IACjD,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,IAAA,oBAAM,EAAC;IACnD,GAAG,oCAAsB,CAAC,MAAM;IAChC,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,IAAA,oBAAM,EAAC;IACjD,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,IAAA,oBAAM,EAAC;IACjD,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,IAAA,oBAAM,EAAC;IAChD,GAAG,iCAAmB,CAAC,MAAM;IAC7B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,IAAA,oBAAM,EAAC;IAC7C,GAAG,8BAAgB,CAAC,MAAM;IAC1B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AA0BU,QAAA,sBAAsB,GAW/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;IACtD,CAAC,GAAG,4BAAc,CAAC,OAAO,EAAE,CAAC,EAAE,gCAAwB;CACxD,CAAC;AAaW,QAAA,qBAAqB,GAAG,IAAA,oBAAM,EAAC;IAC1C,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC","sourcesContent":["// FIXME: eslint is complaning about our account union even if those accounts\n// types should all be different, so we disable this for now:\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 XlmAccountType,\n XlmAccountStruct,\n} from '@metamask/keyring-api';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { exactOptional, object, string, number } from '@metamask/superstruct';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType\n | TrxAccountType\n | XlmAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n snap: exactOptional(\n object({\n id: 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 const InternalXlmAccountStruct = object({\n ...XlmAccountStruct.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 type InternalXlmAccount = Infer<typeof InternalXlmAccountStruct>;\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 | Struct<InternalXlmAccount>\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 [`${XlmAccountType.Account}`]: InternalXlmAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2pkhAccount\n | InternalBtcP2shAccount\n | InternalBtcP2wpkhAccount\n | InternalBtcP2trAccount\n | InternalSolDataAccount\n | InternalTrxEoaAccount\n | InternalXlmAccount;\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"]}
|