@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
|
@@ -84,6 +84,10 @@ export declare enum TransactionType {
|
|
|
84
84
|
* Represents a stake withdrawal transaction.
|
|
85
85
|
*/
|
|
86
86
|
StakeWithdraw = "stake:withdraw",
|
|
87
|
+
/**
|
|
88
|
+
* Represents a token approval transaction.
|
|
89
|
+
*/
|
|
90
|
+
TokenApprove = "token:approve",
|
|
87
91
|
/**
|
|
88
92
|
* The transaction type is unknown. It's not possible to determine the
|
|
89
93
|
* transaction type based on the information available.
|
|
@@ -226,13 +230,17 @@ export declare const TransactionEventStruct: import("@metamask/superstruct").Str
|
|
|
226
230
|
* ```
|
|
227
231
|
*/
|
|
228
232
|
export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
229
|
-
type: "
|
|
233
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
230
234
|
id: string;
|
|
235
|
+
account: string;
|
|
236
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
237
|
+
timestamp: number | null;
|
|
238
|
+
chain: `${string}:${string}`;
|
|
231
239
|
from: {
|
|
232
240
|
address: string;
|
|
233
241
|
asset: {
|
|
234
|
-
unit: string;
|
|
235
242
|
type: `${string}:${string}/${string}:${string}`;
|
|
243
|
+
unit: string;
|
|
236
244
|
amount: string;
|
|
237
245
|
fungible: true;
|
|
238
246
|
} | {
|
|
@@ -240,19 +248,11 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
240
248
|
fungible: false;
|
|
241
249
|
} | null;
|
|
242
250
|
}[];
|
|
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;
|
|
251
251
|
to: {
|
|
252
252
|
address: string;
|
|
253
253
|
asset: {
|
|
254
|
-
unit: string;
|
|
255
254
|
type: `${string}:${string}/${string}:${string}`;
|
|
255
|
+
unit: string;
|
|
256
256
|
amount: string;
|
|
257
257
|
fungible: true;
|
|
258
258
|
} | {
|
|
@@ -263,8 +263,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
263
263
|
fees: {
|
|
264
264
|
type: "base" | "priority";
|
|
265
265
|
asset: {
|
|
266
|
-
unit: string;
|
|
267
266
|
type: `${string}:${string}/${string}:${string}`;
|
|
267
|
+
unit: string;
|
|
268
268
|
amount: string;
|
|
269
269
|
fungible: true;
|
|
270
270
|
} | {
|
|
@@ -272,6 +272,10 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
272
272
|
fungible: false;
|
|
273
273
|
};
|
|
274
274
|
}[];
|
|
275
|
+
events: {
|
|
276
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
277
|
+
timestamp: number | null;
|
|
278
|
+
}[];
|
|
275
279
|
details?: {
|
|
276
280
|
origin?: string;
|
|
277
281
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
@@ -308,8 +312,7 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
308
312
|
* Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
|
|
309
313
|
* details on the UI.
|
|
310
314
|
*/
|
|
311
|
-
type: import("@metamask/superstruct").Struct<"
|
|
312
|
-
unknown: "unknown";
|
|
315
|
+
type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown", {
|
|
313
316
|
send: "send";
|
|
314
317
|
receive: "receive";
|
|
315
318
|
swap: "swap";
|
|
@@ -317,6 +320,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
317
320
|
"bridge:receive": "bridge:receive";
|
|
318
321
|
"stake:deposit": "stake:deposit";
|
|
319
322
|
"stake:withdraw": "stake:withdraw";
|
|
323
|
+
"token:approve": "token:approve";
|
|
324
|
+
unknown: "unknown";
|
|
320
325
|
}>;
|
|
321
326
|
/**
|
|
322
327
|
* Transaction sender addresses and amounts.
|
|
@@ -324,8 +329,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
324
329
|
from: import("@metamask/superstruct").Struct<{
|
|
325
330
|
address: string;
|
|
326
331
|
asset: {
|
|
327
|
-
unit: string;
|
|
328
332
|
type: `${string}:${string}/${string}:${string}`;
|
|
333
|
+
unit: string;
|
|
329
334
|
amount: string;
|
|
330
335
|
fungible: true;
|
|
331
336
|
} | {
|
|
@@ -335,8 +340,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
335
340
|
}[], import("@metamask/superstruct").Struct<{
|
|
336
341
|
address: string;
|
|
337
342
|
asset: {
|
|
338
|
-
unit: string;
|
|
339
343
|
type: `${string}:${string}/${string}:${string}`;
|
|
344
|
+
unit: string;
|
|
340
345
|
amount: string;
|
|
341
346
|
fungible: true;
|
|
342
347
|
} | {
|
|
@@ -352,8 +357,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
352
357
|
* Asset being transferred.
|
|
353
358
|
*/
|
|
354
359
|
asset: import("@metamask/superstruct").Struct<{
|
|
355
|
-
unit: string;
|
|
356
360
|
type: `${string}:${string}/${string}:${string}`;
|
|
361
|
+
unit: string;
|
|
357
362
|
amount: string;
|
|
358
363
|
fungible: true;
|
|
359
364
|
} | {
|
|
@@ -367,8 +372,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
367
372
|
to: import("@metamask/superstruct").Struct<{
|
|
368
373
|
address: string;
|
|
369
374
|
asset: {
|
|
370
|
-
unit: string;
|
|
371
375
|
type: `${string}:${string}/${string}:${string}`;
|
|
376
|
+
unit: string;
|
|
372
377
|
amount: string;
|
|
373
378
|
fungible: true;
|
|
374
379
|
} | {
|
|
@@ -378,8 +383,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
378
383
|
}[], import("@metamask/superstruct").Struct<{
|
|
379
384
|
address: string;
|
|
380
385
|
asset: {
|
|
381
|
-
unit: string;
|
|
382
386
|
type: `${string}:${string}/${string}:${string}`;
|
|
387
|
+
unit: string;
|
|
383
388
|
amount: string;
|
|
384
389
|
fungible: true;
|
|
385
390
|
} | {
|
|
@@ -395,8 +400,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
395
400
|
* Asset being transferred.
|
|
396
401
|
*/
|
|
397
402
|
asset: import("@metamask/superstruct").Struct<{
|
|
398
|
-
unit: string;
|
|
399
403
|
type: `${string}:${string}/${string}:${string}`;
|
|
404
|
+
unit: string;
|
|
400
405
|
amount: string;
|
|
401
406
|
fungible: true;
|
|
402
407
|
} | {
|
|
@@ -410,8 +415,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
410
415
|
fees: import("@metamask/superstruct").Struct<{
|
|
411
416
|
type: "base" | "priority";
|
|
412
417
|
asset: {
|
|
413
|
-
unit: string;
|
|
414
418
|
type: `${string}:${string}/${string}:${string}`;
|
|
419
|
+
unit: string;
|
|
415
420
|
amount: string;
|
|
416
421
|
fungible: true;
|
|
417
422
|
} | {
|
|
@@ -421,8 +426,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
421
426
|
}[], import("@metamask/superstruct").Struct<{
|
|
422
427
|
type: "base" | "priority";
|
|
423
428
|
asset: {
|
|
424
|
-
unit: string;
|
|
425
429
|
type: `${string}:${string}/${string}:${string}`;
|
|
430
|
+
unit: string;
|
|
426
431
|
amount: string;
|
|
427
432
|
fungible: true;
|
|
428
433
|
} | {
|
|
@@ -441,8 +446,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
|
441
446
|
* Asset used to pay for the fee.
|
|
442
447
|
*/
|
|
443
448
|
asset: import("@metamask/superstruct").Struct<{
|
|
444
|
-
unit: string;
|
|
445
449
|
type: `${string}:${string}/${string}:${string}`;
|
|
450
|
+
unit: string;
|
|
446
451
|
amount: string;
|
|
447
452
|
fungible: true;
|
|
448
453
|
} | {
|
|
@@ -546,14 +551,19 @@ export type Transaction = Infer<typeof TransactionStruct>;
|
|
|
546
551
|
* ```
|
|
547
552
|
*/
|
|
548
553
|
export declare const TransactionsPageStruct: import("@metamask/superstruct").Struct<{
|
|
554
|
+
next: string | null;
|
|
549
555
|
data: {
|
|
550
|
-
type: "
|
|
556
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
551
557
|
id: string;
|
|
558
|
+
account: string;
|
|
559
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
560
|
+
timestamp: number | null;
|
|
561
|
+
chain: `${string}:${string}`;
|
|
552
562
|
from: {
|
|
553
563
|
address: string;
|
|
554
564
|
asset: {
|
|
555
|
-
unit: string;
|
|
556
565
|
type: `${string}:${string}/${string}:${string}`;
|
|
566
|
+
unit: string;
|
|
557
567
|
amount: string;
|
|
558
568
|
fungible: true;
|
|
559
569
|
} | {
|
|
@@ -561,19 +571,11 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
561
571
|
fungible: false;
|
|
562
572
|
} | null;
|
|
563
573
|
}[];
|
|
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;
|
|
572
574
|
to: {
|
|
573
575
|
address: string;
|
|
574
576
|
asset: {
|
|
575
|
-
unit: string;
|
|
576
577
|
type: `${string}:${string}/${string}:${string}`;
|
|
578
|
+
unit: string;
|
|
577
579
|
amount: string;
|
|
578
580
|
fungible: true;
|
|
579
581
|
} | {
|
|
@@ -584,8 +586,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
584
586
|
fees: {
|
|
585
587
|
type: "base" | "priority";
|
|
586
588
|
asset: {
|
|
587
|
-
unit: string;
|
|
588
589
|
type: `${string}:${string}/${string}:${string}`;
|
|
590
|
+
unit: string;
|
|
589
591
|
amount: string;
|
|
590
592
|
fungible: true;
|
|
591
593
|
} | {
|
|
@@ -593,24 +595,31 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
593
595
|
fungible: false;
|
|
594
596
|
};
|
|
595
597
|
}[];
|
|
598
|
+
events: {
|
|
599
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
600
|
+
timestamp: number | null;
|
|
601
|
+
}[];
|
|
596
602
|
details?: {
|
|
597
603
|
origin?: string;
|
|
598
604
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
599
605
|
};
|
|
600
606
|
}[];
|
|
601
|
-
next: string | null;
|
|
602
607
|
}, {
|
|
603
608
|
/**
|
|
604
609
|
* List of transactions.
|
|
605
610
|
*/
|
|
606
611
|
data: import("@metamask/superstruct").Struct<{
|
|
607
|
-
type: "
|
|
612
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
608
613
|
id: string;
|
|
614
|
+
account: string;
|
|
615
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
616
|
+
timestamp: number | null;
|
|
617
|
+
chain: `${string}:${string}`;
|
|
609
618
|
from: {
|
|
610
619
|
address: string;
|
|
611
620
|
asset: {
|
|
612
|
-
unit: string;
|
|
613
621
|
type: `${string}:${string}/${string}:${string}`;
|
|
622
|
+
unit: string;
|
|
614
623
|
amount: string;
|
|
615
624
|
fungible: true;
|
|
616
625
|
} | {
|
|
@@ -618,19 +627,11 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
618
627
|
fungible: false;
|
|
619
628
|
} | null;
|
|
620
629
|
}[];
|
|
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;
|
|
629
630
|
to: {
|
|
630
631
|
address: string;
|
|
631
632
|
asset: {
|
|
632
|
-
unit: string;
|
|
633
633
|
type: `${string}:${string}/${string}:${string}`;
|
|
634
|
+
unit: string;
|
|
634
635
|
amount: string;
|
|
635
636
|
fungible: true;
|
|
636
637
|
} | {
|
|
@@ -641,8 +642,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
641
642
|
fees: {
|
|
642
643
|
type: "base" | "priority";
|
|
643
644
|
asset: {
|
|
644
|
-
unit: string;
|
|
645
645
|
type: `${string}:${string}/${string}:${string}`;
|
|
646
|
+
unit: string;
|
|
646
647
|
amount: string;
|
|
647
648
|
fungible: true;
|
|
648
649
|
} | {
|
|
@@ -650,18 +651,26 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
650
651
|
fungible: false;
|
|
651
652
|
};
|
|
652
653
|
}[];
|
|
654
|
+
events: {
|
|
655
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
656
|
+
timestamp: number | null;
|
|
657
|
+
}[];
|
|
653
658
|
details?: {
|
|
654
659
|
origin?: string;
|
|
655
660
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
656
661
|
};
|
|
657
662
|
}[], import("@metamask/superstruct").Struct<{
|
|
658
|
-
type: "
|
|
663
|
+
type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
|
|
659
664
|
id: string;
|
|
665
|
+
account: string;
|
|
666
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
667
|
+
timestamp: number | null;
|
|
668
|
+
chain: `${string}:${string}`;
|
|
660
669
|
from: {
|
|
661
670
|
address: string;
|
|
662
671
|
asset: {
|
|
663
|
-
unit: string;
|
|
664
672
|
type: `${string}:${string}/${string}:${string}`;
|
|
673
|
+
unit: string;
|
|
665
674
|
amount: string;
|
|
666
675
|
fungible: true;
|
|
667
676
|
} | {
|
|
@@ -669,19 +678,11 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
669
678
|
fungible: false;
|
|
670
679
|
} | null;
|
|
671
680
|
}[];
|
|
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;
|
|
680
681
|
to: {
|
|
681
682
|
address: string;
|
|
682
683
|
asset: {
|
|
683
|
-
unit: string;
|
|
684
684
|
type: `${string}:${string}/${string}:${string}`;
|
|
685
|
+
unit: string;
|
|
685
686
|
amount: string;
|
|
686
687
|
fungible: true;
|
|
687
688
|
} | {
|
|
@@ -692,8 +693,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
692
693
|
fees: {
|
|
693
694
|
type: "base" | "priority";
|
|
694
695
|
asset: {
|
|
695
|
-
unit: string;
|
|
696
696
|
type: `${string}:${string}/${string}:${string}`;
|
|
697
|
+
unit: string;
|
|
697
698
|
amount: string;
|
|
698
699
|
fungible: true;
|
|
699
700
|
} | {
|
|
@@ -701,6 +702,10 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
701
702
|
fungible: false;
|
|
702
703
|
};
|
|
703
704
|
}[];
|
|
705
|
+
events: {
|
|
706
|
+
status: "submitted" | "unconfirmed" | "confirmed" | "failed";
|
|
707
|
+
timestamp: number | null;
|
|
708
|
+
}[];
|
|
704
709
|
details?: {
|
|
705
710
|
origin?: string;
|
|
706
711
|
securityAlertResponse?: "Benign" | "Warning" | "Malicious";
|
|
@@ -737,8 +742,7 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
737
742
|
* Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
|
|
738
743
|
* details on the UI.
|
|
739
744
|
*/
|
|
740
|
-
type: import("@metamask/superstruct").Struct<"
|
|
741
|
-
unknown: "unknown";
|
|
745
|
+
type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown", {
|
|
742
746
|
send: "send";
|
|
743
747
|
receive: "receive";
|
|
744
748
|
swap: "swap";
|
|
@@ -746,6 +750,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
746
750
|
"bridge:receive": "bridge:receive";
|
|
747
751
|
"stake:deposit": "stake:deposit";
|
|
748
752
|
"stake:withdraw": "stake:withdraw";
|
|
753
|
+
"token:approve": "token:approve";
|
|
754
|
+
unknown: "unknown";
|
|
749
755
|
}>;
|
|
750
756
|
/**
|
|
751
757
|
* Transaction sender addresses and amounts.
|
|
@@ -753,8 +759,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
753
759
|
from: import("@metamask/superstruct").Struct<{
|
|
754
760
|
address: string;
|
|
755
761
|
asset: {
|
|
756
|
-
unit: string;
|
|
757
762
|
type: `${string}:${string}/${string}:${string}`;
|
|
763
|
+
unit: string;
|
|
758
764
|
amount: string;
|
|
759
765
|
fungible: true;
|
|
760
766
|
} | {
|
|
@@ -764,8 +770,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
764
770
|
}[], import("@metamask/superstruct").Struct<{
|
|
765
771
|
address: string;
|
|
766
772
|
asset: {
|
|
767
|
-
unit: string;
|
|
768
773
|
type: `${string}:${string}/${string}:${string}`;
|
|
774
|
+
unit: string;
|
|
769
775
|
amount: string;
|
|
770
776
|
fungible: true;
|
|
771
777
|
} | {
|
|
@@ -781,8 +787,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
781
787
|
* Asset being transferred.
|
|
782
788
|
*/
|
|
783
789
|
asset: import("@metamask/superstruct").Struct<{
|
|
784
|
-
unit: string;
|
|
785
790
|
type: `${string}:${string}/${string}:${string}`;
|
|
791
|
+
unit: string;
|
|
786
792
|
amount: string;
|
|
787
793
|
fungible: true;
|
|
788
794
|
} | {
|
|
@@ -796,8 +802,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
796
802
|
to: import("@metamask/superstruct").Struct<{
|
|
797
803
|
address: string;
|
|
798
804
|
asset: {
|
|
799
|
-
unit: string;
|
|
800
805
|
type: `${string}:${string}/${string}:${string}`;
|
|
806
|
+
unit: string;
|
|
801
807
|
amount: string;
|
|
802
808
|
fungible: true;
|
|
803
809
|
} | {
|
|
@@ -807,8 +813,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
807
813
|
}[], import("@metamask/superstruct").Struct<{
|
|
808
814
|
address: string;
|
|
809
815
|
asset: {
|
|
810
|
-
unit: string;
|
|
811
816
|
type: `${string}:${string}/${string}:${string}`;
|
|
817
|
+
unit: string;
|
|
812
818
|
amount: string;
|
|
813
819
|
fungible: true;
|
|
814
820
|
} | {
|
|
@@ -824,8 +830,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
824
830
|
* Asset being transferred.
|
|
825
831
|
*/
|
|
826
832
|
asset: import("@metamask/superstruct").Struct<{
|
|
827
|
-
unit: string;
|
|
828
833
|
type: `${string}:${string}/${string}:${string}`;
|
|
834
|
+
unit: string;
|
|
829
835
|
amount: string;
|
|
830
836
|
fungible: true;
|
|
831
837
|
} | {
|
|
@@ -839,8 +845,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
839
845
|
fees: import("@metamask/superstruct").Struct<{
|
|
840
846
|
type: "base" | "priority";
|
|
841
847
|
asset: {
|
|
842
|
-
unit: string;
|
|
843
848
|
type: `${string}:${string}/${string}:${string}`;
|
|
849
|
+
unit: string;
|
|
844
850
|
amount: string;
|
|
845
851
|
fungible: true;
|
|
846
852
|
} | {
|
|
@@ -850,8 +856,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
850
856
|
}[], import("@metamask/superstruct").Struct<{
|
|
851
857
|
type: "base" | "priority";
|
|
852
858
|
asset: {
|
|
853
|
-
unit: string;
|
|
854
859
|
type: `${string}:${string}/${string}:${string}`;
|
|
860
|
+
unit: string;
|
|
855
861
|
amount: string;
|
|
856
862
|
fungible: true;
|
|
857
863
|
} | {
|
|
@@ -870,8 +876,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
|
870
876
|
* Asset used to pay for the fee.
|
|
871
877
|
*/
|
|
872
878
|
asset: import("@metamask/superstruct").Struct<{
|
|
873
|
-
unit: string;
|
|
874
879
|
type: `${string}:${string}/${string}:${string}`;
|
|
880
|
+
unit: string;
|
|
875
881
|
amount: string;
|
|
876
882
|
fungible: true;
|
|
877
883
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.cts","sourceRoot":"","sources":["../../src/api/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gCAAgC;AAE3D,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAiD9C;;GAEG;AACH,oBAAY,OAAO;IACjB;;;;;;OAMG;IACH,IAAI,SAAS;IAEb;;;;;OAKG;IACH,QAAQ,aAAa;CACtB;AAiBD;;GAEG;AACH,oBAAY,iBAAiB;IAC3B;;;OAGG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,eAAe;IACzB;;;;OAIG;IACH,IAAI,SAAS;IAEb;;;OAGG;IACH,OAAO,YAAY;IAEnB;;;;;OAKG;IACH,IAAI,SAAS;IAEb;;;OAGG;IACH,UAAU,gBAAgB;IAE1B;;;OAGG;IACH,aAAa,mBAAmB;IAEhC;;OAEG;IACH,YAAY,kBAAkB;IAE9B;;OAEG;IACH,aAAa,mBAAmB;IAEhC;;;OAGG;IACH,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,SAAS,cAAc;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBA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