@metamask-previews/keyring-api 21.5.0-cd75414 → 22.0.0-8ff7ba2
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 +0 -4
- package/dist/api/account-options.cjs.map +1 -1
- package/dist/api/account-options.d.cts +0 -4
- package/dist/api/account-options.d.cts.map +1 -1
- package/dist/api/account-options.d.mts +0 -4
- package/dist/api/account-options.d.mts.map +1 -1
- package/dist/api/account-options.mjs +0 -4
- package/dist/api/account-options.mjs.map +1 -1
- package/dist/api/account.d.cts +2 -2
- package/dist/api/account.d.mts +2 -2
- package/dist/api/asset.d.cts +2 -2
- package/dist/api/asset.d.mts +2 -2
- package/dist/api/request.d.cts +3 -3
- package/dist/api/request.d.mts +3 -3
- package/dist/api/response.d.cts +1 -1
- package/dist/api/response.d.mts +1 -1
- package/dist/api/transaction.d.cts +71 -71
- package/dist/api/transaction.d.mts +71 -71
- package/dist/api/v2/create-account/bip44.d.cts +1 -1
- package/dist/api/v2/create-account/bip44.d.mts +1 -1
- package/dist/api/v2/create-account/index.d.cts +1 -1
- package/dist/api/v2/create-account/index.d.mts +1 -1
- package/dist/api/v2/index.cjs +0 -1
- package/dist/api/v2/index.cjs.map +1 -1
- package/dist/api/v2/index.d.cts +0 -1
- package/dist/api/v2/index.d.cts.map +1 -1
- package/dist/api/v2/index.d.mts +0 -1
- package/dist/api/v2/index.d.mts.map +1 -1
- package/dist/api/v2/index.mjs +0 -1
- package/dist/api/v2/index.mjs.map +1 -1
- package/dist/api/v2/keyring-type.cjs +4 -0
- package/dist/api/v2/keyring-type.cjs.map +1 -1
- package/dist/api/v2/keyring-type.d.cts +5 -1
- package/dist/api/v2/keyring-type.d.cts.map +1 -1
- package/dist/api/v2/keyring-type.d.mts +5 -1
- package/dist/api/v2/keyring-type.d.mts.map +1 -1
- package/dist/api/v2/keyring-type.mjs +4 -0
- package/dist/api/v2/keyring-type.mjs.map +1 -1
- package/dist/btc/types.d.cts +8 -8
- package/dist/btc/types.d.mts +8 -8
- package/dist/eth/erc4337/types.d.cts +3 -3
- package/dist/eth/erc4337/types.d.mts +3 -3
- package/dist/eth/index.cjs +0 -1
- package/dist/eth/index.cjs.map +1 -1
- package/dist/eth/index.d.cts +0 -1
- package/dist/eth/index.d.cts.map +1 -1
- package/dist/eth/index.d.mts +0 -1
- package/dist/eth/index.d.mts.map +1 -1
- package/dist/eth/index.mjs +0 -1
- package/dist/eth/index.mjs.map +1 -1
- package/dist/eth/rpc/params.d.cts +29 -29
- package/dist/eth/rpc/params.d.mts +29 -29
- package/dist/eth/types.d.cts +4 -4
- package/dist/eth/types.d.mts +4 -4
- package/dist/events.d.cts +50 -50
- package/dist/events.d.mts +50 -50
- package/dist/rpc.d.cts +133 -133
- package/dist/rpc.d.mts +133 -133
- package/dist/sol/types.d.cts +2 -2
- package/dist/sol/types.d.mts +2 -2
- package/dist/trx/types.d.cts +2 -2
- package/dist/trx/types.d.mts +2 -2
- package/package.json +3 -8
- package/dist/api/v2/wrapper/index.cjs +0 -19
- package/dist/api/v2/wrapper/index.cjs.map +0 -1
- package/dist/api/v2/wrapper/index.d.cts +0 -3
- package/dist/api/v2/wrapper/index.d.cts.map +0 -1
- package/dist/api/v2/wrapper/index.d.mts +0 -3
- package/dist/api/v2/wrapper/index.d.mts.map +0 -1
- package/dist/api/v2/wrapper/index.mjs +0 -3
- package/dist/api/v2/wrapper/index.mjs.map +0 -1
- package/dist/api/v2/wrapper/keyring-account-registry.cjs +0 -135
- package/dist/api/v2/wrapper/keyring-account-registry.cjs.map +0 -1
- package/dist/api/v2/wrapper/keyring-account-registry.d.cts +0 -88
- package/dist/api/v2/wrapper/keyring-account-registry.d.cts.map +0 -1
- package/dist/api/v2/wrapper/keyring-account-registry.d.mts +0 -88
- package/dist/api/v2/wrapper/keyring-account-registry.d.mts.map +0 -1
- package/dist/api/v2/wrapper/keyring-account-registry.mjs +0 -131
- package/dist/api/v2/wrapper/keyring-account-registry.mjs.map +0 -1
- package/dist/api/v2/wrapper/keyring-wrapper.cjs +0 -134
- package/dist/api/v2/wrapper/keyring-wrapper.cjs.map +0 -1
- package/dist/api/v2/wrapper/keyring-wrapper.d.cts +0 -154
- package/dist/api/v2/wrapper/keyring-wrapper.d.cts.map +0 -1
- package/dist/api/v2/wrapper/keyring-wrapper.d.mts +0 -154
- package/dist/api/v2/wrapper/keyring-wrapper.d.mts.map +0 -1
- package/dist/api/v2/wrapper/keyring-wrapper.mjs +0 -130
- package/dist/api/v2/wrapper/keyring-wrapper.mjs.map +0 -1
- package/dist/eth/v2/eth-keyring-wrapper.cjs +0 -165
- package/dist/eth/v2/eth-keyring-wrapper.cjs.map +0 -1
- package/dist/eth/v2/eth-keyring-wrapper.d.cts +0 -54
- package/dist/eth/v2/eth-keyring-wrapper.d.cts.map +0 -1
- package/dist/eth/v2/eth-keyring-wrapper.d.mts +0 -54
- package/dist/eth/v2/eth-keyring-wrapper.d.mts.map +0 -1
- package/dist/eth/v2/eth-keyring-wrapper.mjs +0 -161
- package/dist/eth/v2/eth-keyring-wrapper.mjs.map +0 -1
- package/dist/eth/v2/index.cjs +0 -18
- package/dist/eth/v2/index.cjs.map +0 -1
- package/dist/eth/v2/index.d.cts +0 -2
- package/dist/eth/v2/index.d.cts.map +0 -1
- package/dist/eth/v2/index.d.mts +0 -2
- package/dist/eth/v2/index.d.mts.map +0 -1
- package/dist/eth/v2/index.mjs +0 -2
- package/dist/eth/v2/index.mjs.map +0 -1
package/dist/rpc.d.cts
CHANGED
|
@@ -31,8 +31,8 @@ export declare enum KeyringRpcMethod {
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function isKeyringRpcMethod(method: string): boolean;
|
|
33
33
|
export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
34
|
-
id: string | number | null;
|
|
35
34
|
method: "keyring_listAccounts";
|
|
35
|
+
id: string | number | null;
|
|
36
36
|
jsonrpc: "2.0";
|
|
37
37
|
}, {
|
|
38
38
|
method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
|
|
@@ -43,8 +43,6 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
|
|
43
43
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
44
44
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
45
45
|
id: string;
|
|
46
|
-
address: string;
|
|
47
|
-
scopes: `${string}:${string}`[];
|
|
48
46
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
49
47
|
entropy?: {
|
|
50
48
|
type: "mnemonic";
|
|
@@ -58,12 +56,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
|
58
56
|
};
|
|
59
57
|
exportable?: boolean;
|
|
60
58
|
};
|
|
59
|
+
address: string;
|
|
60
|
+
scopes: `${string}:${string}`[];
|
|
61
61
|
methods: string[];
|
|
62
62
|
}[], import("@metamask/superstruct").Struct<{
|
|
63
63
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
64
64
|
id: string;
|
|
65
|
-
address: string;
|
|
66
|
-
scopes: `${string}:${string}`[];
|
|
67
65
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
68
66
|
entropy?: {
|
|
69
67
|
type: "mnemonic";
|
|
@@ -77,6 +75,8 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
|
77
75
|
};
|
|
78
76
|
exportable?: boolean;
|
|
79
77
|
};
|
|
78
|
+
address: string;
|
|
79
|
+
scopes: `${string}:${string}`[];
|
|
80
80
|
methods: string[];
|
|
81
81
|
}, {
|
|
82
82
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -110,12 +110,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
|
110
110
|
}>>;
|
|
111
111
|
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
|
112
112
|
export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
113
|
-
id: string | number | null;
|
|
114
113
|
method: "keyring_getAccount";
|
|
114
|
+
id: string | number | null;
|
|
115
|
+
jsonrpc: "2.0";
|
|
115
116
|
params: {
|
|
116
117
|
id: string;
|
|
117
118
|
};
|
|
118
|
-
jsonrpc: "2.0";
|
|
119
119
|
}, {
|
|
120
120
|
method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
|
|
121
121
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -130,8 +130,6 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
|
130
130
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
131
131
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
132
132
|
id: string;
|
|
133
|
-
address: string;
|
|
134
|
-
scopes: `${string}:${string}`[];
|
|
135
133
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
136
134
|
entropy?: {
|
|
137
135
|
type: "mnemonic";
|
|
@@ -145,6 +143,8 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
145
143
|
};
|
|
146
144
|
exportable?: boolean;
|
|
147
145
|
};
|
|
146
|
+
address: string;
|
|
147
|
+
scopes: `${string}:${string}`[];
|
|
148
148
|
methods: string[];
|
|
149
149
|
}, {
|
|
150
150
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -178,12 +178,12 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
178
178
|
}>;
|
|
179
179
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
|
180
180
|
export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
181
|
-
id: string | number | null;
|
|
182
181
|
method: "keyring_createAccount";
|
|
182
|
+
id: string | number | null;
|
|
183
|
+
jsonrpc: "2.0";
|
|
183
184
|
params: {
|
|
184
185
|
options: Record<string, import("@metamask/utils").Json>;
|
|
185
186
|
};
|
|
186
|
-
jsonrpc: "2.0";
|
|
187
187
|
}, {
|
|
188
188
|
method: import("@metamask/superstruct").Struct<"keyring_createAccount", "keyring_createAccount">;
|
|
189
189
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -198,8 +198,6 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
|
198
198
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
199
199
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
200
200
|
id: string;
|
|
201
|
-
address: string;
|
|
202
|
-
scopes: `${string}:${string}`[];
|
|
203
201
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
204
202
|
entropy?: {
|
|
205
203
|
type: "mnemonic";
|
|
@@ -213,6 +211,8 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
|
213
211
|
};
|
|
214
212
|
exportable?: boolean;
|
|
215
213
|
};
|
|
214
|
+
address: string;
|
|
215
|
+
scopes: `${string}:${string}`[];
|
|
216
216
|
methods: string[];
|
|
217
217
|
}, {
|
|
218
218
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -246,8 +246,9 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
|
246
246
|
}>;
|
|
247
247
|
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
|
248
248
|
export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
249
|
-
id: string | number | null;
|
|
250
249
|
method: "keyring_createAccounts";
|
|
250
|
+
id: string | number | null;
|
|
251
|
+
jsonrpc: "2.0";
|
|
251
252
|
params: {
|
|
252
253
|
options: {
|
|
253
254
|
type: "bip44:derive-path";
|
|
@@ -263,11 +264,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
263
264
|
entropySource: string;
|
|
264
265
|
} | {
|
|
265
266
|
type: "bip44:derive-index-range";
|
|
266
|
-
entropySource: string;
|
|
267
267
|
range: {
|
|
268
268
|
from: number;
|
|
269
269
|
to: number;
|
|
270
270
|
};
|
|
271
|
+
entropySource: string;
|
|
271
272
|
} | {
|
|
272
273
|
type: "custom";
|
|
273
274
|
} | {
|
|
@@ -277,7 +278,6 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
277
278
|
accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
278
279
|
};
|
|
279
280
|
};
|
|
280
|
-
jsonrpc: "2.0";
|
|
281
281
|
}, {
|
|
282
282
|
method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
|
|
283
283
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -295,11 +295,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
295
295
|
entropySource: string;
|
|
296
296
|
} | {
|
|
297
297
|
type: "bip44:derive-index-range";
|
|
298
|
-
entropySource: string;
|
|
299
298
|
range: {
|
|
300
299
|
from: number;
|
|
301
300
|
to: number;
|
|
302
301
|
};
|
|
302
|
+
entropySource: string;
|
|
303
303
|
} | {
|
|
304
304
|
type: "custom";
|
|
305
305
|
} | {
|
|
@@ -323,11 +323,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
323
323
|
entropySource: string;
|
|
324
324
|
} | {
|
|
325
325
|
type: "bip44:derive-index-range";
|
|
326
|
-
entropySource: string;
|
|
327
326
|
range: {
|
|
328
327
|
from: number;
|
|
329
328
|
to: number;
|
|
330
329
|
};
|
|
330
|
+
entropySource: string;
|
|
331
331
|
} | {
|
|
332
332
|
type: "custom";
|
|
333
333
|
} | {
|
|
@@ -344,8 +344,6 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
|
|
|
344
344
|
export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
345
345
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
346
346
|
id: string;
|
|
347
|
-
address: string;
|
|
348
|
-
scopes: `${string}:${string}`[];
|
|
349
347
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
350
348
|
entropy?: {
|
|
351
349
|
type: "mnemonic";
|
|
@@ -359,12 +357,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
359
357
|
};
|
|
360
358
|
exportable?: boolean;
|
|
361
359
|
};
|
|
360
|
+
address: string;
|
|
361
|
+
scopes: `${string}:${string}`[];
|
|
362
362
|
methods: string[];
|
|
363
363
|
}[], import("@metamask/superstruct").Struct<{
|
|
364
364
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
365
365
|
id: string;
|
|
366
|
-
address: string;
|
|
367
|
-
scopes: `${string}:${string}`[];
|
|
368
366
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
369
367
|
entropy?: {
|
|
370
368
|
type: "mnemonic";
|
|
@@ -378,6 +376,8 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
378
376
|
};
|
|
379
377
|
exportable?: boolean;
|
|
380
378
|
};
|
|
379
|
+
address: string;
|
|
380
|
+
scopes: `${string}:${string}`[];
|
|
381
381
|
methods: string[];
|
|
382
382
|
}, {
|
|
383
383
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -411,12 +411,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
411
411
|
}>>;
|
|
412
412
|
export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
|
|
413
413
|
export declare const SetSelectedAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
414
|
-
id: string | number | null;
|
|
415
414
|
method: "keyring_setSelectedAccounts";
|
|
415
|
+
id: string | number | null;
|
|
416
|
+
jsonrpc: "2.0";
|
|
416
417
|
params: {
|
|
417
418
|
accounts: string[];
|
|
418
419
|
};
|
|
419
|
-
jsonrpc: "2.0";
|
|
420
420
|
}, {
|
|
421
421
|
method: import("@metamask/superstruct").Struct<"keyring_setSelectedAccounts", "keyring_setSelectedAccounts">;
|
|
422
422
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -431,14 +431,14 @@ export type SetSelectedAccountsRequest = Infer<typeof SetSelectedAccountsRequest
|
|
|
431
431
|
export declare const SetSelectedAccountsResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
432
432
|
export type SetSelectedAccountsResponse = Infer<typeof SetSelectedAccountsResponseStruct>;
|
|
433
433
|
export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
434
|
-
id: string | number | null;
|
|
435
434
|
method: "keyring_discoverAccounts";
|
|
435
|
+
id: string | number | null;
|
|
436
|
+
jsonrpc: "2.0";
|
|
436
437
|
params: {
|
|
437
438
|
groupIndex: number;
|
|
438
439
|
scopes: `${string}:${string}`[];
|
|
439
440
|
entropySource: string;
|
|
440
441
|
};
|
|
441
|
-
jsonrpc: "2.0";
|
|
442
442
|
}, {
|
|
443
443
|
method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
|
|
444
444
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -469,8 +469,9 @@ export declare const DiscoverAccountsResponseStruct: import("@metamask/superstru
|
|
|
469
469
|
}>>;
|
|
470
470
|
export type DiscoverAccountsResponse = Infer<typeof DiscoverAccountsResponseStruct>;
|
|
471
471
|
export declare const ListAccountTransactionsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
472
|
-
id: string | number | null;
|
|
473
472
|
method: "keyring_listAccountTransactions";
|
|
473
|
+
id: string | number | null;
|
|
474
|
+
jsonrpc: "2.0";
|
|
474
475
|
params: {
|
|
475
476
|
id: string;
|
|
476
477
|
pagination: {
|
|
@@ -478,7 +479,6 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
|
|
|
478
479
|
next?: string | null;
|
|
479
480
|
};
|
|
480
481
|
};
|
|
481
|
-
jsonrpc: "2.0";
|
|
482
482
|
}, {
|
|
483
483
|
method: import("@metamask/superstruct").Struct<"keyring_listAccountTransactions", "keyring_listAccountTransactions">;
|
|
484
484
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -502,19 +502,14 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
|
|
|
502
502
|
}>;
|
|
503
503
|
export type ListAccountTransactionsRequest = Infer<typeof ListAccountTransactionsRequestStruct>;
|
|
504
504
|
export declare const ListAccountTransactionsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
505
|
-
next: string | null;
|
|
506
505
|
data: {
|
|
507
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
506
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
508
507
|
id: string;
|
|
509
|
-
account: string;
|
|
510
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
511
|
-
timestamp: number | null;
|
|
512
|
-
chain: `${string}:${string}`;
|
|
513
508
|
from: {
|
|
514
509
|
address: string;
|
|
515
510
|
asset: {
|
|
516
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
517
511
|
unit: string;
|
|
512
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
518
513
|
amount: string;
|
|
519
514
|
fungible: true;
|
|
520
515
|
} | {
|
|
@@ -522,11 +517,19 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
522
517
|
fungible: false;
|
|
523
518
|
} | null;
|
|
524
519
|
}[];
|
|
520
|
+
events: {
|
|
521
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
522
|
+
timestamp: number | null;
|
|
523
|
+
}[];
|
|
524
|
+
chain: `${string}:${string}`;
|
|
525
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
526
|
+
account: string;
|
|
527
|
+
timestamp: number | null;
|
|
525
528
|
to: {
|
|
526
529
|
address: string;
|
|
527
530
|
asset: {
|
|
528
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
529
531
|
unit: string;
|
|
532
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
530
533
|
amount: string;
|
|
531
534
|
fungible: true;
|
|
532
535
|
} | {
|
|
@@ -537,8 +540,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
537
540
|
fees: {
|
|
538
541
|
type: "base" | "priority";
|
|
539
542
|
asset: {
|
|
540
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
541
543
|
unit: string;
|
|
544
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
542
545
|
amount: string;
|
|
543
546
|
fungible: true;
|
|
544
547
|
} | {
|
|
@@ -546,28 +549,21 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
546
549
|
fungible: false;
|
|
547
550
|
};
|
|
548
551
|
}[];
|
|
549
|
-
events: {
|
|
550
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
551
|
-
timestamp: number | null;
|
|
552
|
-
}[];
|
|
553
552
|
details?: {
|
|
554
553
|
origin?: string;
|
|
555
554
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
556
555
|
};
|
|
557
556
|
}[];
|
|
557
|
+
next: string | null;
|
|
558
558
|
}, {
|
|
559
559
|
data: import("@metamask/superstruct").Struct<{
|
|
560
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
560
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
561
561
|
id: string;
|
|
562
|
-
account: string;
|
|
563
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
564
|
-
timestamp: number | null;
|
|
565
|
-
chain: `${string}:${string}`;
|
|
566
562
|
from: {
|
|
567
563
|
address: string;
|
|
568
564
|
asset: {
|
|
569
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
570
565
|
unit: string;
|
|
566
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
571
567
|
amount: string;
|
|
572
568
|
fungible: true;
|
|
573
569
|
} | {
|
|
@@ -575,11 +571,19 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
575
571
|
fungible: false;
|
|
576
572
|
} | null;
|
|
577
573
|
}[];
|
|
574
|
+
events: {
|
|
575
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
576
|
+
timestamp: number | null;
|
|
577
|
+
}[];
|
|
578
|
+
chain: `${string}:${string}`;
|
|
579
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
580
|
+
account: string;
|
|
581
|
+
timestamp: number | null;
|
|
578
582
|
to: {
|
|
579
583
|
address: string;
|
|
580
584
|
asset: {
|
|
581
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
582
585
|
unit: string;
|
|
586
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
583
587
|
amount: string;
|
|
584
588
|
fungible: true;
|
|
585
589
|
} | {
|
|
@@ -590,8 +594,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
590
594
|
fees: {
|
|
591
595
|
type: "base" | "priority";
|
|
592
596
|
asset: {
|
|
593
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
594
597
|
unit: string;
|
|
598
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
595
599
|
amount: string;
|
|
596
600
|
fungible: true;
|
|
597
601
|
} | {
|
|
@@ -599,26 +603,18 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
599
603
|
fungible: false;
|
|
600
604
|
};
|
|
601
605
|
}[];
|
|
602
|
-
events: {
|
|
603
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
604
|
-
timestamp: number | null;
|
|
605
|
-
}[];
|
|
606
606
|
details?: {
|
|
607
607
|
origin?: string;
|
|
608
608
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
609
609
|
};
|
|
610
610
|
}[], import("@metamask/superstruct").Struct<{
|
|
611
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
611
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
612
612
|
id: string;
|
|
613
|
-
account: string;
|
|
614
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
615
|
-
timestamp: number | null;
|
|
616
|
-
chain: `${string}:${string}`;
|
|
617
613
|
from: {
|
|
618
614
|
address: string;
|
|
619
615
|
asset: {
|
|
620
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
621
616
|
unit: string;
|
|
617
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
622
618
|
amount: string;
|
|
623
619
|
fungible: true;
|
|
624
620
|
} | {
|
|
@@ -626,11 +622,19 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
626
622
|
fungible: false;
|
|
627
623
|
} | null;
|
|
628
624
|
}[];
|
|
625
|
+
events: {
|
|
626
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
627
|
+
timestamp: number | null;
|
|
628
|
+
}[];
|
|
629
|
+
chain: `${string}:${string}`;
|
|
630
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
631
|
+
account: string;
|
|
632
|
+
timestamp: number | null;
|
|
629
633
|
to: {
|
|
630
634
|
address: string;
|
|
631
635
|
asset: {
|
|
632
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
633
636
|
unit: string;
|
|
637
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
634
638
|
amount: string;
|
|
635
639
|
fungible: true;
|
|
636
640
|
} | {
|
|
@@ -641,8 +645,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
641
645
|
fees: {
|
|
642
646
|
type: "base" | "priority";
|
|
643
647
|
asset: {
|
|
644
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
645
648
|
unit: string;
|
|
649
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
646
650
|
amount: string;
|
|
647
651
|
fungible: true;
|
|
648
652
|
} | {
|
|
@@ -650,10 +654,6 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
650
654
|
fungible: false;
|
|
651
655
|
};
|
|
652
656
|
}[];
|
|
653
|
-
events: {
|
|
654
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
655
|
-
timestamp: number | null;
|
|
656
|
-
}[];
|
|
657
657
|
details?: {
|
|
658
658
|
origin?: string;
|
|
659
659
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
@@ -669,7 +669,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
669
669
|
failed: "failed";
|
|
670
670
|
}>;
|
|
671
671
|
timestamp: import("@metamask/superstruct").Struct<number | null, null>;
|
|
672
|
-
type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
672
|
+
type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw", {
|
|
673
|
+
unknown: "unknown";
|
|
673
674
|
send: "send";
|
|
674
675
|
receive: "receive";
|
|
675
676
|
swap: "swap";
|
|
@@ -677,13 +678,12 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
677
678
|
"bridge:receive": "bridge:receive";
|
|
678
679
|
"stake:deposit": "stake:deposit";
|
|
679
680
|
"stake:withdraw": "stake:withdraw";
|
|
680
|
-
unknown: "unknown";
|
|
681
681
|
}>;
|
|
682
682
|
from: import("@metamask/superstruct").Struct<{
|
|
683
683
|
address: string;
|
|
684
684
|
asset: {
|
|
685
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
686
685
|
unit: string;
|
|
686
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
687
687
|
amount: string;
|
|
688
688
|
fungible: true;
|
|
689
689
|
} | {
|
|
@@ -693,8 +693,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
693
693
|
}[], import("@metamask/superstruct").Struct<{
|
|
694
694
|
address: string;
|
|
695
695
|
asset: {
|
|
696
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
697
696
|
unit: string;
|
|
697
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
698
698
|
amount: string;
|
|
699
699
|
fungible: true;
|
|
700
700
|
} | {
|
|
@@ -704,8 +704,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
704
704
|
}, {
|
|
705
705
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
706
706
|
asset: import("@metamask/superstruct").Struct<{
|
|
707
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
708
707
|
unit: string;
|
|
708
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
709
709
|
amount: string;
|
|
710
710
|
fungible: true;
|
|
711
711
|
} | {
|
|
@@ -716,8 +716,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
716
716
|
to: import("@metamask/superstruct").Struct<{
|
|
717
717
|
address: string;
|
|
718
718
|
asset: {
|
|
719
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
720
719
|
unit: string;
|
|
720
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
721
721
|
amount: string;
|
|
722
722
|
fungible: true;
|
|
723
723
|
} | {
|
|
@@ -727,8 +727,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
727
727
|
}[], import("@metamask/superstruct").Struct<{
|
|
728
728
|
address: string;
|
|
729
729
|
asset: {
|
|
730
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
731
730
|
unit: string;
|
|
731
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
732
732
|
amount: string;
|
|
733
733
|
fungible: true;
|
|
734
734
|
} | {
|
|
@@ -738,8 +738,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
738
738
|
}, {
|
|
739
739
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
740
740
|
asset: import("@metamask/superstruct").Struct<{
|
|
741
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
742
741
|
unit: string;
|
|
742
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
743
743
|
amount: string;
|
|
744
744
|
fungible: true;
|
|
745
745
|
} | {
|
|
@@ -750,8 +750,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
750
750
|
fees: import("@metamask/superstruct").Struct<{
|
|
751
751
|
type: "base" | "priority";
|
|
752
752
|
asset: {
|
|
753
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
754
753
|
unit: string;
|
|
754
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
755
755
|
amount: string;
|
|
756
756
|
fungible: true;
|
|
757
757
|
} | {
|
|
@@ -761,8 +761,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
761
761
|
}[], import("@metamask/superstruct").Struct<{
|
|
762
762
|
type: "base" | "priority";
|
|
763
763
|
asset: {
|
|
764
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
765
764
|
unit: string;
|
|
765
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
766
766
|
amount: string;
|
|
767
767
|
fungible: true;
|
|
768
768
|
} | {
|
|
@@ -775,8 +775,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
775
775
|
priority: "priority";
|
|
776
776
|
}>;
|
|
777
777
|
asset: import("@metamask/superstruct").Struct<{
|
|
778
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
779
778
|
unit: string;
|
|
779
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
780
780
|
amount: string;
|
|
781
781
|
fungible: true;
|
|
782
782
|
} | {
|
|
@@ -815,12 +815,12 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
815
815
|
}>;
|
|
816
816
|
export type ListAccountTransactionsResponse = Infer<typeof ListAccountTransactionsResponseStruct>;
|
|
817
817
|
export declare const ListAccountAssetsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
818
|
-
id: string | number | null;
|
|
819
818
|
method: "keyring_listAccountAssets";
|
|
819
|
+
id: string | number | null;
|
|
820
|
+
jsonrpc: "2.0";
|
|
820
821
|
params: {
|
|
821
822
|
id: string;
|
|
822
823
|
};
|
|
823
|
-
jsonrpc: "2.0";
|
|
824
824
|
}, {
|
|
825
825
|
method: import("@metamask/superstruct").Struct<"keyring_listAccountAssets", "keyring_listAccountAssets">;
|
|
826
826
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -835,13 +835,13 @@ export type ListAccountAssetsRequest = Infer<typeof ListAccountAssetsRequestStru
|
|
|
835
835
|
export declare const ListAccountAssetsResponseStruct: import("@metamask/superstruct").Struct<(`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[], import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`, null>>;
|
|
836
836
|
export type ListAccountAssetsResponse = Infer<typeof ListAccountAssetsResponseStruct>;
|
|
837
837
|
export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
|
|
838
|
-
id: string | number | null;
|
|
839
838
|
method: "keyring_getAccountBalances";
|
|
839
|
+
id: string | number | null;
|
|
840
|
+
jsonrpc: "2.0";
|
|
840
841
|
params: {
|
|
841
842
|
id: string;
|
|
842
843
|
assets: `${string}:${string}/${string}:${string}`[];
|
|
843
844
|
};
|
|
844
|
-
jsonrpc: "2.0";
|
|
845
845
|
}, {
|
|
846
846
|
method: import("@metamask/superstruct").Struct<"keyring_getAccountBalances", "keyring_getAccountBalances">;
|
|
847
847
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -861,40 +861,40 @@ export declare const GetAccountBalancesResponseStruct: import("@metamask/superst
|
|
|
861
861
|
}>, null>;
|
|
862
862
|
export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
|
|
863
863
|
export declare const ResolveAccountAddressRequestStruct: import("@metamask/superstruct").Struct<{
|
|
864
|
-
id: string | number | null;
|
|
865
864
|
method: "keyring_resolveAccountAddress";
|
|
865
|
+
id: string | number | null;
|
|
866
|
+
jsonrpc: "2.0";
|
|
866
867
|
params: {
|
|
867
|
-
scope: `${string}:${string}`;
|
|
868
868
|
request: {
|
|
869
|
-
jsonrpc: "2.0";
|
|
870
|
-
id: string | number | null;
|
|
871
869
|
method: string;
|
|
872
|
-
|
|
870
|
+
id: string | number | null;
|
|
871
|
+
jsonrpc: "2.0";
|
|
872
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
873
873
|
};
|
|
874
|
+
scope: `${string}:${string}`;
|
|
874
875
|
};
|
|
875
|
-
jsonrpc: "2.0";
|
|
876
876
|
}, {
|
|
877
877
|
method: import("@metamask/superstruct").Struct<"keyring_resolveAccountAddress", "keyring_resolveAccountAddress">;
|
|
878
878
|
params: import("@metamask/superstruct").Struct<{
|
|
879
|
-
scope: `${string}:${string}`;
|
|
880
879
|
request: {
|
|
881
|
-
jsonrpc: "2.0";
|
|
882
|
-
id: string | number | null;
|
|
883
880
|
method: string;
|
|
884
|
-
|
|
881
|
+
id: string | number | null;
|
|
882
|
+
jsonrpc: "2.0";
|
|
883
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
885
884
|
};
|
|
885
|
+
scope: `${string}:${string}`;
|
|
886
886
|
}, {
|
|
887
887
|
scope: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
|
|
888
888
|
request: import("@metamask/superstruct").Struct<{
|
|
889
|
-
jsonrpc: "2.0";
|
|
890
|
-
id: string | number | null;
|
|
891
889
|
method: string;
|
|
892
|
-
|
|
890
|
+
id: string | number | null;
|
|
891
|
+
jsonrpc: "2.0";
|
|
892
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
893
893
|
}, {
|
|
894
894
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
895
895
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
896
896
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
897
|
-
params: import("@metamask/superstruct").Struct<import("@metamask/
|
|
897
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
898
898
|
}>;
|
|
899
899
|
}>;
|
|
900
900
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
@@ -908,13 +908,13 @@ export declare const ResolveAccountAddressResponseStruct: import("@metamask/supe
|
|
|
908
908
|
}>;
|
|
909
909
|
export type ResolveAccountAddressResponse = Infer<typeof ResolveAccountAddressResponseStruct>;
|
|
910
910
|
export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
|
|
911
|
-
id: string | number | null;
|
|
912
911
|
method: "keyring_filterAccountChains";
|
|
912
|
+
id: string | number | null;
|
|
913
|
+
jsonrpc: "2.0";
|
|
913
914
|
params: {
|
|
914
915
|
id: string;
|
|
915
916
|
chains: string[];
|
|
916
917
|
};
|
|
917
|
-
jsonrpc: "2.0";
|
|
918
918
|
}, {
|
|
919
919
|
method: import("@metamask/superstruct").Struct<"keyring_filterAccountChains", "keyring_filterAccountChains">;
|
|
920
920
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -931,14 +931,13 @@ export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>
|
|
|
931
931
|
export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
932
932
|
export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
|
|
933
933
|
export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
934
|
-
id: string | number | null;
|
|
935
934
|
method: "keyring_updateAccount";
|
|
935
|
+
id: string | number | null;
|
|
936
|
+
jsonrpc: "2.0";
|
|
936
937
|
params: {
|
|
937
938
|
account: {
|
|
938
939
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
939
940
|
id: string;
|
|
940
|
-
address: string;
|
|
941
|
-
scopes: `${string}:${string}`[];
|
|
942
941
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
943
942
|
entropy?: {
|
|
944
943
|
type: "mnemonic";
|
|
@@ -952,18 +951,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
952
951
|
};
|
|
953
952
|
exportable?: boolean;
|
|
954
953
|
};
|
|
954
|
+
address: string;
|
|
955
|
+
scopes: `${string}:${string}`[];
|
|
955
956
|
methods: string[];
|
|
956
957
|
};
|
|
957
958
|
};
|
|
958
|
-
jsonrpc: "2.0";
|
|
959
959
|
}, {
|
|
960
960
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
|
961
961
|
params: import("@metamask/superstruct").Struct<{
|
|
962
962
|
account: {
|
|
963
963
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
964
964
|
id: string;
|
|
965
|
-
address: string;
|
|
966
|
-
scopes: `${string}:${string}`[];
|
|
967
965
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
968
966
|
entropy?: {
|
|
969
967
|
type: "mnemonic";
|
|
@@ -977,14 +975,14 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
977
975
|
};
|
|
978
976
|
exportable?: boolean;
|
|
979
977
|
};
|
|
978
|
+
address: string;
|
|
979
|
+
scopes: `${string}:${string}`[];
|
|
980
980
|
methods: string[];
|
|
981
981
|
};
|
|
982
982
|
}, {
|
|
983
983
|
account: import("@metamask/superstruct").Struct<{
|
|
984
984
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
985
985
|
id: string;
|
|
986
|
-
address: string;
|
|
987
|
-
scopes: `${string}:${string}`[];
|
|
988
986
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
989
987
|
entropy?: {
|
|
990
988
|
type: "mnemonic";
|
|
@@ -998,6 +996,8 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
998
996
|
};
|
|
999
997
|
exportable?: boolean;
|
|
1000
998
|
};
|
|
999
|
+
address: string;
|
|
1000
|
+
scopes: `${string}:${string}`[];
|
|
1001
1001
|
methods: string[];
|
|
1002
1002
|
}, {
|
|
1003
1003
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -1037,12 +1037,12 @@ export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
|
|
|
1037
1037
|
export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
1038
1038
|
export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
|
|
1039
1039
|
export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1040
|
-
id: string | number | null;
|
|
1041
1040
|
method: "keyring_deleteAccount";
|
|
1041
|
+
id: string | number | null;
|
|
1042
|
+
jsonrpc: "2.0";
|
|
1042
1043
|
params: {
|
|
1043
1044
|
id: string;
|
|
1044
1045
|
};
|
|
1045
|
-
jsonrpc: "2.0";
|
|
1046
1046
|
}, {
|
|
1047
1047
|
method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
|
|
1048
1048
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -1057,12 +1057,12 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
|
|
|
1057
1057
|
export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
1058
1058
|
export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
|
|
1059
1059
|
export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1060
|
-
id: string | number | null;
|
|
1061
1060
|
method: "keyring_exportAccount";
|
|
1061
|
+
id: string | number | null;
|
|
1062
|
+
jsonrpc: "2.0";
|
|
1062
1063
|
params: {
|
|
1063
1064
|
id: string;
|
|
1064
1065
|
};
|
|
1065
|
-
jsonrpc: "2.0";
|
|
1066
1066
|
}, {
|
|
1067
1067
|
method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
|
|
1068
1068
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -1077,8 +1077,8 @@ export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
|
|
|
1077
1077
|
export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
1078
1078
|
export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
|
|
1079
1079
|
export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1080
|
-
id: string | number | null;
|
|
1081
1080
|
method: "keyring_listRequests";
|
|
1081
|
+
id: string | number | null;
|
|
1082
1082
|
jsonrpc: "2.0";
|
|
1083
1083
|
}, {
|
|
1084
1084
|
method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
|
|
@@ -1088,22 +1088,22 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
|
|
|
1088
1088
|
export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
|
|
1089
1089
|
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
1090
1090
|
id: string;
|
|
1091
|
-
scope: string;
|
|
1092
|
-
account: string;
|
|
1093
1091
|
origin: string;
|
|
1094
1092
|
request: {
|
|
1095
1093
|
method: string;
|
|
1096
1094
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1097
1095
|
};
|
|
1098
|
-
}[], import("@metamask/superstruct").Struct<{
|
|
1099
|
-
id: string;
|
|
1100
1096
|
scope: string;
|
|
1101
1097
|
account: string;
|
|
1098
|
+
}[], import("@metamask/superstruct").Struct<{
|
|
1099
|
+
id: string;
|
|
1102
1100
|
origin: string;
|
|
1103
1101
|
request: {
|
|
1104
1102
|
method: string;
|
|
1105
1103
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1106
1104
|
};
|
|
1105
|
+
scope: string;
|
|
1106
|
+
account: string;
|
|
1107
1107
|
}, {
|
|
1108
1108
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
1109
1109
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -1114,17 +1114,17 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
|
1114
1114
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1115
1115
|
}, {
|
|
1116
1116
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
1117
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/
|
|
1117
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
1118
1118
|
}>;
|
|
1119
1119
|
}>>;
|
|
1120
1120
|
export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
|
|
1121
1121
|
export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1122
|
-
id: string | number | null;
|
|
1123
1122
|
method: "keyring_getRequest";
|
|
1123
|
+
id: string | number | null;
|
|
1124
|
+
jsonrpc: "2.0";
|
|
1124
1125
|
params: {
|
|
1125
1126
|
id: string;
|
|
1126
1127
|
};
|
|
1127
|
-
jsonrpc: "2.0";
|
|
1128
1128
|
}, {
|
|
1129
1129
|
method: import("@metamask/superstruct").Struct<"keyring_getRequest", "keyring_getRequest">;
|
|
1130
1130
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -1138,13 +1138,13 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
|
|
|
1138
1138
|
export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
|
|
1139
1139
|
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
|
1140
1140
|
id: string;
|
|
1141
|
-
scope: string;
|
|
1142
|
-
account: string;
|
|
1143
1141
|
origin: string;
|
|
1144
1142
|
request: {
|
|
1145
1143
|
method: string;
|
|
1146
1144
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1147
1145
|
};
|
|
1146
|
+
scope: string;
|
|
1147
|
+
account: string;
|
|
1148
1148
|
}, {
|
|
1149
1149
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
1150
1150
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -1155,35 +1155,35 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
|
|
|
1155
1155
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1156
1156
|
}, {
|
|
1157
1157
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
1158
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/
|
|
1158
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
1159
1159
|
}>;
|
|
1160
1160
|
}>;
|
|
1161
1161
|
export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
|
|
1162
1162
|
export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1163
|
-
id: string | number | null;
|
|
1164
1163
|
method: "keyring_submitRequest";
|
|
1164
|
+
id: string | number | null;
|
|
1165
|
+
jsonrpc: "2.0";
|
|
1165
1166
|
params: {
|
|
1166
1167
|
id: string;
|
|
1167
|
-
scope: string;
|
|
1168
|
-
account: string;
|
|
1169
1168
|
origin: string;
|
|
1170
1169
|
request: {
|
|
1171
1170
|
method: string;
|
|
1172
1171
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1173
1172
|
};
|
|
1173
|
+
scope: string;
|
|
1174
|
+
account: string;
|
|
1174
1175
|
};
|
|
1175
|
-
jsonrpc: "2.0";
|
|
1176
1176
|
}, {
|
|
1177
1177
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
|
1178
1178
|
params: import("@metamask/superstruct").Struct<{
|
|
1179
1179
|
id: string;
|
|
1180
|
-
scope: string;
|
|
1181
|
-
account: string;
|
|
1182
1180
|
origin: string;
|
|
1183
1181
|
request: {
|
|
1184
1182
|
method: string;
|
|
1185
1183
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1186
1184
|
};
|
|
1185
|
+
scope: string;
|
|
1186
|
+
account: string;
|
|
1187
1187
|
}, {
|
|
1188
1188
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
1189
1189
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -1194,7 +1194,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
1194
1194
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1195
1195
|
}, {
|
|
1196
1196
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
1197
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/
|
|
1197
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
1198
1198
|
}>;
|
|
1199
1199
|
}>;
|
|
1200
1200
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
@@ -1208,23 +1208,23 @@ export declare const SubmitRequestResponseStruct: import("@metamask/superstruct"
|
|
|
1208
1208
|
url?: string;
|
|
1209
1209
|
};
|
|
1210
1210
|
} | {
|
|
1211
|
-
pending: false;
|
|
1212
1211
|
result: import("@metamask/utils").Json;
|
|
1212
|
+
pending: false;
|
|
1213
1213
|
}, null>;
|
|
1214
1214
|
export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
|
|
1215
1215
|
export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1216
|
-
id: string | number | null;
|
|
1217
1216
|
method: "keyring_approveRequest";
|
|
1217
|
+
id: string | number | null;
|
|
1218
|
+
jsonrpc: "2.0";
|
|
1218
1219
|
params: {
|
|
1219
|
-
id: string;
|
|
1220
1220
|
data: Record<string, import("@metamask/utils").Json>;
|
|
1221
|
+
id: string;
|
|
1221
1222
|
};
|
|
1222
|
-
jsonrpc: "2.0";
|
|
1223
1223
|
}, {
|
|
1224
1224
|
method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
|
|
1225
1225
|
params: import("@metamask/superstruct").Struct<{
|
|
1226
|
-
id: string;
|
|
1227
1226
|
data: Record<string, import("@metamask/utils").Json>;
|
|
1227
|
+
id: string;
|
|
1228
1228
|
}, {
|
|
1229
1229
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
1230
1230
|
data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
@@ -1236,12 +1236,12 @@ export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
|
|
|
1236
1236
|
export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
1237
1237
|
export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
|
|
1238
1238
|
export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1239
|
-
id: string | number | null;
|
|
1240
1239
|
method: "keyring_rejectRequest";
|
|
1240
|
+
id: string | number | null;
|
|
1241
|
+
jsonrpc: "2.0";
|
|
1241
1242
|
params: {
|
|
1242
1243
|
id: string;
|
|
1243
1244
|
};
|
|
1244
|
-
jsonrpc: "2.0";
|
|
1245
1245
|
}, {
|
|
1246
1246
|
method: import("@metamask/superstruct").Struct<"keyring_rejectRequest", "keyring_rejectRequest">;
|
|
1247
1247
|
params: import("@metamask/superstruct").Struct<{
|