@metamask/keyring-api 18.0.0 → 19.0.0

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/api/account-options.cjs +122 -0
  3. package/dist/api/account-options.cjs.map +1 -0
  4. package/dist/api/account-options.d.cts +131 -0
  5. package/dist/api/account-options.d.cts.map +1 -0
  6. package/dist/api/account-options.d.mts +131 -0
  7. package/dist/api/account-options.d.mts.map +1 -0
  8. package/dist/api/account-options.mjs +119 -0
  9. package/dist/api/account-options.mjs.map +1 -0
  10. package/dist/api/account.cjs +2 -2
  11. package/dist/api/account.cjs.map +1 -1
  12. package/dist/api/account.d.cts +22 -2
  13. package/dist/api/account.d.cts.map +1 -1
  14. package/dist/api/account.d.mts +22 -2
  15. package/dist/api/account.d.mts.map +1 -1
  16. package/dist/api/account.mjs +3 -3
  17. package/dist/api/account.mjs.map +1 -1
  18. package/dist/api/discovery.d.cts +2 -2
  19. package/dist/api/discovery.d.mts +2 -2
  20. package/dist/api/index.cjs +1 -0
  21. package/dist/api/index.cjs.map +1 -1
  22. package/dist/api/index.d.cts +1 -0
  23. package/dist/api/index.d.cts.map +1 -1
  24. package/dist/api/index.d.mts +1 -0
  25. package/dist/api/index.d.mts.map +1 -1
  26. package/dist/api/index.mjs +1 -0
  27. package/dist/api/index.mjs.map +1 -1
  28. package/dist/btc/types.d.cts +88 -8
  29. package/dist/btc/types.d.cts.map +1 -1
  30. package/dist/btc/types.d.mts +88 -8
  31. package/dist/btc/types.d.mts.map +1 -1
  32. package/dist/eth/types.d.cts +44 -4
  33. package/dist/eth/types.d.cts.map +1 -1
  34. package/dist/eth/types.d.mts +44 -4
  35. package/dist/eth/types.d.mts.map +1 -1
  36. package/dist/events.d.cts +88 -8
  37. package/dist/events.d.cts.map +1 -1
  38. package/dist/events.d.mts +88 -8
  39. package/dist/events.d.mts.map +1 -1
  40. package/dist/rpc.d.cts +125 -15
  41. package/dist/rpc.d.cts.map +1 -1
  42. package/dist/rpc.d.mts +125 -15
  43. package/dist/rpc.d.mts.map +1 -1
  44. package/dist/sol/types.d.cts +22 -2
  45. package/dist/sol/types.d.cts.map +1 -1
  46. package/dist/sol/types.d.mts +22 -2
  47. package/dist/sol/types.d.mts.map +1 -1
  48. package/package.json +3 -3
@@ -35,7 +35,17 @@ export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc
35
35
  export declare const KeyringAccountStruct: import("@metamask/superstruct").Struct<{
36
36
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
37
37
  id: string;
38
- options: Record<string, import("@metamask/utils").Json>;
38
+ options: Record<string, import("@metamask/utils").Json> & {
39
+ entropy?: {
40
+ type: "mnemonic";
41
+ id: string;
42
+ derivationPath: string;
43
+ groupIndex: number;
44
+ } | {
45
+ type: "private-key";
46
+ };
47
+ exportable?: boolean;
48
+ };
39
49
  address: string;
40
50
  scopes: `${string}:${string}`[];
41
51
  methods: string[];
@@ -67,7 +77,17 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
67
77
  /**
68
78
  * Account options.
69
79
  */
70
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
80
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
81
+ entropy?: {
82
+ type: "mnemonic";
83
+ id: string;
84
+ derivationPath: string;
85
+ groupIndex: number;
86
+ } | {
87
+ type: "private-key";
88
+ };
89
+ exportable?: boolean;
90
+ }, null>;
71
91
  /**
72
92
  * Account supported methods.
73
93
  */
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.mts","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAMnD;;GAEG;AACH,oBAAY,cAAc;IACxB,GAAG,eAAe;IAClB,OA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c,CAAC,KAAK,EAAE,GACzB,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,MAAM,EAAE,GAC1B,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAC/B;;OAEG;;IAGH;;OAEG;;;;;;;;;;IAWH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;IAGH;;OAEG;;EAEH,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { AccountIdStruct, object } from "@metamask/keyring-utils";
2
- import { nonempty, array, enums, record, string } from "@metamask/superstruct";
3
- import { JsonStruct } from "@metamask/utils";
2
+ import { nonempty, array, enums, string } from "@metamask/superstruct";
3
+ import { KeyringAccountOptionsStruct } from "./account-options.mjs";
4
4
  import { CaipChainIdStruct } from "./caip.mjs";
5
5
  /**
6
6
  * Supported Ethereum account types.
@@ -62,7 +62,7 @@ export const KeyringAccountStruct = object({
62
62
  /**
63
63
  * Account options.
64
64
  */
65
- options: record(string(), JsonStruct),
65
+ options: KeyringAccountOptionsStruct,
66
66
  /**
67
67
  * Account supported methods.
68
68
  */
@@ -1 +1 @@
1
- {"version":3,"file":"account.mjs","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,gCAAgC;AAElE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B;AAC/E,OAAO,EAAE,UAAU,EAAE,wBAAwB;AAE7C,OAAO,EAAE,iBAAiB,EAAE,mBAAe;AAE3C;;GAEG;AACH,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,4CAA0B,CAAA;AAC5B,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,wCAAsB,CAAA;IACtB,sCAAoB,CAAA;IACpB,0CAAwB,CAAA;IACxB,sCAAoB,CAAA;AACtB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,qDAAmC,CAAA;AACrC,CAAC,EAFW,cAAc,KAAd,cAAc,QAEzB;AAcD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC;IACzC;;OAEG;IACH,EAAE,EAAE,eAAe;IAEnB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;QACV,GAAG,cAAc,CAAC,GAAG,EAAE;QACvB,GAAG,cAAc,CAAC,OAAO,EAAE;QAC3B,GAAG,cAAc,CAAC,KAAK,EAAE;QACzB,GAAG,cAAc,CAAC,IAAI,EAAE;QACxB,GAAG,cAAc,CAAC,MAAM,EAAE;QAC1B,GAAG,cAAc,CAAC,IAAI,EAAE;QACxB,GAAG,cAAc,CAAC,WAAW,EAAE;KAChC,CAAC;IAEF;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE;IAEjB;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAE1C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,EAAE,UAAU,CAAC;IAErC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;CACzB,CAAC,CAAC","sourcesContent":["import { AccountIdStruct, object } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport { nonempty, array, enums, record, string } from '@metamask/superstruct';\nimport { JsonStruct } from '@metamask/utils';\n\nimport { CaipChainIdStruct } from './caip';\n\n/**\n * Supported Ethereum account types.\n */\nexport enum EthAccountType {\n Eoa = 'eip155:eoa',\n Erc4337 = 'eip155:erc4337',\n}\n\n/**\n * Supported Bitcoin account types.\n */\nexport enum BtcAccountType {\n P2pkh = 'bip122:p2pkh',\n P2sh = 'bip122:p2sh',\n P2wpkh = 'bip122:p2wpkh',\n P2tr = 'bip122:p2tr',\n}\n\n/**\n * Supported Solana account types.\n */\nexport enum SolAccountType {\n DataAccount = 'solana:data-account',\n}\n\n/**\n * Supported account types.\n */\nexport type KeyringAccountType =\n | `${EthAccountType.Eoa}`\n | `${EthAccountType.Erc4337}`\n | `${BtcAccountType.P2pkh}`\n | `${BtcAccountType.P2sh}`\n | `${BtcAccountType.P2wpkh}`\n | `${BtcAccountType.P2tr}`\n | `${SolAccountType.DataAccount}`;\n\n/**\n * A struct which represents a Keyring account object. It is abstract enough to\n * be used with any blockchain. Specific blockchain account types should extend\n * this struct.\n *\n * See {@link KeyringAccount}.\n */\nexport const KeyringAccountStruct = object({\n /**\n * Account ID (UUIDv4).\n */\n id: AccountIdStruct,\n\n /**\n * Account type.\n */\n type: enums([\n `${EthAccountType.Eoa}`,\n `${EthAccountType.Erc4337}`,\n `${BtcAccountType.P2pkh}`,\n `${BtcAccountType.P2sh}`,\n `${BtcAccountType.P2wpkh}`,\n `${BtcAccountType.P2tr}`,\n `${SolAccountType.DataAccount}`,\n ]),\n\n /**\n * Account main address.\n */\n address: string(),\n\n /**\n * Account supported scopes (CAIP-2 chain IDs).\n */\n scopes: nonempty(array(CaipChainIdStruct)),\n\n /**\n * Account options.\n */\n options: record(string(), JsonStruct),\n\n /**\n * Account supported methods.\n */\n methods: array(string()),\n});\n\n/**\n * Keyring Account type represents an account and its properties from the\n * point of view of the keyring.\n */\nexport type KeyringAccount = Infer<typeof KeyringAccountStruct>;\n"]}
1
+ {"version":3,"file":"account.mjs","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,E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AAC,MAAM,EAAE,CAAC;CACzB,CAAC,CAAC","sourcesContent":["import { AccountIdStruct, object } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport { nonempty, array, enums, string } from '@metamask/superstruct';\n\nimport { KeyringAccountOptionsStruct } from './account-options';\nimport { CaipChainIdStruct } from './caip';\n\n/**\n * Supported Ethereum account types.\n */\nexport enum EthAccountType {\n Eoa = 'eip155:eoa',\n Erc4337 = 'eip155:erc4337',\n}\n\n/**\n * Supported Bitcoin account types.\n */\nexport enum BtcAccountType {\n P2pkh = 'bip122:p2pkh',\n P2sh = 'bip122:p2sh',\n P2wpkh = 'bip122:p2wpkh',\n P2tr = 'bip122:p2tr',\n}\n\n/**\n * Supported Solana account types.\n */\nexport enum SolAccountType {\n DataAccount = 'solana:data-account',\n}\n\n/**\n * Supported account types.\n */\nexport type KeyringAccountType =\n | `${EthAccountType.Eoa}`\n | `${EthAccountType.Erc4337}`\n | `${BtcAccountType.P2pkh}`\n | `${BtcAccountType.P2sh}`\n | `${BtcAccountType.P2wpkh}`\n | `${BtcAccountType.P2tr}`\n | `${SolAccountType.DataAccount}`;\n\n/**\n * A struct which represents a Keyring account object. It is abstract enough to\n * be used with any blockchain. Specific blockchain account types should extend\n * this struct.\n *\n * See {@link KeyringAccount}.\n */\nexport const KeyringAccountStruct = object({\n /**\n * Account ID (UUIDv4).\n */\n id: AccountIdStruct,\n\n /**\n * Account type.\n */\n type: enums([\n `${EthAccountType.Eoa}`,\n `${EthAccountType.Erc4337}`,\n `${BtcAccountType.P2pkh}`,\n `${BtcAccountType.P2sh}`,\n `${BtcAccountType.P2wpkh}`,\n `${BtcAccountType.P2tr}`,\n `${SolAccountType.DataAccount}`,\n ]),\n\n /**\n * Account main address.\n */\n address: string(),\n\n /**\n * Account supported scopes (CAIP-2 chain IDs).\n */\n scopes: nonempty(array(CaipChainIdStruct)),\n\n /**\n * Account options.\n */\n options: KeyringAccountOptionsStruct,\n\n /**\n * Account supported methods.\n */\n methods: array(string()),\n});\n\n/**\n * Keyring Account type represents an account and its properties from the\n * point of view of the keyring.\n */\nexport type KeyringAccount = Infer<typeof KeyringAccountStruct>;\n"]}
@@ -16,8 +16,8 @@ export declare enum DiscoveredAccountType {
16
16
  */
17
17
  export declare const DiscoveredBip44AccountStruct: import("@metamask/superstruct").Struct<{
18
18
  type: "bip44";
19
- scopes: `${string}:${string}`[];
20
19
  derivationPath: `m/${string}`;
20
+ scopes: `${string}:${string}`[];
21
21
  }, {
22
22
  /**
23
23
  * Account type.
@@ -40,8 +40,8 @@ export declare const DiscoveredBip44AccountStruct: import("@metamask/superstruct
40
40
  export type DiscoveredBip44Account = Infer<typeof DiscoveredBip44AccountStruct>;
41
41
  export declare const DiscoveredAccountStruct: import("@metamask/superstruct").Struct<{
42
42
  type: "bip44";
43
- scopes: `${string}:${string}`[];
44
43
  derivationPath: `m/${string}`;
44
+ scopes: `${string}:${string}`[];
45
45
  }, {
46
46
  /**
47
47
  * Account type.
@@ -16,8 +16,8 @@ export declare enum DiscoveredAccountType {
16
16
  */
17
17
  export declare const DiscoveredBip44AccountStruct: import("@metamask/superstruct").Struct<{
18
18
  type: "bip44";
19
- scopes: `${string}:${string}`[];
20
19
  derivationPath: `m/${string}`;
20
+ scopes: `${string}:${string}`[];
21
21
  }, {
22
22
  /**
23
23
  * Account type.
@@ -40,8 +40,8 @@ export declare const DiscoveredBip44AccountStruct: import("@metamask/superstruct
40
40
  export type DiscoveredBip44Account = Infer<typeof DiscoveredBip44AccountStruct>;
41
41
  export declare const DiscoveredAccountStruct: import("@metamask/superstruct").Struct<{
42
42
  type: "bip44";
43
- scopes: `${string}:${string}`[];
44
43
  derivationPath: `m/${string}`;
44
+ scopes: `${string}:${string}`[];
45
45
  }, {
46
46
  /**
47
47
  * Account type.
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account.cjs"), exports);
18
+ __exportStar(require("./account-options.cjs"), exports);
18
19
  __exportStar(require("./address.cjs"), exports);
19
20
  __exportStar(require("./asset.cjs"), exports);
20
21
  __exportStar(require("./balance.cjs"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,gDAA0B;AAC1B,8CAAwB;AACxB,gDAA0B;AAC1B,6CAAuB;AACvB,kDAA4B;AAE5B,+CAAyB;AACzB,gDAA0B;AAC1B,iDAA2B;AAC3B,oDAA8B;AAC9B,mDAA6B;AAC7B,gDAA0B","sourcesContent":["export * from './account';\nexport * from './address';\nexport * from './asset';\nexport * from './balance';\nexport * from './caip';\nexport * from './discovery';\nexport type * from './entropy';\nexport * from './export';\nexport * from './request';\nexport * from './response';\nexport * from './transaction';\nexport * from './pagination';\nexport * from './options';\nexport type * from './keyring';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,wDAAkC;AAClC,gDAA0B;AAC1B,8CAAwB;AACxB,gDAA0B;AAC1B,6CAAuB;AACvB,kDAA4B;AAE5B,+CAAyB;AACzB,gDAA0B;AAC1B,iDAA2B;AAC3B,oDAA8B;AAC9B,mDAA6B;AAC7B,gDAA0B","sourcesContent":["export * from './account';\nexport * from './account-options';\nexport * from './address';\nexport * from './asset';\nexport * from './balance';\nexport * from './caip';\nexport * from './discovery';\nexport type * from './entropy';\nexport * from './export';\nexport * from './request';\nexport * from './response';\nexport * from './transaction';\nexport * from './pagination';\nexport * from './options';\nexport type * from './keyring';\n"]}
@@ -1,4 +1,5 @@
1
1
  export * from "./account.cjs";
2
+ export * from "./account-options.cjs";
2
3
  export * from "./address.cjs";
3
4
  export * from "./asset.cjs";
4
5
  export * from "./balance.cjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,8BAA0B;AAC1B,4BAAwB;AACxB,8BAA0B;AAC1B,2BAAuB;AACvB,gCAA4B;AAC5B,mCAA+B;AAC/B,6BAAyB;AACzB,8BAA0B;AAC1B,+BAA2B;AAC3B,kCAA8B;AAC9B,iCAA6B;AAC7B,8BAA0B;AAC1B,mCAA+B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,sCAAkC;AAClC,8BAA0B;AAC1B,4BAAwB;AACxB,8BAA0B;AAC1B,2BAAuB;AACvB,gCAA4B;AAC5B,mCAA+B;AAC/B,6BAAyB;AACzB,8BAA0B;AAC1B,+BAA2B;AAC3B,kCAA8B;AAC9B,iCAA6B;AAC7B,8BAA0B;AAC1B,mCAA+B"}
@@ -1,4 +1,5 @@
1
1
  export * from "./account.mjs";
2
+ export * from "./account-options.mjs";
2
3
  export * from "./address.mjs";
3
4
  export * from "./asset.mjs";
4
5
  export * from "./balance.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,8BAA0B;AAC1B,4BAAwB;AACxB,8BAA0B;AAC1B,2BAAuB;AACvB,gCAA4B;AAC5B,mCAA+B;AAC/B,6BAAyB;AACzB,8BAA0B;AAC1B,+BAA2B;AAC3B,kCAA8B;AAC9B,iCAA6B;AAC7B,8BAA0B;AAC1B,mCAA+B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,sCAAkC;AAClC,8BAA0B;AAC1B,4BAAwB;AACxB,8BAA0B;AAC1B,2BAAuB;AACvB,gCAA4B;AAC5B,mCAA+B;AAC/B,6BAAyB;AACzB,8BAA0B;AAC1B,+BAA2B;AAC3B,kCAA8B;AAC9B,iCAA6B;AAC7B,8BAA0B;AAC1B,mCAA+B"}
@@ -1,4 +1,5 @@
1
1
  export * from "./account.mjs";
2
+ export * from "./account-options.mjs";
2
3
  export * from "./address.mjs";
3
4
  export * from "./asset.mjs";
4
5
  export * from "./balance.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,8BAA0B;AAC1B,4BAAwB;AACxB,8BAA0B;AAC1B,2BAAuB;AACvB,gCAA4B;AAE5B,6BAAyB;AACzB,8BAA0B;AAC1B,+BAA2B;AAC3B,kCAA8B;AAC9B,iCAA6B;AAC7B,8BAA0B","sourcesContent":["export * from './account';\nexport * from './address';\nexport * from './asset';\nexport * from './balance';\nexport * from './caip';\nexport * from './discovery';\nexport type * from './entropy';\nexport * from './export';\nexport * from './request';\nexport * from './response';\nexport * from './transaction';\nexport * from './pagination';\nexport * from './options';\nexport type * from './keyring';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,sCAAkC;AAClC,8BAA0B;AAC1B,4BAAwB;AACxB,8BAA0B;AAC1B,2BAAuB;AACvB,gCAA4B;AAE5B,6BAAyB;AACzB,8BAA0B;AAC1B,+BAA2B;AAC3B,kCAA8B;AAC9B,iCAA6B;AAC7B,8BAA0B","sourcesContent":["export * from './account';\nexport * from './account-options';\nexport * from './address';\nexport * from './asset';\nexport * from './balance';\nexport * from './caip';\nexport * from './discovery';\nexport type * from './entropy';\nexport * from './export';\nexport * from './request';\nexport * from './response';\nexport * from './transaction';\nexport * from './pagination';\nexport * from './options';\nexport type * from './keyring';\n"]}
@@ -12,7 +12,17 @@ export declare enum BtcMethod {
12
12
  export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Struct<{
13
13
  type: "bip122:p2pkh";
14
14
  id: string;
15
- options: Record<string, import("@metamask/utils").Json>;
15
+ options: Record<string, import("@metamask/utils").Json> & {
16
+ entropy?: {
17
+ type: "mnemonic";
18
+ id: string;
19
+ derivationPath: string;
20
+ groupIndex: number;
21
+ } | {
22
+ type: "private-key";
23
+ };
24
+ exportable?: boolean;
25
+ };
16
26
  address: string;
17
27
  scopes: `${string}:${string}`[];
18
28
  methods: "sendBitcoin"[];
@@ -36,12 +46,32 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
36
46
  sendBitcoin: "sendBitcoin";
37
47
  }>>;
38
48
  id: import("@metamask/superstruct").Struct<string, null>;
39
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
49
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
50
+ entropy?: {
51
+ type: "mnemonic";
52
+ id: string;
53
+ derivationPath: string;
54
+ groupIndex: number;
55
+ } | {
56
+ type: "private-key";
57
+ };
58
+ exportable?: boolean;
59
+ }, null>;
40
60
  }>;
41
61
  export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struct<{
42
62
  type: "bip122:p2sh";
43
63
  id: string;
44
- options: Record<string, import("@metamask/utils").Json>;
64
+ options: Record<string, import("@metamask/utils").Json> & {
65
+ entropy?: {
66
+ type: "mnemonic";
67
+ id: string;
68
+ derivationPath: string;
69
+ groupIndex: number;
70
+ } | {
71
+ type: "private-key";
72
+ };
73
+ exportable?: boolean;
74
+ };
45
75
  address: string;
46
76
  scopes: `${string}:${string}`[];
47
77
  methods: "sendBitcoin"[];
@@ -65,12 +95,32 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
65
95
  sendBitcoin: "sendBitcoin";
66
96
  }>>;
67
97
  id: import("@metamask/superstruct").Struct<string, null>;
68
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
98
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
99
+ entropy?: {
100
+ type: "mnemonic";
101
+ id: string;
102
+ derivationPath: string;
103
+ groupIndex: number;
104
+ } | {
105
+ type: "private-key";
106
+ };
107
+ exportable?: boolean;
108
+ }, null>;
69
109
  }>;
70
110
  export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Struct<{
71
111
  type: "bip122:p2wpkh";
72
112
  id: string;
73
- options: Record<string, import("@metamask/utils").Json>;
113
+ options: Record<string, import("@metamask/utils").Json> & {
114
+ entropy?: {
115
+ type: "mnemonic";
116
+ id: string;
117
+ derivationPath: string;
118
+ groupIndex: number;
119
+ } | {
120
+ type: "private-key";
121
+ };
122
+ exportable?: boolean;
123
+ };
74
124
  address: string;
75
125
  scopes: `${string}:${string}`[];
76
126
  methods: "sendBitcoin"[];
@@ -94,12 +144,32 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
94
144
  sendBitcoin: "sendBitcoin";
95
145
  }>>;
96
146
  id: import("@metamask/superstruct").Struct<string, null>;
97
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
147
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
148
+ entropy?: {
149
+ type: "mnemonic";
150
+ id: string;
151
+ derivationPath: string;
152
+ groupIndex: number;
153
+ } | {
154
+ type: "private-key";
155
+ };
156
+ exportable?: boolean;
157
+ }, null>;
98
158
  }>;
99
159
  export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struct<{
100
160
  type: "bip122:p2tr";
101
161
  id: string;
102
- options: Record<string, import("@metamask/utils").Json>;
162
+ options: Record<string, import("@metamask/utils").Json> & {
163
+ entropy?: {
164
+ type: "mnemonic";
165
+ id: string;
166
+ derivationPath: string;
167
+ groupIndex: number;
168
+ } | {
169
+ type: "private-key";
170
+ };
171
+ exportable?: boolean;
172
+ };
103
173
  address: string;
104
174
  scopes: `${string}:${string}`[];
105
175
  methods: "sendBitcoin"[];
@@ -123,7 +193,17 @@ export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struc
123
193
  sendBitcoin: "sendBitcoin";
124
194
  }>>;
125
195
  id: import("@metamask/superstruct").Struct<string, null>;
126
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
196
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
197
+ entropy?: {
198
+ type: "mnemonic";
199
+ id: string;
200
+ derivationPath: string;
201
+ groupIndex: number;
202
+ } | {
203
+ type: "private-key";
204
+ };
205
+ exportable?: boolean;
206
+ }, null>;
127
207
  }>;
128
208
  export type BtcP2pkhAccount = Infer<typeof BtcP2pkhAccountStruct>;
129
209
  export type BtcP2shAccount = Infer<typeof BtcP2shAccountStruct>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAkCnD,eAAO,MAAM,qBAAqB,sDAMjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,sDAMhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,sDAMlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,sDAMhC,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,WAAW,gBAAgB;CAC5B;AAgBD,eAAO,MAAM,qBAAqB;;;;;;;;IAGhC;;OAEG;;IAGH;;OAEG;;IArBH;;OAEG;;IAGH;;OAEG;;;;;;EAgBH,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAnCH;;OAEG;;IAGH;;OAEG;;;;;;EA8BH,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;IAGjC;;OAEG;;IAGH;;OAEG;;IAjDH;;OAEG;;IAGH;;OAEG;;;;;;EA4CH,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IA/DH;;OAEG;;IAGH;;OAEG;;;;;;EA0DH,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,KAA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KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -12,7 +12,17 @@ export declare enum BtcMethod {
12
12
  export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Struct<{
13
13
  type: "bip122:p2pkh";
14
14
  id: string;
15
- options: Record<string, import("@metamask/utils").Json>;
15
+ options: Record<string, import("@metamask/utils").Json> & {
16
+ entropy?: {
17
+ type: "mnemonic";
18
+ id: string;
19
+ derivationPath: string;
20
+ groupIndex: number;
21
+ } | {
22
+ type: "private-key";
23
+ };
24
+ exportable?: boolean;
25
+ };
16
26
  address: string;
17
27
  scopes: `${string}:${string}`[];
18
28
  methods: "sendBitcoin"[];
@@ -36,12 +46,32 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
36
46
  sendBitcoin: "sendBitcoin";
37
47
  }>>;
38
48
  id: import("@metamask/superstruct").Struct<string, null>;
39
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
49
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
50
+ entropy?: {
51
+ type: "mnemonic";
52
+ id: string;
53
+ derivationPath: string;
54
+ groupIndex: number;
55
+ } | {
56
+ type: "private-key";
57
+ };
58
+ exportable?: boolean;
59
+ }, null>;
40
60
  }>;
41
61
  export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struct<{
42
62
  type: "bip122:p2sh";
43
63
  id: string;
44
- options: Record<string, import("@metamask/utils").Json>;
64
+ options: Record<string, import("@metamask/utils").Json> & {
65
+ entropy?: {
66
+ type: "mnemonic";
67
+ id: string;
68
+ derivationPath: string;
69
+ groupIndex: number;
70
+ } | {
71
+ type: "private-key";
72
+ };
73
+ exportable?: boolean;
74
+ };
45
75
  address: string;
46
76
  scopes: `${string}:${string}`[];
47
77
  methods: "sendBitcoin"[];
@@ -65,12 +95,32 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
65
95
  sendBitcoin: "sendBitcoin";
66
96
  }>>;
67
97
  id: import("@metamask/superstruct").Struct<string, null>;
68
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
98
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
99
+ entropy?: {
100
+ type: "mnemonic";
101
+ id: string;
102
+ derivationPath: string;
103
+ groupIndex: number;
104
+ } | {
105
+ type: "private-key";
106
+ };
107
+ exportable?: boolean;
108
+ }, null>;
69
109
  }>;
70
110
  export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Struct<{
71
111
  type: "bip122:p2wpkh";
72
112
  id: string;
73
- options: Record<string, import("@metamask/utils").Json>;
113
+ options: Record<string, import("@metamask/utils").Json> & {
114
+ entropy?: {
115
+ type: "mnemonic";
116
+ id: string;
117
+ derivationPath: string;
118
+ groupIndex: number;
119
+ } | {
120
+ type: "private-key";
121
+ };
122
+ exportable?: boolean;
123
+ };
74
124
  address: string;
75
125
  scopes: `${string}:${string}`[];
76
126
  methods: "sendBitcoin"[];
@@ -94,12 +144,32 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
94
144
  sendBitcoin: "sendBitcoin";
95
145
  }>>;
96
146
  id: import("@metamask/superstruct").Struct<string, null>;
97
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
147
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
148
+ entropy?: {
149
+ type: "mnemonic";
150
+ id: string;
151
+ derivationPath: string;
152
+ groupIndex: number;
153
+ } | {
154
+ type: "private-key";
155
+ };
156
+ exportable?: boolean;
157
+ }, null>;
98
158
  }>;
99
159
  export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struct<{
100
160
  type: "bip122:p2tr";
101
161
  id: string;
102
- options: Record<string, import("@metamask/utils").Json>;
162
+ options: Record<string, import("@metamask/utils").Json> & {
163
+ entropy?: {
164
+ type: "mnemonic";
165
+ id: string;
166
+ derivationPath: string;
167
+ groupIndex: number;
168
+ } | {
169
+ type: "private-key";
170
+ };
171
+ exportable?: boolean;
172
+ };
103
173
  address: string;
104
174
  scopes: `${string}:${string}`[];
105
175
  methods: "sendBitcoin"[];
@@ -123,7 +193,17 @@ export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struc
123
193
  sendBitcoin: "sendBitcoin";
124
194
  }>>;
125
195
  id: import("@metamask/superstruct").Struct<string, null>;
126
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
196
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
197
+ entropy?: {
198
+ type: "mnemonic";
199
+ id: string;
200
+ derivationPath: string;
201
+ groupIndex: number;
202
+ } | {
203
+ type: "private-key";
204
+ };
205
+ exportable?: boolean;
206
+ }, null>;
127
207
  }>;
128
208
  export type BtcP2pkhAccount = Infer<typeof BtcP2pkhAccountStruct>;
129
209
  export type BtcP2shAccount = Infer<typeof BtcP2shAccountStruct>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAkCnD,eAAO,MAAM,qBAAqB,sDAMjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,sDAMhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,sDAMlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,sDAMhC,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,WAAW,gBAAgB;CAC5B;AAgBD,eAAO,MAAM,qBAAqB;;;;;;;;IAGhC;;OAEG;;IAGH;;OAEG;;IArBH;;OAEG;;IAGH;;OAEG;;;;;;EAgBH,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;IAG/B;;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;;;IAGjC;;OAEG;;IAGH;;OAEG;;IAjDH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;EA4CH,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IA/DH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;EA0DH,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -20,7 +20,17 @@ export declare enum EthMethod {
20
20
  export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
21
21
  type: "eip155:eoa";
22
22
  id: string;
23
- options: Record<string, import("@metamask/utils").Json>;
23
+ options: Record<string, import("@metamask/utils").Json> & {
24
+ entropy?: {
25
+ type: "mnemonic";
26
+ id: string;
27
+ derivationPath: string;
28
+ groupIndex: number;
29
+ } | {
30
+ type: "private-key";
31
+ };
32
+ exportable?: boolean;
33
+ };
24
34
  address: string;
25
35
  scopes: EthScope.Eoa[];
26
36
  methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
@@ -49,13 +59,33 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
49
59
  eth_signTypedData_v4: "eth_signTypedData_v4";
50
60
  }>>;
51
61
  id: import("@metamask/superstruct").Struct<string, null>;
52
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
62
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
63
+ entropy?: {
64
+ type: "mnemonic";
65
+ id: string;
66
+ derivationPath: string;
67
+ groupIndex: number;
68
+ } | {
69
+ type: "private-key";
70
+ };
71
+ exportable?: boolean;
72
+ }, null>;
53
73
  }>;
54
74
  export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
55
75
  export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
56
76
  type: "eip155:erc4337";
57
77
  id: string;
58
- options: Record<string, import("@metamask/utils").Json>;
78
+ options: Record<string, import("@metamask/utils").Json> & {
79
+ entropy?: {
80
+ type: "mnemonic";
81
+ id: string;
82
+ derivationPath: string;
83
+ groupIndex: number;
84
+ } | {
85
+ type: "private-key";
86
+ };
87
+ exportable?: boolean;
88
+ };
59
89
  address: string;
60
90
  scopes: `${string}:${string}`[];
61
91
  methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
@@ -86,7 +116,17 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
86
116
  eth_signUserOperation: "eth_signUserOperation";
87
117
  }>>;
88
118
  id: import("@metamask/superstruct").Struct<string, null>;
89
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
119
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
120
+ entropy?: {
121
+ type: "mnemonic";
122
+ id: string;
123
+ derivationPath: string;
124
+ groupIndex: number;
125
+ } | {
126
+ type: "private-key";
127
+ };
128
+ exportable?: boolean;
129
+ }, null>;
90
130
  }>;
91
131
  export type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;
92
132
  //# sourceMappingURL=types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD,OAAO,EAAE,QAAQ,EAAE,oBAAU;AAO7B,eAAO,MAAM,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M,mBAAmB;;;;;;;;;;;;;;;;;;IAG9B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;EAWH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;IAGlC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;EAaH,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -20,7 +20,17 @@ export declare enum EthMethod {
20
20
  export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct<{
21
21
  type: "eip155:eoa";
22
22
  id: string;
23
- options: Record<string, import("@metamask/utils").Json>;
23
+ options: Record<string, import("@metamask/utils").Json> & {
24
+ entropy?: {
25
+ type: "mnemonic";
26
+ id: string;
27
+ derivationPath: string;
28
+ groupIndex: number;
29
+ } | {
30
+ type: "private-key";
31
+ };
32
+ exportable?: boolean;
33
+ };
24
34
  address: string;
25
35
  scopes: EthScope.Eoa[];
26
36
  methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
@@ -49,13 +59,33 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
49
59
  eth_signTypedData_v4: "eth_signTypedData_v4";
50
60
  }>>;
51
61
  id: import("@metamask/superstruct").Struct<string, null>;
52
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
62
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
63
+ entropy?: {
64
+ type: "mnemonic";
65
+ id: string;
66
+ derivationPath: string;
67
+ groupIndex: number;
68
+ } | {
69
+ type: "private-key";
70
+ };
71
+ exportable?: boolean;
72
+ }, null>;
53
73
  }>;
54
74
  export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
55
75
  export declare const EthErc4337AccountStruct: import("@metamask/superstruct").Struct<{
56
76
  type: "eip155:erc4337";
57
77
  id: string;
58
- options: Record<string, import("@metamask/utils").Json>;
78
+ options: Record<string, import("@metamask/utils").Json> & {
79
+ entropy?: {
80
+ type: "mnemonic";
81
+ id: string;
82
+ derivationPath: string;
83
+ groupIndex: number;
84
+ } | {
85
+ type: "private-key";
86
+ };
87
+ exportable?: boolean;
88
+ };
59
89
  address: string;
60
90
  scopes: `${string}:${string}`[];
61
91
  methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
@@ -86,7 +116,17 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
86
116
  eth_signUserOperation: "eth_signUserOperation";
87
117
  }>>;
88
118
  id: import("@metamask/superstruct").Struct<string, null>;
89
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
119
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
120
+ entropy?: {
121
+ type: "mnemonic";
122
+ id: string;
123
+ derivationPath: string;
124
+ groupIndex: number;
125
+ } | {
126
+ type: "private-key";
127
+ };
128
+ exportable?: boolean;
129
+ }, null>;
90
130
  }>;
91
131
  export type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;
92
132
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAInD,OAAO,EAAE,QAAQ,EAAE,oBAAU;AAO7B,eAAO,MAAM,cAAc,sDAA+C,CAAC;AAE3E,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,sDAG5B,C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