@metamask-previews/keyring-api 21.5.0-cd75414 → 22.0.0-018fb62
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
|
@@ -226,17 +226,13 @@ export declare const TransactionEventStruct: import("@metamask/superstruct").Str
|
|
|
226
226
|
* ```
|
|
227
227
|
*/
|
|
228
228
|
export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
229
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
229
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
230
230
|
id: string;
|
|
231
|
-
account: string;
|
|
232
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
233
|
-
timestamp: number | null;
|
|
234
|
-
chain: `${string}:${string}`;
|
|
235
231
|
from: {
|
|
236
232
|
address: string;
|
|
237
233
|
asset: {
|
|
238
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
239
234
|
unit: string;
|
|
235
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
240
236
|
amount: string;
|
|
241
237
|
fungible: true;
|
|
242
238
|
} | {
|
|
@@ -244,11 +240,19 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
244
240
|
fungible: false;
|
|
245
241
|
} | null;
|
|
246
242
|
}[];
|
|
243
|
+
events: {
|
|
244
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
245
|
+
timestamp: number | null;
|
|
246
|
+
}[];
|
|
247
|
+
chain: `${string}:${string}`;
|
|
248
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
249
|
+
account: string;
|
|
250
|
+
timestamp: number | null;
|
|
247
251
|
to: {
|
|
248
252
|
address: string;
|
|
249
253
|
asset: {
|
|
250
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
251
254
|
unit: string;
|
|
255
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
252
256
|
amount: string;
|
|
253
257
|
fungible: true;
|
|
254
258
|
} | {
|
|
@@ -259,8 +263,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
259
263
|
fees: {
|
|
260
264
|
type: "base" | "priority";
|
|
261
265
|
asset: {
|
|
262
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
263
266
|
unit: string;
|
|
267
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
264
268
|
amount: string;
|
|
265
269
|
fungible: true;
|
|
266
270
|
} | {
|
|
@@ -268,10 +272,6 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
268
272
|
fungible: false;
|
|
269
273
|
};
|
|
270
274
|
}[];
|
|
271
|
-
events: {
|
|
272
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
273
|
-
timestamp: number | null;
|
|
274
|
-
}[];
|
|
275
275
|
details?: {
|
|
276
276
|
origin?: string;
|
|
277
277
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
@@ -308,7 +308,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
308
308
|
* Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
|
|
309
309
|
* details on the UI.
|
|
310
310
|
*/
|
|
311
|
-
type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
311
|
+
type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw", {
|
|
312
|
+
unknown: "unknown";
|
|
312
313
|
send: "send";
|
|
313
314
|
receive: "receive";
|
|
314
315
|
swap: "swap";
|
|
@@ -316,7 +317,6 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
316
317
|
"bridge:receive": "bridge:receive";
|
|
317
318
|
"stake:deposit": "stake:deposit";
|
|
318
319
|
"stake:withdraw": "stake:withdraw";
|
|
319
|
-
unknown: "unknown";
|
|
320
320
|
}>;
|
|
321
321
|
/**
|
|
322
322
|
* Transaction sender addresses and amounts.
|
|
@@ -324,8 +324,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
324
324
|
from: import("@metamask/superstruct").Struct<{
|
|
325
325
|
address: string;
|
|
326
326
|
asset: {
|
|
327
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
328
327
|
unit: string;
|
|
328
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
329
329
|
amount: string;
|
|
330
330
|
fungible: true;
|
|
331
331
|
} | {
|
|
@@ -335,8 +335,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
335
335
|
}[], import("@metamask/superstruct").Struct<{
|
|
336
336
|
address: string;
|
|
337
337
|
asset: {
|
|
338
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
339
338
|
unit: string;
|
|
339
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
340
340
|
amount: string;
|
|
341
341
|
fungible: true;
|
|
342
342
|
} | {
|
|
@@ -352,8 +352,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
352
352
|
* Asset being transferred.
|
|
353
353
|
*/
|
|
354
354
|
asset: import("@metamask/superstruct").Struct<{
|
|
355
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
356
355
|
unit: string;
|
|
356
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
357
357
|
amount: string;
|
|
358
358
|
fungible: true;
|
|
359
359
|
} | {
|
|
@@ -367,8 +367,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
367
367
|
to: import("@metamask/superstruct").Struct<{
|
|
368
368
|
address: string;
|
|
369
369
|
asset: {
|
|
370
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
371
370
|
unit: string;
|
|
371
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
372
372
|
amount: string;
|
|
373
373
|
fungible: true;
|
|
374
374
|
} | {
|
|
@@ -378,8 +378,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
378
378
|
}[], import("@metamask/superstruct").Struct<{
|
|
379
379
|
address: string;
|
|
380
380
|
asset: {
|
|
381
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
382
381
|
unit: string;
|
|
382
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
383
383
|
amount: string;
|
|
384
384
|
fungible: true;
|
|
385
385
|
} | {
|
|
@@ -395,8 +395,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
395
395
|
* Asset being transferred.
|
|
396
396
|
*/
|
|
397
397
|
asset: import("@metamask/superstruct").Struct<{
|
|
398
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
399
398
|
unit: string;
|
|
399
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
400
400
|
amount: string;
|
|
401
401
|
fungible: true;
|
|
402
402
|
} | {
|
|
@@ -410,8 +410,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
410
410
|
fees: import("@metamask/superstruct").Struct<{
|
|
411
411
|
type: "base" | "priority";
|
|
412
412
|
asset: {
|
|
413
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
414
413
|
unit: string;
|
|
414
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
415
415
|
amount: string;
|
|
416
416
|
fungible: true;
|
|
417
417
|
} | {
|
|
@@ -421,8 +421,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
421
421
|
}[], import("@metamask/superstruct").Struct<{
|
|
422
422
|
type: "base" | "priority";
|
|
423
423
|
asset: {
|
|
424
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
425
424
|
unit: string;
|
|
425
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
426
426
|
amount: string;
|
|
427
427
|
fungible: true;
|
|
428
428
|
} | {
|
|
@@ -441,8 +441,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
441
441
|
* Asset used to pay for the fee.
|
|
442
442
|
*/
|
|
443
443
|
asset: import("@metamask/superstruct").Struct<{
|
|
444
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
445
444
|
unit: string;
|
|
445
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
446
446
|
amount: string;
|
|
447
447
|
fungible: true;
|
|
448
448
|
} | {
|
|
@@ -546,19 +546,14 @@ export type Transaction = Infer<typeof TransactionStruct>;
|
|
|
546
546
|
* ```
|
|
547
547
|
*/
|
|
548
548
|
export declare const TransactionsPageStruct: import("@metamask/superstruct").Struct<{
|
|
549
|
-
next: string | null;
|
|
550
549
|
data: {
|
|
551
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
550
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
552
551
|
id: string;
|
|
553
|
-
account: string;
|
|
554
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
555
|
-
timestamp: number | null;
|
|
556
|
-
chain: `${string}:${string}`;
|
|
557
552
|
from: {
|
|
558
553
|
address: string;
|
|
559
554
|
asset: {
|
|
560
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
561
555
|
unit: string;
|
|
556
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
562
557
|
amount: string;
|
|
563
558
|
fungible: true;
|
|
564
559
|
} | {
|
|
@@ -566,11 +561,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
566
561
|
fungible: false;
|
|
567
562
|
} | null;
|
|
568
563
|
}[];
|
|
564
|
+
events: {
|
|
565
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
566
|
+
timestamp: number | null;
|
|
567
|
+
}[];
|
|
568
|
+
chain: `${string}:${string}`;
|
|
569
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
570
|
+
account: string;
|
|
571
|
+
timestamp: number | null;
|
|
569
572
|
to: {
|
|
570
573
|
address: string;
|
|
571
574
|
asset: {
|
|
572
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
573
575
|
unit: string;
|
|
576
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
574
577
|
amount: string;
|
|
575
578
|
fungible: true;
|
|
576
579
|
} | {
|
|
@@ -581,8 +584,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
581
584
|
fees: {
|
|
582
585
|
type: "base" | "priority";
|
|
583
586
|
asset: {
|
|
584
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
585
587
|
unit: string;
|
|
588
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
586
589
|
amount: string;
|
|
587
590
|
fungible: true;
|
|
588
591
|
} | {
|
|
@@ -590,31 +593,24 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
590
593
|
fungible: false;
|
|
591
594
|
};
|
|
592
595
|
}[];
|
|
593
|
-
events: {
|
|
594
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
595
|
-
timestamp: number | null;
|
|
596
|
-
}[];
|
|
597
596
|
details?: {
|
|
598
597
|
origin?: string;
|
|
599
598
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
600
599
|
};
|
|
601
600
|
}[];
|
|
601
|
+
next: string | null;
|
|
602
602
|
}, {
|
|
603
603
|
/**
|
|
604
604
|
* List of transactions.
|
|
605
605
|
*/
|
|
606
606
|
data: import("@metamask/superstruct").Struct<{
|
|
607
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
607
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
608
608
|
id: string;
|
|
609
|
-
account: string;
|
|
610
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
611
|
-
timestamp: number | null;
|
|
612
|
-
chain: `${string}:${string}`;
|
|
613
609
|
from: {
|
|
614
610
|
address: string;
|
|
615
611
|
asset: {
|
|
616
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
617
612
|
unit: string;
|
|
613
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
618
614
|
amount: string;
|
|
619
615
|
fungible: true;
|
|
620
616
|
} | {
|
|
@@ -622,11 +618,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
622
618
|
fungible: false;
|
|
623
619
|
} | null;
|
|
624
620
|
}[];
|
|
621
|
+
events: {
|
|
622
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
623
|
+
timestamp: number | null;
|
|
624
|
+
}[];
|
|
625
|
+
chain: `${string}:${string}`;
|
|
626
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
627
|
+
account: string;
|
|
628
|
+
timestamp: number | null;
|
|
625
629
|
to: {
|
|
626
630
|
address: string;
|
|
627
631
|
asset: {
|
|
628
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
629
632
|
unit: string;
|
|
633
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
630
634
|
amount: string;
|
|
631
635
|
fungible: true;
|
|
632
636
|
} | {
|
|
@@ -637,8 +641,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
637
641
|
fees: {
|
|
638
642
|
type: "base" | "priority";
|
|
639
643
|
asset: {
|
|
640
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
641
644
|
unit: string;
|
|
645
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
642
646
|
amount: string;
|
|
643
647
|
fungible: true;
|
|
644
648
|
} | {
|
|
@@ -646,26 +650,18 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
646
650
|
fungible: false;
|
|
647
651
|
};
|
|
648
652
|
}[];
|
|
649
|
-
events: {
|
|
650
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
651
|
-
timestamp: number | null;
|
|
652
|
-
}[];
|
|
653
653
|
details?: {
|
|
654
654
|
origin?: string;
|
|
655
655
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
656
656
|
};
|
|
657
657
|
}[], import("@metamask/superstruct").Struct<{
|
|
658
|
-
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
658
|
+
type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
|
|
659
659
|
id: string;
|
|
660
|
-
account: string;
|
|
661
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
662
|
-
timestamp: number | null;
|
|
663
|
-
chain: `${string}:${string}`;
|
|
664
660
|
from: {
|
|
665
661
|
address: string;
|
|
666
662
|
asset: {
|
|
667
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
668
663
|
unit: string;
|
|
664
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
669
665
|
amount: string;
|
|
670
666
|
fungible: true;
|
|
671
667
|
} | {
|
|
@@ -673,11 +669,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
673
669
|
fungible: false;
|
|
674
670
|
} | null;
|
|
675
671
|
}[];
|
|
672
|
+
events: {
|
|
673
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
674
|
+
timestamp: number | null;
|
|
675
|
+
}[];
|
|
676
|
+
chain: `${string}:${string}`;
|
|
677
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
678
|
+
account: string;
|
|
679
|
+
timestamp: number | null;
|
|
676
680
|
to: {
|
|
677
681
|
address: string;
|
|
678
682
|
asset: {
|
|
679
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
680
683
|
unit: string;
|
|
684
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
681
685
|
amount: string;
|
|
682
686
|
fungible: true;
|
|
683
687
|
} | {
|
|
@@ -688,8 +692,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
688
692
|
fees: {
|
|
689
693
|
type: "base" | "priority";
|
|
690
694
|
asset: {
|
|
691
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
692
695
|
unit: string;
|
|
696
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
693
697
|
amount: string;
|
|
694
698
|
fungible: true;
|
|
695
699
|
} | {
|
|
@@ -697,10 +701,6 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
697
701
|
fungible: false;
|
|
698
702
|
};
|
|
699
703
|
}[];
|
|
700
|
-
events: {
|
|
701
|
-
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
702
|
-
timestamp: number | null;
|
|
703
|
-
}[];
|
|
704
704
|
details?: {
|
|
705
705
|
origin?: string;
|
|
706
706
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
@@ -737,7 +737,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
737
737
|
* Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
|
|
738
738
|
* details on the UI.
|
|
739
739
|
*/
|
|
740
|
-
type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw"
|
|
740
|
+
type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw", {
|
|
741
|
+
unknown: "unknown";
|
|
741
742
|
send: "send";
|
|
742
743
|
receive: "receive";
|
|
743
744
|
swap: "swap";
|
|
@@ -745,7 +746,6 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
745
746
|
"bridge:receive": "bridge:receive";
|
|
746
747
|
"stake:deposit": "stake:deposit";
|
|
747
748
|
"stake:withdraw": "stake:withdraw";
|
|
748
|
-
unknown: "unknown";
|
|
749
749
|
}>;
|
|
750
750
|
/**
|
|
751
751
|
* Transaction sender addresses and amounts.
|
|
@@ -753,8 +753,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
753
753
|
from: import("@metamask/superstruct").Struct<{
|
|
754
754
|
address: string;
|
|
755
755
|
asset: {
|
|
756
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
757
756
|
unit: string;
|
|
757
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
758
758
|
amount: string;
|
|
759
759
|
fungible: true;
|
|
760
760
|
} | {
|
|
@@ -764,8 +764,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
764
764
|
}[], import("@metamask/superstruct").Struct<{
|
|
765
765
|
address: string;
|
|
766
766
|
asset: {
|
|
767
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
768
767
|
unit: string;
|
|
768
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
769
769
|
amount: string;
|
|
770
770
|
fungible: true;
|
|
771
771
|
} | {
|
|
@@ -781,8 +781,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
781
781
|
* Asset being transferred.
|
|
782
782
|
*/
|
|
783
783
|
asset: import("@metamask/superstruct").Struct<{
|
|
784
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
785
784
|
unit: string;
|
|
785
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
786
786
|
amount: string;
|
|
787
787
|
fungible: true;
|
|
788
788
|
} | {
|
|
@@ -796,8 +796,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
796
796
|
to: import("@metamask/superstruct").Struct<{
|
|
797
797
|
address: string;
|
|
798
798
|
asset: {
|
|
799
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
800
799
|
unit: string;
|
|
800
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
801
801
|
amount: string;
|
|
802
802
|
fungible: true;
|
|
803
803
|
} | {
|
|
@@ -807,8 +807,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
807
807
|
}[], import("@metamask/superstruct").Struct<{
|
|
808
808
|
address: string;
|
|
809
809
|
asset: {
|
|
810
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
811
810
|
unit: string;
|
|
811
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
812
812
|
amount: string;
|
|
813
813
|
fungible: true;
|
|
814
814
|
} | {
|
|
@@ -824,8 +824,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
824
824
|
* Asset being transferred.
|
|
825
825
|
*/
|
|
826
826
|
asset: import("@metamask/superstruct").Struct<{
|
|
827
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
828
827
|
unit: string;
|
|
828
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
829
829
|
amount: string;
|
|
830
830
|
fungible: true;
|
|
831
831
|
} | {
|
|
@@ -839,8 +839,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
839
839
|
fees: import("@metamask/superstruct").Struct<{
|
|
840
840
|
type: "base" | "priority";
|
|
841
841
|
asset: {
|
|
842
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
843
842
|
unit: string;
|
|
843
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
844
844
|
amount: string;
|
|
845
845
|
fungible: true;
|
|
846
846
|
} | {
|
|
@@ -850,8 +850,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
850
850
|
}[], import("@metamask/superstruct").Struct<{
|
|
851
851
|
type: "base" | "priority";
|
|
852
852
|
asset: {
|
|
853
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
854
853
|
unit: string;
|
|
854
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
855
855
|
amount: string;
|
|
856
856
|
fungible: true;
|
|
857
857
|
} | {
|
|
@@ -870,8 +870,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
870
870
|
* Asset used to pay for the fee.
|
|
871
871
|
*/
|
|
872
872
|
asset: import("@metamask/superstruct").Struct<{
|
|
873
|
-
type: `${string}:${string}/${string}:${string}`;
|
|
874
873
|
unit: string;
|
|
874
|
+
type: `${string}:${string}/${string}:${string}`;
|
|
875
875
|
amount: string;
|
|
876
876
|
fungible: true;
|
|
877
877
|
} | {
|