@metamask/keyring-api 18.0.0 → 19.1.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 +18 -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 +12 -3
  11. package/dist/api/account.cjs.map +1 -1
  12. package/dist/api/account.d.cts +33 -5
  13. package/dist/api/account.d.cts.map +1 -1
  14. package/dist/api/account.d.mts +33 -5
  15. package/dist/api/account.d.mts.map +1 -1
  16. package/dist/api/account.mjs +12 -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 +98 -16
  37. package/dist/events.d.cts.map +1 -1
  38. package/dist/events.d.mts +98 -16
  39. package/dist/events.d.mts.map +1 -1
  40. package/dist/rpc.d.cts +140 -26
  41. package/dist/rpc.d.cts.map +1 -1
  42. package/dist/rpc.d.mts +140 -26
  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
@@ -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,cAAc,sDAA+C,CAAC;AAE3E,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,YAAY,kBAAkB;IAC9B,IAAI,aAAa;IACjB,eAAe,wBAAwB;IACvC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IAExC,oBAAoB,6BAA6B;IACjD,kBA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H;;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,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,YAAY,kBAAkB;IAC9B,IAAI,aAAa;IACjB,eAAe,wBAAwB;IACvC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IAExC,oBAAoB,6BAA6B;IACjD,kBAAkB,2BAA2B;IAC7C,iBAAiB,0BAA0B;CAC5C;AAED,eAAO,MAAM,mBAAmB;;;;;;;;IAG9B;;OAEG;;IAGH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uBAAuB,CAAC,CAAC"}
package/dist/events.d.cts CHANGED
@@ -16,9 +16,19 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
16
16
  method: "notify:accountCreated";
17
17
  params: {
18
18
  account: {
19
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
19
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
20
20
  id: string;
21
- options: Record<string, import("@metamask/utils").Json>;
21
+ options: Record<string, import("@metamask/utils").Json> & {
22
+ entropy?: {
23
+ type: "mnemonic";
24
+ id: string;
25
+ derivationPath: string;
26
+ groupIndex: number;
27
+ } | {
28
+ type: "private-key";
29
+ };
30
+ exportable?: boolean;
31
+ };
22
32
  address: string;
23
33
  scopes: `${string}:${string}`[];
24
34
  methods: string[];
@@ -34,9 +44,19 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
34
44
  method: import("@metamask/superstruct").Struct<"notify:accountCreated", "notify:accountCreated">;
35
45
  params: import("@metamask/superstruct").Struct<{
36
46
  account: {
37
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
47
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
38
48
  id: string;
39
- options: Record<string, import("@metamask/utils").Json>;
49
+ options: 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
+ };
40
60
  address: string;
41
61
  scopes: `${string}:${string}`[];
42
62
  methods: string[];
@@ -57,15 +77,25 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
57
77
  * New account object.
58
78
  */
59
79
  account: import("@metamask/superstruct").Struct<{
60
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
80
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
61
81
  id: string;
62
- options: Record<string, import("@metamask/utils").Json>;
82
+ options: Record<string, import("@metamask/utils").Json> & {
83
+ entropy?: {
84
+ type: "mnemonic";
85
+ id: string;
86
+ derivationPath: string;
87
+ groupIndex: number;
88
+ } | {
89
+ type: "private-key";
90
+ };
91
+ exportable?: boolean;
92
+ };
63
93
  address: string;
64
94
  scopes: `${string}:${string}`[];
65
95
  methods: string[];
66
96
  }, {
67
97
  id: import("@metamask/superstruct").Struct<string, null>;
68
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
98
+ type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
69
99
  "eip155:eoa": "eip155:eoa";
70
100
  "eip155:erc4337": "eip155:erc4337";
71
101
  "bip122:p2pkh": "bip122:p2pkh";
@@ -73,10 +103,21 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
73
103
  "bip122:p2wpkh": "bip122:p2wpkh";
74
104
  "bip122:p2tr": "bip122:p2tr";
75
105
  "solana:data-account": "solana:data-account";
106
+ "any:account": "any:account";
76
107
  }>;
77
108
  address: import("@metamask/superstruct").Struct<string, null>;
78
109
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
79
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
110
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
111
+ entropy?: {
112
+ type: "mnemonic";
113
+ id: string;
114
+ derivationPath: string;
115
+ groupIndex: number;
116
+ } | {
117
+ type: "private-key";
118
+ };
119
+ exportable?: boolean;
120
+ }, null>;
80
121
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
81
122
  }>;
82
123
  /**
@@ -110,9 +151,19 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
110
151
  method: "notify:accountUpdated";
111
152
  params: {
112
153
  account: {
113
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
154
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
114
155
  id: string;
115
- options: Record<string, import("@metamask/utils").Json>;
156
+ options: Record<string, import("@metamask/utils").Json> & {
157
+ entropy?: {
158
+ type: "mnemonic";
159
+ id: string;
160
+ derivationPath: string;
161
+ groupIndex: number;
162
+ } | {
163
+ type: "private-key";
164
+ };
165
+ exportable?: boolean;
166
+ };
116
167
  address: string;
117
168
  scopes: `${string}:${string}`[];
118
169
  methods: string[];
@@ -122,9 +173,19 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
122
173
  method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
123
174
  params: import("@metamask/superstruct").Struct<{
124
175
  account: {
125
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
176
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
126
177
  id: string;
127
- options: Record<string, import("@metamask/utils").Json>;
178
+ options: Record<string, import("@metamask/utils").Json> & {
179
+ entropy?: {
180
+ type: "mnemonic";
181
+ id: string;
182
+ derivationPath: string;
183
+ groupIndex: number;
184
+ } | {
185
+ type: "private-key";
186
+ };
187
+ exportable?: boolean;
188
+ };
128
189
  address: string;
129
190
  scopes: `${string}:${string}`[];
130
191
  methods: string[];
@@ -134,15 +195,25 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
134
195
  * Updated account object.
135
196
  */
136
197
  account: import("@metamask/superstruct").Struct<{
137
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
198
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
138
199
  id: string;
139
- options: Record<string, import("@metamask/utils").Json>;
200
+ options: Record<string, import("@metamask/utils").Json> & {
201
+ entropy?: {
202
+ type: "mnemonic";
203
+ id: string;
204
+ derivationPath: string;
205
+ groupIndex: number;
206
+ } | {
207
+ type: "private-key";
208
+ };
209
+ exportable?: boolean;
210
+ };
140
211
  address: string;
141
212
  scopes: `${string}:${string}`[];
142
213
  methods: string[];
143
214
  }, {
144
215
  id: import("@metamask/superstruct").Struct<string, null>;
145
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
216
+ type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
146
217
  "eip155:eoa": "eip155:eoa";
147
218
  "eip155:erc4337": "eip155:erc4337";
148
219
  "bip122:p2pkh": "bip122:p2pkh";
@@ -150,10 +221,21 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
150
221
  "bip122:p2wpkh": "bip122:p2wpkh";
151
222
  "bip122:p2tr": "bip122:p2tr";
152
223
  "solana:data-account": "solana:data-account";
224
+ "any:account": "any:account";
153
225
  }>;
154
226
  address: import("@metamask/superstruct").Struct<string, null>;
155
227
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
156
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
228
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
229
+ entropy?: {
230
+ type: "mnemonic";
231
+ id: string;
232
+ derivationPath: string;
233
+ groupIndex: number;
234
+ } | {
235
+ type: "private-key";
236
+ };
237
+ exportable?: boolean;
238
+ }, null>;
157
239
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
158
240
  }>;
159
241
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;;WAIG;;QAGH;;;;;;;WAOG;;;EAQL,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,Q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+16,19 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
16
16
  method: "notify:accountCreated";
17
17
  params: {
18
18
  account: {
19
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
19
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
20
20
  id: string;
21
- options: Record<string, import("@metamask/utils").Json>;
21
+ options: Record<string, import("@metamask/utils").Json> & {
22
+ entropy?: {
23
+ type: "mnemonic";
24
+ id: string;
25
+ derivationPath: string;
26
+ groupIndex: number;
27
+ } | {
28
+ type: "private-key";
29
+ };
30
+ exportable?: boolean;
31
+ };
22
32
  address: string;
23
33
  scopes: `${string}:${string}`[];
24
34
  methods: string[];
@@ -34,9 +44,19 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
34
44
  method: import("@metamask/superstruct").Struct<"notify:accountCreated", "notify:accountCreated">;
35
45
  params: import("@metamask/superstruct").Struct<{
36
46
  account: {
37
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
47
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
38
48
  id: string;
39
- options: Record<string, import("@metamask/utils").Json>;
49
+ options: 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
+ };
40
60
  address: string;
41
61
  scopes: `${string}:${string}`[];
42
62
  methods: string[];
@@ -57,15 +77,25 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
57
77
  * New account object.
58
78
  */
59
79
  account: import("@metamask/superstruct").Struct<{
60
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
80
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
61
81
  id: string;
62
- options: Record<string, import("@metamask/utils").Json>;
82
+ options: Record<string, import("@metamask/utils").Json> & {
83
+ entropy?: {
84
+ type: "mnemonic";
85
+ id: string;
86
+ derivationPath: string;
87
+ groupIndex: number;
88
+ } | {
89
+ type: "private-key";
90
+ };
91
+ exportable?: boolean;
92
+ };
63
93
  address: string;
64
94
  scopes: `${string}:${string}`[];
65
95
  methods: string[];
66
96
  }, {
67
97
  id: import("@metamask/superstruct").Struct<string, null>;
68
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
98
+ type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
69
99
  "eip155:eoa": "eip155:eoa";
70
100
  "eip155:erc4337": "eip155:erc4337";
71
101
  "bip122:p2pkh": "bip122:p2pkh";
@@ -73,10 +103,21 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
73
103
  "bip122:p2wpkh": "bip122:p2wpkh";
74
104
  "bip122:p2tr": "bip122:p2tr";
75
105
  "solana:data-account": "solana:data-account";
106
+ "any:account": "any:account";
76
107
  }>;
77
108
  address: import("@metamask/superstruct").Struct<string, null>;
78
109
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
79
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
110
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
111
+ entropy?: {
112
+ type: "mnemonic";
113
+ id: string;
114
+ derivationPath: string;
115
+ groupIndex: number;
116
+ } | {
117
+ type: "private-key";
118
+ };
119
+ exportable?: boolean;
120
+ }, null>;
80
121
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
81
122
  }>;
82
123
  /**
@@ -110,9 +151,19 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
110
151
  method: "notify:accountUpdated";
111
152
  params: {
112
153
  account: {
113
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
154
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
114
155
  id: string;
115
- options: Record<string, import("@metamask/utils").Json>;
156
+ options: Record<string, import("@metamask/utils").Json> & {
157
+ entropy?: {
158
+ type: "mnemonic";
159
+ id: string;
160
+ derivationPath: string;
161
+ groupIndex: number;
162
+ } | {
163
+ type: "private-key";
164
+ };
165
+ exportable?: boolean;
166
+ };
116
167
  address: string;
117
168
  scopes: `${string}:${string}`[];
118
169
  methods: string[];
@@ -122,9 +173,19 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
122
173
  method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
123
174
  params: import("@metamask/superstruct").Struct<{
124
175
  account: {
125
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
176
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
126
177
  id: string;
127
- options: Record<string, import("@metamask/utils").Json>;
178
+ options: Record<string, import("@metamask/utils").Json> & {
179
+ entropy?: {
180
+ type: "mnemonic";
181
+ id: string;
182
+ derivationPath: string;
183
+ groupIndex: number;
184
+ } | {
185
+ type: "private-key";
186
+ };
187
+ exportable?: boolean;
188
+ };
128
189
  address: string;
129
190
  scopes: `${string}:${string}`[];
130
191
  methods: string[];
@@ -134,15 +195,25 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
134
195
  * Updated account object.
135
196
  */
136
197
  account: import("@metamask/superstruct").Struct<{
137
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
198
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
138
199
  id: string;
139
- options: Record<string, import("@metamask/utils").Json>;
200
+ options: Record<string, import("@metamask/utils").Json> & {
201
+ entropy?: {
202
+ type: "mnemonic";
203
+ id: string;
204
+ derivationPath: string;
205
+ groupIndex: number;
206
+ } | {
207
+ type: "private-key";
208
+ };
209
+ exportable?: boolean;
210
+ };
140
211
  address: string;
141
212
  scopes: `${string}:${string}`[];
142
213
  methods: string[];
143
214
  }, {
144
215
  id: import("@metamask/superstruct").Struct<string, null>;
145
- type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
216
+ type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
146
217
  "eip155:eoa": "eip155:eoa";
147
218
  "eip155:erc4337": "eip155:erc4337";
148
219
  "bip122:p2pkh": "bip122:p2pkh";
@@ -150,10 +221,21 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
150
221
  "bip122:p2wpkh": "bip122:p2wpkh";
151
222
  "bip122:p2tr": "bip122:p2tr";
152
223
  "solana:data-account": "solana:data-account";
224
+ "any:account": "any:account";
153
225
  }>;
154
226
  address: import("@metamask/superstruct").Struct<string, null>;
155
227
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
156
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
228
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
229
+ entropy?: {
230
+ type: "mnemonic";
231
+ id: string;
232
+ derivationPath: string;
233
+ groupIndex: number;
234
+ } | {
235
+ type: "private-key";
236
+ };
237
+ exportable?: boolean;
238
+ }, null>;
157
239
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
158
240
  }>;
159
241
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;;WAIG;;QAGH;;;;;;;WAOG;;;EAQL,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;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