@metamask/keyring-api 12.0.0 → 13.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 (82) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/api/account.cjs +4 -0
  3. package/dist/api/account.cjs.map +1 -1
  4. package/dist/api/account.d.cts +5 -0
  5. package/dist/api/account.d.cts.map +1 -1
  6. package/dist/api/account.d.mts +5 -0
  7. package/dist/api/account.d.mts.map +1 -1
  8. package/dist/api/account.mjs +6 -2
  9. package/dist/api/account.mjs.map +1 -1
  10. package/dist/btc/constants.cjs +17 -0
  11. package/dist/btc/constants.cjs.map +1 -0
  12. package/dist/btc/constants.d.cts +12 -0
  13. package/dist/btc/constants.d.cts.map +1 -0
  14. package/dist/btc/constants.d.mts +12 -0
  15. package/dist/btc/constants.d.mts.map +1 -0
  16. package/dist/btc/constants.mjs +14 -0
  17. package/dist/btc/constants.mjs.map +1 -0
  18. package/dist/btc/index.cjs +1 -0
  19. package/dist/btc/index.cjs.map +1 -1
  20. package/dist/btc/index.d.cts +1 -0
  21. package/dist/btc/index.d.cts.map +1 -1
  22. package/dist/btc/index.d.mts +1 -0
  23. package/dist/btc/index.d.mts.map +1 -1
  24. package/dist/btc/index.mjs +1 -0
  25. package/dist/btc/index.mjs.map +1 -1
  26. package/dist/btc/types.d.cts +2 -0
  27. package/dist/btc/types.d.cts.map +1 -1
  28. package/dist/btc/types.d.mts +2 -0
  29. package/dist/btc/types.d.mts.map +1 -1
  30. package/dist/eth/constants.cjs +13 -0
  31. package/dist/eth/constants.cjs.map +1 -0
  32. package/dist/eth/constants.d.cts +8 -0
  33. package/dist/eth/constants.d.cts.map +1 -0
  34. package/dist/eth/constants.d.mts +8 -0
  35. package/dist/eth/constants.d.mts.map +1 -0
  36. package/dist/eth/constants.mjs +10 -0
  37. package/dist/eth/constants.mjs.map +1 -0
  38. package/dist/eth/index.cjs +1 -0
  39. package/dist/eth/index.cjs.map +1 -1
  40. package/dist/eth/index.d.cts +1 -0
  41. package/dist/eth/index.d.cts.map +1 -1
  42. package/dist/eth/index.d.mts +1 -0
  43. package/dist/eth/index.d.mts.map +1 -1
  44. package/dist/eth/index.mjs +1 -0
  45. package/dist/eth/index.mjs.map +1 -1
  46. package/dist/eth/types.cjs +5 -0
  47. package/dist/eth/types.cjs.map +1 -1
  48. package/dist/eth/types.d.cts +8 -0
  49. package/dist/eth/types.d.cts.map +1 -1
  50. package/dist/eth/types.d.mts +8 -0
  51. package/dist/eth/types.d.mts.map +1 -1
  52. package/dist/eth/types.mjs +6 -1
  53. package/dist/eth/types.mjs.map +1 -1
  54. package/dist/events.d.cts +8 -0
  55. package/dist/events.d.cts.map +1 -1
  56. package/dist/events.d.mts +8 -0
  57. package/dist/events.d.mts.map +1 -1
  58. package/dist/rpc.d.cts +11 -0
  59. package/dist/rpc.d.cts.map +1 -1
  60. package/dist/rpc.d.mts +11 -0
  61. package/dist/rpc.d.mts.map +1 -1
  62. package/dist/sol/constants.cjs +15 -0
  63. package/dist/sol/constants.cjs.map +1 -0
  64. package/dist/sol/constants.d.cts +10 -0
  65. package/dist/sol/constants.d.cts.map +1 -0
  66. package/dist/sol/constants.d.mts +10 -0
  67. package/dist/sol/constants.d.mts.map +1 -0
  68. package/dist/sol/constants.mjs +12 -0
  69. package/dist/sol/constants.mjs.map +1 -0
  70. package/dist/sol/index.cjs +1 -0
  71. package/dist/sol/index.cjs.map +1 -1
  72. package/dist/sol/index.d.cts +1 -0
  73. package/dist/sol/index.d.cts.map +1 -1
  74. package/dist/sol/index.d.mts +1 -0
  75. package/dist/sol/index.d.mts.map +1 -1
  76. package/dist/sol/index.mjs +1 -0
  77. package/dist/sol/index.mjs.map +1 -1
  78. package/dist/sol/types.d.cts +2 -0
  79. package/dist/sol/types.d.cts.map +1 -1
  80. package/dist/sol/types.d.mts +2 -0
  81. package/dist/sol/types.d.mts.map +1 -1
  82. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,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EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;KAC/B,CAAC,CACH;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC;IAC5C,GAAG,oBAAoB,CAAC,MAAM;IAE9B;;OAEG;IACH,OAAO,EAAE,gBAAgB;IAEzB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;IAE1C;;OAEG;IACH,OAAO,EAAE,KAAK,CACZ,KAAK,CAAC;QACJ,GAAG,SAAS,CAAC,YAAY,EAAE;QAC3B,GAAG,SAAS,CAAC,IAAI,EAAE;QACnB,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,oBAAoB,EAAE;QACnC,GAAG,SAAS,CAAC,kBAAkB,EAAE;QACjC,GAAG,SAAS,CAAC,iBAAiB,EAAE;KACjC,CAAC,CACH;CACF,CAAC,CAAC","sourcesContent":["import { object, definePattern } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport { array, enums, literal } from '@metamask/superstruct';\n\nimport { EthAccountType, KeyringAccountStruct } from '../api';\n\nexport const EthBytesStruct = definePattern('EthBytes', /^0x[0-9a-f]*$/iu);\n\nexport const EthAddressStruct = definePattern(\n 'EthAddress',\n /^0x[0-9a-f]{40}$/iu,\n);\n\nexport const EthUint256Struct = definePattern(\n 'EthUint256',\n /^0x([1-9a-f][0-9a-f]*|0)$/iu,\n);\n\n/**\n * Supported Ethereum methods.\n */\nexport enum EthMethod {\n // General signing methods\n PersonalSign = 'personal_sign',\n Sign = 'eth_sign',\n SignTransaction = 'eth_signTransaction',\n SignTypedDataV1 = 'eth_signTypedData_v1',\n SignTypedDataV3 = 'eth_signTypedData_v3',\n SignTypedDataV4 = 'eth_signTypedData_v4',\n // ERC-4337 methods\n PrepareUserOperation = 'eth_prepareUserOperation',\n PatchUserOperation = 'eth_patchUserOperation',\n SignUserOperation = 'eth_signUserOperation',\n}\n\nexport const EthEoaAccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: EthAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${EthAccountType.Eoa}`),\n\n /**\n * Account supported methods.\n */\n methods: array(\n enums([\n `${EthMethod.PersonalSign}`,\n `${EthMethod.Sign}`,\n `${EthMethod.SignTransaction}`,\n `${EthMethod.SignTypedDataV1}`,\n `${EthMethod.SignTypedDataV3}`,\n `${EthMethod.SignTypedDataV4}`,\n ]),\n ),\n});\n\nexport type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;\n\nexport const EthErc4337AccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: EthAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${EthAccountType.Erc4337}`),\n\n /**\n * Account supported methods.\n */\n methods: array(\n enums([\n `${EthMethod.PersonalSign}`,\n `${EthMethod.Sign}`,\n `${EthMethod.SignTypedDataV1}`,\n `${EthMethod.SignTypedDataV3}`,\n `${EthMethod.SignTypedDataV4}`,\n `${EthMethod.PrepareUserOperation}`,\n `${EthMethod.PatchUserOperation}`,\n `${EthMethod.SignUserOperation}`,\n ]),\n ),\n});\n\nexport type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;\n"]}
1
+ {"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,gCAAgC;AAEhE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,8BAA8B;AAExE,OAAO,EAAE,SAAS,EAAE,oBAAU;AAC9B,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,yBAAe;AAE9D,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,UAAU,EAAE,i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AAO,EAAE,gBAAgB;IAEzB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;IAE1C;;OAEG;IACH,OAAO,EAAE,KAAK,CACZ,KAAK,CAAC;QACJ,GAAG,SAAS,CAAC,YAAY,EAAE;QAC3B,GAAG,SAAS,CAAC,IAAI,EAAE;QACnB,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,oBAAoB,EAAE;QACnC,GAAG,SAAS,CAAC,kBAAkB,EAAE;QACjC,GAAG,SAAS,CAAC,iBAAiB,EAAE;KACjC,CAAC,CACH;CACF,CAAC,CAAC","sourcesContent":["import { object, definePattern } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport { nonempty, array, enums, literal } from '@metamask/superstruct';\n\nimport { EthScopes } from '.';\nimport { EthAccountType, KeyringAccountStruct } from '../api';\n\nexport const EthBytesStruct = definePattern('EthBytes', /^0x[0-9a-f]*$/iu);\n\nexport const EthAddressStruct = definePattern(\n 'EthAddress',\n /^0x[0-9a-f]{40}$/iu,\n);\n\nexport const EthUint256Struct = definePattern(\n 'EthUint256',\n /^0x([1-9a-f][0-9a-f]*|0)$/iu,\n);\n\n/**\n * Supported Ethereum methods.\n */\nexport enum EthMethod {\n // General signing methods\n PersonalSign = 'personal_sign',\n Sign = 'eth_sign',\n SignTransaction = 'eth_signTransaction',\n SignTypedDataV1 = 'eth_signTypedData_v1',\n SignTypedDataV3 = 'eth_signTypedData_v3',\n SignTypedDataV4 = 'eth_signTypedData_v4',\n // ERC-4337 methods\n PrepareUserOperation = 'eth_prepareUserOperation',\n PatchUserOperation = 'eth_patchUserOperation',\n SignUserOperation = 'eth_signUserOperation',\n}\n\nexport const EthEoaAccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: EthAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${EthAccountType.Eoa}`),\n\n /**\n * Account scopes (must be ['eip155']).\n */\n scopes: nonempty(array(literal(EthScopes.Namespace))),\n\n /**\n * Account supported methods.\n */\n methods: array(\n enums([\n `${EthMethod.PersonalSign}`,\n `${EthMethod.Sign}`,\n `${EthMethod.SignTransaction}`,\n `${EthMethod.SignTypedDataV1}`,\n `${EthMethod.SignTypedDataV3}`,\n `${EthMethod.SignTypedDataV4}`,\n ]),\n ),\n});\n\nexport type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;\n\nexport const EthErc4337AccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: EthAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${EthAccountType.Erc4337}`),\n\n /**\n * Account supported methods.\n */\n methods: array(\n enums([\n `${EthMethod.PersonalSign}`,\n `${EthMethod.Sign}`,\n `${EthMethod.SignTypedDataV1}`,\n `${EthMethod.SignTypedDataV3}`,\n `${EthMethod.SignTypedDataV4}`,\n `${EthMethod.PrepareUserOperation}`,\n `${EthMethod.PatchUserOperation}`,\n `${EthMethod.SignUserOperation}`,\n ]),\n ),\n});\n\nexport type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;\n"]}
package/dist/events.d.cts CHANGED
@@ -16,6 +16,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
16
16
  id: string;
17
17
  options: Record<string, import("@metamask/utils").Json>;
18
18
  address: string;
19
+ scopes: string[];
19
20
  methods: string[];
20
21
  };
21
22
  accountNameSuggestion?: string;
@@ -29,6 +30,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
29
30
  id: string;
30
31
  options: Record<string, import("@metamask/utils").Json>;
31
32
  address: string;
33
+ scopes: string[];
32
34
  methods: string[];
33
35
  };
34
36
  accountNameSuggestion?: string;
@@ -42,6 +44,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
42
44
  id: string;
43
45
  options: Record<string, import("@metamask/utils").Json>;
44
46
  address: string;
47
+ scopes: string[];
45
48
  methods: string[];
46
49
  }, {
47
50
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -52,6 +55,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
52
55
  "solana:data-account": "solana:data-account";
53
56
  }>;
54
57
  address: import("@metamask/superstruct").Struct<string, null>;
58
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
55
59
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
56
60
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
57
61
  }>;
@@ -78,6 +82,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
78
82
  id: string;
79
83
  options: Record<string, import("@metamask/utils").Json>;
80
84
  address: string;
85
+ scopes: string[];
81
86
  methods: string[];
82
87
  };
83
88
  };
@@ -89,6 +94,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
89
94
  id: string;
90
95
  options: Record<string, import("@metamask/utils").Json>;
91
96
  address: string;
97
+ scopes: string[];
92
98
  methods: string[];
93
99
  };
94
100
  }, {
@@ -100,6 +106,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
100
106
  id: string;
101
107
  options: Record<string, import("@metamask/utils").Json>;
102
108
  address: string;
109
+ scopes: string[];
103
110
  methods: string[];
104
111
  }, {
105
112
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -110,6 +117,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
110
117
  "solana:data-account": "solana:data-account";
111
118
  }>;
112
119
  address: import("@metamask/superstruct").Struct<string, null>;
120
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
113
121
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
114
122
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
115
123
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;CAC3C;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;WAGG;;;EAGL,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;EAGL,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;QAGlC;;WAEG;;;EAGL,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;QAGnC;;WAEG;;QAGH;;WAEG;;;EAGL,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;QAGnC;;WAEG;;;EAGL,CAAC"}
1
+ {"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;CAC3C;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;WAGG;;;EAGL,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;EAGL,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;QAGlC;;WAEG;;;EAGL,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;QAGnC;;WAEG;;QAGH;;WAEG;;;EAGL,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;QAGnC;;WAEG;;;EAGL,CAAC"}
package/dist/events.d.mts CHANGED
@@ -16,6 +16,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
16
16
  id: string;
17
17
  options: Record<string, import("@metamask/utils").Json>;
18
18
  address: string;
19
+ scopes: string[];
19
20
  methods: string[];
20
21
  };
21
22
  accountNameSuggestion?: string;
@@ -29,6 +30,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
29
30
  id: string;
30
31
  options: Record<string, import("@metamask/utils").Json>;
31
32
  address: string;
33
+ scopes: string[];
32
34
  methods: string[];
33
35
  };
34
36
  accountNameSuggestion?: string;
@@ -42,6 +44,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
42
44
  id: string;
43
45
  options: Record<string, import("@metamask/utils").Json>;
44
46
  address: string;
47
+ scopes: string[];
45
48
  methods: string[];
46
49
  }, {
47
50
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -52,6 +55,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
52
55
  "solana:data-account": "solana:data-account";
53
56
  }>;
54
57
  address: import("@metamask/superstruct").Struct<string, null>;
58
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
55
59
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
56
60
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
57
61
  }>;
@@ -78,6 +82,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
78
82
  id: string;
79
83
  options: Record<string, import("@metamask/utils").Json>;
80
84
  address: string;
85
+ scopes: string[];
81
86
  methods: string[];
82
87
  };
83
88
  };
@@ -89,6 +94,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
89
94
  id: string;
90
95
  options: Record<string, import("@metamask/utils").Json>;
91
96
  address: string;
97
+ scopes: string[];
92
98
  methods: string[];
93
99
  };
94
100
  }, {
@@ -100,6 +106,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
100
106
  id: string;
101
107
  options: Record<string, import("@metamask/utils").Json>;
102
108
  address: string;
109
+ scopes: string[];
103
110
  methods: string[];
104
111
  }, {
105
112
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -110,6 +117,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
110
117
  "solana:data-account": "solana:data-account";
111
118
  }>;
112
119
  address: import("@metamask/superstruct").Struct<string, null>;
120
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
113
121
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
114
122
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
115
123
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;CAC3C;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;WAGG;;;EAGL,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;EAGL,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;QAGlC;;WAEG;;;EAGL,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;QAGnC;;WAEG;;QAGH;;WAEG;;;EAGL,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;QAGnC;;WAEG;;;EAGL,CAAC"}
1
+ {"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;CAC3C;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;WAGG;;;EAGL,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;EAGL,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;QAGlC;;WAEG;;;EAGL,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;QAGnC;;WAEG;;QAGH;;WAEG;;;EAGL,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;QAGnC;;WAEG;;;EAGL,CAAC"}
package/dist/rpc.d.cts CHANGED
@@ -40,12 +40,14 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
40
40
  id: string;
41
41
  options: Record<string, import("@metamask/utils").Json>;
42
42
  address: string;
43
+ scopes: string[];
43
44
  methods: string[];
44
45
  }[], import("@metamask/superstruct").Struct<{
45
46
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
46
47
  id: string;
47
48
  options: Record<string, import("@metamask/utils").Json>;
48
49
  address: string;
50
+ scopes: string[];
49
51
  methods: string[];
50
52
  }, {
51
53
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -56,6 +58,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
56
58
  "solana:data-account": "solana:data-account";
57
59
  }>;
58
60
  address: import("@metamask/superstruct").Struct<string, null>;
61
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
59
62
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
60
63
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
61
64
  }>>;
@@ -83,6 +86,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
83
86
  id: string;
84
87
  options: Record<string, import("@metamask/utils").Json>;
85
88
  address: string;
89
+ scopes: string[];
86
90
  methods: string[];
87
91
  }, {
88
92
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -93,6 +97,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
93
97
  "solana:data-account": "solana:data-account";
94
98
  }>;
95
99
  address: import("@metamask/superstruct").Struct<string, null>;
100
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
96
101
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
97
102
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
98
103
  }>;
@@ -120,6 +125,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
120
125
  id: string;
121
126
  options: Record<string, import("@metamask/utils").Json>;
122
127
  address: string;
128
+ scopes: string[];
123
129
  methods: string[];
124
130
  }, {
125
131
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -130,6 +136,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
130
136
  "solana:data-account": "solana:data-account";
131
137
  }>;
132
138
  address: import("@metamask/superstruct").Struct<string, null>;
139
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
133
140
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
134
141
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
135
142
  }>;
@@ -510,6 +517,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
510
517
  id: string;
511
518
  options: Record<string, import("@metamask/utils").Json>;
512
519
  address: string;
520
+ scopes: string[];
513
521
  methods: string[];
514
522
  };
515
523
  };
@@ -521,6 +529,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
521
529
  id: string;
522
530
  options: Record<string, import("@metamask/utils").Json>;
523
531
  address: string;
532
+ scopes: string[];
524
533
  methods: string[];
525
534
  };
526
535
  }, {
@@ -529,6 +538,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
529
538
  id: string;
530
539
  options: Record<string, import("@metamask/utils").Json>;
531
540
  address: string;
541
+ scopes: string[];
532
542
  methods: string[];
533
543
  }, {
534
544
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -539,6 +549,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
539
549
  "solana:data-account": "solana:data-account";
540
550
  }>;
541
551
  address: import("@metamask/superstruct").Struct<string, null>;
552
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
542
553
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
543
554
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
544
555
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.cts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAsBnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAA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string;
41
41
  options: Record<string, import("@metamask/utils").Json>;
42
42
  address: string;
43
+ scopes: string[];
43
44
  methods: string[];
44
45
  }[], import("@metamask/superstruct").Struct<{
45
46
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh" | "solana:data-account";
46
47
  id: string;
47
48
  options: Record<string, import("@metamask/utils").Json>;
48
49
  address: string;
50
+ scopes: string[];
49
51
  methods: string[];
50
52
  }, {
51
53
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -56,6 +58,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
56
58
  "solana:data-account": "solana:data-account";
57
59
  }>;
58
60
  address: import("@metamask/superstruct").Struct<string, null>;
61
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
59
62
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
60
63
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
61
64
  }>>;
@@ -83,6 +86,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
83
86
  id: string;
84
87
  options: Record<string, import("@metamask/utils").Json>;
85
88
  address: string;
89
+ scopes: string[];
86
90
  methods: string[];
87
91
  }, {
88
92
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -93,6 +97,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
93
97
  "solana:data-account": "solana:data-account";
94
98
  }>;
95
99
  address: import("@metamask/superstruct").Struct<string, null>;
100
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
96
101
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
97
102
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
98
103
  }>;
@@ -120,6 +125,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
120
125
  id: string;
121
126
  options: Record<string, import("@metamask/utils").Json>;
122
127
  address: string;
128
+ scopes: string[];
123
129
  methods: string[];
124
130
  }, {
125
131
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -130,6 +136,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
130
136
  "solana:data-account": "solana:data-account";
131
137
  }>;
132
138
  address: import("@metamask/superstruct").Struct<string, null>;
139
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
133
140
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
134
141
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
135
142
  }>;
@@ -510,6 +517,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
510
517
  id: string;
511
518
  options: Record<string, import("@metamask/utils").Json>;
512
519
  address: string;
520
+ scopes: string[];
513
521
  methods: string[];
514
522
  };
515
523
  };
@@ -521,6 +529,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
521
529
  id: string;
522
530
  options: Record<string, import("@metamask/utils").Json>;
523
531
  address: string;
532
+ scopes: string[];
524
533
  methods: string[];
525
534
  };
526
535
  }, {
@@ -529,6 +538,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
529
538
  id: string;
530
539
  options: Record<string, import("@metamask/utils").Json>;
531
540
  address: string;
541
+ scopes: string[];
532
542
  methods: string[];
533
543
  }, {
534
544
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -539,6 +549,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
539
549
  "solana:data-account": "solana:data-account";
540
550
  }>;
541
551
  address: import("@metamask/superstruct").Struct<string, null>;
552
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
542
553
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
543
554
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
544
555
  }>;
@@ -1 +1 @@
1
- {"version":3,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B,oDAAgB,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAKhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EAMrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B,oDAAgB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* istanbul ignore file */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SolScopes = void 0;
5
+ /**
6
+ * Scopes for Solana account type. See {@link KeyringAccount.scopes}.
7
+ */
8
+ var SolScopes;
9
+ (function (SolScopes) {
10
+ SolScopes["Namespace"] = "solana";
11
+ SolScopes["Devnet"] = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
12
+ SolScopes["Mainnet"] = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
13
+ SolScopes["Testnet"] = "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z";
14
+ })(SolScopes || (exports.SolScopes = SolScopes = {}));
15
+ //# sourceMappingURL=constants.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/sol/constants.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B;;GAEG;AACH,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,+DAAkD,CAAA;IAClD,gEAAmD,CAAA;IACnD,gEAAmD,CAAA;AACrD,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for Solana account type. See {@link KeyringAccount.scopes}.\n */\nexport enum SolScopes {\n Namespace = 'solana',\n Devnet = 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1',\n Mainnet = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',\n Testnet = 'solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z',\n}\n"]}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Scopes for Solana account type. See {@link KeyringAccount.scopes}.
3
+ */
4
+ export declare enum SolScopes {
5
+ Namespace = "solana",
6
+ Devnet = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
7
+ Mainnet = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
8
+ Testnet = "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"
9
+ }
10
+ //# sourceMappingURL=constants.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/sol/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS;IACnB,SAAS,WAAW;IACpB,MAAM,4CAA4C;IAClD,OAAO,4CAA4C;IACnD,OAAO,4CAA4C;CACpD"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Scopes for Solana account type. See {@link KeyringAccount.scopes}.
3
+ */
4
+ export declare enum SolScopes {
5
+ Namespace = "solana",
6
+ Devnet = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
7
+ Mainnet = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
8
+ Testnet = "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"
9
+ }
10
+ //# sourceMappingURL=constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/sol/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS;IACnB,SAAS,WAAW;IACpB,MAAM,4CAA4C;IAClD,OAAO,4CAA4C;IACnD,OAAO,4CAA4C;CACpD"}
@@ -0,0 +1,12 @@
1
+ /* istanbul ignore file */
2
+ /**
3
+ * Scopes for Solana account type. See {@link KeyringAccount.scopes}.
4
+ */
5
+ export var SolScopes;
6
+ (function (SolScopes) {
7
+ SolScopes["Namespace"] = "solana";
8
+ SolScopes["Devnet"] = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
9
+ SolScopes["Mainnet"] = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
10
+ SolScopes["Testnet"] = "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z";
11
+ })(SolScopes || (SolScopes = {}));
12
+ //# sourceMappingURL=constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/sol/constants.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B;;GAEG;AACH,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,+DAAkD,CAAA;IAClD,gEAAmD,CAAA;IACnD,gEAAmD,CAAA;AACrD,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for Solana account type. See {@link KeyringAccount.scopes}.\n */\nexport enum SolScopes {\n Namespace = 'solana',\n Devnet = 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1',\n Mainnet = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',\n Testnet = 'solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z',\n}\n"]}
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./constants.cjs"), exports);
17
18
  __exportStar(require("./types.cjs"), exports);
18
19
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/sol/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAAwB","sourcesContent":["export * from './types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/sol/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B;AAC5B,8CAAwB","sourcesContent":["export * from './constants';\nexport * from './types';\n"]}
@@ -1,2 +1,3 @@
1
+ export * from "./constants.cjs";
1
2
  export * from "./types.cjs";
2
3
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/sol/index.ts"],"names":[],"mappings":"AAAA,4BAAwB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/sol/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,4BAAwB"}
@@ -1,2 +1,3 @@
1
+ export * from "./constants.mjs";
1
2
  export * from "./types.mjs";
2
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/sol/index.ts"],"names":[],"mappings":"AAAA,4BAAwB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/sol/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,4BAAwB"}
@@ -1,2 +1,3 @@
1
+ export * from "./constants.mjs";
1
2
  export * from "./types.mjs";
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/sol/index.ts"],"names":[],"mappings":"AAAA,4BAAwB","sourcesContent":["export * from './types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/sol/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,4BAAwB","sourcesContent":["export * from './constants';\nexport * from './types';\n"]}
@@ -16,6 +16,7 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
16
16
  id: string;
17
17
  options: Record<string, import("@metamask/utils").Json>;
18
18
  address: string;
19
+ scopes: string[];
19
20
  methods: "sendAndConfirmTransaction"[];
20
21
  }, {
21
22
  /**
@@ -33,6 +34,7 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
33
34
  sendAndConfirmTransaction: "sendAndConfirmTransaction";
34
35
  }>>;
35
36
  id: import("@metamask/superstruct").Struct<string, null>;
37
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
36
38
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
37
39
  }>;
38
40
  export type SolDataAccount = Infer<typeof SolDataAccountStruct>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,yBAAyB,8BAA8B;CACxD;AAED,eAAO,MAAM,oBAAoB;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,yBAAyB,8BAA8B;CACxD;AAED,eAAO,MAAM,oBAAoB;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -16,6 +16,7 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
16
16
  id: string;
17
17
  options: Record<string, import("@metamask/utils").Json>;
18
18
  address: string;
19
+ scopes: string[];
19
20
  methods: "sendAndConfirmTransaction"[];
20
21
  }, {
21
22
  /**
@@ -33,6 +34,7 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
33
34
  sendAndConfirmTransaction: "sendAndConfirmTransaction";
34
35
  }>>;
35
36
  id: import("@metamask/superstruct").Struct<string, null>;
37
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
36
38
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
37
39
  }>;
38
40
  export type SolDataAccount = Infer<typeof SolDataAccountStruct>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,yBAAyB,8BAA8B;CACxD;AAED,eAAO,MAAM,oBAAoB;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,yBAAyB,8BAA8B;CACxD;AAED,eAAO,MAAM,oBAAoB;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/keyring-api",
3
- "version": "12.0.0",
3
+ "version": "13.0.0",
4
4
  "description": "MetaMask Keyring API",
5
5
  "keywords": [
6
6
  "metamask",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@metamask/keyring-utils": "^1.0.0",
50
50
  "@metamask/superstruct": "^3.1.0",
51
- "@metamask/utils": "^9.3.0",
51
+ "@metamask/utils": "^11.0.1",
52
52
  "bech32": "^2.0.0"
53
53
  },
54
54
  "devDependencies": {