@metamask-previews/keyring-api 23.0.1-7275dbc → 23.1.0-862665d
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 +23 -8
- package/dist/api/account-options.cjs +4 -0
- package/dist/api/account-options.cjs.map +1 -1
- package/dist/api/account-options.d.cts +4 -0
- package/dist/api/account-options.d.cts.map +1 -1
- package/dist/api/account-options.d.mts +4 -0
- package/dist/api/account-options.d.mts.map +1 -1
- package/dist/api/account-options.mjs +4 -0
- 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.cjs +5 -0
- package/dist/api/transaction.cjs.map +1 -1
- package/dist/api/transaction.d.cts +77 -71
- package/dist/api/transaction.d.cts.map +1 -1
- package/dist/api/transaction.d.mts +77 -71
- package/dist/api/transaction.d.mts.map +1 -1
- package/dist/api/transaction.mjs +5 -0
- package/dist/api/transaction.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/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/eth/utils.cjs +2 -1
- package/dist/eth/utils.cjs.map +1 -1
- package/dist/events.d.cts +56 -56
- package/dist/events.d.mts +56 -56
- package/dist/rpc.cjs +2 -2
- package/dist/rpc.cjs.map +1 -1
- package/dist/rpc.d.cts +132 -131
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +132 -131
- package/dist/rpc.d.mts.map +1 -1
- 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/dist/v2/api/create-account/bip44.d.cts +1 -1
- package/dist/v2/api/create-account/bip44.d.mts +1 -1
- package/dist/v2/api/create-account/index.cjs +2 -2
- package/dist/v2/api/create-account/index.cjs.map +1 -1
- package/dist/v2/api/create-account/index.d.cts +1 -1
- package/dist/v2/api/create-account/index.d.mts +1 -1
- package/dist/v2/api/keyring-rpc.cjs +2 -2
- package/dist/v2/api/keyring-rpc.cjs.map +1 -1
- package/dist/v2/api/keyring-rpc.d.cts +28 -28
- package/dist/v2/api/keyring-rpc.d.mts +28 -28
- package/dist/xlm/types.cjs +1 -0
- package/dist/xlm/types.cjs.map +1 -1
- package/dist/xlm/types.d.cts +5 -3
- package/dist/xlm/types.d.cts.map +1 -1
- package/dist/xlm/types.d.mts +5 -3
- package/dist/xlm/types.d.mts.map +1 -1
- package/dist/xlm/types.mjs +1 -0
- package/dist/xlm/types.mjs.map +1 -1
- package/package.json +3 -3
package/dist/rpc.d.cts
CHANGED
|
@@ -31,8 +31,8 @@ export declare enum KeyringRpcMethod {
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function isKeyringRpcMethod(method: string): method is KeyringRpcMethod;
|
|
33
33
|
export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
34
|
-
method: "keyring_listAccounts";
|
|
35
34
|
id: string | number | null;
|
|
35
|
+
method: "keyring_listAccounts";
|
|
36
36
|
jsonrpc: "2.0";
|
|
37
37
|
}, {
|
|
38
38
|
method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
|
|
@@ -43,6 +43,8 @@ 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" | "stellar:account" | "any:account";
|
|
45
45
|
id: string;
|
|
46
|
+
address: string;
|
|
47
|
+
scopes: `${string}:${string}`[];
|
|
46
48
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
47
49
|
entropy?: {
|
|
48
50
|
type: "mnemonic";
|
|
@@ -56,12 +58,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
|
56
58
|
};
|
|
57
59
|
exportable?: boolean;
|
|
58
60
|
};
|
|
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" | "stellar:account" | "any:account";
|
|
64
64
|
id: string;
|
|
65
|
+
address: string;
|
|
66
|
+
scopes: `${string}:${string}`[];
|
|
65
67
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
66
68
|
entropy?: {
|
|
67
69
|
type: "mnemonic";
|
|
@@ -75,8 +77,6 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
|
75
77
|
};
|
|
76
78
|
exportable?: boolean;
|
|
77
79
|
};
|
|
78
|
-
address: string;
|
|
79
|
-
scopes: `${string}:${string}`[];
|
|
80
80
|
methods: string[];
|
|
81
81
|
}, {
|
|
82
82
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -111,12 +111,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
|
111
111
|
}>>;
|
|
112
112
|
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
|
113
113
|
export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
114
|
-
method: "keyring_getAccount";
|
|
115
114
|
id: string | number | null;
|
|
116
|
-
|
|
115
|
+
method: "keyring_getAccount";
|
|
117
116
|
params: {
|
|
118
117
|
id: string;
|
|
119
118
|
};
|
|
119
|
+
jsonrpc: "2.0";
|
|
120
120
|
}, {
|
|
121
121
|
method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
|
|
122
122
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -131,6 +131,8 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
|
131
131
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
132
132
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
133
133
|
id: string;
|
|
134
|
+
address: string;
|
|
135
|
+
scopes: `${string}:${string}`[];
|
|
134
136
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
135
137
|
entropy?: {
|
|
136
138
|
type: "mnemonic";
|
|
@@ -144,8 +146,6 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
144
146
|
};
|
|
145
147
|
exportable?: boolean;
|
|
146
148
|
};
|
|
147
|
-
address: string;
|
|
148
|
-
scopes: `${string}:${string}`[];
|
|
149
149
|
methods: string[];
|
|
150
150
|
}, {
|
|
151
151
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -180,12 +180,12 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
|
180
180
|
}>;
|
|
181
181
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
|
182
182
|
export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
183
|
-
method: "keyring_createAccount";
|
|
184
183
|
id: string | number | null;
|
|
185
|
-
|
|
184
|
+
method: "keyring_createAccount";
|
|
186
185
|
params: {
|
|
187
186
|
options: Record<string, import("@metamask/utils").Json>;
|
|
188
187
|
};
|
|
188
|
+
jsonrpc: "2.0";
|
|
189
189
|
}, {
|
|
190
190
|
method: import("@metamask/superstruct").Struct<"keyring_createAccount", "keyring_createAccount">;
|
|
191
191
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -200,6 +200,8 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
|
200
200
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
|
201
201
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
202
202
|
id: string;
|
|
203
|
+
address: string;
|
|
204
|
+
scopes: `${string}:${string}`[];
|
|
203
205
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
204
206
|
entropy?: {
|
|
205
207
|
type: "mnemonic";
|
|
@@ -213,8 +215,6 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
|
213
215
|
};
|
|
214
216
|
exportable?: boolean;
|
|
215
217
|
};
|
|
216
|
-
address: string;
|
|
217
|
-
scopes: `${string}:${string}`[];
|
|
218
218
|
methods: string[];
|
|
219
219
|
}, {
|
|
220
220
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -249,9 +249,8 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
|
249
249
|
}>;
|
|
250
250
|
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
|
251
251
|
export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
252
|
-
method: "keyring_createAccounts";
|
|
253
252
|
id: string | number | null;
|
|
254
|
-
|
|
253
|
+
method: "keyring_createAccounts";
|
|
255
254
|
params: {
|
|
256
255
|
options: {
|
|
257
256
|
type: "bip44:derive-path";
|
|
@@ -267,11 +266,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
267
266
|
entropySource: string;
|
|
268
267
|
} | {
|
|
269
268
|
type: "bip44:derive-index-range";
|
|
269
|
+
entropySource: string;
|
|
270
270
|
range: {
|
|
271
271
|
from: number;
|
|
272
272
|
to: number;
|
|
273
273
|
};
|
|
274
|
-
entropySource: string;
|
|
275
274
|
} | {
|
|
276
275
|
type: "custom";
|
|
277
276
|
} | {
|
|
@@ -281,6 +280,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
281
280
|
accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
282
281
|
};
|
|
283
282
|
};
|
|
283
|
+
jsonrpc: "2.0";
|
|
284
284
|
}, {
|
|
285
285
|
method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
|
|
286
286
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -298,11 +298,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
298
298
|
entropySource: string;
|
|
299
299
|
} | {
|
|
300
300
|
type: "bip44:derive-index-range";
|
|
301
|
+
entropySource: string;
|
|
301
302
|
range: {
|
|
302
303
|
from: number;
|
|
303
304
|
to: number;
|
|
304
305
|
};
|
|
305
|
-
entropySource: string;
|
|
306
306
|
} | {
|
|
307
307
|
type: "custom";
|
|
308
308
|
} | {
|
|
@@ -326,11 +326,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
|
|
|
326
326
|
entropySource: string;
|
|
327
327
|
} | {
|
|
328
328
|
type: "bip44:derive-index-range";
|
|
329
|
+
entropySource: string;
|
|
329
330
|
range: {
|
|
330
331
|
from: number;
|
|
331
332
|
to: number;
|
|
332
333
|
};
|
|
333
|
-
entropySource: string;
|
|
334
334
|
} | {
|
|
335
335
|
type: "custom";
|
|
336
336
|
} | {
|
|
@@ -347,6 +347,8 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
|
|
|
347
347
|
export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
348
348
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
349
349
|
id: string;
|
|
350
|
+
address: string;
|
|
351
|
+
scopes: `${string}:${string}`[];
|
|
350
352
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
351
353
|
entropy?: {
|
|
352
354
|
type: "mnemonic";
|
|
@@ -360,12 +362,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
360
362
|
};
|
|
361
363
|
exportable?: boolean;
|
|
362
364
|
};
|
|
363
|
-
address: string;
|
|
364
|
-
scopes: `${string}:${string}`[];
|
|
365
365
|
methods: string[];
|
|
366
366
|
}[], import("@metamask/superstruct").Struct<{
|
|
367
367
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
368
368
|
id: string;
|
|
369
|
+
address: string;
|
|
370
|
+
scopes: `${string}:${string}`[];
|
|
369
371
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
370
372
|
entropy?: {
|
|
371
373
|
type: "mnemonic";
|
|
@@ -379,8 +381,6 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
379
381
|
};
|
|
380
382
|
exportable?: boolean;
|
|
381
383
|
};
|
|
382
|
-
address: string;
|
|
383
|
-
scopes: `${string}:${string}`[];
|
|
384
384
|
methods: string[];
|
|
385
385
|
}, {
|
|
386
386
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -415,12 +415,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
|
|
|
415
415
|
}>>;
|
|
416
416
|
export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
|
|
417
417
|
export declare const SetSelectedAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
418
|
-
method: "keyring_setSelectedAccounts";
|
|
419
418
|
id: string | number | null;
|
|
420
|
-
|
|
419
|
+
method: "keyring_setSelectedAccounts";
|
|
421
420
|
params: {
|
|
422
421
|
accounts: string[];
|
|
423
422
|
};
|
|
423
|
+
jsonrpc: "2.0";
|
|
424
424
|
}, {
|
|
425
425
|
method: import("@metamask/superstruct").Struct<"keyring_setSelectedAccounts", "keyring_setSelectedAccounts">;
|
|
426
426
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -435,14 +435,14 @@ export type SetSelectedAccountsRequest = Infer<typeof SetSelectedAccountsRequest
|
|
|
435
435
|
export declare const SetSelectedAccountsResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
436
436
|
export type SetSelectedAccountsResponse = Infer<typeof SetSelectedAccountsResponseStruct>;
|
|
437
437
|
export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
438
|
-
method: "keyring_discoverAccounts";
|
|
439
438
|
id: string | number | null;
|
|
440
|
-
|
|
439
|
+
method: "keyring_discoverAccounts";
|
|
441
440
|
params: {
|
|
442
441
|
groupIndex: number;
|
|
443
442
|
scopes: `${string}:${string}`[];
|
|
444
443
|
entropySource: string;
|
|
445
444
|
};
|
|
445
|
+
jsonrpc: "2.0";
|
|
446
446
|
}, {
|
|
447
447
|
method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
|
|
448
448
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -473,9 +473,8 @@ export declare const DiscoverAccountsResponseStruct: import("@metamask/superstru
|
|
|
473
473
|
}>>;
|
|
474
474
|
export type DiscoverAccountsResponse = Infer<typeof DiscoverAccountsResponseStruct>;
|
|
475
475
|
export declare const ListAccountTransactionsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
476
|
-
method: "keyring_listAccountTransactions";
|
|
477
476
|
id: string | number | null;
|
|
478
|
-
|
|
477
|
+
method: "keyring_listAccountTransactions";
|
|
479
478
|
params: {
|
|
480
479
|
id: string;
|
|
481
480
|
pagination: {
|
|
@@ -483,6 +482,7 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
|
|
|
483
482
|
next?: string | null;
|
|
484
483
|
};
|
|
485
484
|
};
|
|
485
|
+
jsonrpc: "2.0";
|
|
486
486
|
}, {
|
|
487
487
|
method: import("@metamask/superstruct").Struct<"keyring_listAccountTransactions", "keyring_listAccountTransactions">;
|
|
488
488
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -506,14 +506,19 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
|
|
|
506
506
|
}>;
|
|
507
507
|
export type ListAccountTransactionsRequest = Infer<typeof ListAccountTransactionsRequestStruct>;
|
|
508
508
|
export declare const ListAccountTransactionsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
509
|
+
next: string | null;
|
|
509
510
|
data: {
|
|
510
|
-
type: "
|
|
511
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
511
512
|
id: string;
|
|
513
|
+
account: string;
|
|
514
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
515
|
+
timestamp: number | null;
|
|
516
|
+
chain: `${string}:${string}`;
|
|
512
517
|
from: {
|
|
513
518
|
address: string;
|
|
514
519
|
asset: {
|
|
515
|
-
unit: string;
|
|
516
520
|
type: `${string}:${string}/${string}:${string}`;
|
|
521
|
+
unit: string;
|
|
517
522
|
amount: string;
|
|
518
523
|
fungible: true;
|
|
519
524
|
} | {
|
|
@@ -521,19 +526,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
521
526
|
fungible: false;
|
|
522
527
|
} | null;
|
|
523
528
|
}[];
|
|
524
|
-
events: {
|
|
525
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
526
|
-
timestamp: number | null;
|
|
527
|
-
}[];
|
|
528
|
-
chain: `${string}:${string}`;
|
|
529
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
530
|
-
account: string;
|
|
531
|
-
timestamp: number | null;
|
|
532
529
|
to: {
|
|
533
530
|
address: string;
|
|
534
531
|
asset: {
|
|
535
|
-
unit: string;
|
|
536
532
|
type: `${string}:${string}/${string}:${string}`;
|
|
533
|
+
unit: string;
|
|
537
534
|
amount: string;
|
|
538
535
|
fungible: true;
|
|
539
536
|
} | {
|
|
@@ -544,8 +541,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
544
541
|
fees: {
|
|
545
542
|
type: "base" | "priority";
|
|
546
543
|
asset: {
|
|
547
|
-
unit: string;
|
|
548
544
|
type: `${string}:${string}/${string}:${string}`;
|
|
545
|
+
unit: string;
|
|
549
546
|
amount: string;
|
|
550
547
|
fungible: true;
|
|
551
548
|
} | {
|
|
@@ -553,21 +550,28 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
553
550
|
fungible: false;
|
|
554
551
|
};
|
|
555
552
|
}[];
|
|
553
|
+
events: {
|
|
554
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
555
|
+
timestamp: number | null;
|
|
556
|
+
}[];
|
|
556
557
|
details?: {
|
|
557
558
|
origin?: string;
|
|
558
559
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
559
560
|
};
|
|
560
561
|
}[];
|
|
561
|
-
next: string | null;
|
|
562
562
|
}, {
|
|
563
563
|
data: import("@metamask/superstruct").Struct<{
|
|
564
|
-
type: "
|
|
564
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
565
565
|
id: string;
|
|
566
|
+
account: string;
|
|
567
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
568
|
+
timestamp: number | null;
|
|
569
|
+
chain: `${string}:${string}`;
|
|
566
570
|
from: {
|
|
567
571
|
address: string;
|
|
568
572
|
asset: {
|
|
569
|
-
unit: string;
|
|
570
573
|
type: `${string}:${string}/${string}:${string}`;
|
|
574
|
+
unit: string;
|
|
571
575
|
amount: string;
|
|
572
576
|
fungible: true;
|
|
573
577
|
} | {
|
|
@@ -575,19 +579,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
575
579
|
fungible: false;
|
|
576
580
|
} | null;
|
|
577
581
|
}[];
|
|
578
|
-
events: {
|
|
579
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
580
|
-
timestamp: number | null;
|
|
581
|
-
}[];
|
|
582
|
-
chain: `${string}:${string}`;
|
|
583
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
584
|
-
account: string;
|
|
585
|
-
timestamp: number | null;
|
|
586
582
|
to: {
|
|
587
583
|
address: string;
|
|
588
584
|
asset: {
|
|
589
|
-
unit: string;
|
|
590
585
|
type: `${string}:${string}/${string}:${string}`;
|
|
586
|
+
unit: string;
|
|
591
587
|
amount: string;
|
|
592
588
|
fungible: true;
|
|
593
589
|
} | {
|
|
@@ -598,8 +594,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
598
594
|
fees: {
|
|
599
595
|
type: "base" | "priority";
|
|
600
596
|
asset: {
|
|
601
|
-
unit: string;
|
|
602
597
|
type: `${string}:${string}/${string}:${string}`;
|
|
598
|
+
unit: string;
|
|
603
599
|
amount: string;
|
|
604
600
|
fungible: true;
|
|
605
601
|
} | {
|
|
@@ -607,18 +603,26 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
607
603
|
fungible: false;
|
|
608
604
|
};
|
|
609
605
|
}[];
|
|
606
|
+
events: {
|
|
607
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
608
|
+
timestamp: number | null;
|
|
609
|
+
}[];
|
|
610
610
|
details?: {
|
|
611
611
|
origin?: string;
|
|
612
612
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
613
613
|
};
|
|
614
614
|
}[], import("@metamask/superstruct").Struct<{
|
|
615
|
-
type: "
|
|
615
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
616
616
|
id: string;
|
|
617
|
+
account: string;
|
|
618
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
619
|
+
timestamp: number | null;
|
|
620
|
+
chain: `${string}:${string}`;
|
|
617
621
|
from: {
|
|
618
622
|
address: string;
|
|
619
623
|
asset: {
|
|
620
|
-
unit: string;
|
|
621
624
|
type: `${string}:${string}/${string}:${string}`;
|
|
625
|
+
unit: string;
|
|
622
626
|
amount: string;
|
|
623
627
|
fungible: true;
|
|
624
628
|
} | {
|
|
@@ -626,19 +630,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
626
630
|
fungible: false;
|
|
627
631
|
} | null;
|
|
628
632
|
}[];
|
|
629
|
-
events: {
|
|
630
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
631
|
-
timestamp: number | null;
|
|
632
|
-
}[];
|
|
633
|
-
chain: `${string}:${string}`;
|
|
634
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
635
|
-
account: string;
|
|
636
|
-
timestamp: number | null;
|
|
637
633
|
to: {
|
|
638
634
|
address: string;
|
|
639
635
|
asset: {
|
|
640
|
-
unit: string;
|
|
641
636
|
type: `${string}:${string}/${string}:${string}`;
|
|
637
|
+
unit: string;
|
|
642
638
|
amount: string;
|
|
643
639
|
fungible: true;
|
|
644
640
|
} | {
|
|
@@ -649,8 +645,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
649
645
|
fees: {
|
|
650
646
|
type: "base" | "priority";
|
|
651
647
|
asset: {
|
|
652
|
-
unit: string;
|
|
653
648
|
type: `${string}:${string}/${string}:${string}`;
|
|
649
|
+
unit: string;
|
|
654
650
|
amount: string;
|
|
655
651
|
fungible: true;
|
|
656
652
|
} | {
|
|
@@ -658,6 +654,10 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
658
654
|
fungible: false;
|
|
659
655
|
};
|
|
660
656
|
}[];
|
|
657
|
+
events: {
|
|
658
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
659
|
+
timestamp: number | null;
|
|
660
|
+
}[];
|
|
661
661
|
details?: {
|
|
662
662
|
origin?: string;
|
|
663
663
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
@@ -673,8 +673,7 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
673
673
|
failed: "failed";
|
|
674
674
|
}>;
|
|
675
675
|
timestamp: import("@metamask/superstruct").Struct<number | null, null>;
|
|
676
|
-
type: import("@metamask/superstruct").Struct<"
|
|
677
|
-
unknown: "unknown";
|
|
676
|
+
type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown", {
|
|
678
677
|
send: "send";
|
|
679
678
|
receive: "receive";
|
|
680
679
|
swap: "swap";
|
|
@@ -682,12 +681,14 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
682
681
|
"bridge:receive": "bridge:receive";
|
|
683
682
|
"stake:deposit": "stake:deposit";
|
|
684
683
|
"stake:withdraw": "stake:withdraw";
|
|
684
|
+
"token:approve": "token:approve";
|
|
685
|
+
unknown: "unknown";
|
|
685
686
|
}>;
|
|
686
687
|
from: import("@metamask/superstruct").Struct<{
|
|
687
688
|
address: string;
|
|
688
689
|
asset: {
|
|
689
|
-
unit: string;
|
|
690
690
|
type: `${string}:${string}/${string}:${string}`;
|
|
691
|
+
unit: string;
|
|
691
692
|
amount: string;
|
|
692
693
|
fungible: true;
|
|
693
694
|
} | {
|
|
@@ -697,8 +698,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
697
698
|
}[], import("@metamask/superstruct").Struct<{
|
|
698
699
|
address: string;
|
|
699
700
|
asset: {
|
|
700
|
-
unit: string;
|
|
701
701
|
type: `${string}:${string}/${string}:${string}`;
|
|
702
|
+
unit: string;
|
|
702
703
|
amount: string;
|
|
703
704
|
fungible: true;
|
|
704
705
|
} | {
|
|
@@ -708,8 +709,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
708
709
|
}, {
|
|
709
710
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
710
711
|
asset: import("@metamask/superstruct").Struct<{
|
|
711
|
-
unit: string;
|
|
712
712
|
type: `${string}:${string}/${string}:${string}`;
|
|
713
|
+
unit: string;
|
|
713
714
|
amount: string;
|
|
714
715
|
fungible: true;
|
|
715
716
|
} | {
|
|
@@ -720,8 +721,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
720
721
|
to: import("@metamask/superstruct").Struct<{
|
|
721
722
|
address: string;
|
|
722
723
|
asset: {
|
|
723
|
-
unit: string;
|
|
724
724
|
type: `${string}:${string}/${string}:${string}`;
|
|
725
|
+
unit: string;
|
|
725
726
|
amount: string;
|
|
726
727
|
fungible: true;
|
|
727
728
|
} | {
|
|
@@ -731,8 +732,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
731
732
|
}[], import("@metamask/superstruct").Struct<{
|
|
732
733
|
address: string;
|
|
733
734
|
asset: {
|
|
734
|
-
unit: string;
|
|
735
735
|
type: `${string}:${string}/${string}:${string}`;
|
|
736
|
+
unit: string;
|
|
736
737
|
amount: string;
|
|
737
738
|
fungible: true;
|
|
738
739
|
} | {
|
|
@@ -742,8 +743,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
742
743
|
}, {
|
|
743
744
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
744
745
|
asset: import("@metamask/superstruct").Struct<{
|
|
745
|
-
unit: string;
|
|
746
746
|
type: `${string}:${string}/${string}:${string}`;
|
|
747
|
+
unit: string;
|
|
747
748
|
amount: string;
|
|
748
749
|
fungible: true;
|
|
749
750
|
} | {
|
|
@@ -754,8 +755,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
754
755
|
fees: import("@metamask/superstruct").Struct<{
|
|
755
756
|
type: "base" | "priority";
|
|
756
757
|
asset: {
|
|
757
|
-
unit: string;
|
|
758
758
|
type: `${string}:${string}/${string}:${string}`;
|
|
759
|
+
unit: string;
|
|
759
760
|
amount: string;
|
|
760
761
|
fungible: true;
|
|
761
762
|
} | {
|
|
@@ -765,8 +766,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
765
766
|
}[], import("@metamask/superstruct").Struct<{
|
|
766
767
|
type: "base" | "priority";
|
|
767
768
|
asset: {
|
|
768
|
-
unit: string;
|
|
769
769
|
type: `${string}:${string}/${string}:${string}`;
|
|
770
|
+
unit: string;
|
|
770
771
|
amount: string;
|
|
771
772
|
fungible: true;
|
|
772
773
|
} | {
|
|
@@ -779,8 +780,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
779
780
|
priority: "priority";
|
|
780
781
|
}>;
|
|
781
782
|
asset: import("@metamask/superstruct").Struct<{
|
|
782
|
-
unit: string;
|
|
783
783
|
type: `${string}:${string}/${string}:${string}`;
|
|
784
|
+
unit: string;
|
|
784
785
|
amount: string;
|
|
785
786
|
fungible: true;
|
|
786
787
|
} | {
|
|
@@ -819,12 +820,12 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
|
|
|
819
820
|
}>;
|
|
820
821
|
export type ListAccountTransactionsResponse = Infer<typeof ListAccountTransactionsResponseStruct>;
|
|
821
822
|
export declare const ListAccountAssetsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
822
|
-
method: "keyring_listAccountAssets";
|
|
823
823
|
id: string | number | null;
|
|
824
|
-
|
|
824
|
+
method: "keyring_listAccountAssets";
|
|
825
825
|
params: {
|
|
826
826
|
id: string;
|
|
827
827
|
};
|
|
828
|
+
jsonrpc: "2.0";
|
|
828
829
|
}, {
|
|
829
830
|
method: import("@metamask/superstruct").Struct<"keyring_listAccountAssets", "keyring_listAccountAssets">;
|
|
830
831
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -836,16 +837,16 @@ export declare const ListAccountAssetsRequestStruct: import("@metamask/superstru
|
|
|
836
837
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
837
838
|
}>;
|
|
838
839
|
export type ListAccountAssetsRequest = Infer<typeof ListAccountAssetsRequestStruct>;
|
|
839
|
-
export declare const ListAccountAssetsResponseStruct: import("@metamask/superstruct").Struct<(`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}
|
|
840
|
+
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>>;
|
|
840
841
|
export type ListAccountAssetsResponse = Infer<typeof ListAccountAssetsResponseStruct>;
|
|
841
842
|
export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
|
|
842
|
-
method: "keyring_getAccountBalances";
|
|
843
843
|
id: string | number | null;
|
|
844
|
-
|
|
844
|
+
method: "keyring_getAccountBalances";
|
|
845
845
|
params: {
|
|
846
846
|
id: string;
|
|
847
847
|
assets: `${string}:${string}/${string}:${string}`[];
|
|
848
848
|
};
|
|
849
|
+
jsonrpc: "2.0";
|
|
849
850
|
}, {
|
|
850
851
|
method: import("@metamask/superstruct").Struct<"keyring_getAccountBalances", "keyring_getAccountBalances">;
|
|
851
852
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -865,40 +866,40 @@ export declare const GetAccountBalancesResponseStruct: import("@metamask/superst
|
|
|
865
866
|
}>, null>;
|
|
866
867
|
export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
|
|
867
868
|
export declare const ResolveAccountAddressRequestStruct: import("@metamask/superstruct").Struct<{
|
|
868
|
-
method: "keyring_resolveAccountAddress";
|
|
869
869
|
id: string | number | null;
|
|
870
|
-
|
|
870
|
+
method: "keyring_resolveAccountAddress";
|
|
871
871
|
params: {
|
|
872
|
+
scope: `${string}:${string}`;
|
|
872
873
|
request: {
|
|
873
|
-
method: string;
|
|
874
|
-
id: string | number | null;
|
|
875
874
|
jsonrpc: "2.0";
|
|
875
|
+
id: string | number | null;
|
|
876
|
+
method: string;
|
|
876
877
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
877
878
|
};
|
|
878
|
-
scope: `${string}:${string}`;
|
|
879
879
|
};
|
|
880
|
+
jsonrpc: "2.0";
|
|
880
881
|
}, {
|
|
881
882
|
method: import("@metamask/superstruct").Struct<"keyring_resolveAccountAddress", "keyring_resolveAccountAddress">;
|
|
882
883
|
params: import("@metamask/superstruct").Struct<{
|
|
884
|
+
scope: `${string}:${string}`;
|
|
883
885
|
request: {
|
|
884
|
-
method: string;
|
|
885
|
-
id: string | number | null;
|
|
886
886
|
jsonrpc: "2.0";
|
|
887
|
+
id: string | number | null;
|
|
888
|
+
method: string;
|
|
887
889
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
888
890
|
};
|
|
889
|
-
scope: `${string}:${string}`;
|
|
890
891
|
}, {
|
|
891
892
|
scope: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
|
|
892
893
|
request: import("@metamask/superstruct").Struct<{
|
|
893
|
-
method: string;
|
|
894
|
-
id: string | number | null;
|
|
895
894
|
jsonrpc: "2.0";
|
|
895
|
+
id: string | number | null;
|
|
896
|
+
method: string;
|
|
896
897
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
897
898
|
}, {
|
|
898
899
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
899
900
|
id: import("@metamask/superstruct").Struct<string | number | null, null>;
|
|
900
901
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
901
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").
|
|
902
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
902
903
|
}>;
|
|
903
904
|
}>;
|
|
904
905
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
@@ -912,13 +913,13 @@ export declare const ResolveAccountAddressResponseStruct: import("@metamask/supe
|
|
|
912
913
|
}>;
|
|
913
914
|
export type ResolveAccountAddressResponse = Infer<typeof ResolveAccountAddressResponseStruct>;
|
|
914
915
|
export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
|
|
915
|
-
method: "keyring_filterAccountChains";
|
|
916
916
|
id: string | number | null;
|
|
917
|
-
|
|
917
|
+
method: "keyring_filterAccountChains";
|
|
918
918
|
params: {
|
|
919
919
|
id: string;
|
|
920
920
|
chains: string[];
|
|
921
921
|
};
|
|
922
|
+
jsonrpc: "2.0";
|
|
922
923
|
}, {
|
|
923
924
|
method: import("@metamask/superstruct").Struct<"keyring_filterAccountChains", "keyring_filterAccountChains">;
|
|
924
925
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -935,13 +936,14 @@ export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>
|
|
|
935
936
|
export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
936
937
|
export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
|
|
937
938
|
export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
938
|
-
method: "keyring_updateAccount";
|
|
939
939
|
id: string | number | null;
|
|
940
|
-
|
|
940
|
+
method: "keyring_updateAccount";
|
|
941
941
|
params: {
|
|
942
942
|
account: {
|
|
943
943
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
944
944
|
id: string;
|
|
945
|
+
address: string;
|
|
946
|
+
scopes: `${string}:${string}`[];
|
|
945
947
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
946
948
|
entropy?: {
|
|
947
949
|
type: "mnemonic";
|
|
@@ -955,17 +957,18 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
955
957
|
};
|
|
956
958
|
exportable?: boolean;
|
|
957
959
|
};
|
|
958
|
-
address: string;
|
|
959
|
-
scopes: `${string}:${string}`[];
|
|
960
960
|
methods: string[];
|
|
961
961
|
};
|
|
962
962
|
};
|
|
963
|
+
jsonrpc: "2.0";
|
|
963
964
|
}, {
|
|
964
965
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
|
965
966
|
params: import("@metamask/superstruct").Struct<{
|
|
966
967
|
account: {
|
|
967
968
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
968
969
|
id: string;
|
|
970
|
+
address: string;
|
|
971
|
+
scopes: `${string}:${string}`[];
|
|
969
972
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
970
973
|
entropy?: {
|
|
971
974
|
type: "mnemonic";
|
|
@@ -979,14 +982,14 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
979
982
|
};
|
|
980
983
|
exportable?: boolean;
|
|
981
984
|
};
|
|
982
|
-
address: string;
|
|
983
|
-
scopes: `${string}:${string}`[];
|
|
984
985
|
methods: string[];
|
|
985
986
|
};
|
|
986
987
|
}, {
|
|
987
988
|
account: import("@metamask/superstruct").Struct<{
|
|
988
989
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
989
990
|
id: string;
|
|
991
|
+
address: string;
|
|
992
|
+
scopes: `${string}:${string}`[];
|
|
990
993
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
991
994
|
entropy?: {
|
|
992
995
|
type: "mnemonic";
|
|
@@ -1000,8 +1003,6 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
|
1000
1003
|
};
|
|
1001
1004
|
exportable?: boolean;
|
|
1002
1005
|
};
|
|
1003
|
-
address: string;
|
|
1004
|
-
scopes: `${string}:${string}`[];
|
|
1005
1006
|
methods: string[];
|
|
1006
1007
|
}, {
|
|
1007
1008
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -1042,12 +1043,12 @@ export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
|
|
|
1042
1043
|
export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
1043
1044
|
export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
|
|
1044
1045
|
export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1045
|
-
method: "keyring_deleteAccount";
|
|
1046
1046
|
id: string | number | null;
|
|
1047
|
-
|
|
1047
|
+
method: "keyring_deleteAccount";
|
|
1048
1048
|
params: {
|
|
1049
1049
|
id: string;
|
|
1050
1050
|
};
|
|
1051
|
+
jsonrpc: "2.0";
|
|
1051
1052
|
}, {
|
|
1052
1053
|
method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
|
|
1053
1054
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -1062,12 +1063,12 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
|
|
|
1062
1063
|
export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
1063
1064
|
export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
|
|
1064
1065
|
export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1065
|
-
method: "keyring_exportAccount";
|
|
1066
1066
|
id: string | number | null;
|
|
1067
|
-
|
|
1067
|
+
method: "keyring_exportAccount";
|
|
1068
1068
|
params: {
|
|
1069
1069
|
id: string;
|
|
1070
1070
|
};
|
|
1071
|
+
jsonrpc: "2.0";
|
|
1071
1072
|
}, {
|
|
1072
1073
|
method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
|
|
1073
1074
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -1082,8 +1083,8 @@ export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
|
|
|
1082
1083
|
export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
1083
1084
|
export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
|
|
1084
1085
|
export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1085
|
-
method: "keyring_listRequests";
|
|
1086
1086
|
id: string | number | null;
|
|
1087
|
+
method: "keyring_listRequests";
|
|
1087
1088
|
jsonrpc: "2.0";
|
|
1088
1089
|
}, {
|
|
1089
1090
|
method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
|
|
@@ -1093,22 +1094,22 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
|
|
|
1093
1094
|
export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
|
|
1094
1095
|
export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
1095
1096
|
id: string;
|
|
1097
|
+
scope: string;
|
|
1098
|
+
account: string;
|
|
1096
1099
|
origin: string;
|
|
1097
1100
|
request: {
|
|
1098
1101
|
method: string;
|
|
1099
1102
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1100
1103
|
};
|
|
1101
|
-
scope: string;
|
|
1102
|
-
account: string;
|
|
1103
1104
|
}[], import("@metamask/superstruct").Struct<{
|
|
1104
1105
|
id: string;
|
|
1106
|
+
scope: string;
|
|
1107
|
+
account: string;
|
|
1105
1108
|
origin: string;
|
|
1106
1109
|
request: {
|
|
1107
1110
|
method: string;
|
|
1108
1111
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1109
1112
|
};
|
|
1110
|
-
scope: string;
|
|
1111
|
-
account: string;
|
|
1112
1113
|
}, {
|
|
1113
1114
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
1114
1115
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -1119,17 +1120,17 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
|
|
|
1119
1120
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1120
1121
|
}, {
|
|
1121
1122
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
1122
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").
|
|
1123
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
1123
1124
|
}>;
|
|
1124
1125
|
}>>;
|
|
1125
1126
|
export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
|
|
1126
1127
|
export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1127
|
-
method: "keyring_getRequest";
|
|
1128
1128
|
id: string | number | null;
|
|
1129
|
-
|
|
1129
|
+
method: "keyring_getRequest";
|
|
1130
1130
|
params: {
|
|
1131
1131
|
id: string;
|
|
1132
1132
|
};
|
|
1133
|
+
jsonrpc: "2.0";
|
|
1133
1134
|
}, {
|
|
1134
1135
|
method: import("@metamask/superstruct").Struct<"keyring_getRequest", "keyring_getRequest">;
|
|
1135
1136
|
params: import("@metamask/superstruct").Struct<{
|
|
@@ -1143,13 +1144,13 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
|
|
|
1143
1144
|
export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
|
|
1144
1145
|
export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
|
|
1145
1146
|
id: string;
|
|
1147
|
+
scope: string;
|
|
1148
|
+
account: string;
|
|
1146
1149
|
origin: string;
|
|
1147
1150
|
request: {
|
|
1148
1151
|
method: string;
|
|
1149
1152
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1150
1153
|
};
|
|
1151
|
-
scope: string;
|
|
1152
|
-
account: string;
|
|
1153
1154
|
}, {
|
|
1154
1155
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
1155
1156
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -1160,35 +1161,35 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
|
|
|
1160
1161
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1161
1162
|
}, {
|
|
1162
1163
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
1163
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").
|
|
1164
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
1164
1165
|
}>;
|
|
1165
1166
|
}>;
|
|
1166
1167
|
export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
|
|
1167
1168
|
export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1168
|
-
method: "keyring_submitRequest";
|
|
1169
1169
|
id: string | number | null;
|
|
1170
|
-
|
|
1170
|
+
method: "keyring_submitRequest";
|
|
1171
1171
|
params: {
|
|
1172
1172
|
id: string;
|
|
1173
|
+
scope: string;
|
|
1174
|
+
account: string;
|
|
1173
1175
|
origin: string;
|
|
1174
1176
|
request: {
|
|
1175
1177
|
method: string;
|
|
1176
1178
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1177
1179
|
};
|
|
1178
|
-
scope: string;
|
|
1179
|
-
account: string;
|
|
1180
1180
|
};
|
|
1181
|
+
jsonrpc: "2.0";
|
|
1181
1182
|
}, {
|
|
1182
1183
|
method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
|
|
1183
1184
|
params: import("@metamask/superstruct").Struct<{
|
|
1184
1185
|
id: string;
|
|
1186
|
+
scope: string;
|
|
1187
|
+
account: string;
|
|
1185
1188
|
origin: string;
|
|
1186
1189
|
request: {
|
|
1187
1190
|
method: string;
|
|
1188
1191
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1189
1192
|
};
|
|
1190
|
-
scope: string;
|
|
1191
|
-
account: string;
|
|
1192
1193
|
}, {
|
|
1193
1194
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
1194
1195
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -1199,7 +1200,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
|
|
|
1199
1200
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
1200
1201
|
}, {
|
|
1201
1202
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
1202
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").
|
|
1203
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
1203
1204
|
}>;
|
|
1204
1205
|
}>;
|
|
1205
1206
|
jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
|
|
@@ -1213,23 +1214,23 @@ export declare const SubmitRequestResponseStruct: import("@metamask/superstruct"
|
|
|
1213
1214
|
url?: string;
|
|
1214
1215
|
};
|
|
1215
1216
|
} | {
|
|
1216
|
-
result: import("@metamask/utils").Json;
|
|
1217
1217
|
pending: false;
|
|
1218
|
+
result: import("@metamask/utils").Json;
|
|
1218
1219
|
}, null>;
|
|
1219
1220
|
export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
|
|
1220
1221
|
export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1221
|
-
method: "keyring_approveRequest";
|
|
1222
1222
|
id: string | number | null;
|
|
1223
|
-
|
|
1223
|
+
method: "keyring_approveRequest";
|
|
1224
1224
|
params: {
|
|
1225
|
-
data: Record<string, import("@metamask/utils").Json>;
|
|
1226
1225
|
id: string;
|
|
1226
|
+
data: Record<string, import("@metamask/utils").Json>;
|
|
1227
1227
|
};
|
|
1228
|
+
jsonrpc: "2.0";
|
|
1228
1229
|
}, {
|
|
1229
1230
|
method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
|
|
1230
1231
|
params: import("@metamask/superstruct").Struct<{
|
|
1231
|
-
data: Record<string, import("@metamask/utils").Json>;
|
|
1232
1232
|
id: string;
|
|
1233
|
+
data: Record<string, import("@metamask/utils").Json>;
|
|
1233
1234
|
}, {
|
|
1234
1235
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
1235
1236
|
data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
@@ -1241,12 +1242,12 @@ export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
|
|
|
1241
1242
|
export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
|
|
1242
1243
|
export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
|
|
1243
1244
|
export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
|
|
1244
|
-
method: "keyring_rejectRequest";
|
|
1245
1245
|
id: string | number | null;
|
|
1246
|
-
|
|
1246
|
+
method: "keyring_rejectRequest";
|
|
1247
1247
|
params: {
|
|
1248
1248
|
id: string;
|
|
1249
1249
|
};
|
|
1250
|
+
jsonrpc: "2.0";
|
|
1250
1251
|
}, {
|
|
1251
1252
|
method: import("@metamask/superstruct").Struct<"keyring_rejectRequest", "keyring_rejectRequest">;
|
|
1252
1253
|
params: import("@metamask/superstruct").Struct<{
|