@metamask-previews/keyring-api 23.2.0-023fc63 → 23.2.0-7540e4c
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/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/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/events.d.cts +56 -56
- package/dist/events.d.mts +56 -56
- package/dist/rpc.d.cts +131 -131
- package/dist/rpc.d.mts +131 -131
- 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.d.cts +1 -1
- package/dist/v2/api/create-account/index.d.mts +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.d.cts +2 -2
- package/dist/xlm/types.d.mts +2 -2
- package/package.json +1 -1
package/dist/api/account.d.cts
CHANGED
|
@@ -74,8 +74,6 @@ export declare const KeyringAccountTypeStruct: import("@metamask/superstruct").S
|
|
|
74
74
|
export declare const KeyringAccountStruct: import("@metamask/superstruct").Struct<{
|
|
75
75
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
76
76
|
id: string;
|
|
77
|
-
address: string;
|
|
78
|
-
scopes: `${string}:${string}`[];
|
|
79
77
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
80
78
|
entropy?: {
|
|
81
79
|
type: "mnemonic";
|
|
@@ -89,6 +87,8 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
|
89
87
|
};
|
|
90
88
|
exportable?: boolean;
|
|
91
89
|
};
|
|
90
|
+
address: string;
|
|
91
|
+
scopes: `${string}:${string}`[];
|
|
92
92
|
methods: string[];
|
|
93
93
|
}, {
|
|
94
94
|
/**
|
package/dist/api/account.d.mts
CHANGED
|
@@ -74,8 +74,6 @@ export declare const KeyringAccountTypeStruct: import("@metamask/superstruct").S
|
|
|
74
74
|
export declare const KeyringAccountStruct: import("@metamask/superstruct").Struct<{
|
|
75
75
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
76
76
|
id: string;
|
|
77
|
-
address: string;
|
|
78
|
-
scopes: `${string}:${string}`[];
|
|
79
77
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
80
78
|
entropy?: {
|
|
81
79
|
type: "mnemonic";
|
|
@@ -89,6 +87,8 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
|
89
87
|
};
|
|
90
88
|
exportable?: boolean;
|
|
91
89
|
};
|
|
90
|
+
address: string;
|
|
91
|
+
scopes: `${string}:${string}`[];
|
|
92
92
|
methods: string[];
|
|
93
93
|
}, {
|
|
94
94
|
/**
|
package/dist/api/asset.d.cts
CHANGED
|
@@ -19,8 +19,8 @@ export declare const FungibleAssetAmountStruct: import("@metamask/superstruct").
|
|
|
19
19
|
* Fungible asset struct.
|
|
20
20
|
*/
|
|
21
21
|
export declare const FungibleAssetStruct: import("@metamask/superstruct").Struct<{
|
|
22
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
23
22
|
unit: string;
|
|
23
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
24
24
|
amount: string;
|
|
25
25
|
fungible: true;
|
|
26
26
|
}, {
|
|
@@ -94,8 +94,8 @@ export declare const NonFungibleAssetStruct: import("@metamask/superstruct").Str
|
|
|
94
94
|
* ```
|
|
95
95
|
*/
|
|
96
96
|
export declare const AssetStruct: import("@metamask/superstruct").Struct<{
|
|
97
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
98
97
|
unit: string;
|
|
98
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
99
99
|
amount: string;
|
|
100
100
|
fungible: true;
|
|
101
101
|
} | {
|
package/dist/api/asset.d.mts
CHANGED
|
@@ -19,8 +19,8 @@ export declare const FungibleAssetAmountStruct: import("@metamask/superstruct").
|
|
|
19
19
|
* Fungible asset struct.
|
|
20
20
|
*/
|
|
21
21
|
export declare const FungibleAssetStruct: import("@metamask/superstruct").Struct<{
|
|
22
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
23
22
|
unit: string;
|
|
23
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
24
24
|
amount: string;
|
|
25
25
|
fungible: true;
|
|
26
26
|
}, {
|
|
@@ -94,8 +94,8 @@ export declare const NonFungibleAssetStruct: import("@metamask/superstruct").Str
|
|
|
94
94
|
* ```
|
|
95
95
|
*/
|
|
96
96
|
export declare const AssetStruct: import("@metamask/superstruct").Struct<{
|
|
97
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
98
97
|
unit: string;
|
|
98
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
99
99
|
amount: string;
|
|
100
100
|
fungible: true;
|
|
101
101
|
} | {
|
package/dist/api/request.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Infer } from "@metamask/superstruct";
|
|
2
2
|
export declare const KeyringRequestStruct: import("@metamask/superstruct").Struct<{
|
|
3
3
|
id: string;
|
|
4
|
-
scope: string;
|
|
5
|
-
account: string;
|
|
6
4
|
origin: string;
|
|
7
5
|
request: {
|
|
8
6
|
method: string;
|
|
9
7
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
10
8
|
};
|
|
9
|
+
scope: string;
|
|
10
|
+
account: string;
|
|
11
11
|
}, {
|
|
12
12
|
/**
|
|
13
13
|
* Keyring request ID (UUIDv4).
|
|
@@ -33,7 +33,7 @@ export declare const KeyringRequestStruct: import("@metamask/superstruct").Struc
|
|
|
33
33
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
34
34
|
}, {
|
|
35
35
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
36
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/
|
|
36
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
37
37
|
}>;
|
|
38
38
|
}>;
|
|
39
39
|
/**
|
package/dist/api/request.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Infer } from "@metamask/superstruct";
|
|
2
2
|
export declare const KeyringRequestStruct: import("@metamask/superstruct").Struct<{
|
|
3
3
|
id: string;
|
|
4
|
-
scope: string;
|
|
5
|
-
account: string;
|
|
6
4
|
origin: string;
|
|
7
5
|
request: {
|
|
8
6
|
method: string;
|
|
9
7
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
10
8
|
};
|
|
9
|
+
scope: string;
|
|
10
|
+
account: string;
|
|
11
11
|
}, {
|
|
12
12
|
/**
|
|
13
13
|
* Keyring request ID (UUIDv4).
|
|
@@ -33,7 +33,7 @@ export declare const KeyringRequestStruct: import("@metamask/superstruct").Struc
|
|
|
33
33
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
34
34
|
}, {
|
|
35
35
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
36
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/
|
|
36
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
37
37
|
}>;
|
|
38
38
|
}>;
|
|
39
39
|
/**
|
package/dist/api/response.d.cts
CHANGED
package/dist/api/response.d.mts
CHANGED
|
@@ -230,17 +230,13 @@ export declare const TransactionEventStruct: import("@metamask/superstruct").Str
|
|
|
230
230
|
* ```
|
|
231
231
|
*/
|
|
232
232
|
export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
233
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve"
|
|
233
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
|
|
234
234
|
id: string;
|
|
235
|
-
account: string;
|
|
236
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
237
|
-
timestamp: number | null;
|
|
238
|
-
chain: `${string}:${string}`;
|
|
239
235
|
from: {
|
|
240
236
|
address: string;
|
|
241
237
|
asset: {
|
|
242
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
243
238
|
unit: string;
|
|
239
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
244
240
|
amount: string;
|
|
245
241
|
fungible: true;
|
|
246
242
|
} | {
|
|
@@ -248,11 +244,19 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
248
244
|
fungible: false;
|
|
249
245
|
} | null;
|
|
250
246
|
}[];
|
|
247
|
+
events: {
|
|
248
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
249
|
+
timestamp: number | null;
|
|
250
|
+
}[];
|
|
251
|
+
chain: `${string}:${string}`;
|
|
252
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
253
|
+
account: string;
|
|
254
|
+
timestamp: number | null;
|
|
251
255
|
to: {
|
|
252
256
|
address: string;
|
|
253
257
|
asset: {
|
|
254
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
255
258
|
unit: string;
|
|
259
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
256
260
|
amount: string;
|
|
257
261
|
fungible: true;
|
|
258
262
|
} | {
|
|
@@ -263,8 +267,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
263
267
|
fees: {
|
|
264
268
|
type: "base" | "priority";
|
|
265
269
|
asset: {
|
|
266
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
267
270
|
unit: string;
|
|
271
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
268
272
|
amount: string;
|
|
269
273
|
fungible: true;
|
|
270
274
|
} | {
|
|
@@ -272,10 +276,6 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
272
276
|
fungible: false;
|
|
273
277
|
};
|
|
274
278
|
}[];
|
|
275
|
-
events: {
|
|
276
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
277
|
-
timestamp: number | null;
|
|
278
|
-
}[];
|
|
279
279
|
details?: {
|
|
280
280
|
origin?: string;
|
|
281
281
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
@@ -312,7 +312,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
312
312
|
* Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
|
|
313
313
|
* details on the UI.
|
|
314
314
|
*/
|
|
315
|
-
type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve"
|
|
315
|
+
type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve", {
|
|
316
|
+
unknown: "unknown";
|
|
316
317
|
send: "send";
|
|
317
318
|
receive: "receive";
|
|
318
319
|
swap: "swap";
|
|
@@ -321,7 +322,6 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
321
322
|
"stake:deposit": "stake:deposit";
|
|
322
323
|
"stake:withdraw": "stake:withdraw";
|
|
323
324
|
"token:approve": "token:approve";
|
|
324
|
-
unknown: "unknown";
|
|
325
325
|
}>;
|
|
326
326
|
/**
|
|
327
327
|
* Transaction sender addresses and amounts.
|
|
@@ -329,8 +329,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
329
329
|
from: import("@metamask/superstruct").Struct<{
|
|
330
330
|
address: string;
|
|
331
331
|
asset: {
|
|
332
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
333
332
|
unit: string;
|
|
333
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
334
334
|
amount: string;
|
|
335
335
|
fungible: true;
|
|
336
336
|
} | {
|
|
@@ -340,8 +340,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
340
340
|
}[], import("@metamask/superstruct").Struct<{
|
|
341
341
|
address: string;
|
|
342
342
|
asset: {
|
|
343
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
344
343
|
unit: string;
|
|
344
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
345
345
|
amount: string;
|
|
346
346
|
fungible: true;
|
|
347
347
|
} | {
|
|
@@ -357,8 +357,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
357
357
|
* Asset being transferred.
|
|
358
358
|
*/
|
|
359
359
|
asset: import("@metamask/superstruct").Struct<{
|
|
360
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
361
360
|
unit: string;
|
|
361
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
362
362
|
amount: string;
|
|
363
363
|
fungible: true;
|
|
364
364
|
} | {
|
|
@@ -372,8 +372,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
372
372
|
to: import("@metamask/superstruct").Struct<{
|
|
373
373
|
address: string;
|
|
374
374
|
asset: {
|
|
375
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
376
375
|
unit: string;
|
|
376
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
377
377
|
amount: string;
|
|
378
378
|
fungible: true;
|
|
379
379
|
} | {
|
|
@@ -383,8 +383,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
383
383
|
}[], import("@metamask/superstruct").Struct<{
|
|
384
384
|
address: string;
|
|
385
385
|
asset: {
|
|
386
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
387
386
|
unit: string;
|
|
387
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
388
388
|
amount: string;
|
|
389
389
|
fungible: true;
|
|
390
390
|
} | {
|
|
@@ -400,8 +400,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
400
400
|
* Asset being transferred.
|
|
401
401
|
*/
|
|
402
402
|
asset: import("@metamask/superstruct").Struct<{
|
|
403
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
404
403
|
unit: string;
|
|
404
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
405
405
|
amount: string;
|
|
406
406
|
fungible: true;
|
|
407
407
|
} | {
|
|
@@ -415,8 +415,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
415
415
|
fees: import("@metamask/superstruct").Struct<{
|
|
416
416
|
type: "base" | "priority";
|
|
417
417
|
asset: {
|
|
418
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
419
418
|
unit: string;
|
|
419
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
420
420
|
amount: string;
|
|
421
421
|
fungible: true;
|
|
422
422
|
} | {
|
|
@@ -426,8 +426,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
426
426
|
}[], import("@metamask/superstruct").Struct<{
|
|
427
427
|
type: "base" | "priority";
|
|
428
428
|
asset: {
|
|
429
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
430
429
|
unit: string;
|
|
430
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
431
431
|
amount: string;
|
|
432
432
|
fungible: true;
|
|
433
433
|
} | {
|
|
@@ -446,8 +446,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
446
446
|
* Asset used to pay for the fee.
|
|
447
447
|
*/
|
|
448
448
|
asset: import("@metamask/superstruct").Struct<{
|
|
449
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
450
449
|
unit: string;
|
|
450
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
451
451
|
amount: string;
|
|
452
452
|
fungible: true;
|
|
453
453
|
} | {
|
|
@@ -551,19 +551,14 @@ export type Transaction = Infer<typeof TransactionStruct>;
|
|
|
551
551
|
* ```
|
|
552
552
|
*/
|
|
553
553
|
export declare const TransactionsPageStruct: import("@metamask/superstruct").Struct<{
|
|
554
|
-
next: string | null;
|
|
555
554
|
data: {
|
|
556
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve"
|
|
555
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
|
|
557
556
|
id: string;
|
|
558
|
-
account: string;
|
|
559
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
560
|
-
timestamp: number | null;
|
|
561
|
-
chain: `${string}:${string}`;
|
|
562
557
|
from: {
|
|
563
558
|
address: string;
|
|
564
559
|
asset: {
|
|
565
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
566
560
|
unit: string;
|
|
561
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
567
562
|
amount: string;
|
|
568
563
|
fungible: true;
|
|
569
564
|
} | {
|
|
@@ -571,11 +566,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
571
566
|
fungible: false;
|
|
572
567
|
} | null;
|
|
573
568
|
}[];
|
|
569
|
+
events: {
|
|
570
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
571
|
+
timestamp: number | null;
|
|
572
|
+
}[];
|
|
573
|
+
chain: `${string}:${string}`;
|
|
574
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
575
|
+
account: string;
|
|
576
|
+
timestamp: number | null;
|
|
574
577
|
to: {
|
|
575
578
|
address: string;
|
|
576
579
|
asset: {
|
|
577
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
578
580
|
unit: string;
|
|
581
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
579
582
|
amount: string;
|
|
580
583
|
fungible: true;
|
|
581
584
|
} | {
|
|
@@ -586,8 +589,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
586
589
|
fees: {
|
|
587
590
|
type: "base" | "priority";
|
|
588
591
|
asset: {
|
|
589
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
590
592
|
unit: string;
|
|
593
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
591
594
|
amount: string;
|
|
592
595
|
fungible: true;
|
|
593
596
|
} | {
|
|
@@ -595,31 +598,24 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
595
598
|
fungible: false;
|
|
596
599
|
};
|
|
597
600
|
}[];
|
|
598
|
-
events: {
|
|
599
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
600
|
-
timestamp: number | null;
|
|
601
|
-
}[];
|
|
602
601
|
details?: {
|
|
603
602
|
origin?: string;
|
|
604
603
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
605
604
|
};
|
|
606
605
|
}[];
|
|
606
|
+
next: string | null;
|
|
607
607
|
}, {
|
|
608
608
|
/**
|
|
609
609
|
* List of transactions.
|
|
610
610
|
*/
|
|
611
611
|
data: import("@metamask/superstruct").Struct<{
|
|
612
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve"
|
|
612
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
|
|
613
613
|
id: string;
|
|
614
|
-
account: string;
|
|
615
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
616
|
-
timestamp: number | null;
|
|
617
|
-
chain: `${string}:${string}`;
|
|
618
614
|
from: {
|
|
619
615
|
address: string;
|
|
620
616
|
asset: {
|
|
621
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
622
617
|
unit: string;
|
|
618
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
623
619
|
amount: string;
|
|
624
620
|
fungible: true;
|
|
625
621
|
} | {
|
|
@@ -627,11 +623,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
627
623
|
fungible: false;
|
|
628
624
|
} | null;
|
|
629
625
|
}[];
|
|
626
|
+
events: {
|
|
627
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
628
|
+
timestamp: number | null;
|
|
629
|
+
}[];
|
|
630
|
+
chain: `${string}:${string}`;
|
|
631
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
632
|
+
account: string;
|
|
633
|
+
timestamp: number | null;
|
|
630
634
|
to: {
|
|
631
635
|
address: string;
|
|
632
636
|
asset: {
|
|
633
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
634
637
|
unit: string;
|
|
638
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
635
639
|
amount: string;
|
|
636
640
|
fungible: true;
|
|
637
641
|
} | {
|
|
@@ -642,8 +646,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
642
646
|
fees: {
|
|
643
647
|
type: "base" | "priority";
|
|
644
648
|
asset: {
|
|
645
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
646
649
|
unit: string;
|
|
650
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
647
651
|
amount: string;
|
|
648
652
|
fungible: true;
|
|
649
653
|
} | {
|
|
@@ -651,26 +655,18 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
651
655
|
fungible: false;
|
|
652
656
|
};
|
|
653
657
|
}[];
|
|
654
|
-
events: {
|
|
655
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
656
|
-
timestamp: number | null;
|
|
657
|
-
}[];
|
|
658
658
|
details?: {
|
|
659
659
|
origin?: string;
|
|
660
660
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
661
661
|
};
|
|
662
662
|
}[], import("@metamask/superstruct").Struct<{
|
|
663
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve"
|
|
663
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
|
|
664
664
|
id: string;
|
|
665
|
-
account: string;
|
|
666
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
667
|
-
timestamp: number | null;
|
|
668
|
-
chain: `${string}:${string}`;
|
|
669
665
|
from: {
|
|
670
666
|
address: string;
|
|
671
667
|
asset: {
|
|
672
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
673
668
|
unit: string;
|
|
669
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
674
670
|
amount: string;
|
|
675
671
|
fungible: true;
|
|
676
672
|
} | {
|
|
@@ -678,11 +674,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
678
674
|
fungible: false;
|
|
679
675
|
} | null;
|
|
680
676
|
}[];
|
|
677
|
+
events: {
|
|
678
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
679
|
+
timestamp: number | null;
|
|
680
|
+
}[];
|
|
681
|
+
chain: `${string}:${string}`;
|
|
682
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
683
|
+
account: string;
|
|
684
|
+
timestamp: number | null;
|
|
681
685
|
to: {
|
|
682
686
|
address: string;
|
|
683
687
|
asset: {
|
|
684
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
685
688
|
unit: string;
|
|
689
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
686
690
|
amount: string;
|
|
687
691
|
fungible: true;
|
|
688
692
|
} | {
|
|
@@ -693,8 +697,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
693
697
|
fees: {
|
|
694
698
|
type: "base" | "priority";
|
|
695
699
|
asset: {
|
|
696
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
697
700
|
unit: string;
|
|
701
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
698
702
|
amount: string;
|
|
699
703
|
fungible: true;
|
|
700
704
|
} | {
|
|
@@ -702,10 +706,6 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
702
706
|
fungible: false;
|
|
703
707
|
};
|
|
704
708
|
}[];
|
|
705
|
-
events: {
|
|
706
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
707
|
-
timestamp: number | null;
|
|
708
|
-
}[];
|
|
709
709
|
details?: {
|
|
710
710
|
origin?: string;
|
|
711
711
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
@@ -742,7 +742,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
742
742
|
* Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
|
|
743
743
|
* details on the UI.
|
|
744
744
|
*/
|
|
745
|
-
type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve"
|
|
745
|
+
type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve", {
|
|
746
|
+
unknown: "unknown";
|
|
746
747
|
send: "send";
|
|
747
748
|
receive: "receive";
|
|
748
749
|
swap: "swap";
|
|
@@ -751,7 +752,6 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
751
752
|
"stake:deposit": "stake:deposit";
|
|
752
753
|
"stake:withdraw": "stake:withdraw";
|
|
753
754
|
"token:approve": "token:approve";
|
|
754
|
-
unknown: "unknown";
|
|
755
755
|
}>;
|
|
756
756
|
/**
|
|
757
757
|
* Transaction sender addresses and amounts.
|
|
@@ -759,8 +759,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
759
759
|
from: import("@metamask/superstruct").Struct<{
|
|
760
760
|
address: string;
|
|
761
761
|
asset: {
|
|
762
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
763
762
|
unit: string;
|
|
763
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
764
764
|
amount: string;
|
|
765
765
|
fungible: true;
|
|
766
766
|
} | {
|
|
@@ -770,8 +770,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
770
770
|
}[], import("@metamask/superstruct").Struct<{
|
|
771
771
|
address: string;
|
|
772
772
|
asset: {
|
|
773
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
774
773
|
unit: string;
|
|
774
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
775
775
|
amount: string;
|
|
776
776
|
fungible: true;
|
|
777
777
|
} | {
|
|
@@ -787,8 +787,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
787
787
|
* Asset being transferred.
|
|
788
788
|
*/
|
|
789
789
|
asset: import("@metamask/superstruct").Struct<{
|
|
790
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
791
790
|
unit: string;
|
|
791
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
792
792
|
amount: string;
|
|
793
793
|
fungible: true;
|
|
794
794
|
} | {
|
|
@@ -802,8 +802,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
802
802
|
to: import("@metamask/superstruct").Struct<{
|
|
803
803
|
address: string;
|
|
804
804
|
asset: {
|
|
805
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
806
805
|
unit: string;
|
|
806
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
807
807
|
amount: string;
|
|
808
808
|
fungible: true;
|
|
809
809
|
} | {
|
|
@@ -813,8 +813,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
813
813
|
}[], import("@metamask/superstruct").Struct<{
|
|
814
814
|
address: string;
|
|
815
815
|
asset: {
|
|
816
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
817
816
|
unit: string;
|
|
817
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
818
818
|
amount: string;
|
|
819
819
|
fungible: true;
|
|
820
820
|
} | {
|
|
@@ -830,8 +830,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
830
830
|
* Asset being transferred.
|
|
831
831
|
*/
|
|
832
832
|
asset: import("@metamask/superstruct").Struct<{
|
|
833
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
834
833
|
unit: string;
|
|
834
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
835
835
|
amount: string;
|
|
836
836
|
fungible: true;
|
|
837
837
|
} | {
|
|
@@ -845,8 +845,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
845
845
|
fees: import("@metamask/superstruct").Struct<{
|
|
846
846
|
type: "base" | "priority";
|
|
847
847
|
asset: {
|
|
848
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
849
848
|
unit: string;
|
|
849
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
850
850
|
amount: string;
|
|
851
851
|
fungible: true;
|
|
852
852
|
} | {
|
|
@@ -856,8 +856,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
856
856
|
}[], import("@metamask/superstruct").Struct<{
|
|
857
857
|
type: "base" | "priority";
|
|
858
858
|
asset: {
|
|
859
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
860
859
|
unit: string;
|
|
860
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
861
861
|
amount: string;
|
|
862
862
|
fungible: true;
|
|
863
863
|
} | {
|
|
@@ -876,8 +876,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
876
876
|
* Asset used to pay for the fee.
|
|
877
877
|
*/
|
|
878
878
|
asset: import("@metamask/superstruct").Struct<{
|
|
879
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
880
879
|
unit: string;
|
|
880
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
881
881
|
amount: string;
|
|
882
882
|
fungible: true;
|
|
883
883
|
} | {
|