@metamask/keyring-api 14.0.0 → 16.0.0
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 +28 -1
- package/dist/api/account.cjs +2 -2
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +2 -2
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +2 -2
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +5 -5
- package/dist/api/account.mjs.map +1 -1
- package/dist/api/address.cjs +14 -0
- package/dist/api/address.cjs.map +1 -0
- package/dist/api/address.d.cts +19 -0
- package/dist/api/address.d.cts.map +1 -0
- package/dist/api/address.d.mts +19 -0
- package/dist/api/address.d.mts.map +1 -0
- package/dist/api/address.mjs +11 -0
- package/dist/api/address.mjs.map +1 -0
- package/dist/api/asset.cjs +15 -9
- package/dist/api/asset.cjs.map +1 -1
- package/dist/api/asset.d.cts +25 -9
- package/dist/api/asset.d.cts.map +1 -1
- package/dist/api/asset.d.mts +25 -9
- package/dist/api/asset.d.mts.map +1 -1
- package/dist/api/asset.mjs +14 -8
- package/dist/api/asset.mjs.map +1 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.cts.map +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.mts.map +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/api/index.mjs.map +1 -1
- package/dist/api/keyring.cjs.map +1 -1
- package/dist/api/keyring.d.cts +16 -2
- package/dist/api/keyring.d.cts.map +1 -1
- package/dist/api/keyring.d.mts +16 -2
- package/dist/api/keyring.d.mts.map +1 -1
- package/dist/api/keyring.mjs.map +1 -1
- package/dist/api/transaction.d.cts +30 -30
- package/dist/api/transaction.d.mts +30 -30
- package/dist/btc/constants.cjs +9 -10
- package/dist/btc/constants.cjs.map +1 -1
- package/dist/btc/constants.d.cts +1 -2
- package/dist/btc/constants.d.cts.map +1 -1
- package/dist/btc/constants.d.mts +1 -2
- package/dist/btc/constants.d.mts.map +1 -1
- package/dist/btc/constants.mjs +8 -9
- package/dist/btc/constants.mjs.map +1 -1
- package/dist/btc/types.cjs +7 -0
- package/dist/btc/types.cjs.map +1 -1
- package/dist/btc/types.d.cts +7 -2
- package/dist/btc/types.d.cts.map +1 -1
- package/dist/btc/types.d.mts +7 -2
- package/dist/btc/types.d.mts.map +1 -1
- package/dist/btc/types.mjs +8 -1
- package/dist/btc/types.mjs.map +1 -1
- package/dist/eth/constants.cjs +7 -6
- package/dist/eth/constants.cjs.map +1 -1
- package/dist/eth/constants.d.cts +4 -3
- package/dist/eth/constants.d.cts.map +1 -1
- package/dist/eth/constants.d.mts +4 -3
- package/dist/eth/constants.d.mts.map +1 -1
- package/dist/eth/constants.mjs +6 -5
- package/dist/eth/constants.mjs.map +1 -1
- package/dist/eth/types.cjs +7 -2
- package/dist/eth/types.cjs.map +1 -1
- package/dist/eth/types.d.cts +9 -6
- package/dist/eth/types.d.cts.map +1 -1
- package/dist/eth/types.d.mts +9 -6
- package/dist/eth/types.d.mts.map +1 -1
- package/dist/eth/types.mjs +8 -3
- package/dist/eth/types.mjs.map +1 -1
- package/dist/events.cjs +75 -1
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +248 -9
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +248 -9
- package/dist/events.d.mts.map +1 -1
- package/dist/events.mjs +78 -4
- package/dist/events.mjs.map +1 -1
- package/dist/rpc.cjs +18 -4
- package/dist/rpc.cjs.map +1 -1
- package/dist/rpc.d.cts +77 -29
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +77 -29
- package/dist/rpc.d.mts.map +1 -1
- package/dist/rpc.mjs +18 -4
- package/dist/rpc.mjs.map +1 -1
- package/dist/sol/constants.cjs +7 -8
- package/dist/sol/constants.cjs.map +1 -1
- package/dist/sol/constants.d.cts +1 -2
- package/dist/sol/constants.d.cts.map +1 -1
- package/dist/sol/constants.d.mts +1 -2
- package/dist/sol/constants.d.mts.map +1 -1
- package/dist/sol/constants.mjs +6 -7
- package/dist/sol/constants.mjs.map +1 -1
- package/dist/sol/types.cjs +5 -0
- package/dist/sol/types.cjs.map +1 -1
- package/dist/sol/types.d.cts +5 -2
- package/dist/sol/types.d.cts.map +1 -1
- package/dist/sol/types.d.mts +5 -2
- package/dist/sol/types.d.mts.map +1 -1
- package/dist/sol/types.mjs +6 -1
- package/dist/sol/types.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/api/caip.cjs +0 -21
- package/dist/api/caip.cjs.map +0 -1
- package/dist/api/caip.d.cts +0 -21
- package/dist/api/caip.d.cts.map +0 -1
- package/dist/api/caip.d.mts +0 -21
- package/dist/api/caip.d.mts.map +0 -1
- package/dist/api/caip.mjs +0 -18
- package/dist/api/caip.mjs.map +0 -1
@@ -146,8 +146,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
146
146
|
asset: {
|
147
147
|
unit: string;
|
148
148
|
type: `${string}:${string}/${string}:${string}`;
|
149
|
-
fungible: true;
|
150
149
|
amount: string;
|
150
|
+
fungible: true;
|
151
151
|
} | {
|
152
152
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
153
153
|
fungible: false;
|
@@ -166,8 +166,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
166
166
|
asset: {
|
167
167
|
unit: string;
|
168
168
|
type: `${string}:${string}/${string}:${string}`;
|
169
|
-
fungible: true;
|
170
169
|
amount: string;
|
170
|
+
fungible: true;
|
171
171
|
} | {
|
172
172
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
173
173
|
fungible: false;
|
@@ -178,8 +178,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
178
178
|
asset: {
|
179
179
|
unit: string;
|
180
180
|
type: `${string}:${string}/${string}:${string}`;
|
181
|
-
fungible: true;
|
182
181
|
amount: string;
|
182
|
+
fungible: true;
|
183
183
|
} | {
|
184
184
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
185
185
|
fungible: false;
|
@@ -229,8 +229,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
229
229
|
asset: {
|
230
230
|
unit: string;
|
231
231
|
type: `${string}:${string}/${string}:${string}`;
|
232
|
-
fungible: true;
|
233
232
|
amount: string;
|
233
|
+
fungible: true;
|
234
234
|
} | {
|
235
235
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
236
236
|
fungible: false;
|
@@ -240,8 +240,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
240
240
|
asset: {
|
241
241
|
unit: string;
|
242
242
|
type: `${string}:${string}/${string}:${string}`;
|
243
|
-
fungible: true;
|
244
243
|
amount: string;
|
244
|
+
fungible: true;
|
245
245
|
} | {
|
246
246
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
247
247
|
fungible: false;
|
@@ -257,8 +257,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
257
257
|
asset: import("@metamask/superstruct").Struct<{
|
258
258
|
unit: string;
|
259
259
|
type: `${string}:${string}/${string}:${string}`;
|
260
|
-
fungible: true;
|
261
260
|
amount: string;
|
261
|
+
fungible: true;
|
262
262
|
} | {
|
263
263
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
264
264
|
fungible: false;
|
@@ -272,8 +272,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
272
272
|
asset: {
|
273
273
|
unit: string;
|
274
274
|
type: `${string}:${string}/${string}:${string}`;
|
275
|
-
fungible: true;
|
276
275
|
amount: string;
|
276
|
+
fungible: true;
|
277
277
|
} | {
|
278
278
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
279
279
|
fungible: false;
|
@@ -283,8 +283,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
283
283
|
asset: {
|
284
284
|
unit: string;
|
285
285
|
type: `${string}:${string}/${string}:${string}`;
|
286
|
-
fungible: true;
|
287
286
|
amount: string;
|
287
|
+
fungible: true;
|
288
288
|
} | {
|
289
289
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
290
290
|
fungible: false;
|
@@ -300,8 +300,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
300
300
|
asset: import("@metamask/superstruct").Struct<{
|
301
301
|
unit: string;
|
302
302
|
type: `${string}:${string}/${string}:${string}`;
|
303
|
-
fungible: true;
|
304
303
|
amount: string;
|
304
|
+
fungible: true;
|
305
305
|
} | {
|
306
306
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
307
307
|
fungible: false;
|
@@ -315,8 +315,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
315
315
|
asset: {
|
316
316
|
unit: string;
|
317
317
|
type: `${string}:${string}/${string}:${string}`;
|
318
|
-
fungible: true;
|
319
318
|
amount: string;
|
319
|
+
fungible: true;
|
320
320
|
} | {
|
321
321
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
322
322
|
fungible: false;
|
@@ -326,8 +326,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
326
326
|
asset: {
|
327
327
|
unit: string;
|
328
328
|
type: `${string}:${string}/${string}:${string}`;
|
329
|
-
fungible: true;
|
330
329
|
amount: string;
|
330
|
+
fungible: true;
|
331
331
|
} | {
|
332
332
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
333
333
|
fungible: false;
|
@@ -346,8 +346,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
|
|
346
346
|
asset: import("@metamask/superstruct").Struct<{
|
347
347
|
unit: string;
|
348
348
|
type: `${string}:${string}/${string}:${string}`;
|
349
|
-
fungible: true;
|
350
349
|
amount: string;
|
350
|
+
fungible: true;
|
351
351
|
} | {
|
352
352
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
353
353
|
fungible: false;
|
@@ -423,8 +423,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
423
423
|
asset: {
|
424
424
|
unit: string;
|
425
425
|
type: `${string}:${string}/${string}:${string}`;
|
426
|
-
fungible: true;
|
427
426
|
amount: string;
|
427
|
+
fungible: true;
|
428
428
|
} | {
|
429
429
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
430
430
|
fungible: false;
|
@@ -443,8 +443,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
443
443
|
asset: {
|
444
444
|
unit: string;
|
445
445
|
type: `${string}:${string}/${string}:${string}`;
|
446
|
-
fungible: true;
|
447
446
|
amount: string;
|
447
|
+
fungible: true;
|
448
448
|
} | {
|
449
449
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
450
450
|
fungible: false;
|
@@ -455,8 +455,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
455
455
|
asset: {
|
456
456
|
unit: string;
|
457
457
|
type: `${string}:${string}/${string}:${string}`;
|
458
|
-
fungible: true;
|
459
458
|
amount: string;
|
459
|
+
fungible: true;
|
460
460
|
} | {
|
461
461
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
462
462
|
fungible: false;
|
@@ -476,8 +476,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
476
476
|
asset: {
|
477
477
|
unit: string;
|
478
478
|
type: `${string}:${string}/${string}:${string}`;
|
479
|
-
fungible: true;
|
480
479
|
amount: string;
|
480
|
+
fungible: true;
|
481
481
|
} | {
|
482
482
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
483
483
|
fungible: false;
|
@@ -496,8 +496,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
496
496
|
asset: {
|
497
497
|
unit: string;
|
498
498
|
type: `${string}:${string}/${string}:${string}`;
|
499
|
-
fungible: true;
|
500
499
|
amount: string;
|
500
|
+
fungible: true;
|
501
501
|
} | {
|
502
502
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
503
503
|
fungible: false;
|
@@ -508,8 +508,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
508
508
|
asset: {
|
509
509
|
unit: string;
|
510
510
|
type: `${string}:${string}/${string}:${string}`;
|
511
|
-
fungible: true;
|
512
511
|
amount: string;
|
512
|
+
fungible: true;
|
513
513
|
} | {
|
514
514
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
515
515
|
fungible: false;
|
@@ -523,8 +523,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
523
523
|
asset: {
|
524
524
|
unit: string;
|
525
525
|
type: `${string}:${string}/${string}:${string}`;
|
526
|
-
fungible: true;
|
527
526
|
amount: string;
|
527
|
+
fungible: true;
|
528
528
|
} | {
|
529
529
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
530
530
|
fungible: false;
|
@@ -543,8 +543,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
543
543
|
asset: {
|
544
544
|
unit: string;
|
545
545
|
type: `${string}:${string}/${string}:${string}`;
|
546
|
-
fungible: true;
|
547
546
|
amount: string;
|
547
|
+
fungible: true;
|
548
548
|
} | {
|
549
549
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
550
550
|
fungible: false;
|
@@ -555,8 +555,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
555
555
|
asset: {
|
556
556
|
unit: string;
|
557
557
|
type: `${string}:${string}/${string}:${string}`;
|
558
|
-
fungible: true;
|
559
558
|
amount: string;
|
559
|
+
fungible: true;
|
560
560
|
} | {
|
561
561
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
562
562
|
fungible: false;
|
@@ -606,8 +606,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
606
606
|
asset: {
|
607
607
|
unit: string;
|
608
608
|
type: `${string}:${string}/${string}:${string}`;
|
609
|
-
fungible: true;
|
610
609
|
amount: string;
|
610
|
+
fungible: true;
|
611
611
|
} | {
|
612
612
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
613
613
|
fungible: false;
|
@@ -617,8 +617,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
617
617
|
asset: {
|
618
618
|
unit: string;
|
619
619
|
type: `${string}:${string}/${string}:${string}`;
|
620
|
-
fungible: true;
|
621
620
|
amount: string;
|
621
|
+
fungible: true;
|
622
622
|
} | {
|
623
623
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
624
624
|
fungible: false;
|
@@ -634,8 +634,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
634
634
|
asset: import("@metamask/superstruct").Struct<{
|
635
635
|
unit: string;
|
636
636
|
type: `${string}:${string}/${string}:${string}`;
|
637
|
-
fungible: true;
|
638
637
|
amount: string;
|
638
|
+
fungible: true;
|
639
639
|
} | {
|
640
640
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
641
641
|
fungible: false;
|
@@ -649,8 +649,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
649
649
|
asset: {
|
650
650
|
unit: string;
|
651
651
|
type: `${string}:${string}/${string}:${string}`;
|
652
|
-
fungible: true;
|
653
652
|
amount: string;
|
653
|
+
fungible: true;
|
654
654
|
} | {
|
655
655
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
656
656
|
fungible: false;
|
@@ -660,8 +660,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
660
660
|
asset: {
|
661
661
|
unit: string;
|
662
662
|
type: `${string}:${string}/${string}:${string}`;
|
663
|
-
fungible: true;
|
664
663
|
amount: string;
|
664
|
+
fungible: true;
|
665
665
|
} | {
|
666
666
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
667
667
|
fungible: false;
|
@@ -677,8 +677,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
677
677
|
asset: import("@metamask/superstruct").Struct<{
|
678
678
|
unit: string;
|
679
679
|
type: `${string}:${string}/${string}:${string}`;
|
680
|
-
fungible: true;
|
681
680
|
amount: string;
|
681
|
+
fungible: true;
|
682
682
|
} | {
|
683
683
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
684
684
|
fungible: false;
|
@@ -692,8 +692,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
692
692
|
asset: {
|
693
693
|
unit: string;
|
694
694
|
type: `${string}:${string}/${string}:${string}`;
|
695
|
-
fungible: true;
|
696
695
|
amount: string;
|
696
|
+
fungible: true;
|
697
697
|
} | {
|
698
698
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
699
699
|
fungible: false;
|
@@ -703,8 +703,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
703
703
|
asset: {
|
704
704
|
unit: string;
|
705
705
|
type: `${string}:${string}/${string}:${string}`;
|
706
|
-
fungible: true;
|
707
706
|
amount: string;
|
707
|
+
fungible: true;
|
708
708
|
} | {
|
709
709
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
710
710
|
fungible: false;
|
@@ -723,8 +723,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
|
|
723
723
|
asset: import("@metamask/superstruct").Struct<{
|
724
724
|
unit: string;
|
725
725
|
type: `${string}:${string}/${string}:${string}`;
|
726
|
-
fungible: true;
|
727
726
|
amount: string;
|
727
|
+
fungible: true;
|
728
728
|
} | {
|
729
729
|
id: `${string}:${string}/${string}:${string}/${string}`;
|
730
730
|
fungible: false;
|
package/dist/btc/constants.cjs
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
/* istanbul ignore file */
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.
|
4
|
+
exports.BtcScope = void 0;
|
5
5
|
/**
|
6
6
|
* Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.
|
7
7
|
*/
|
8
|
-
var
|
9
|
-
(function (
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
})(BtcScopes || (exports.BtcScopes = BtcScopes = {}));
|
8
|
+
var BtcScope;
|
9
|
+
(function (BtcScope) {
|
10
|
+
BtcScope["Mainnet"] = "bip122:000000000019d6689c085ae165831e93";
|
11
|
+
BtcScope["Testnet"] = "bip122:000000000933ea01ad0ee984209779ba";
|
12
|
+
BtcScope["Testnet4"] = "bip122:00000000da84f2bafbbc53dee25a72ae";
|
13
|
+
BtcScope["Signet"] = "bip122:00000008819873e925422c1ff0f99f7c";
|
14
|
+
BtcScope["Regtest"] = "bip122:regtest";
|
15
|
+
})(BtcScope || (exports.BtcScope = BtcScope = {}));
|
17
16
|
//# sourceMappingURL=constants.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B;;GAEG;AACH,IAAY,
|
1
|
+
{"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B;;GAEG;AACH,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,+DAAmD,CAAA;IACnD,+DAAmD,CAAA;IACnD,gEAAoD,CAAA;IACpD,8DAAkD,CAAA;IAClD,sCAA0B,CAAA;AAC5B,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.\n */\nexport enum BtcScope {\n Mainnet = 'bip122:000000000019d6689c085ae165831e93',\n Testnet = 'bip122:000000000933ea01ad0ee984209779ba',\n Testnet4 = 'bip122:00000000da84f2bafbbc53dee25a72ae',\n Signet = 'bip122:00000008819873e925422c1ff0f99f7c',\n Regtest = 'bip122:regtest',\n}\n"]}
|
package/dist/btc/constants.d.cts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.
|
3
3
|
*/
|
4
|
-
export declare enum
|
5
|
-
Namespace = "bip122",
|
4
|
+
export declare enum BtcScope {
|
6
5
|
Mainnet = "bip122:000000000019d6689c085ae165831e93",
|
7
6
|
Testnet = "bip122:000000000933ea01ad0ee984209779ba",
|
8
7
|
Testnet4 = "bip122:00000000da84f2bafbbc53dee25a72ae",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,
|
1
|
+
{"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,QAAQ;IAClB,OAAO,4CAA4C;IACnD,OAAO,4CAA4C;IACnD,QAAQ,4CAA4C;IACpD,MAAM,4CAA4C;IAClD,OAAO,mBAAmB;CAC3B"}
|
package/dist/btc/constants.d.mts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.
|
3
3
|
*/
|
4
|
-
export declare enum
|
5
|
-
Namespace = "bip122",
|
4
|
+
export declare enum BtcScope {
|
6
5
|
Mainnet = "bip122:000000000019d6689c085ae165831e93",
|
7
6
|
Testnet = "bip122:000000000933ea01ad0ee984209779ba",
|
8
7
|
Testnet4 = "bip122:00000000da84f2bafbbc53dee25a72ae",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,QAAQ;IAClB,OAAO,4CAA4C;IACnD,OAAO,4CAA4C;IACnD,QAAQ,4CAA4C;IACpD,MAAM,4CAA4C;IAClD,OAAO,mBAAmB;CAC3B"}
|
package/dist/btc/constants.mjs
CHANGED
@@ -2,13 +2,12 @@
|
|
2
2
|
/**
|
3
3
|
* Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.
|
4
4
|
*/
|
5
|
-
export var
|
6
|
-
(function (
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
})(BtcScopes || (BtcScopes = {}));
|
5
|
+
export var BtcScope;
|
6
|
+
(function (BtcScope) {
|
7
|
+
BtcScope["Mainnet"] = "bip122:000000000019d6689c085ae165831e93";
|
8
|
+
BtcScope["Testnet"] = "bip122:000000000933ea01ad0ee984209779ba";
|
9
|
+
BtcScope["Testnet4"] = "bip122:00000000da84f2bafbbc53dee25a72ae";
|
10
|
+
BtcScope["Signet"] = "bip122:00000008819873e925422c1ff0f99f7c";
|
11
|
+
BtcScope["Regtest"] = "bip122:regtest";
|
12
|
+
})(BtcScope || (BtcScope = {}));
|
14
13
|
//# sourceMappingURL=constants.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B;;GAEG;AACH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B;;GAEG;AACH,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,+DAAmD,CAAA;IACnD,+DAAmD,CAAA;IACnD,gEAAoD,CAAA;IACpD,8DAAkD,CAAA;IAClD,sCAA0B,CAAA;AAC5B,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.\n */\nexport enum BtcScope {\n Mainnet = 'bip122:000000000019d6689c085ae165831e93',\n Testnet = 'bip122:000000000933ea01ad0ee984209779ba',\n Testnet4 = 'bip122:00000000da84f2bafbbc53dee25a72ae',\n Signet = 'bip122:00000008819873e925422c1ff0f99f7c',\n Regtest = 'bip122:regtest',\n}\n"]}
|
package/dist/btc/types.cjs
CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BtcP2wpkhAccountStruct = exports.BtcMethod = exports.BtcP2wpkhAddressStruct = void 0;
|
4
4
|
const keyring_utils_1 = require("@metamask/keyring-utils");
|
5
5
|
const superstruct_1 = require("@metamask/superstruct");
|
6
|
+
const utils_1 = require("@metamask/utils");
|
6
7
|
const bech32_1 = require("bech32");
|
7
8
|
const api_1 = require("../api/index.cjs");
|
8
9
|
exports.BtcP2wpkhAddressStruct = (0, superstruct_1.refine)((0, superstruct_1.string)(), 'BtcP2wpkhAddressStruct', (address) => {
|
@@ -32,6 +33,12 @@ exports.BtcP2wpkhAccountStruct = (0, keyring_utils_1.object)({
|
|
32
33
|
* Account type.
|
33
34
|
*/
|
34
35
|
type: (0, superstruct_1.literal)(`${api_1.BtcAccountType.P2wpkh}`),
|
36
|
+
/**
|
37
|
+
* Account supported scope (CAIP-2 chain ID).
|
38
|
+
*
|
39
|
+
* NOTE: We consider a Bitcoin address to be valid on only 1 network at time.
|
40
|
+
*/
|
41
|
+
scopes: (0, superstruct_1.size)((0, superstruct_1.array)(utils_1.CaipChainIdStruct), 1),
|
35
42
|
/**
|
36
43
|
* Account supported methods.
|
37
44
|
*/
|
package/dist/btc/types.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":";;;AAAA,2DAAiD;AAEjD,
|
1
|
+
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":";;;AAAA,2DAAiD;AAEjD,uDAO+B;AAC/B,2CAAoD;AACpD,mCAAgC;AAEhC,0CAA8D;AAEjD,QAAA,sBAAsB,GAAG,IAAA,oBAAM,EAC1C,IAAA,oBAAM,GAAE,EACR,wBAAwB,EACxB,CAAC,OAAe,EAAE,EAAE;IAClB,IAAI,CAAC;QACH,eAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,KAAK,CACd,oCAAqC,KAAe,CAAC,OAAO,EAAE,CAC/D,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CACF,CAAC;AAEF;;GAEG;AACH,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAA8B;IAC9B,wCAA2B,CAAA;AAC7B,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAEY,QAAA,sBAAsB,GAAG,IAAA,sBAAM,EAAC;IAC3C,GAAG,0BAAoB,CAAC,MAAM;IAE9B;;OAEG;IACH,OAAO,EAAE,8BAAsB;IAE/B;;OAEG;IACH,IAAI,EAAE,IAAA,qBAAO,EAAC,GAAG,oBAAc,CAAC,MAAM,EAAE,CAAC;IAEzC;;;;OAIG;IACH,MAAM,EAAE,IAAA,kBAAI,EAAC,IAAA,mBAAK,EAAC,yBAAiB,CAAC,EAAE,CAAC,CAAC;IAEzC;;OAEG;IACH,OAAO,EAAE,IAAA,mBAAK,EAAC,IAAA,mBAAK,EAAC,CAAC,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;CACpD,CAAC,CAAC","sourcesContent":["import { object } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport {\n string,\n array,\n enums,\n refine,\n literal,\n size,\n} from '@metamask/superstruct';\nimport { CaipChainIdStruct } from '@metamask/utils';\nimport { bech32 } from 'bech32';\n\nimport { BtcAccountType, KeyringAccountStruct } from '../api';\n\nexport const BtcP2wpkhAddressStruct = refine(\n string(),\n 'BtcP2wpkhAddressStruct',\n (address: string) => {\n try {\n bech32.decode(address);\n } catch (error) {\n return new Error(\n `Could not decode P2WPKH address: ${(error as Error).message}`,\n );\n }\n return true;\n },\n);\n\n/**\n * Supported Bitcoin methods.\n */\nexport enum BtcMethod {\n // General transaction methods\n SendBitcoin = 'sendBitcoin',\n}\n\nexport const BtcP2wpkhAccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: BtcP2wpkhAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${BtcAccountType.P2wpkh}`),\n\n /**\n * Account supported scope (CAIP-2 chain ID).\n *\n * NOTE: We consider a Bitcoin address to be valid on only 1 network at time.\n */\n scopes: size(array(CaipChainIdStruct), 1),\n\n /**\n * Account supported methods.\n */\n methods: array(enums([`${BtcMethod.SendBitcoin}`])),\n});\n\nexport type BtcP2wpkhAccount = Infer<typeof BtcP2wpkhAccountStruct>;\n"]}
|
package/dist/btc/types.d.cts
CHANGED
@@ -11,7 +11,7 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
|
|
11
11
|
id: string;
|
12
12
|
options: Record<string, import("@metamask/utils").Json>;
|
13
13
|
address: string;
|
14
|
-
scopes: string[];
|
14
|
+
scopes: `${string}:${string}`[];
|
15
15
|
methods: "sendBitcoin"[];
|
16
16
|
}, {
|
17
17
|
/**
|
@@ -22,6 +22,12 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
|
|
22
22
|
* Account type.
|
23
23
|
*/
|
24
24
|
type: import("@metamask/superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
|
25
|
+
/**
|
26
|
+
* Account supported scope (CAIP-2 chain ID).
|
27
|
+
*
|
28
|
+
* NOTE: We consider a Bitcoin address to be valid on only 1 network at time.
|
29
|
+
*/
|
30
|
+
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
25
31
|
/**
|
26
32
|
* Account supported methods.
|
27
33
|
*/
|
@@ -29,7 +35,6 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
|
|
29
35
|
sendBitcoin: "sendBitcoin";
|
30
36
|
}>>;
|
31
37
|
id: import("@metamask/superstruct").Struct<string, null>;
|
32
|
-
scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
33
38
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
34
39
|
}>;
|
35
40
|
export type BtcP2wpkhAccount = Infer<typeof BtcP2wpkhAccountStruct>;
|
package/dist/btc/types.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAcnD,eAAO,MAAM,sBAAsB,sDAalC,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,WAAW,gBAAgB;CAC5B;AAED,eAAO,MAAM,sBAAsB;;;;;;;;IAGjC;;OAEG;;IAGH;;OAEG;;IAGH;;;;OAIG;;IAGH;;OAEG;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/btc/types.d.mts
CHANGED
@@ -11,7 +11,7 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
|
|
11
11
|
id: string;
|
12
12
|
options: Record<string, import("@metamask/utils").Json>;
|
13
13
|
address: string;
|
14
|
-
scopes: string[];
|
14
|
+
scopes: `${string}:${string}`[];
|
15
15
|
methods: "sendBitcoin"[];
|
16
16
|
}, {
|
17
17
|
/**
|
@@ -22,6 +22,12 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
|
|
22
22
|
* Account type.
|
23
23
|
*/
|
24
24
|
type: import("@metamask/superstruct").Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
|
25
|
+
/**
|
26
|
+
* Account supported scope (CAIP-2 chain ID).
|
27
|
+
*
|
28
|
+
* NOTE: We consider a Bitcoin address to be valid on only 1 network at time.
|
29
|
+
*/
|
30
|
+
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
25
31
|
/**
|
26
32
|
* Account supported methods.
|
27
33
|
*/
|
@@ -29,7 +35,6 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
|
|
29
35
|
sendBitcoin: "sendBitcoin";
|
30
36
|
}>>;
|
31
37
|
id: import("@metamask/superstruct").Struct<string, null>;
|
32
|
-
scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
33
38
|
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
34
39
|
}>;
|
35
40
|
export type BtcP2wpkhAccount = Infer<typeof BtcP2wpkhAccountStruct>;
|
package/dist/btc/types.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAcnD,eAAO,MAAM,sBAAsB,sDAalC,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,WAAW,gBAAgB;CAC5B;AAED,eAAO,MAAM,sBAAsB;;;;;;;;IAGjC;;OAEG;;IAGH;;OAEG;;IAGH;;;;OAIG;;IAGH;;OAEG;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/btc/types.mjs
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { object } from "@metamask/keyring-utils";
|
2
|
-
import { string, array, enums, refine, literal } from "@metamask/superstruct";
|
2
|
+
import { string, array, enums, refine, literal, size } from "@metamask/superstruct";
|
3
|
+
import { CaipChainIdStruct } from "@metamask/utils";
|
3
4
|
import { bech32 } from "bech32";
|
4
5
|
import { BtcAccountType, KeyringAccountStruct } from "../api/index.mjs";
|
5
6
|
export const BtcP2wpkhAddressStruct = refine(string(), 'BtcP2wpkhAddressStruct', (address) => {
|
@@ -29,6 +30,12 @@ export const BtcP2wpkhAccountStruct = object({
|
|
29
30
|
* Account type.
|
30
31
|
*/
|
31
32
|
type: literal(`${BtcAccountType.P2wpkh}`),
|
33
|
+
/**
|
34
|
+
* Account supported scope (CAIP-2 chain ID).
|
35
|
+
*
|
36
|
+
* NOTE: We consider a Bitcoin address to be valid on only 1 network at time.
|
37
|
+
*/
|
38
|
+
scopes: size(array(CaipChainIdStruct), 1),
|
32
39
|
/**
|
33
40
|
* Account supported methods.
|
34
41
|
*/
|
package/dist/btc/types.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gCAAgC;AAEjD,OAAO,
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gCAAgC;AAEjD,OAAO,EACL,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,EACN,OAAO,EACP,IAAI,EACL,8BAA8B;AAC/B,OAAO,EAAE,iBAAiB,EAAE,wBAAwB;AACpD,OAAO,EAAE,MAAM,EAAE,eAAe;AAEhC,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,yBAAe;AAE9D,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAC1C,MAAM,EAAE,EACR,wBAAwB,EACxB,CAAC,OAAe,EAAE,EAAE;IAClB,IAAI,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,KAAK,CACd,oCAAqC,KAAe,CAAC,OAAO,EAAE,CAC/D,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAA8B;IAC9B,wCAA2B,CAAA;AAC7B,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC;IAC3C,GAAG,oBAAoB,CAAC,MAAM;IAE9B;;OAEG;IACH,OAAO,EAAE,sBAAsB;IAE/B;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC;IAEzC;;;;OAIG;IACH,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAEzC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;CACpD,CAAC,CAAC","sourcesContent":["import { object } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport {\n string,\n array,\n enums,\n refine,\n literal,\n size,\n} from '@metamask/superstruct';\nimport { CaipChainIdStruct } from '@metamask/utils';\nimport { bech32 } from 'bech32';\n\nimport { BtcAccountType, KeyringAccountStruct } from '../api';\n\nexport const BtcP2wpkhAddressStruct = refine(\n string(),\n 'BtcP2wpkhAddressStruct',\n (address: string) => {\n try {\n bech32.decode(address);\n } catch (error) {\n return new Error(\n `Could not decode P2WPKH address: ${(error as Error).message}`,\n );\n }\n return true;\n },\n);\n\n/**\n * Supported Bitcoin methods.\n */\nexport enum BtcMethod {\n // General transaction methods\n SendBitcoin = 'sendBitcoin',\n}\n\nexport const BtcP2wpkhAccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: BtcP2wpkhAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${BtcAccountType.P2wpkh}`),\n\n /**\n * Account supported scope (CAIP-2 chain ID).\n *\n * NOTE: We consider a Bitcoin address to be valid on only 1 network at time.\n */\n scopes: size(array(CaipChainIdStruct), 1),\n\n /**\n * Account supported methods.\n */\n methods: array(enums([`${BtcMethod.SendBitcoin}`])),\n});\n\nexport type BtcP2wpkhAccount = Infer<typeof BtcP2wpkhAccountStruct>;\n"]}
|
package/dist/eth/constants.cjs
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
/* istanbul ignore file */
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.
|
4
|
+
exports.EthScope = void 0;
|
5
5
|
/**
|
6
6
|
* Scopes for EVM account type. See {@link KeyringAccount.scopes}.
|
7
7
|
*/
|
8
|
-
var
|
9
|
-
(function (
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
var EthScope;
|
9
|
+
(function (EthScope) {
|
10
|
+
EthScope["Eoa"] = "eip155:0";
|
11
|
+
EthScope["Mainnet"] = "eip155:1";
|
12
|
+
EthScope["Testnet"] = "eip155:11155111";
|
13
|
+
})(EthScope || (exports.EthScope = EthScope = {}));
|
13
14
|
//# sourceMappingURL=constants.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B;;GAEG;AACH,IAAY,
|
1
|
+
{"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B;;GAEG;AACH,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,4BAAgB,CAAA;IAChB,gCAAoB,CAAA;IACpB,uCAA2B,CAAA;AAC7B,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for EVM account type. See {@link KeyringAccount.scopes}.\n */\nexport enum EthScope {\n Eoa = 'eip155:0',\n Mainnet = 'eip155:1',\n Testnet = 'eip155:11155111',\n}\n"]}
|
package/dist/eth/constants.d.cts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* Scopes for EVM account type. See {@link KeyringAccount.scopes}.
|
3
3
|
*/
|
4
|
-
export declare enum
|
5
|
-
|
6
|
-
Mainnet = "eip155:1"
|
4
|
+
export declare enum EthScope {
|
5
|
+
Eoa = "eip155:0",
|
6
|
+
Mainnet = "eip155:1",
|
7
|
+
Testnet = "eip155:11155111"
|
7
8
|
}
|
8
9
|
//# sourceMappingURL=constants.d.cts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,
|
1
|
+
{"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,QAAQ;IAClB,GAAG,aAAa;IAChB,OAAO,aAAa;IACpB,OAAO,oBAAoB;CAC5B"}
|
package/dist/eth/constants.d.mts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* Scopes for EVM account type. See {@link KeyringAccount.scopes}.
|
3
3
|
*/
|
4
|
-
export declare enum
|
5
|
-
|
6
|
-
Mainnet = "eip155:1"
|
4
|
+
export declare enum EthScope {
|
5
|
+
Eoa = "eip155:0",
|
6
|
+
Mainnet = "eip155:1",
|
7
|
+
Testnet = "eip155:11155111"
|
7
8
|
}
|
8
9
|
//# sourceMappingURL=constants.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,QAAQ;IAClB,GAAG,aAAa;IAChB,OAAO,aAAa;IACpB,OAAO,oBAAoB;CAC5B"}
|
package/dist/eth/constants.mjs
CHANGED
@@ -2,9 +2,10 @@
|
|
2
2
|
/**
|
3
3
|
* Scopes for EVM account type. See {@link KeyringAccount.scopes}.
|
4
4
|
*/
|
5
|
-
export var
|
6
|
-
(function (
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
export var EthScope;
|
6
|
+
(function (EthScope) {
|
7
|
+
EthScope["Eoa"] = "eip155:0";
|
8
|
+
EthScope["Mainnet"] = "eip155:1";
|
9
|
+
EthScope["Testnet"] = "eip155:11155111";
|
10
|
+
})(EthScope || (EthScope = {}));
|
10
11
|
//# sourceMappingURL=constants.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B;;GAEG;AACH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B;;GAEG;AACH,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,4BAAgB,CAAA;IAChB,gCAAoB,CAAA;IACpB,uCAA2B,CAAA;AAC7B,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for EVM account type. See {@link KeyringAccount.scopes}.\n */\nexport enum EthScope {\n Eoa = 'eip155:0',\n Mainnet = 'eip155:1',\n Testnet = 'eip155:11155111',\n}\n"]}
|