@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.
- package/CHANGELOG.md +18 -1
- package/dist/api/account-options.cjs +122 -0
- package/dist/api/account-options.cjs.map +1 -0
- package/dist/api/account-options.d.cts +131 -0
- package/dist/api/account-options.d.cts.map +1 -0
- package/dist/api/account-options.d.mts +131 -0
- package/dist/api/account-options.d.mts.map +1 -0
- package/dist/api/account-options.mjs +119 -0
- package/dist/api/account-options.mjs.map +1 -0
- package/dist/api/account.cjs +12 -3
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +33 -5
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +33 -5
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +12 -3
- package/dist/api/account.mjs.map +1 -1
- package/dist/api/discovery.d.cts +2 -2
- package/dist/api/discovery.d.mts +2 -2
- package/dist/api/index.cjs +1 -0
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +1 -0
- package/dist/api/index.d.cts.map +1 -1
- package/dist/api/index.d.mts +1 -0
- package/dist/api/index.d.mts.map +1 -1
- package/dist/api/index.mjs +1 -0
- package/dist/api/index.mjs.map +1 -1
- package/dist/btc/types.d.cts +88 -8
- package/dist/btc/types.d.cts.map +1 -1
- package/dist/btc/types.d.mts +88 -8
- package/dist/btc/types.d.mts.map +1 -1
- package/dist/eth/types.d.cts +44 -4
- package/dist/eth/types.d.cts.map +1 -1
- package/dist/eth/types.d.mts +44 -4
- package/dist/eth/types.d.mts.map +1 -1
- package/dist/events.d.cts +98 -16
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +98 -16
- package/dist/events.d.mts.map +1 -1
- package/dist/rpc.d.cts +140 -26
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +140 -26
- package/dist/rpc.d.mts.map +1 -1
- package/dist/sol/types.d.cts +22 -2
- package/dist/sol/types.d.cts.map +1 -1
- package/dist/sol/types.d.mts +22 -2
- package/dist/sol/types.d.mts.map +1 -1
- package/package.json +3 -3
package/dist/rpc.d.cts
CHANGED
@@ -39,22 +39,42 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
39
39
|
}>;
|
40
40
|
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
42
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
43
43
|
id: string;
|
44
|
-
options: Record<string, import("@metamask/utils").Json
|
44
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
45
|
+
entropy?: {
|
46
|
+
type: "mnemonic";
|
47
|
+
id: string;
|
48
|
+
derivationPath: string;
|
49
|
+
groupIndex: number;
|
50
|
+
} | {
|
51
|
+
type: "private-key";
|
52
|
+
};
|
53
|
+
exportable?: boolean;
|
54
|
+
};
|
45
55
|
address: string;
|
46
56
|
scopes: `${string}:${string}`[];
|
47
57
|
methods: string[];
|
48
58
|
}[], import("@metamask/superstruct").Struct<{
|
49
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
59
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
50
60
|
id: string;
|
51
|
-
options: Record<string, import("@metamask/utils").Json
|
61
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
62
|
+
entropy?: {
|
63
|
+
type: "mnemonic";
|
64
|
+
id: string;
|
65
|
+
derivationPath: string;
|
66
|
+
groupIndex: number;
|
67
|
+
} | {
|
68
|
+
type: "private-key";
|
69
|
+
};
|
70
|
+
exportable?: boolean;
|
71
|
+
};
|
52
72
|
address: string;
|
53
73
|
scopes: `${string}:${string}`[];
|
54
74
|
methods: string[];
|
55
75
|
}, {
|
56
76
|
id: import("@metamask/superstruct").Struct<string, null>;
|
57
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
77
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
58
78
|
"eip155:eoa": "eip155:eoa";
|
59
79
|
"eip155:erc4337": "eip155:erc4337";
|
60
80
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -62,10 +82,21 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
62
82
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
63
83
|
"bip122:p2tr": "bip122:p2tr";
|
64
84
|
"solana:data-account": "solana:data-account";
|
85
|
+
"any:account": "any:account";
|
65
86
|
}>;
|
66
87
|
address: import("@metamask/superstruct").Struct<string, null>;
|
67
88
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
68
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
89
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
90
|
+
entropy?: {
|
91
|
+
type: "mnemonic";
|
92
|
+
id: string;
|
93
|
+
derivationPath: string;
|
94
|
+
groupIndex: number;
|
95
|
+
} | {
|
96
|
+
type: "private-key";
|
97
|
+
};
|
98
|
+
exportable?: boolean;
|
99
|
+
}, null>;
|
69
100
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
70
101
|
}>>;
|
71
102
|
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
@@ -88,15 +119,25 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
88
119
|
}>;
|
89
120
|
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
90
121
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
91
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
122
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
92
123
|
id: string;
|
93
|
-
options: Record<string, import("@metamask/utils").Json
|
124
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
125
|
+
entropy?: {
|
126
|
+
type: "mnemonic";
|
127
|
+
id: string;
|
128
|
+
derivationPath: string;
|
129
|
+
groupIndex: number;
|
130
|
+
} | {
|
131
|
+
type: "private-key";
|
132
|
+
};
|
133
|
+
exportable?: boolean;
|
134
|
+
};
|
94
135
|
address: string;
|
95
136
|
scopes: `${string}:${string}`[];
|
96
137
|
methods: string[];
|
97
138
|
}, {
|
98
139
|
id: import("@metamask/superstruct").Struct<string, null>;
|
99
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
140
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
100
141
|
"eip155:eoa": "eip155:eoa";
|
101
142
|
"eip155:erc4337": "eip155:erc4337";
|
102
143
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -104,10 +145,21 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
104
145
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
105
146
|
"bip122:p2tr": "bip122:p2tr";
|
106
147
|
"solana:data-account": "solana:data-account";
|
148
|
+
"any:account": "any:account";
|
107
149
|
}>;
|
108
150
|
address: import("@metamask/superstruct").Struct<string, null>;
|
109
151
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
110
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
152
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
153
|
+
entropy?: {
|
154
|
+
type: "mnemonic";
|
155
|
+
id: string;
|
156
|
+
derivationPath: string;
|
157
|
+
groupIndex: number;
|
158
|
+
} | {
|
159
|
+
type: "private-key";
|
160
|
+
};
|
161
|
+
exportable?: boolean;
|
162
|
+
}, null>;
|
111
163
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
112
164
|
}>;
|
113
165
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
@@ -130,15 +182,25 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
130
182
|
}>;
|
131
183
|
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
132
184
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
133
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
185
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
134
186
|
id: string;
|
135
|
-
options: Record<string, import("@metamask/utils").Json
|
187
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
188
|
+
entropy?: {
|
189
|
+
type: "mnemonic";
|
190
|
+
id: string;
|
191
|
+
derivationPath: string;
|
192
|
+
groupIndex: number;
|
193
|
+
} | {
|
194
|
+
type: "private-key";
|
195
|
+
};
|
196
|
+
exportable?: boolean;
|
197
|
+
};
|
136
198
|
address: string;
|
137
199
|
scopes: `${string}:${string}`[];
|
138
200
|
methods: string[];
|
139
201
|
}, {
|
140
202
|
id: import("@metamask/superstruct").Struct<string, null>;
|
141
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
203
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
142
204
|
"eip155:eoa": "eip155:eoa";
|
143
205
|
"eip155:erc4337": "eip155:erc4337";
|
144
206
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -146,10 +208,21 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
146
208
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
147
209
|
"bip122:p2tr": "bip122:p2tr";
|
148
210
|
"solana:data-account": "solana:data-account";
|
211
|
+
"any:account": "any:account";
|
149
212
|
}>;
|
150
213
|
address: import("@metamask/superstruct").Struct<string, null>;
|
151
214
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
152
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
215
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
216
|
+
entropy?: {
|
217
|
+
type: "mnemonic";
|
218
|
+
id: string;
|
219
|
+
derivationPath: string;
|
220
|
+
groupIndex: number;
|
221
|
+
} | {
|
222
|
+
type: "private-key";
|
223
|
+
};
|
224
|
+
exportable?: boolean;
|
225
|
+
}, null>;
|
153
226
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
154
227
|
}>;
|
155
228
|
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
@@ -158,16 +231,16 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
158
231
|
id: string | number | null;
|
159
232
|
jsonrpc: "2.0";
|
160
233
|
params: {
|
234
|
+
groupIndex: number;
|
161
235
|
scopes: `${string}:${string}`[];
|
162
236
|
entropySource: string;
|
163
|
-
groupIndex: number;
|
164
237
|
};
|
165
238
|
}, {
|
166
239
|
method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
|
167
240
|
params: import("@metamask/superstruct").Struct<{
|
241
|
+
groupIndex: number;
|
168
242
|
scopes: `${string}:${string}`[];
|
169
243
|
entropySource: string;
|
170
|
-
groupIndex: number;
|
171
244
|
}, {
|
172
245
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
173
246
|
entropySource: import("@metamask/superstruct").Struct<string, null>;
|
@@ -179,12 +252,12 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
179
252
|
export type DiscoverAccountsRequest = Infer<typeof DiscoverAccountsRequestStruct>;
|
180
253
|
export declare const DiscoverAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
181
254
|
type: "bip44";
|
182
|
-
scopes: `${string}:${string}`[];
|
183
255
|
derivationPath: `m/${string}`;
|
256
|
+
scopes: `${string}:${string}`[];
|
184
257
|
}[], import("@metamask/superstruct").Struct<{
|
185
258
|
type: "bip44";
|
186
|
-
scopes: `${string}:${string}`[];
|
187
259
|
derivationPath: `m/${string}`;
|
260
|
+
scopes: `${string}:${string}`[];
|
188
261
|
}, {
|
189
262
|
type: import("@metamask/superstruct").Struct<"bip44", "bip44">;
|
190
263
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -634,9 +707,19 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
634
707
|
jsonrpc: "2.0";
|
635
708
|
params: {
|
636
709
|
account: {
|
637
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
710
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
638
711
|
id: string;
|
639
|
-
options: Record<string, import("@metamask/utils").Json
|
712
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
713
|
+
entropy?: {
|
714
|
+
type: "mnemonic";
|
715
|
+
id: string;
|
716
|
+
derivationPath: string;
|
717
|
+
groupIndex: number;
|
718
|
+
} | {
|
719
|
+
type: "private-key";
|
720
|
+
};
|
721
|
+
exportable?: boolean;
|
722
|
+
};
|
640
723
|
address: string;
|
641
724
|
scopes: `${string}:${string}`[];
|
642
725
|
methods: string[];
|
@@ -646,24 +729,44 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
646
729
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
647
730
|
params: import("@metamask/superstruct").Struct<{
|
648
731
|
account: {
|
649
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
732
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
650
733
|
id: string;
|
651
|
-
options: Record<string, import("@metamask/utils").Json
|
734
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
735
|
+
entropy?: {
|
736
|
+
type: "mnemonic";
|
737
|
+
id: string;
|
738
|
+
derivationPath: string;
|
739
|
+
groupIndex: number;
|
740
|
+
} | {
|
741
|
+
type: "private-key";
|
742
|
+
};
|
743
|
+
exportable?: boolean;
|
744
|
+
};
|
652
745
|
address: string;
|
653
746
|
scopes: `${string}:${string}`[];
|
654
747
|
methods: string[];
|
655
748
|
};
|
656
749
|
}, {
|
657
750
|
account: import("@metamask/superstruct").Struct<{
|
658
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
751
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
659
752
|
id: string;
|
660
|
-
options: Record<string, import("@metamask/utils").Json
|
753
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
754
|
+
entropy?: {
|
755
|
+
type: "mnemonic";
|
756
|
+
id: string;
|
757
|
+
derivationPath: string;
|
758
|
+
groupIndex: number;
|
759
|
+
} | {
|
760
|
+
type: "private-key";
|
761
|
+
};
|
762
|
+
exportable?: boolean;
|
763
|
+
};
|
661
764
|
address: string;
|
662
765
|
scopes: `${string}:${string}`[];
|
663
766
|
methods: string[];
|
664
767
|
}, {
|
665
768
|
id: import("@metamask/superstruct").Struct<string, null>;
|
666
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
769
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
667
770
|
"eip155:eoa": "eip155:eoa";
|
668
771
|
"eip155:erc4337": "eip155:erc4337";
|
669
772
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -671,10 +774,21 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
671
774
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
672
775
|
"bip122:p2tr": "bip122:p2tr";
|
673
776
|
"solana:data-account": "solana:data-account";
|
777
|
+
"any:account": "any:account";
|
674
778
|
}>;
|
675
779
|
address: import("@metamask/superstruct").Struct<string, null>;
|
676
780
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
677
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
781
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
782
|
+
entropy?: {
|
783
|
+
type: "mnemonic";
|
784
|
+
id: string;
|
785
|
+
derivationPath: string;
|
786
|
+
groupIndex: number;
|
787
|
+
} | {
|
788
|
+
type: "private-key";
|
789
|
+
};
|
790
|
+
exportable?: boolean;
|
791
|
+
}, null>;
|
678
792
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
679
793
|
}>;
|
680
794
|
}>;
|
package/dist/rpc.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.d.cts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;I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,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAKxE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;QAAwB,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAK9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;EAOtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B,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"}
|
package/dist/rpc.d.mts
CHANGED
@@ -39,22 +39,42 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
39
39
|
}>;
|
40
40
|
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
42
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
43
43
|
id: string;
|
44
|
-
options: Record<string, import("@metamask/utils").Json
|
44
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
45
|
+
entropy?: {
|
46
|
+
type: "mnemonic";
|
47
|
+
id: string;
|
48
|
+
derivationPath: string;
|
49
|
+
groupIndex: number;
|
50
|
+
} | {
|
51
|
+
type: "private-key";
|
52
|
+
};
|
53
|
+
exportable?: boolean;
|
54
|
+
};
|
45
55
|
address: string;
|
46
56
|
scopes: `${string}:${string}`[];
|
47
57
|
methods: string[];
|
48
58
|
}[], import("@metamask/superstruct").Struct<{
|
49
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
59
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
50
60
|
id: string;
|
51
|
-
options: Record<string, import("@metamask/utils").Json
|
61
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
62
|
+
entropy?: {
|
63
|
+
type: "mnemonic";
|
64
|
+
id: string;
|
65
|
+
derivationPath: string;
|
66
|
+
groupIndex: number;
|
67
|
+
} | {
|
68
|
+
type: "private-key";
|
69
|
+
};
|
70
|
+
exportable?: boolean;
|
71
|
+
};
|
52
72
|
address: string;
|
53
73
|
scopes: `${string}:${string}`[];
|
54
74
|
methods: string[];
|
55
75
|
}, {
|
56
76
|
id: import("@metamask/superstruct").Struct<string, null>;
|
57
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
77
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
58
78
|
"eip155:eoa": "eip155:eoa";
|
59
79
|
"eip155:erc4337": "eip155:erc4337";
|
60
80
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -62,10 +82,21 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
62
82
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
63
83
|
"bip122:p2tr": "bip122:p2tr";
|
64
84
|
"solana:data-account": "solana:data-account";
|
85
|
+
"any:account": "any:account";
|
65
86
|
}>;
|
66
87
|
address: import("@metamask/superstruct").Struct<string, null>;
|
67
88
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
68
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
89
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
90
|
+
entropy?: {
|
91
|
+
type: "mnemonic";
|
92
|
+
id: string;
|
93
|
+
derivationPath: string;
|
94
|
+
groupIndex: number;
|
95
|
+
} | {
|
96
|
+
type: "private-key";
|
97
|
+
};
|
98
|
+
exportable?: boolean;
|
99
|
+
}, null>;
|
69
100
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
70
101
|
}>>;
|
71
102
|
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
@@ -88,15 +119,25 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
88
119
|
}>;
|
89
120
|
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
90
121
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
91
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
122
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
92
123
|
id: string;
|
93
|
-
options: Record<string, import("@metamask/utils").Json
|
124
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
125
|
+
entropy?: {
|
126
|
+
type: "mnemonic";
|
127
|
+
id: string;
|
128
|
+
derivationPath: string;
|
129
|
+
groupIndex: number;
|
130
|
+
} | {
|
131
|
+
type: "private-key";
|
132
|
+
};
|
133
|
+
exportable?: boolean;
|
134
|
+
};
|
94
135
|
address: string;
|
95
136
|
scopes: `${string}:${string}`[];
|
96
137
|
methods: string[];
|
97
138
|
}, {
|
98
139
|
id: import("@metamask/superstruct").Struct<string, null>;
|
99
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
140
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
100
141
|
"eip155:eoa": "eip155:eoa";
|
101
142
|
"eip155:erc4337": "eip155:erc4337";
|
102
143
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -104,10 +145,21 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
104
145
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
105
146
|
"bip122:p2tr": "bip122:p2tr";
|
106
147
|
"solana:data-account": "solana:data-account";
|
148
|
+
"any:account": "any:account";
|
107
149
|
}>;
|
108
150
|
address: import("@metamask/superstruct").Struct<string, null>;
|
109
151
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
110
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
152
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
153
|
+
entropy?: {
|
154
|
+
type: "mnemonic";
|
155
|
+
id: string;
|
156
|
+
derivationPath: string;
|
157
|
+
groupIndex: number;
|
158
|
+
} | {
|
159
|
+
type: "private-key";
|
160
|
+
};
|
161
|
+
exportable?: boolean;
|
162
|
+
}, null>;
|
111
163
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
112
164
|
}>;
|
113
165
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
@@ -130,15 +182,25 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
130
182
|
}>;
|
131
183
|
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
132
184
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
133
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
185
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
134
186
|
id: string;
|
135
|
-
options: Record<string, import("@metamask/utils").Json
|
187
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
188
|
+
entropy?: {
|
189
|
+
type: "mnemonic";
|
190
|
+
id: string;
|
191
|
+
derivationPath: string;
|
192
|
+
groupIndex: number;
|
193
|
+
} | {
|
194
|
+
type: "private-key";
|
195
|
+
};
|
196
|
+
exportable?: boolean;
|
197
|
+
};
|
136
198
|
address: string;
|
137
199
|
scopes: `${string}:${string}`[];
|
138
200
|
methods: string[];
|
139
201
|
}, {
|
140
202
|
id: import("@metamask/superstruct").Struct<string, null>;
|
141
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
203
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
142
204
|
"eip155:eoa": "eip155:eoa";
|
143
205
|
"eip155:erc4337": "eip155:erc4337";
|
144
206
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -146,10 +208,21 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
146
208
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
147
209
|
"bip122:p2tr": "bip122:p2tr";
|
148
210
|
"solana:data-account": "solana:data-account";
|
211
|
+
"any:account": "any:account";
|
149
212
|
}>;
|
150
213
|
address: import("@metamask/superstruct").Struct<string, null>;
|
151
214
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
152
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
215
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
216
|
+
entropy?: {
|
217
|
+
type: "mnemonic";
|
218
|
+
id: string;
|
219
|
+
derivationPath: string;
|
220
|
+
groupIndex: number;
|
221
|
+
} | {
|
222
|
+
type: "private-key";
|
223
|
+
};
|
224
|
+
exportable?: boolean;
|
225
|
+
}, null>;
|
153
226
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
154
227
|
}>;
|
155
228
|
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
@@ -158,16 +231,16 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
158
231
|
id: string | number | null;
|
159
232
|
jsonrpc: "2.0";
|
160
233
|
params: {
|
234
|
+
groupIndex: number;
|
161
235
|
scopes: `${string}:${string}`[];
|
162
236
|
entropySource: string;
|
163
|
-
groupIndex: number;
|
164
237
|
};
|
165
238
|
}, {
|
166
239
|
method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
|
167
240
|
params: import("@metamask/superstruct").Struct<{
|
241
|
+
groupIndex: number;
|
168
242
|
scopes: `${string}:${string}`[];
|
169
243
|
entropySource: string;
|
170
|
-
groupIndex: number;
|
171
244
|
}, {
|
172
245
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
173
246
|
entropySource: import("@metamask/superstruct").Struct<string, null>;
|
@@ -179,12 +252,12 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
179
252
|
export type DiscoverAccountsRequest = Infer<typeof DiscoverAccountsRequestStruct>;
|
180
253
|
export declare const DiscoverAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
181
254
|
type: "bip44";
|
182
|
-
scopes: `${string}:${string}`[];
|
183
255
|
derivationPath: `m/${string}`;
|
256
|
+
scopes: `${string}:${string}`[];
|
184
257
|
}[], import("@metamask/superstruct").Struct<{
|
185
258
|
type: "bip44";
|
186
|
-
scopes: `${string}:${string}`[];
|
187
259
|
derivationPath: `m/${string}`;
|
260
|
+
scopes: `${string}:${string}`[];
|
188
261
|
}, {
|
189
262
|
type: import("@metamask/superstruct").Struct<"bip44", "bip44">;
|
190
263
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -634,9 +707,19 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
634
707
|
jsonrpc: "2.0";
|
635
708
|
params: {
|
636
709
|
account: {
|
637
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
710
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
638
711
|
id: string;
|
639
|
-
options: Record<string, import("@metamask/utils").Json
|
712
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
713
|
+
entropy?: {
|
714
|
+
type: "mnemonic";
|
715
|
+
id: string;
|
716
|
+
derivationPath: string;
|
717
|
+
groupIndex: number;
|
718
|
+
} | {
|
719
|
+
type: "private-key";
|
720
|
+
};
|
721
|
+
exportable?: boolean;
|
722
|
+
};
|
640
723
|
address: string;
|
641
724
|
scopes: `${string}:${string}`[];
|
642
725
|
methods: string[];
|
@@ -646,24 +729,44 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
646
729
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
647
730
|
params: import("@metamask/superstruct").Struct<{
|
648
731
|
account: {
|
649
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
732
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
650
733
|
id: string;
|
651
|
-
options: Record<string, import("@metamask/utils").Json
|
734
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
735
|
+
entropy?: {
|
736
|
+
type: "mnemonic";
|
737
|
+
id: string;
|
738
|
+
derivationPath: string;
|
739
|
+
groupIndex: number;
|
740
|
+
} | {
|
741
|
+
type: "private-key";
|
742
|
+
};
|
743
|
+
exportable?: boolean;
|
744
|
+
};
|
652
745
|
address: string;
|
653
746
|
scopes: `${string}:${string}`[];
|
654
747
|
methods: string[];
|
655
748
|
};
|
656
749
|
}, {
|
657
750
|
account: import("@metamask/superstruct").Struct<{
|
658
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
751
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
659
752
|
id: string;
|
660
|
-
options: Record<string, import("@metamask/utils").Json
|
753
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
754
|
+
entropy?: {
|
755
|
+
type: "mnemonic";
|
756
|
+
id: string;
|
757
|
+
derivationPath: string;
|
758
|
+
groupIndex: number;
|
759
|
+
} | {
|
760
|
+
type: "private-key";
|
761
|
+
};
|
762
|
+
exportable?: boolean;
|
763
|
+
};
|
661
764
|
address: string;
|
662
765
|
scopes: `${string}:${string}`[];
|
663
766
|
methods: string[];
|
664
767
|
}, {
|
665
768
|
id: import("@metamask/superstruct").Struct<string, null>;
|
666
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
769
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
667
770
|
"eip155:eoa": "eip155:eoa";
|
668
771
|
"eip155:erc4337": "eip155:erc4337";
|
669
772
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -671,10 +774,21 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
671
774
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
672
775
|
"bip122:p2tr": "bip122:p2tr";
|
673
776
|
"solana:data-account": "solana:data-account";
|
777
|
+
"any:account": "any:account";
|
674
778
|
}>;
|
675
779
|
address: import("@metamask/superstruct").Struct<string, null>;
|
676
780
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
677
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
781
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
782
|
+
entropy?: {
|
783
|
+
type: "mnemonic";
|
784
|
+
id: string;
|
785
|
+
derivationPath: string;
|
786
|
+
groupIndex: number;
|
787
|
+
} | {
|
788
|
+
type: "private-key";
|
789
|
+
};
|
790
|
+
exportable?: boolean;
|
791
|
+
}, null>;
|
678
792
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
679
793
|
}>;
|
680
794
|
}>;
|