@omnisat/lasereyes 0.0.29 → 0.0.30
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/index.d.ts +62 -7
- package/dist/index.js +1572 -407
- package/dist/index.mjs +1609 -383
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,19 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
17
32
|
var __async = (__this, __arguments, generator) => {
|
|
18
33
|
return new Promise((resolve, reject) => {
|
|
19
34
|
var fulfilled = (value) => {
|
|
@@ -186,14 +201,14 @@ var createConfig = (config) => {
|
|
|
186
201
|
|
|
187
202
|
// src/providers/LaserEyesProvider.tsx
|
|
188
203
|
import {
|
|
189
|
-
createContext as
|
|
190
|
-
useCallback as
|
|
191
|
-
useContext as
|
|
192
|
-
useEffect as
|
|
193
|
-
useRef as
|
|
194
|
-
useState as
|
|
204
|
+
createContext as createContext22,
|
|
205
|
+
useCallback as useCallback43,
|
|
206
|
+
useContext as useContext22,
|
|
207
|
+
useEffect as useEffect43,
|
|
208
|
+
useRef as useRef22,
|
|
209
|
+
useState as useState43
|
|
195
210
|
} from "react";
|
|
196
|
-
import * as
|
|
211
|
+
import * as bitcoin25 from "bitcoinjs-lib";
|
|
197
212
|
|
|
198
213
|
// src/consts/settings.ts
|
|
199
214
|
var LOCAL_STORAGE_DEFAULT_WALLET = "defaultWallet";
|
|
@@ -263,7 +278,7 @@ var initialWalletContext = {
|
|
|
263
278
|
};
|
|
264
279
|
|
|
265
280
|
// src/providers/LaserEyesProvider.tsx
|
|
266
|
-
import { useLocalStorage as
|
|
281
|
+
import { useLocalStorage as useLocalStorage22 } from "usehooks-ts";
|
|
267
282
|
|
|
268
283
|
// src/lib/helpers.ts
|
|
269
284
|
import * as bitcoin from "bitcoinjs-lib";
|
|
@@ -415,6 +430,123 @@ function delay(ms) {
|
|
|
415
430
|
}
|
|
416
431
|
|
|
417
432
|
// src/providers/LaserEyesProvider.tsx
|
|
433
|
+
import {
|
|
434
|
+
BitcoinNetworkType as BitcoinNetworkType22,
|
|
435
|
+
getAddress as getAddress22,
|
|
436
|
+
request as request22,
|
|
437
|
+
RpcErrorCode as RpcErrorCode22,
|
|
438
|
+
signMessage as signMessageSatsConnect22,
|
|
439
|
+
signTransaction as signTransaction22
|
|
440
|
+
} from "sats-connect";
|
|
441
|
+
import { fromOutputScript as fromOutputScript22 } from "bitcoinjs-lib/src/address";
|
|
442
|
+
import axios45 from "axios";
|
|
443
|
+
|
|
444
|
+
// dist/index.mjs
|
|
445
|
+
import {
|
|
446
|
+
createContext as createContext21,
|
|
447
|
+
useCallback as useCallback41,
|
|
448
|
+
useContext as useContext21,
|
|
449
|
+
useEffect as useEffect41,
|
|
450
|
+
useRef as useRef21,
|
|
451
|
+
useState as useState41
|
|
452
|
+
} from "react";
|
|
453
|
+
import * as bitcoin24 from "bitcoinjs-lib";
|
|
454
|
+
import { useLocalStorage as useLocalStorage21 } from "usehooks-ts";
|
|
455
|
+
import * as bitcoin2 from "bitcoinjs-lib";
|
|
456
|
+
import axios2 from "axios";
|
|
457
|
+
import * as ecc2 from "@bitcoinerlab/secp256k1";
|
|
458
|
+
import {
|
|
459
|
+
BitcoinNetworkType as BitcoinNetworkType21,
|
|
460
|
+
getAddress as getAddress21,
|
|
461
|
+
request as request21,
|
|
462
|
+
RpcErrorCode as RpcErrorCode21,
|
|
463
|
+
signMessage as signMessageSatsConnect21,
|
|
464
|
+
signTransaction as signTransaction21
|
|
465
|
+
} from "sats-connect";
|
|
466
|
+
import { fromOutputScript as fromOutputScript21 } from "bitcoinjs-lib/src/address";
|
|
467
|
+
import axios43 from "axios";
|
|
468
|
+
import {
|
|
469
|
+
createContext as createContext20,
|
|
470
|
+
useCallback as useCallback39,
|
|
471
|
+
useContext as useContext20,
|
|
472
|
+
useEffect as useEffect39,
|
|
473
|
+
useRef as useRef20,
|
|
474
|
+
useState as useState39
|
|
475
|
+
} from "react";
|
|
476
|
+
import * as bitcoin23 from "bitcoinjs-lib";
|
|
477
|
+
import { useLocalStorage as useLocalStorage20 } from "usehooks-ts";
|
|
478
|
+
import * as bitcoin22 from "bitcoinjs-lib";
|
|
479
|
+
import axios22 from "axios";
|
|
480
|
+
import * as ecc22 from "@bitcoinerlab/secp256k1";
|
|
481
|
+
import {
|
|
482
|
+
BitcoinNetworkType as BitcoinNetworkType20,
|
|
483
|
+
getAddress as getAddress20,
|
|
484
|
+
request as request20,
|
|
485
|
+
RpcErrorCode as RpcErrorCode20,
|
|
486
|
+
signMessage as signMessageSatsConnect20,
|
|
487
|
+
signTransaction as signTransaction20
|
|
488
|
+
} from "sats-connect";
|
|
489
|
+
import { fromOutputScript as fromOutputScript20 } from "bitcoinjs-lib/src/address";
|
|
490
|
+
import axios41 from "axios";
|
|
491
|
+
import {
|
|
492
|
+
createContext as createContext19,
|
|
493
|
+
useCallback as useCallback37,
|
|
494
|
+
useContext as useContext19,
|
|
495
|
+
useEffect as useEffect37,
|
|
496
|
+
useRef as useRef19,
|
|
497
|
+
useState as useState37
|
|
498
|
+
} from "react";
|
|
499
|
+
import * as bitcoin21 from "bitcoinjs-lib";
|
|
500
|
+
import { useLocalStorage as useLocalStorage19 } from "usehooks-ts";
|
|
501
|
+
import * as bitcoin222 from "bitcoinjs-lib";
|
|
502
|
+
import axios222 from "axios";
|
|
503
|
+
import * as ecc222 from "@bitcoinerlab/secp256k1";
|
|
504
|
+
import {
|
|
505
|
+
BitcoinNetworkType as BitcoinNetworkType19,
|
|
506
|
+
getAddress as getAddress19,
|
|
507
|
+
request as request19,
|
|
508
|
+
RpcErrorCode as RpcErrorCode19,
|
|
509
|
+
signMessage as signMessageSatsConnect19,
|
|
510
|
+
signTransaction as signTransaction19
|
|
511
|
+
} from "sats-connect";
|
|
512
|
+
import { fromOutputScript as fromOutputScript19 } from "bitcoinjs-lib/src/address";
|
|
513
|
+
import axios39 from "axios";
|
|
514
|
+
import {
|
|
515
|
+
createContext as createContext18,
|
|
516
|
+
useCallback as useCallback35,
|
|
517
|
+
useContext as useContext18,
|
|
518
|
+
useEffect as useEffect35,
|
|
519
|
+
useRef as useRef18,
|
|
520
|
+
useState as useState35
|
|
521
|
+
} from "react";
|
|
522
|
+
import * as bitcoin20 from "bitcoinjs-lib";
|
|
523
|
+
import { useLocalStorage as useLocalStorage18 } from "usehooks-ts";
|
|
524
|
+
import * as bitcoin2222 from "bitcoinjs-lib";
|
|
525
|
+
import axios2222 from "axios";
|
|
526
|
+
import * as ecc2222 from "@bitcoinerlab/secp256k1";
|
|
527
|
+
import {
|
|
528
|
+
BitcoinNetworkType as BitcoinNetworkType18,
|
|
529
|
+
getAddress as getAddress18,
|
|
530
|
+
request as request18,
|
|
531
|
+
RpcErrorCode as RpcErrorCode18,
|
|
532
|
+
signMessage as signMessageSatsConnect18,
|
|
533
|
+
signTransaction as signTransaction18
|
|
534
|
+
} from "sats-connect";
|
|
535
|
+
import { fromOutputScript as fromOutputScript18 } from "bitcoinjs-lib/src/address";
|
|
536
|
+
import axios37 from "axios";
|
|
537
|
+
import {
|
|
538
|
+
createContext as createContext17,
|
|
539
|
+
useCallback as useCallback33,
|
|
540
|
+
useContext as useContext17,
|
|
541
|
+
useEffect as useEffect33,
|
|
542
|
+
useRef as useRef17,
|
|
543
|
+
useState as useState33
|
|
544
|
+
} from "react";
|
|
545
|
+
import * as bitcoin19 from "bitcoinjs-lib";
|
|
546
|
+
import { useLocalStorage as useLocalStorage17 } from "usehooks-ts";
|
|
547
|
+
import * as bitcoin22222 from "bitcoinjs-lib";
|
|
548
|
+
import axios22222 from "axios";
|
|
549
|
+
import * as ecc22222 from "@bitcoinerlab/secp256k1";
|
|
418
550
|
import {
|
|
419
551
|
BitcoinNetworkType as BitcoinNetworkType17,
|
|
420
552
|
getAddress as getAddress17,
|
|
@@ -425,8 +557,6 @@ import {
|
|
|
425
557
|
} from "sats-connect";
|
|
426
558
|
import { fromOutputScript as fromOutputScript17 } from "bitcoinjs-lib/src/address";
|
|
427
559
|
import axios35 from "axios";
|
|
428
|
-
|
|
429
|
-
// dist/index.mjs
|
|
430
560
|
import {
|
|
431
561
|
createContext as createContext16,
|
|
432
562
|
useCallback as useCallback31,
|
|
@@ -437,9 +567,9 @@ import {
|
|
|
437
567
|
} from "react";
|
|
438
568
|
import * as bitcoin18 from "bitcoinjs-lib";
|
|
439
569
|
import { useLocalStorage as useLocalStorage16 } from "usehooks-ts";
|
|
440
|
-
import * as
|
|
441
|
-
import
|
|
442
|
-
import * as
|
|
570
|
+
import * as bitcoin222222 from "bitcoinjs-lib";
|
|
571
|
+
import axios222222 from "axios";
|
|
572
|
+
import * as ecc222222 from "@bitcoinerlab/secp256k1";
|
|
443
573
|
import {
|
|
444
574
|
BitcoinNetworkType as BitcoinNetworkType16,
|
|
445
575
|
getAddress as getAddress16,
|
|
@@ -460,9 +590,9 @@ import {
|
|
|
460
590
|
} from "react";
|
|
461
591
|
import * as bitcoin17 from "bitcoinjs-lib";
|
|
462
592
|
import { useLocalStorage as useLocalStorage15 } from "usehooks-ts";
|
|
463
|
-
import * as
|
|
464
|
-
import
|
|
465
|
-
import * as
|
|
593
|
+
import * as bitcoin2222222 from "bitcoinjs-lib";
|
|
594
|
+
import axios2222222 from "axios";
|
|
595
|
+
import * as ecc2222222 from "@bitcoinerlab/secp256k1";
|
|
466
596
|
import {
|
|
467
597
|
BitcoinNetworkType as BitcoinNetworkType15,
|
|
468
598
|
getAddress as getAddress15,
|
|
@@ -483,9 +613,9 @@ import {
|
|
|
483
613
|
} from "react";
|
|
484
614
|
import * as bitcoin16 from "bitcoinjs-lib";
|
|
485
615
|
import { useLocalStorage as useLocalStorage14 } from "usehooks-ts";
|
|
486
|
-
import * as
|
|
487
|
-
import
|
|
488
|
-
import * as
|
|
616
|
+
import * as bitcoin22222222 from "bitcoinjs-lib";
|
|
617
|
+
import axios22222222 from "axios";
|
|
618
|
+
import * as ecc22222222 from "@bitcoinerlab/secp256k1";
|
|
489
619
|
import {
|
|
490
620
|
BitcoinNetworkType as BitcoinNetworkType14,
|
|
491
621
|
getAddress as getAddress14,
|
|
@@ -506,9 +636,9 @@ import {
|
|
|
506
636
|
} from "react";
|
|
507
637
|
import * as bitcoin15 from "bitcoinjs-lib";
|
|
508
638
|
import { useLocalStorage as useLocalStorage13 } from "usehooks-ts";
|
|
509
|
-
import * as
|
|
510
|
-
import
|
|
511
|
-
import * as
|
|
639
|
+
import * as bitcoin222222222 from "bitcoinjs-lib";
|
|
640
|
+
import axios222222222 from "axios";
|
|
641
|
+
import * as ecc222222222 from "@bitcoinerlab/secp256k1";
|
|
512
642
|
import {
|
|
513
643
|
BitcoinNetworkType as BitcoinNetworkType13,
|
|
514
644
|
getAddress as getAddress13,
|
|
@@ -529,9 +659,9 @@ import {
|
|
|
529
659
|
} from "react";
|
|
530
660
|
import * as bitcoin14 from "bitcoinjs-lib";
|
|
531
661
|
import { useLocalStorage as useLocalStorage12 } from "usehooks-ts";
|
|
532
|
-
import * as
|
|
533
|
-
import
|
|
534
|
-
import * as
|
|
662
|
+
import * as bitcoin2222222222 from "bitcoinjs-lib";
|
|
663
|
+
import axios2222222222 from "axios";
|
|
664
|
+
import * as ecc2222222222 from "@bitcoinerlab/secp256k1";
|
|
535
665
|
import {
|
|
536
666
|
BitcoinNetworkType as BitcoinNetworkType12,
|
|
537
667
|
getAddress as getAddress12,
|
|
@@ -552,9 +682,9 @@ import {
|
|
|
552
682
|
} from "react";
|
|
553
683
|
import * as bitcoin13 from "bitcoinjs-lib";
|
|
554
684
|
import { useLocalStorage as useLocalStorage11 } from "usehooks-ts";
|
|
555
|
-
import * as
|
|
556
|
-
import
|
|
557
|
-
import * as
|
|
685
|
+
import * as bitcoin22222222222 from "bitcoinjs-lib";
|
|
686
|
+
import axios22222222222 from "axios";
|
|
687
|
+
import * as ecc22222222222 from "@bitcoinerlab/secp256k1";
|
|
558
688
|
import {
|
|
559
689
|
BitcoinNetworkType as BitcoinNetworkType11,
|
|
560
690
|
getAddress as getAddress11,
|
|
@@ -575,9 +705,9 @@ import {
|
|
|
575
705
|
} from "react";
|
|
576
706
|
import * as bitcoin12 from "bitcoinjs-lib";
|
|
577
707
|
import { useLocalStorage as useLocalStorage10 } from "usehooks-ts";
|
|
578
|
-
import * as
|
|
579
|
-
import
|
|
580
|
-
import * as
|
|
708
|
+
import * as bitcoin222222222222 from "bitcoinjs-lib";
|
|
709
|
+
import axios222222222222 from "axios";
|
|
710
|
+
import * as ecc222222222222 from "@bitcoinerlab/secp256k1";
|
|
581
711
|
import {
|
|
582
712
|
BitcoinNetworkType as BitcoinNetworkType10,
|
|
583
713
|
getAddress as getAddress10,
|
|
@@ -598,9 +728,9 @@ import {
|
|
|
598
728
|
} from "react";
|
|
599
729
|
import * as bitcoin11 from "bitcoinjs-lib";
|
|
600
730
|
import { useLocalStorage as useLocalStorage9 } from "usehooks-ts";
|
|
601
|
-
import * as
|
|
602
|
-
import
|
|
603
|
-
import * as
|
|
731
|
+
import * as bitcoin2222222222222 from "bitcoinjs-lib";
|
|
732
|
+
import axios2222222222222 from "axios";
|
|
733
|
+
import * as ecc2222222222222 from "@bitcoinerlab/secp256k1";
|
|
604
734
|
import {
|
|
605
735
|
BitcoinNetworkType as BitcoinNetworkType9,
|
|
606
736
|
getAddress as getAddress9,
|
|
@@ -621,9 +751,9 @@ import {
|
|
|
621
751
|
} from "react";
|
|
622
752
|
import * as bitcoin10 from "bitcoinjs-lib";
|
|
623
753
|
import { useLocalStorage as useLocalStorage8 } from "usehooks-ts";
|
|
624
|
-
import * as
|
|
625
|
-
import
|
|
626
|
-
import * as
|
|
754
|
+
import * as bitcoin22222222222222 from "bitcoinjs-lib";
|
|
755
|
+
import axios22222222222222 from "axios";
|
|
756
|
+
import * as ecc22222222222222 from "@bitcoinerlab/secp256k1";
|
|
627
757
|
import {
|
|
628
758
|
BitcoinNetworkType as BitcoinNetworkType8,
|
|
629
759
|
getAddress as getAddress8,
|
|
@@ -644,9 +774,9 @@ import {
|
|
|
644
774
|
} from "react";
|
|
645
775
|
import * as bitcoin9 from "bitcoinjs-lib";
|
|
646
776
|
import { useLocalStorage as useLocalStorage7 } from "usehooks-ts";
|
|
647
|
-
import * as
|
|
648
|
-
import
|
|
649
|
-
import * as
|
|
777
|
+
import * as bitcoin222222222222222 from "bitcoinjs-lib";
|
|
778
|
+
import axios222222222222222 from "axios";
|
|
779
|
+
import * as ecc222222222222222 from "@bitcoinerlab/secp256k1";
|
|
650
780
|
import {
|
|
651
781
|
BitcoinNetworkType as BitcoinNetworkType7,
|
|
652
782
|
getAddress as getAddress7,
|
|
@@ -667,9 +797,9 @@ import {
|
|
|
667
797
|
} from "react";
|
|
668
798
|
import * as bitcoin8 from "bitcoinjs-lib";
|
|
669
799
|
import { useLocalStorage as useLocalStorage6 } from "usehooks-ts";
|
|
670
|
-
import * as
|
|
671
|
-
import
|
|
672
|
-
import * as
|
|
800
|
+
import * as bitcoin2222222222222222 from "bitcoinjs-lib";
|
|
801
|
+
import axios2222222222222222 from "axios";
|
|
802
|
+
import * as ecc2222222222222222 from "@bitcoinerlab/secp256k1";
|
|
673
803
|
import {
|
|
674
804
|
BitcoinNetworkType as BitcoinNetworkType6,
|
|
675
805
|
getAddress as getAddress6,
|
|
@@ -690,9 +820,9 @@ import {
|
|
|
690
820
|
} from "react";
|
|
691
821
|
import * as bitcoin7 from "bitcoinjs-lib";
|
|
692
822
|
import { useLocalStorage as useLocalStorage5 } from "usehooks-ts";
|
|
693
|
-
import * as
|
|
694
|
-
import
|
|
695
|
-
import * as
|
|
823
|
+
import * as bitcoin22222222222222222 from "bitcoinjs-lib";
|
|
824
|
+
import axios22222222222222222 from "axios";
|
|
825
|
+
import * as ecc22222222222222222 from "@bitcoinerlab/secp256k1";
|
|
696
826
|
import {
|
|
697
827
|
BitcoinNetworkType as BitcoinNetworkType5,
|
|
698
828
|
getAddress as getAddress5,
|
|
@@ -713,9 +843,9 @@ import {
|
|
|
713
843
|
} from "react";
|
|
714
844
|
import * as bitcoin6 from "bitcoinjs-lib";
|
|
715
845
|
import { useLocalStorage as useLocalStorage4 } from "usehooks-ts";
|
|
716
|
-
import * as
|
|
717
|
-
import
|
|
718
|
-
import * as
|
|
846
|
+
import * as bitcoin222222222222222222 from "bitcoinjs-lib";
|
|
847
|
+
import axios222222222222222222 from "axios";
|
|
848
|
+
import * as ecc222222222222222222 from "@bitcoinerlab/secp256k1";
|
|
719
849
|
import {
|
|
720
850
|
BitcoinNetworkType as BitcoinNetworkType4,
|
|
721
851
|
getAddress as getAddress4,
|
|
@@ -736,9 +866,9 @@ import {
|
|
|
736
866
|
} from "react";
|
|
737
867
|
import * as bitcoin5 from "bitcoinjs-lib";
|
|
738
868
|
import { useLocalStorage as useLocalStorage3 } from "usehooks-ts";
|
|
739
|
-
import * as
|
|
740
|
-
import
|
|
741
|
-
import * as
|
|
869
|
+
import * as bitcoin2222222222222222222 from "bitcoinjs-lib";
|
|
870
|
+
import axios2222222222222222222 from "axios";
|
|
871
|
+
import * as ecc2222222222222222222 from "@bitcoinerlab/secp256k1";
|
|
742
872
|
import {
|
|
743
873
|
BitcoinNetworkType as BitcoinNetworkType3,
|
|
744
874
|
getAddress as getAddress3,
|
|
@@ -759,9 +889,9 @@ import {
|
|
|
759
889
|
} from "react";
|
|
760
890
|
import * as bitcoin4 from "bitcoinjs-lib";
|
|
761
891
|
import { useLocalStorage as useLocalStorage2 } from "usehooks-ts";
|
|
762
|
-
import * as
|
|
763
|
-
import
|
|
764
|
-
import * as
|
|
892
|
+
import * as bitcoin22222222222222222222 from "bitcoinjs-lib";
|
|
893
|
+
import axios22222222222222222222 from "axios";
|
|
894
|
+
import * as ecc22222222222222222222 from "@bitcoinerlab/secp256k1";
|
|
765
895
|
import {
|
|
766
896
|
BitcoinNetworkType as BitcoinNetworkType2,
|
|
767
897
|
getAddress as getAddress2,
|
|
@@ -780,11 +910,11 @@ import {
|
|
|
780
910
|
useRef,
|
|
781
911
|
useState
|
|
782
912
|
} from "react";
|
|
783
|
-
import * as
|
|
913
|
+
import * as bitcoin222222222222222222222 from "bitcoinjs-lib";
|
|
784
914
|
import { useLocalStorage } from "usehooks-ts";
|
|
785
915
|
import * as bitcoin3 from "bitcoinjs-lib";
|
|
786
|
-
import
|
|
787
|
-
import * as
|
|
916
|
+
import axios222222222222222222222 from "axios";
|
|
917
|
+
import * as ecc222222222222222222222 from "@bitcoinerlab/secp256k1";
|
|
788
918
|
import {
|
|
789
919
|
BitcoinNetworkType,
|
|
790
920
|
getAddress,
|
|
@@ -794,7 +924,7 @@ import {
|
|
|
794
924
|
signTransaction
|
|
795
925
|
} from "sats-connect";
|
|
796
926
|
import { fromOutputScript } from "bitcoinjs-lib/src/address";
|
|
797
|
-
import
|
|
927
|
+
import axios2222222222222222222222 from "axios";
|
|
798
928
|
import { jsx } from "react/jsx-runtime";
|
|
799
929
|
import { useCallback as useCallback2, useEffect as useEffect2, useState as useState2 } from "react";
|
|
800
930
|
import axios3 from "axios";
|
|
@@ -843,6 +973,57 @@ import axios32 from "axios";
|
|
|
843
973
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
844
974
|
import { useCallback as useCallback32, useEffect as useEffect32, useState as useState32 } from "react";
|
|
845
975
|
import axios34 from "axios";
|
|
976
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
977
|
+
import { useCallback as useCallback34, useEffect as useEffect34, useState as useState34 } from "react";
|
|
978
|
+
import axios36 from "axios";
|
|
979
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
980
|
+
import { useCallback as useCallback36, useEffect as useEffect36, useState as useState36 } from "react";
|
|
981
|
+
import axios38 from "axios";
|
|
982
|
+
import { jsx as jsx19, jsxs } from "react/jsx-runtime";
|
|
983
|
+
import { jsx as jsx20, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
984
|
+
import { jsx as jsx21, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
985
|
+
import { jsx as jsx22, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
986
|
+
import { jsx as jsx23, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
987
|
+
import { jsx as jsx24, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
988
|
+
import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
989
|
+
import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
990
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
991
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
992
|
+
import { useCallback as useCallback38, useEffect as useEffect38, useState as useState38 } from "react";
|
|
993
|
+
import axios40 from "axios";
|
|
994
|
+
import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
995
|
+
import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
996
|
+
import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
997
|
+
import { jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
998
|
+
import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
999
|
+
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1000
|
+
import { jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1001
|
+
import { jsx as jsx36, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1002
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1003
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1004
|
+
import { useCallback as useCallback40, useEffect as useEffect40, useState as useState40 } from "react";
|
|
1005
|
+
import axios42 from "axios";
|
|
1006
|
+
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1007
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1008
|
+
import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1009
|
+
import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1010
|
+
import { jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1011
|
+
import { jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1012
|
+
import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1013
|
+
import { jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1014
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
1015
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
1016
|
+
import { useCallback as useCallback42, useEffect as useEffect42, useState as useState42 } from "react";
|
|
1017
|
+
import axios44 from "axios";
|
|
1018
|
+
import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1019
|
+
import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1020
|
+
import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1021
|
+
import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1022
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
1023
|
+
import { jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
1024
|
+
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
1025
|
+
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
1026
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
846
1027
|
var __async2 = (__this, __arguments, generator) => {
|
|
847
1028
|
return new Promise((resolve, reject) => {
|
|
848
1029
|
var fulfilled = (value) => {
|
|
@@ -1017,72 +1198,6 @@ var initialWalletContext22 = {
|
|
|
1017
1198
|
isInscribing: false
|
|
1018
1199
|
};
|
|
1019
1200
|
bitcoin22.initEccLib(ecc22);
|
|
1020
|
-
var MAINNET422 = "mainnet";
|
|
1021
|
-
var initialWalletContext222 = {
|
|
1022
|
-
hasUnisat: false,
|
|
1023
|
-
hasXverse: false,
|
|
1024
|
-
hasOyl: false,
|
|
1025
|
-
hasMagicEden: false,
|
|
1026
|
-
hasOkx: false,
|
|
1027
|
-
hasLeather: false,
|
|
1028
|
-
hasPhantom: false,
|
|
1029
|
-
hasWizz: false,
|
|
1030
|
-
isInitializing: true,
|
|
1031
|
-
connected: false,
|
|
1032
|
-
isConnecting: false,
|
|
1033
|
-
publicKey: "",
|
|
1034
|
-
address: "",
|
|
1035
|
-
paymentAddress: "",
|
|
1036
|
-
paymentPublicKey: "",
|
|
1037
|
-
balance: void 0,
|
|
1038
|
-
network: MAINNET422,
|
|
1039
|
-
library: null,
|
|
1040
|
-
provider: null,
|
|
1041
|
-
accounts: [],
|
|
1042
|
-
connect: (walletName) => __async22(void 0, null, function* () {
|
|
1043
|
-
}),
|
|
1044
|
-
disconnect: () => {
|
|
1045
|
-
},
|
|
1046
|
-
requestAccounts: () => __async22(void 0, null, function* () {
|
|
1047
|
-
return [];
|
|
1048
|
-
}),
|
|
1049
|
-
getNetwork: () => __async22(void 0, null, function* () {
|
|
1050
|
-
return MAINNET422;
|
|
1051
|
-
}),
|
|
1052
|
-
switchNetwork: (network) => __async22(void 0, null, function* () {
|
|
1053
|
-
}),
|
|
1054
|
-
getPublicKey: () => __async22(void 0, null, function* () {
|
|
1055
|
-
return "";
|
|
1056
|
-
}),
|
|
1057
|
-
getBalance: () => __async22(void 0, null, function* () {
|
|
1058
|
-
return "";
|
|
1059
|
-
}),
|
|
1060
|
-
getInscriptions: () => __async22(void 0, null, function* () {
|
|
1061
|
-
return [];
|
|
1062
|
-
}),
|
|
1063
|
-
sendBTC: (to, amount) => __async22(void 0, null, function* () {
|
|
1064
|
-
return "";
|
|
1065
|
-
}),
|
|
1066
|
-
signMessage: (message) => __async22(void 0, null, function* () {
|
|
1067
|
-
return "";
|
|
1068
|
-
}),
|
|
1069
|
-
signPsbt: (tx) => __async22(void 0, null, function* () {
|
|
1070
|
-
return {
|
|
1071
|
-
signedPsbtHex: "",
|
|
1072
|
-
signedPsbtBase64: "",
|
|
1073
|
-
txId: ""
|
|
1074
|
-
};
|
|
1075
|
-
}),
|
|
1076
|
-
pushPsbt: (tx) => __async22(void 0, null, function* () {
|
|
1077
|
-
return "";
|
|
1078
|
-
}),
|
|
1079
|
-
inscribe: (content) => __async22(void 0, null, function* () {
|
|
1080
|
-
return "";
|
|
1081
|
-
}),
|
|
1082
|
-
isCreatingCommit: false,
|
|
1083
|
-
isInscribing: false
|
|
1084
|
-
};
|
|
1085
|
-
bitcoin222.initEccLib(ecc222);
|
|
1086
1201
|
var __async222 = (__this, __arguments, generator) => {
|
|
1087
1202
|
return new Promise((resolve, reject) => {
|
|
1088
1203
|
var fulfilled = (value) => {
|
|
@@ -1103,8 +1218,8 @@ var __async222 = (__this, __arguments, generator) => {
|
|
|
1103
1218
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1104
1219
|
});
|
|
1105
1220
|
};
|
|
1106
|
-
var
|
|
1107
|
-
var
|
|
1221
|
+
var MAINNET422 = "mainnet";
|
|
1222
|
+
var initialWalletContext222 = {
|
|
1108
1223
|
hasUnisat: false,
|
|
1109
1224
|
hasXverse: false,
|
|
1110
1225
|
hasOyl: false,
|
|
@@ -1121,7 +1236,7 @@ var initialWalletContext2222 = {
|
|
|
1121
1236
|
paymentAddress: "",
|
|
1122
1237
|
paymentPublicKey: "",
|
|
1123
1238
|
balance: void 0,
|
|
1124
|
-
network:
|
|
1239
|
+
network: MAINNET422,
|
|
1125
1240
|
library: null,
|
|
1126
1241
|
provider: null,
|
|
1127
1242
|
accounts: [],
|
|
@@ -1133,7 +1248,7 @@ var initialWalletContext2222 = {
|
|
|
1133
1248
|
return [];
|
|
1134
1249
|
}),
|
|
1135
1250
|
getNetwork: () => __async222(void 0, null, function* () {
|
|
1136
|
-
return
|
|
1251
|
+
return MAINNET422;
|
|
1137
1252
|
}),
|
|
1138
1253
|
switchNetwork: (network) => __async222(void 0, null, function* () {
|
|
1139
1254
|
}),
|
|
@@ -1168,7 +1283,7 @@ var initialWalletContext2222 = {
|
|
|
1168
1283
|
isCreatingCommit: false,
|
|
1169
1284
|
isInscribing: false
|
|
1170
1285
|
};
|
|
1171
|
-
|
|
1286
|
+
bitcoin222.initEccLib(ecc222);
|
|
1172
1287
|
var __async2222 = (__this, __arguments, generator) => {
|
|
1173
1288
|
return new Promise((resolve, reject) => {
|
|
1174
1289
|
var fulfilled = (value) => {
|
|
@@ -1189,8 +1304,8 @@ var __async2222 = (__this, __arguments, generator) => {
|
|
|
1189
1304
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1190
1305
|
});
|
|
1191
1306
|
};
|
|
1192
|
-
var
|
|
1193
|
-
var
|
|
1307
|
+
var MAINNET4222 = "mainnet";
|
|
1308
|
+
var initialWalletContext2222 = {
|
|
1194
1309
|
hasUnisat: false,
|
|
1195
1310
|
hasXverse: false,
|
|
1196
1311
|
hasOyl: false,
|
|
@@ -1207,7 +1322,7 @@ var initialWalletContext22222 = {
|
|
|
1207
1322
|
paymentAddress: "",
|
|
1208
1323
|
paymentPublicKey: "",
|
|
1209
1324
|
balance: void 0,
|
|
1210
|
-
network:
|
|
1325
|
+
network: MAINNET4222,
|
|
1211
1326
|
library: null,
|
|
1212
1327
|
provider: null,
|
|
1213
1328
|
accounts: [],
|
|
@@ -1219,7 +1334,7 @@ var initialWalletContext22222 = {
|
|
|
1219
1334
|
return [];
|
|
1220
1335
|
}),
|
|
1221
1336
|
getNetwork: () => __async2222(void 0, null, function* () {
|
|
1222
|
-
return
|
|
1337
|
+
return MAINNET4222;
|
|
1223
1338
|
}),
|
|
1224
1339
|
switchNetwork: (network) => __async2222(void 0, null, function* () {
|
|
1225
1340
|
}),
|
|
@@ -1254,7 +1369,7 @@ var initialWalletContext22222 = {
|
|
|
1254
1369
|
isCreatingCommit: false,
|
|
1255
1370
|
isInscribing: false
|
|
1256
1371
|
};
|
|
1257
|
-
|
|
1372
|
+
bitcoin2222.initEccLib(ecc2222);
|
|
1258
1373
|
var __async22222 = (__this, __arguments, generator) => {
|
|
1259
1374
|
return new Promise((resolve, reject) => {
|
|
1260
1375
|
var fulfilled = (value) => {
|
|
@@ -1275,8 +1390,8 @@ var __async22222 = (__this, __arguments, generator) => {
|
|
|
1275
1390
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1276
1391
|
});
|
|
1277
1392
|
};
|
|
1278
|
-
var
|
|
1279
|
-
var
|
|
1393
|
+
var MAINNET42222 = "mainnet";
|
|
1394
|
+
var initialWalletContext22222 = {
|
|
1280
1395
|
hasUnisat: false,
|
|
1281
1396
|
hasXverse: false,
|
|
1282
1397
|
hasOyl: false,
|
|
@@ -1293,7 +1408,7 @@ var initialWalletContext222222 = {
|
|
|
1293
1408
|
paymentAddress: "",
|
|
1294
1409
|
paymentPublicKey: "",
|
|
1295
1410
|
balance: void 0,
|
|
1296
|
-
network:
|
|
1411
|
+
network: MAINNET42222,
|
|
1297
1412
|
library: null,
|
|
1298
1413
|
provider: null,
|
|
1299
1414
|
accounts: [],
|
|
@@ -1305,7 +1420,7 @@ var initialWalletContext222222 = {
|
|
|
1305
1420
|
return [];
|
|
1306
1421
|
}),
|
|
1307
1422
|
getNetwork: () => __async22222(void 0, null, function* () {
|
|
1308
|
-
return
|
|
1423
|
+
return MAINNET42222;
|
|
1309
1424
|
}),
|
|
1310
1425
|
switchNetwork: (network) => __async22222(void 0, null, function* () {
|
|
1311
1426
|
}),
|
|
@@ -1340,7 +1455,7 @@ var initialWalletContext222222 = {
|
|
|
1340
1455
|
isCreatingCommit: false,
|
|
1341
1456
|
isInscribing: false
|
|
1342
1457
|
};
|
|
1343
|
-
|
|
1458
|
+
bitcoin22222.initEccLib(ecc22222);
|
|
1344
1459
|
var __async222222 = (__this, __arguments, generator) => {
|
|
1345
1460
|
return new Promise((resolve, reject) => {
|
|
1346
1461
|
var fulfilled = (value) => {
|
|
@@ -1361,8 +1476,8 @@ var __async222222 = (__this, __arguments, generator) => {
|
|
|
1361
1476
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1362
1477
|
});
|
|
1363
1478
|
};
|
|
1364
|
-
var
|
|
1365
|
-
var
|
|
1479
|
+
var MAINNET422222 = "mainnet";
|
|
1480
|
+
var initialWalletContext222222 = {
|
|
1366
1481
|
hasUnisat: false,
|
|
1367
1482
|
hasXverse: false,
|
|
1368
1483
|
hasOyl: false,
|
|
@@ -1379,7 +1494,7 @@ var initialWalletContext2222222 = {
|
|
|
1379
1494
|
paymentAddress: "",
|
|
1380
1495
|
paymentPublicKey: "",
|
|
1381
1496
|
balance: void 0,
|
|
1382
|
-
network:
|
|
1497
|
+
network: MAINNET422222,
|
|
1383
1498
|
library: null,
|
|
1384
1499
|
provider: null,
|
|
1385
1500
|
accounts: [],
|
|
@@ -1391,7 +1506,7 @@ var initialWalletContext2222222 = {
|
|
|
1391
1506
|
return [];
|
|
1392
1507
|
}),
|
|
1393
1508
|
getNetwork: () => __async222222(void 0, null, function* () {
|
|
1394
|
-
return
|
|
1509
|
+
return MAINNET422222;
|
|
1395
1510
|
}),
|
|
1396
1511
|
switchNetwork: (network) => __async222222(void 0, null, function* () {
|
|
1397
1512
|
}),
|
|
@@ -1426,7 +1541,7 @@ var initialWalletContext2222222 = {
|
|
|
1426
1541
|
isCreatingCommit: false,
|
|
1427
1542
|
isInscribing: false
|
|
1428
1543
|
};
|
|
1429
|
-
|
|
1544
|
+
bitcoin222222.initEccLib(ecc222222);
|
|
1430
1545
|
var __async2222222 = (__this, __arguments, generator) => {
|
|
1431
1546
|
return new Promise((resolve, reject) => {
|
|
1432
1547
|
var fulfilled = (value) => {
|
|
@@ -1447,8 +1562,8 @@ var __async2222222 = (__this, __arguments, generator) => {
|
|
|
1447
1562
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1448
1563
|
});
|
|
1449
1564
|
};
|
|
1450
|
-
var
|
|
1451
|
-
var
|
|
1565
|
+
var MAINNET4222222 = "mainnet";
|
|
1566
|
+
var initialWalletContext2222222 = {
|
|
1452
1567
|
hasUnisat: false,
|
|
1453
1568
|
hasXverse: false,
|
|
1454
1569
|
hasOyl: false,
|
|
@@ -1465,7 +1580,7 @@ var initialWalletContext22222222 = {
|
|
|
1465
1580
|
paymentAddress: "",
|
|
1466
1581
|
paymentPublicKey: "",
|
|
1467
1582
|
balance: void 0,
|
|
1468
|
-
network:
|
|
1583
|
+
network: MAINNET4222222,
|
|
1469
1584
|
library: null,
|
|
1470
1585
|
provider: null,
|
|
1471
1586
|
accounts: [],
|
|
@@ -1477,7 +1592,73 @@ var initialWalletContext22222222 = {
|
|
|
1477
1592
|
return [];
|
|
1478
1593
|
}),
|
|
1479
1594
|
getNetwork: () => __async2222222(void 0, null, function* () {
|
|
1480
|
-
return
|
|
1595
|
+
return MAINNET4222222;
|
|
1596
|
+
}),
|
|
1597
|
+
switchNetwork: (network) => __async2222222(void 0, null, function* () {
|
|
1598
|
+
}),
|
|
1599
|
+
getPublicKey: () => __async2222222(void 0, null, function* () {
|
|
1600
|
+
return "";
|
|
1601
|
+
}),
|
|
1602
|
+
getBalance: () => __async2222222(void 0, null, function* () {
|
|
1603
|
+
return "";
|
|
1604
|
+
}),
|
|
1605
|
+
getInscriptions: () => __async2222222(void 0, null, function* () {
|
|
1606
|
+
return [];
|
|
1607
|
+
}),
|
|
1608
|
+
sendBTC: (to, amount) => __async2222222(void 0, null, function* () {
|
|
1609
|
+
return "";
|
|
1610
|
+
}),
|
|
1611
|
+
signMessage: (message) => __async2222222(void 0, null, function* () {
|
|
1612
|
+
return "";
|
|
1613
|
+
}),
|
|
1614
|
+
signPsbt: (tx) => __async2222222(void 0, null, function* () {
|
|
1615
|
+
return {
|
|
1616
|
+
signedPsbtHex: "",
|
|
1617
|
+
signedPsbtBase64: "",
|
|
1618
|
+
txId: ""
|
|
1619
|
+
};
|
|
1620
|
+
}),
|
|
1621
|
+
pushPsbt: (tx) => __async2222222(void 0, null, function* () {
|
|
1622
|
+
return "";
|
|
1623
|
+
}),
|
|
1624
|
+
inscribe: (content) => __async2222222(void 0, null, function* () {
|
|
1625
|
+
return "";
|
|
1626
|
+
}),
|
|
1627
|
+
isCreatingCommit: false,
|
|
1628
|
+
isInscribing: false
|
|
1629
|
+
};
|
|
1630
|
+
bitcoin2222222.initEccLib(ecc2222222);
|
|
1631
|
+
var MAINNET42222222 = "mainnet";
|
|
1632
|
+
var initialWalletContext22222222 = {
|
|
1633
|
+
hasUnisat: false,
|
|
1634
|
+
hasXverse: false,
|
|
1635
|
+
hasOyl: false,
|
|
1636
|
+
hasMagicEden: false,
|
|
1637
|
+
hasOkx: false,
|
|
1638
|
+
hasLeather: false,
|
|
1639
|
+
hasPhantom: false,
|
|
1640
|
+
hasWizz: false,
|
|
1641
|
+
isInitializing: true,
|
|
1642
|
+
connected: false,
|
|
1643
|
+
isConnecting: false,
|
|
1644
|
+
publicKey: "",
|
|
1645
|
+
address: "",
|
|
1646
|
+
paymentAddress: "",
|
|
1647
|
+
paymentPublicKey: "",
|
|
1648
|
+
balance: void 0,
|
|
1649
|
+
network: MAINNET42222222,
|
|
1650
|
+
library: null,
|
|
1651
|
+
provider: null,
|
|
1652
|
+
accounts: [],
|
|
1653
|
+
connect: (walletName) => __async2222222(void 0, null, function* () {
|
|
1654
|
+
}),
|
|
1655
|
+
disconnect: () => {
|
|
1656
|
+
},
|
|
1657
|
+
requestAccounts: () => __async2222222(void 0, null, function* () {
|
|
1658
|
+
return [];
|
|
1659
|
+
}),
|
|
1660
|
+
getNetwork: () => __async2222222(void 0, null, function* () {
|
|
1661
|
+
return MAINNET42222222;
|
|
1481
1662
|
}),
|
|
1482
1663
|
switchNetwork: (network) => __async2222222(void 0, null, function* () {
|
|
1483
1664
|
}),
|
|
@@ -1589,17 +1770,447 @@ var initialWalletContext222222222 = {
|
|
|
1589
1770
|
txId: ""
|
|
1590
1771
|
};
|
|
1591
1772
|
}),
|
|
1592
|
-
pushPsbt: (tx) => __async22222222(void 0, null, function* () {
|
|
1773
|
+
pushPsbt: (tx) => __async22222222(void 0, null, function* () {
|
|
1774
|
+
return "";
|
|
1775
|
+
}),
|
|
1776
|
+
inscribe: (content) => __async22222222(void 0, null, function* () {
|
|
1777
|
+
return "";
|
|
1778
|
+
}),
|
|
1779
|
+
isCreatingCommit: false,
|
|
1780
|
+
isInscribing: false
|
|
1781
|
+
};
|
|
1782
|
+
bitcoin222222222.initEccLib(ecc222222222);
|
|
1783
|
+
var __async222222222 = (__this, __arguments, generator) => {
|
|
1784
|
+
return new Promise((resolve, reject) => {
|
|
1785
|
+
var fulfilled = (value) => {
|
|
1786
|
+
try {
|
|
1787
|
+
step(generator.next(value));
|
|
1788
|
+
} catch (e) {
|
|
1789
|
+
reject(e);
|
|
1790
|
+
}
|
|
1791
|
+
};
|
|
1792
|
+
var rejected = (value) => {
|
|
1793
|
+
try {
|
|
1794
|
+
step(generator.throw(value));
|
|
1795
|
+
} catch (e) {
|
|
1796
|
+
reject(e);
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1800
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
1801
|
+
});
|
|
1802
|
+
};
|
|
1803
|
+
var MAINNET4222222222 = "mainnet";
|
|
1804
|
+
var initialWalletContext2222222222 = {
|
|
1805
|
+
hasUnisat: false,
|
|
1806
|
+
hasXverse: false,
|
|
1807
|
+
hasOyl: false,
|
|
1808
|
+
hasMagicEden: false,
|
|
1809
|
+
hasOkx: false,
|
|
1810
|
+
hasLeather: false,
|
|
1811
|
+
hasPhantom: false,
|
|
1812
|
+
hasWizz: false,
|
|
1813
|
+
isInitializing: true,
|
|
1814
|
+
connected: false,
|
|
1815
|
+
isConnecting: false,
|
|
1816
|
+
publicKey: "",
|
|
1817
|
+
address: "",
|
|
1818
|
+
paymentAddress: "",
|
|
1819
|
+
paymentPublicKey: "",
|
|
1820
|
+
balance: void 0,
|
|
1821
|
+
network: MAINNET4222222222,
|
|
1822
|
+
library: null,
|
|
1823
|
+
provider: null,
|
|
1824
|
+
accounts: [],
|
|
1825
|
+
connect: (walletName) => __async222222222(void 0, null, function* () {
|
|
1826
|
+
}),
|
|
1827
|
+
disconnect: () => {
|
|
1828
|
+
},
|
|
1829
|
+
requestAccounts: () => __async222222222(void 0, null, function* () {
|
|
1830
|
+
return [];
|
|
1831
|
+
}),
|
|
1832
|
+
getNetwork: () => __async222222222(void 0, null, function* () {
|
|
1833
|
+
return MAINNET4222222222;
|
|
1834
|
+
}),
|
|
1835
|
+
switchNetwork: (network) => __async222222222(void 0, null, function* () {
|
|
1836
|
+
}),
|
|
1837
|
+
getPublicKey: () => __async222222222(void 0, null, function* () {
|
|
1838
|
+
return "";
|
|
1839
|
+
}),
|
|
1840
|
+
getBalance: () => __async222222222(void 0, null, function* () {
|
|
1841
|
+
return "";
|
|
1842
|
+
}),
|
|
1843
|
+
getInscriptions: () => __async222222222(void 0, null, function* () {
|
|
1844
|
+
return [];
|
|
1845
|
+
}),
|
|
1846
|
+
sendBTC: (to, amount) => __async222222222(void 0, null, function* () {
|
|
1847
|
+
return "";
|
|
1848
|
+
}),
|
|
1849
|
+
signMessage: (message) => __async222222222(void 0, null, function* () {
|
|
1850
|
+
return "";
|
|
1851
|
+
}),
|
|
1852
|
+
signPsbt: (tx) => __async222222222(void 0, null, function* () {
|
|
1853
|
+
return {
|
|
1854
|
+
signedPsbtHex: "",
|
|
1855
|
+
signedPsbtBase64: "",
|
|
1856
|
+
txId: ""
|
|
1857
|
+
};
|
|
1858
|
+
}),
|
|
1859
|
+
pushPsbt: (tx) => __async222222222(void 0, null, function* () {
|
|
1860
|
+
return "";
|
|
1861
|
+
}),
|
|
1862
|
+
inscribe: (content) => __async222222222(void 0, null, function* () {
|
|
1863
|
+
return "";
|
|
1864
|
+
}),
|
|
1865
|
+
isCreatingCommit: false,
|
|
1866
|
+
isInscribing: false
|
|
1867
|
+
};
|
|
1868
|
+
bitcoin2222222222.initEccLib(ecc2222222222);
|
|
1869
|
+
var __async2222222222 = (__this, __arguments, generator) => {
|
|
1870
|
+
return new Promise((resolve, reject) => {
|
|
1871
|
+
var fulfilled = (value) => {
|
|
1872
|
+
try {
|
|
1873
|
+
step(generator.next(value));
|
|
1874
|
+
} catch (e) {
|
|
1875
|
+
reject(e);
|
|
1876
|
+
}
|
|
1877
|
+
};
|
|
1878
|
+
var rejected = (value) => {
|
|
1879
|
+
try {
|
|
1880
|
+
step(generator.throw(value));
|
|
1881
|
+
} catch (e) {
|
|
1882
|
+
reject(e);
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1886
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
1887
|
+
});
|
|
1888
|
+
};
|
|
1889
|
+
var MAINNET42222222222 = "mainnet";
|
|
1890
|
+
var initialWalletContext22222222222 = {
|
|
1891
|
+
hasUnisat: false,
|
|
1892
|
+
hasXverse: false,
|
|
1893
|
+
hasOyl: false,
|
|
1894
|
+
hasMagicEden: false,
|
|
1895
|
+
hasOkx: false,
|
|
1896
|
+
hasLeather: false,
|
|
1897
|
+
hasPhantom: false,
|
|
1898
|
+
hasWizz: false,
|
|
1899
|
+
isInitializing: true,
|
|
1900
|
+
connected: false,
|
|
1901
|
+
isConnecting: false,
|
|
1902
|
+
publicKey: "",
|
|
1903
|
+
address: "",
|
|
1904
|
+
paymentAddress: "",
|
|
1905
|
+
paymentPublicKey: "",
|
|
1906
|
+
balance: void 0,
|
|
1907
|
+
network: MAINNET42222222222,
|
|
1908
|
+
library: null,
|
|
1909
|
+
provider: null,
|
|
1910
|
+
accounts: [],
|
|
1911
|
+
connect: (walletName) => __async2222222222(void 0, null, function* () {
|
|
1912
|
+
}),
|
|
1913
|
+
disconnect: () => {
|
|
1914
|
+
},
|
|
1915
|
+
requestAccounts: () => __async2222222222(void 0, null, function* () {
|
|
1916
|
+
return [];
|
|
1917
|
+
}),
|
|
1918
|
+
getNetwork: () => __async2222222222(void 0, null, function* () {
|
|
1919
|
+
return MAINNET42222222222;
|
|
1920
|
+
}),
|
|
1921
|
+
switchNetwork: (network) => __async2222222222(void 0, null, function* () {
|
|
1922
|
+
}),
|
|
1923
|
+
getPublicKey: () => __async2222222222(void 0, null, function* () {
|
|
1924
|
+
return "";
|
|
1925
|
+
}),
|
|
1926
|
+
getBalance: () => __async2222222222(void 0, null, function* () {
|
|
1927
|
+
return "";
|
|
1928
|
+
}),
|
|
1929
|
+
getInscriptions: () => __async2222222222(void 0, null, function* () {
|
|
1930
|
+
return [];
|
|
1931
|
+
}),
|
|
1932
|
+
sendBTC: (to, amount) => __async2222222222(void 0, null, function* () {
|
|
1933
|
+
return "";
|
|
1934
|
+
}),
|
|
1935
|
+
signMessage: (message) => __async2222222222(void 0, null, function* () {
|
|
1936
|
+
return "";
|
|
1937
|
+
}),
|
|
1938
|
+
signPsbt: (tx) => __async2222222222(void 0, null, function* () {
|
|
1939
|
+
return {
|
|
1940
|
+
signedPsbtHex: "",
|
|
1941
|
+
signedPsbtBase64: "",
|
|
1942
|
+
txId: ""
|
|
1943
|
+
};
|
|
1944
|
+
}),
|
|
1945
|
+
pushPsbt: (tx) => __async2222222222(void 0, null, function* () {
|
|
1946
|
+
return "";
|
|
1947
|
+
}),
|
|
1948
|
+
inscribe: (content) => __async2222222222(void 0, null, function* () {
|
|
1949
|
+
return "";
|
|
1950
|
+
}),
|
|
1951
|
+
isCreatingCommit: false,
|
|
1952
|
+
isInscribing: false
|
|
1953
|
+
};
|
|
1954
|
+
bitcoin22222222222.initEccLib(ecc22222222222);
|
|
1955
|
+
var __async22222222222 = (__this, __arguments, generator) => {
|
|
1956
|
+
return new Promise((resolve, reject) => {
|
|
1957
|
+
var fulfilled = (value) => {
|
|
1958
|
+
try {
|
|
1959
|
+
step(generator.next(value));
|
|
1960
|
+
} catch (e) {
|
|
1961
|
+
reject(e);
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
var rejected = (value) => {
|
|
1965
|
+
try {
|
|
1966
|
+
step(generator.throw(value));
|
|
1967
|
+
} catch (e) {
|
|
1968
|
+
reject(e);
|
|
1969
|
+
}
|
|
1970
|
+
};
|
|
1971
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1972
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
1973
|
+
});
|
|
1974
|
+
};
|
|
1975
|
+
var MAINNET422222222222 = "mainnet";
|
|
1976
|
+
var initialWalletContext222222222222 = {
|
|
1977
|
+
hasUnisat: false,
|
|
1978
|
+
hasXverse: false,
|
|
1979
|
+
hasOyl: false,
|
|
1980
|
+
hasMagicEden: false,
|
|
1981
|
+
hasOkx: false,
|
|
1982
|
+
hasLeather: false,
|
|
1983
|
+
hasPhantom: false,
|
|
1984
|
+
hasWizz: false,
|
|
1985
|
+
isInitializing: true,
|
|
1986
|
+
connected: false,
|
|
1987
|
+
isConnecting: false,
|
|
1988
|
+
publicKey: "",
|
|
1989
|
+
address: "",
|
|
1990
|
+
paymentAddress: "",
|
|
1991
|
+
paymentPublicKey: "",
|
|
1992
|
+
balance: void 0,
|
|
1993
|
+
network: MAINNET422222222222,
|
|
1994
|
+
library: null,
|
|
1995
|
+
provider: null,
|
|
1996
|
+
accounts: [],
|
|
1997
|
+
connect: (walletName) => __async22222222222(void 0, null, function* () {
|
|
1998
|
+
}),
|
|
1999
|
+
disconnect: () => {
|
|
2000
|
+
},
|
|
2001
|
+
requestAccounts: () => __async22222222222(void 0, null, function* () {
|
|
2002
|
+
return [];
|
|
2003
|
+
}),
|
|
2004
|
+
getNetwork: () => __async22222222222(void 0, null, function* () {
|
|
2005
|
+
return MAINNET422222222222;
|
|
2006
|
+
}),
|
|
2007
|
+
switchNetwork: (network) => __async22222222222(void 0, null, function* () {
|
|
2008
|
+
}),
|
|
2009
|
+
getPublicKey: () => __async22222222222(void 0, null, function* () {
|
|
2010
|
+
return "";
|
|
2011
|
+
}),
|
|
2012
|
+
getBalance: () => __async22222222222(void 0, null, function* () {
|
|
2013
|
+
return "";
|
|
2014
|
+
}),
|
|
2015
|
+
getInscriptions: () => __async22222222222(void 0, null, function* () {
|
|
2016
|
+
return [];
|
|
2017
|
+
}),
|
|
2018
|
+
sendBTC: (to, amount) => __async22222222222(void 0, null, function* () {
|
|
2019
|
+
return "";
|
|
2020
|
+
}),
|
|
2021
|
+
signMessage: (message) => __async22222222222(void 0, null, function* () {
|
|
2022
|
+
return "";
|
|
2023
|
+
}),
|
|
2024
|
+
signPsbt: (tx) => __async22222222222(void 0, null, function* () {
|
|
2025
|
+
return {
|
|
2026
|
+
signedPsbtHex: "",
|
|
2027
|
+
signedPsbtBase64: "",
|
|
2028
|
+
txId: ""
|
|
2029
|
+
};
|
|
2030
|
+
}),
|
|
2031
|
+
pushPsbt: (tx) => __async22222222222(void 0, null, function* () {
|
|
2032
|
+
return "";
|
|
2033
|
+
}),
|
|
2034
|
+
inscribe: (content) => __async22222222222(void 0, null, function* () {
|
|
2035
|
+
return "";
|
|
2036
|
+
}),
|
|
2037
|
+
isCreatingCommit: false,
|
|
2038
|
+
isInscribing: false
|
|
2039
|
+
};
|
|
2040
|
+
bitcoin222222222222.initEccLib(ecc222222222222);
|
|
2041
|
+
var __async222222222222 = (__this, __arguments, generator) => {
|
|
2042
|
+
return new Promise((resolve, reject) => {
|
|
2043
|
+
var fulfilled = (value) => {
|
|
2044
|
+
try {
|
|
2045
|
+
step(generator.next(value));
|
|
2046
|
+
} catch (e) {
|
|
2047
|
+
reject(e);
|
|
2048
|
+
}
|
|
2049
|
+
};
|
|
2050
|
+
var rejected = (value) => {
|
|
2051
|
+
try {
|
|
2052
|
+
step(generator.throw(value));
|
|
2053
|
+
} catch (e) {
|
|
2054
|
+
reject(e);
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2058
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
2059
|
+
});
|
|
2060
|
+
};
|
|
2061
|
+
var MAINNET4222222222222 = "mainnet";
|
|
2062
|
+
var initialWalletContext2222222222222 = {
|
|
2063
|
+
hasUnisat: false,
|
|
2064
|
+
hasXverse: false,
|
|
2065
|
+
hasOyl: false,
|
|
2066
|
+
hasMagicEden: false,
|
|
2067
|
+
hasOkx: false,
|
|
2068
|
+
hasLeather: false,
|
|
2069
|
+
hasPhantom: false,
|
|
2070
|
+
hasWizz: false,
|
|
2071
|
+
isInitializing: true,
|
|
2072
|
+
connected: false,
|
|
2073
|
+
isConnecting: false,
|
|
2074
|
+
publicKey: "",
|
|
2075
|
+
address: "",
|
|
2076
|
+
paymentAddress: "",
|
|
2077
|
+
paymentPublicKey: "",
|
|
2078
|
+
balance: void 0,
|
|
2079
|
+
network: MAINNET4222222222222,
|
|
2080
|
+
library: null,
|
|
2081
|
+
provider: null,
|
|
2082
|
+
accounts: [],
|
|
2083
|
+
connect: (walletName) => __async222222222222(void 0, null, function* () {
|
|
2084
|
+
}),
|
|
2085
|
+
disconnect: () => {
|
|
2086
|
+
},
|
|
2087
|
+
requestAccounts: () => __async222222222222(void 0, null, function* () {
|
|
2088
|
+
return [];
|
|
2089
|
+
}),
|
|
2090
|
+
getNetwork: () => __async222222222222(void 0, null, function* () {
|
|
2091
|
+
return MAINNET4222222222222;
|
|
2092
|
+
}),
|
|
2093
|
+
switchNetwork: (network) => __async222222222222(void 0, null, function* () {
|
|
2094
|
+
}),
|
|
2095
|
+
getPublicKey: () => __async222222222222(void 0, null, function* () {
|
|
2096
|
+
return "";
|
|
2097
|
+
}),
|
|
2098
|
+
getBalance: () => __async222222222222(void 0, null, function* () {
|
|
2099
|
+
return "";
|
|
2100
|
+
}),
|
|
2101
|
+
getInscriptions: () => __async222222222222(void 0, null, function* () {
|
|
2102
|
+
return [];
|
|
2103
|
+
}),
|
|
2104
|
+
sendBTC: (to, amount) => __async222222222222(void 0, null, function* () {
|
|
2105
|
+
return "";
|
|
2106
|
+
}),
|
|
2107
|
+
signMessage: (message) => __async222222222222(void 0, null, function* () {
|
|
2108
|
+
return "";
|
|
2109
|
+
}),
|
|
2110
|
+
signPsbt: (tx) => __async222222222222(void 0, null, function* () {
|
|
2111
|
+
return {
|
|
2112
|
+
signedPsbtHex: "",
|
|
2113
|
+
signedPsbtBase64: "",
|
|
2114
|
+
txId: ""
|
|
2115
|
+
};
|
|
2116
|
+
}),
|
|
2117
|
+
pushPsbt: (tx) => __async222222222222(void 0, null, function* () {
|
|
2118
|
+
return "";
|
|
2119
|
+
}),
|
|
2120
|
+
inscribe: (content) => __async222222222222(void 0, null, function* () {
|
|
2121
|
+
return "";
|
|
2122
|
+
}),
|
|
2123
|
+
isCreatingCommit: false,
|
|
2124
|
+
isInscribing: false
|
|
2125
|
+
};
|
|
2126
|
+
bitcoin2222222222222.initEccLib(ecc2222222222222);
|
|
2127
|
+
var __async2222222222222 = (__this, __arguments, generator) => {
|
|
2128
|
+
return new Promise((resolve, reject) => {
|
|
2129
|
+
var fulfilled = (value) => {
|
|
2130
|
+
try {
|
|
2131
|
+
step(generator.next(value));
|
|
2132
|
+
} catch (e) {
|
|
2133
|
+
reject(e);
|
|
2134
|
+
}
|
|
2135
|
+
};
|
|
2136
|
+
var rejected = (value) => {
|
|
2137
|
+
try {
|
|
2138
|
+
step(generator.throw(value));
|
|
2139
|
+
} catch (e) {
|
|
2140
|
+
reject(e);
|
|
2141
|
+
}
|
|
2142
|
+
};
|
|
2143
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2144
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
2145
|
+
});
|
|
2146
|
+
};
|
|
2147
|
+
var MAINNET42222222222222 = "mainnet";
|
|
2148
|
+
var initialWalletContext22222222222222 = {
|
|
2149
|
+
hasUnisat: false,
|
|
2150
|
+
hasXverse: false,
|
|
2151
|
+
hasOyl: false,
|
|
2152
|
+
hasMagicEden: false,
|
|
2153
|
+
hasOkx: false,
|
|
2154
|
+
hasLeather: false,
|
|
2155
|
+
hasPhantom: false,
|
|
2156
|
+
hasWizz: false,
|
|
2157
|
+
isInitializing: true,
|
|
2158
|
+
connected: false,
|
|
2159
|
+
isConnecting: false,
|
|
2160
|
+
publicKey: "",
|
|
2161
|
+
address: "",
|
|
2162
|
+
paymentAddress: "",
|
|
2163
|
+
paymentPublicKey: "",
|
|
2164
|
+
balance: void 0,
|
|
2165
|
+
network: MAINNET42222222222222,
|
|
2166
|
+
library: null,
|
|
2167
|
+
provider: null,
|
|
2168
|
+
accounts: [],
|
|
2169
|
+
connect: (walletName) => __async2222222222222(void 0, null, function* () {
|
|
2170
|
+
}),
|
|
2171
|
+
disconnect: () => {
|
|
2172
|
+
},
|
|
2173
|
+
requestAccounts: () => __async2222222222222(void 0, null, function* () {
|
|
2174
|
+
return [];
|
|
2175
|
+
}),
|
|
2176
|
+
getNetwork: () => __async2222222222222(void 0, null, function* () {
|
|
2177
|
+
return MAINNET42222222222222;
|
|
2178
|
+
}),
|
|
2179
|
+
switchNetwork: (network) => __async2222222222222(void 0, null, function* () {
|
|
2180
|
+
}),
|
|
2181
|
+
getPublicKey: () => __async2222222222222(void 0, null, function* () {
|
|
2182
|
+
return "";
|
|
2183
|
+
}),
|
|
2184
|
+
getBalance: () => __async2222222222222(void 0, null, function* () {
|
|
2185
|
+
return "";
|
|
2186
|
+
}),
|
|
2187
|
+
getInscriptions: () => __async2222222222222(void 0, null, function* () {
|
|
2188
|
+
return [];
|
|
2189
|
+
}),
|
|
2190
|
+
sendBTC: (to, amount) => __async2222222222222(void 0, null, function* () {
|
|
2191
|
+
return "";
|
|
2192
|
+
}),
|
|
2193
|
+
signMessage: (message) => __async2222222222222(void 0, null, function* () {
|
|
2194
|
+
return "";
|
|
2195
|
+
}),
|
|
2196
|
+
signPsbt: (tx) => __async2222222222222(void 0, null, function* () {
|
|
2197
|
+
return {
|
|
2198
|
+
signedPsbtHex: "",
|
|
2199
|
+
signedPsbtBase64: "",
|
|
2200
|
+
txId: ""
|
|
2201
|
+
};
|
|
2202
|
+
}),
|
|
2203
|
+
pushPsbt: (tx) => __async2222222222222(void 0, null, function* () {
|
|
1593
2204
|
return "";
|
|
1594
2205
|
}),
|
|
1595
|
-
inscribe: (content) =>
|
|
2206
|
+
inscribe: (content) => __async2222222222222(void 0, null, function* () {
|
|
1596
2207
|
return "";
|
|
1597
2208
|
}),
|
|
1598
2209
|
isCreatingCommit: false,
|
|
1599
2210
|
isInscribing: false
|
|
1600
2211
|
};
|
|
1601
|
-
|
|
1602
|
-
var
|
|
2212
|
+
bitcoin22222222222222.initEccLib(ecc22222222222222);
|
|
2213
|
+
var __async22222222222222 = (__this, __arguments, generator) => {
|
|
1603
2214
|
return new Promise((resolve, reject) => {
|
|
1604
2215
|
var fulfilled = (value) => {
|
|
1605
2216
|
try {
|
|
@@ -1619,8 +2230,8 @@ var __async222222222 = (__this, __arguments, generator) => {
|
|
|
1619
2230
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1620
2231
|
});
|
|
1621
2232
|
};
|
|
1622
|
-
var
|
|
1623
|
-
var
|
|
2233
|
+
var MAINNET422222222222222 = "mainnet";
|
|
2234
|
+
var initialWalletContext222222222222222 = {
|
|
1624
2235
|
hasUnisat: false,
|
|
1625
2236
|
hasXverse: false,
|
|
1626
2237
|
hasOyl: false,
|
|
@@ -1637,55 +2248,55 @@ var initialWalletContext2222222222 = {
|
|
|
1637
2248
|
paymentAddress: "",
|
|
1638
2249
|
paymentPublicKey: "",
|
|
1639
2250
|
balance: void 0,
|
|
1640
|
-
network:
|
|
2251
|
+
network: MAINNET422222222222222,
|
|
1641
2252
|
library: null,
|
|
1642
2253
|
provider: null,
|
|
1643
2254
|
accounts: [],
|
|
1644
|
-
connect: (walletName) =>
|
|
2255
|
+
connect: (walletName) => __async22222222222222(void 0, null, function* () {
|
|
1645
2256
|
}),
|
|
1646
2257
|
disconnect: () => {
|
|
1647
2258
|
},
|
|
1648
|
-
requestAccounts: () =>
|
|
2259
|
+
requestAccounts: () => __async22222222222222(void 0, null, function* () {
|
|
1649
2260
|
return [];
|
|
1650
2261
|
}),
|
|
1651
|
-
getNetwork: () =>
|
|
1652
|
-
return
|
|
2262
|
+
getNetwork: () => __async22222222222222(void 0, null, function* () {
|
|
2263
|
+
return MAINNET422222222222222;
|
|
1653
2264
|
}),
|
|
1654
|
-
switchNetwork: (network) =>
|
|
2265
|
+
switchNetwork: (network) => __async22222222222222(void 0, null, function* () {
|
|
1655
2266
|
}),
|
|
1656
|
-
getPublicKey: () =>
|
|
2267
|
+
getPublicKey: () => __async22222222222222(void 0, null, function* () {
|
|
1657
2268
|
return "";
|
|
1658
2269
|
}),
|
|
1659
|
-
getBalance: () =>
|
|
2270
|
+
getBalance: () => __async22222222222222(void 0, null, function* () {
|
|
1660
2271
|
return "";
|
|
1661
2272
|
}),
|
|
1662
|
-
getInscriptions: () =>
|
|
2273
|
+
getInscriptions: () => __async22222222222222(void 0, null, function* () {
|
|
1663
2274
|
return [];
|
|
1664
2275
|
}),
|
|
1665
|
-
sendBTC: (to, amount) =>
|
|
2276
|
+
sendBTC: (to, amount) => __async22222222222222(void 0, null, function* () {
|
|
1666
2277
|
return "";
|
|
1667
2278
|
}),
|
|
1668
|
-
signMessage: (message) =>
|
|
2279
|
+
signMessage: (message) => __async22222222222222(void 0, null, function* () {
|
|
1669
2280
|
return "";
|
|
1670
2281
|
}),
|
|
1671
|
-
signPsbt: (tx) =>
|
|
2282
|
+
signPsbt: (tx) => __async22222222222222(void 0, null, function* () {
|
|
1672
2283
|
return {
|
|
1673
2284
|
signedPsbtHex: "",
|
|
1674
2285
|
signedPsbtBase64: "",
|
|
1675
2286
|
txId: ""
|
|
1676
2287
|
};
|
|
1677
2288
|
}),
|
|
1678
|
-
pushPsbt: (tx) =>
|
|
2289
|
+
pushPsbt: (tx) => __async22222222222222(void 0, null, function* () {
|
|
1679
2290
|
return "";
|
|
1680
2291
|
}),
|
|
1681
|
-
inscribe: (content) =>
|
|
2292
|
+
inscribe: (content) => __async22222222222222(void 0, null, function* () {
|
|
1682
2293
|
return "";
|
|
1683
2294
|
}),
|
|
1684
2295
|
isCreatingCommit: false,
|
|
1685
2296
|
isInscribing: false
|
|
1686
2297
|
};
|
|
1687
|
-
|
|
1688
|
-
var
|
|
2298
|
+
bitcoin222222222222222.initEccLib(ecc222222222222222);
|
|
2299
|
+
var __async222222222222222 = (__this, __arguments, generator) => {
|
|
1689
2300
|
return new Promise((resolve, reject) => {
|
|
1690
2301
|
var fulfilled = (value) => {
|
|
1691
2302
|
try {
|
|
@@ -1705,8 +2316,8 @@ var __async2222222222 = (__this, __arguments, generator) => {
|
|
|
1705
2316
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1706
2317
|
});
|
|
1707
2318
|
};
|
|
1708
|
-
var
|
|
1709
|
-
var
|
|
2319
|
+
var MAINNET4222222222222222 = "mainnet";
|
|
2320
|
+
var initialWalletContext2222222222222222 = {
|
|
1710
2321
|
hasUnisat: false,
|
|
1711
2322
|
hasXverse: false,
|
|
1712
2323
|
hasOyl: false,
|
|
@@ -1723,55 +2334,55 @@ var initialWalletContext22222222222 = {
|
|
|
1723
2334
|
paymentAddress: "",
|
|
1724
2335
|
paymentPublicKey: "",
|
|
1725
2336
|
balance: void 0,
|
|
1726
|
-
network:
|
|
2337
|
+
network: MAINNET4222222222222222,
|
|
1727
2338
|
library: null,
|
|
1728
2339
|
provider: null,
|
|
1729
2340
|
accounts: [],
|
|
1730
|
-
connect: (walletName) =>
|
|
2341
|
+
connect: (walletName) => __async222222222222222(void 0, null, function* () {
|
|
1731
2342
|
}),
|
|
1732
2343
|
disconnect: () => {
|
|
1733
2344
|
},
|
|
1734
|
-
requestAccounts: () =>
|
|
2345
|
+
requestAccounts: () => __async222222222222222(void 0, null, function* () {
|
|
1735
2346
|
return [];
|
|
1736
2347
|
}),
|
|
1737
|
-
getNetwork: () =>
|
|
1738
|
-
return
|
|
2348
|
+
getNetwork: () => __async222222222222222(void 0, null, function* () {
|
|
2349
|
+
return MAINNET4222222222222222;
|
|
1739
2350
|
}),
|
|
1740
|
-
switchNetwork: (network) =>
|
|
2351
|
+
switchNetwork: (network) => __async222222222222222(void 0, null, function* () {
|
|
1741
2352
|
}),
|
|
1742
|
-
getPublicKey: () =>
|
|
2353
|
+
getPublicKey: () => __async222222222222222(void 0, null, function* () {
|
|
1743
2354
|
return "";
|
|
1744
2355
|
}),
|
|
1745
|
-
getBalance: () =>
|
|
2356
|
+
getBalance: () => __async222222222222222(void 0, null, function* () {
|
|
1746
2357
|
return "";
|
|
1747
2358
|
}),
|
|
1748
|
-
getInscriptions: () =>
|
|
2359
|
+
getInscriptions: () => __async222222222222222(void 0, null, function* () {
|
|
1749
2360
|
return [];
|
|
1750
2361
|
}),
|
|
1751
|
-
sendBTC: (to, amount) =>
|
|
2362
|
+
sendBTC: (to, amount) => __async222222222222222(void 0, null, function* () {
|
|
1752
2363
|
return "";
|
|
1753
2364
|
}),
|
|
1754
|
-
signMessage: (message) =>
|
|
2365
|
+
signMessage: (message) => __async222222222222222(void 0, null, function* () {
|
|
1755
2366
|
return "";
|
|
1756
2367
|
}),
|
|
1757
|
-
signPsbt: (tx) =>
|
|
2368
|
+
signPsbt: (tx) => __async222222222222222(void 0, null, function* () {
|
|
1758
2369
|
return {
|
|
1759
2370
|
signedPsbtHex: "",
|
|
1760
2371
|
signedPsbtBase64: "",
|
|
1761
2372
|
txId: ""
|
|
1762
2373
|
};
|
|
1763
2374
|
}),
|
|
1764
|
-
pushPsbt: (tx) =>
|
|
2375
|
+
pushPsbt: (tx) => __async222222222222222(void 0, null, function* () {
|
|
1765
2376
|
return "";
|
|
1766
2377
|
}),
|
|
1767
|
-
inscribe: (content) =>
|
|
2378
|
+
inscribe: (content) => __async222222222222222(void 0, null, function* () {
|
|
1768
2379
|
return "";
|
|
1769
2380
|
}),
|
|
1770
2381
|
isCreatingCommit: false,
|
|
1771
2382
|
isInscribing: false
|
|
1772
2383
|
};
|
|
1773
|
-
|
|
1774
|
-
var
|
|
2384
|
+
bitcoin2222222222222222.initEccLib(ecc2222222222222222);
|
|
2385
|
+
var __async2222222222222222 = (__this, __arguments, generator) => {
|
|
1775
2386
|
return new Promise((resolve, reject) => {
|
|
1776
2387
|
var fulfilled = (value) => {
|
|
1777
2388
|
try {
|
|
@@ -1791,8 +2402,8 @@ var __async22222222222 = (__this, __arguments, generator) => {
|
|
|
1791
2402
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1792
2403
|
});
|
|
1793
2404
|
};
|
|
1794
|
-
var
|
|
1795
|
-
var
|
|
2405
|
+
var MAINNET42222222222222222 = "mainnet";
|
|
2406
|
+
var initialWalletContext22222222222222222 = {
|
|
1796
2407
|
hasUnisat: false,
|
|
1797
2408
|
hasXverse: false,
|
|
1798
2409
|
hasOyl: false,
|
|
@@ -1809,55 +2420,55 @@ var initialWalletContext222222222222 = {
|
|
|
1809
2420
|
paymentAddress: "",
|
|
1810
2421
|
paymentPublicKey: "",
|
|
1811
2422
|
balance: void 0,
|
|
1812
|
-
network:
|
|
2423
|
+
network: MAINNET42222222222222222,
|
|
1813
2424
|
library: null,
|
|
1814
2425
|
provider: null,
|
|
1815
2426
|
accounts: [],
|
|
1816
|
-
connect: (walletName) =>
|
|
2427
|
+
connect: (walletName) => __async2222222222222222(void 0, null, function* () {
|
|
1817
2428
|
}),
|
|
1818
2429
|
disconnect: () => {
|
|
1819
2430
|
},
|
|
1820
|
-
requestAccounts: () =>
|
|
2431
|
+
requestAccounts: () => __async2222222222222222(void 0, null, function* () {
|
|
1821
2432
|
return [];
|
|
1822
2433
|
}),
|
|
1823
|
-
getNetwork: () =>
|
|
1824
|
-
return
|
|
2434
|
+
getNetwork: () => __async2222222222222222(void 0, null, function* () {
|
|
2435
|
+
return MAINNET42222222222222222;
|
|
1825
2436
|
}),
|
|
1826
|
-
switchNetwork: (network) =>
|
|
2437
|
+
switchNetwork: (network) => __async2222222222222222(void 0, null, function* () {
|
|
1827
2438
|
}),
|
|
1828
|
-
getPublicKey: () =>
|
|
2439
|
+
getPublicKey: () => __async2222222222222222(void 0, null, function* () {
|
|
1829
2440
|
return "";
|
|
1830
2441
|
}),
|
|
1831
|
-
getBalance: () =>
|
|
2442
|
+
getBalance: () => __async2222222222222222(void 0, null, function* () {
|
|
1832
2443
|
return "";
|
|
1833
2444
|
}),
|
|
1834
|
-
getInscriptions: () =>
|
|
2445
|
+
getInscriptions: () => __async2222222222222222(void 0, null, function* () {
|
|
1835
2446
|
return [];
|
|
1836
2447
|
}),
|
|
1837
|
-
sendBTC: (to, amount) =>
|
|
2448
|
+
sendBTC: (to, amount) => __async2222222222222222(void 0, null, function* () {
|
|
1838
2449
|
return "";
|
|
1839
2450
|
}),
|
|
1840
|
-
signMessage: (message) =>
|
|
2451
|
+
signMessage: (message) => __async2222222222222222(void 0, null, function* () {
|
|
1841
2452
|
return "";
|
|
1842
2453
|
}),
|
|
1843
|
-
signPsbt: (tx) =>
|
|
2454
|
+
signPsbt: (tx) => __async2222222222222222(void 0, null, function* () {
|
|
1844
2455
|
return {
|
|
1845
2456
|
signedPsbtHex: "",
|
|
1846
2457
|
signedPsbtBase64: "",
|
|
1847
2458
|
txId: ""
|
|
1848
2459
|
};
|
|
1849
2460
|
}),
|
|
1850
|
-
pushPsbt: (tx) =>
|
|
2461
|
+
pushPsbt: (tx) => __async2222222222222222(void 0, null, function* () {
|
|
1851
2462
|
return "";
|
|
1852
2463
|
}),
|
|
1853
|
-
inscribe: (content) =>
|
|
2464
|
+
inscribe: (content) => __async2222222222222222(void 0, null, function* () {
|
|
1854
2465
|
return "";
|
|
1855
2466
|
}),
|
|
1856
2467
|
isCreatingCommit: false,
|
|
1857
2468
|
isInscribing: false
|
|
1858
2469
|
};
|
|
1859
|
-
|
|
1860
|
-
var
|
|
2470
|
+
bitcoin22222222222222222.initEccLib(ecc22222222222222222);
|
|
2471
|
+
var __async22222222222222222 = (__this, __arguments, generator) => {
|
|
1861
2472
|
return new Promise((resolve, reject) => {
|
|
1862
2473
|
var fulfilled = (value) => {
|
|
1863
2474
|
try {
|
|
@@ -1877,8 +2488,8 @@ var __async222222222222 = (__this, __arguments, generator) => {
|
|
|
1877
2488
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1878
2489
|
});
|
|
1879
2490
|
};
|
|
1880
|
-
var
|
|
1881
|
-
var
|
|
2491
|
+
var MAINNET422222222222222222 = "mainnet";
|
|
2492
|
+
var initialWalletContext222222222222222222 = {
|
|
1882
2493
|
hasUnisat: false,
|
|
1883
2494
|
hasXverse: false,
|
|
1884
2495
|
hasOyl: false,
|
|
@@ -1895,55 +2506,55 @@ var initialWalletContext2222222222222 = {
|
|
|
1895
2506
|
paymentAddress: "",
|
|
1896
2507
|
paymentPublicKey: "",
|
|
1897
2508
|
balance: void 0,
|
|
1898
|
-
network:
|
|
2509
|
+
network: MAINNET422222222222222222,
|
|
1899
2510
|
library: null,
|
|
1900
2511
|
provider: null,
|
|
1901
2512
|
accounts: [],
|
|
1902
|
-
connect: (walletName) =>
|
|
2513
|
+
connect: (walletName) => __async22222222222222222(void 0, null, function* () {
|
|
1903
2514
|
}),
|
|
1904
2515
|
disconnect: () => {
|
|
1905
2516
|
},
|
|
1906
|
-
requestAccounts: () =>
|
|
2517
|
+
requestAccounts: () => __async22222222222222222(void 0, null, function* () {
|
|
1907
2518
|
return [];
|
|
1908
2519
|
}),
|
|
1909
|
-
getNetwork: () =>
|
|
1910
|
-
return
|
|
2520
|
+
getNetwork: () => __async22222222222222222(void 0, null, function* () {
|
|
2521
|
+
return MAINNET422222222222222222;
|
|
1911
2522
|
}),
|
|
1912
|
-
switchNetwork: (network) =>
|
|
2523
|
+
switchNetwork: (network) => __async22222222222222222(void 0, null, function* () {
|
|
1913
2524
|
}),
|
|
1914
|
-
getPublicKey: () =>
|
|
2525
|
+
getPublicKey: () => __async22222222222222222(void 0, null, function* () {
|
|
1915
2526
|
return "";
|
|
1916
2527
|
}),
|
|
1917
|
-
getBalance: () =>
|
|
2528
|
+
getBalance: () => __async22222222222222222(void 0, null, function* () {
|
|
1918
2529
|
return "";
|
|
1919
2530
|
}),
|
|
1920
|
-
getInscriptions: () =>
|
|
2531
|
+
getInscriptions: () => __async22222222222222222(void 0, null, function* () {
|
|
1921
2532
|
return [];
|
|
1922
2533
|
}),
|
|
1923
|
-
sendBTC: (to, amount) =>
|
|
2534
|
+
sendBTC: (to, amount) => __async22222222222222222(void 0, null, function* () {
|
|
1924
2535
|
return "";
|
|
1925
2536
|
}),
|
|
1926
|
-
signMessage: (message) =>
|
|
2537
|
+
signMessage: (message) => __async22222222222222222(void 0, null, function* () {
|
|
1927
2538
|
return "";
|
|
1928
2539
|
}),
|
|
1929
|
-
signPsbt: (tx) =>
|
|
2540
|
+
signPsbt: (tx) => __async22222222222222222(void 0, null, function* () {
|
|
1930
2541
|
return {
|
|
1931
2542
|
signedPsbtHex: "",
|
|
1932
2543
|
signedPsbtBase64: "",
|
|
1933
2544
|
txId: ""
|
|
1934
2545
|
};
|
|
1935
2546
|
}),
|
|
1936
|
-
pushPsbt: (tx) =>
|
|
2547
|
+
pushPsbt: (tx) => __async22222222222222222(void 0, null, function* () {
|
|
1937
2548
|
return "";
|
|
1938
2549
|
}),
|
|
1939
|
-
inscribe: (content) =>
|
|
2550
|
+
inscribe: (content) => __async22222222222222222(void 0, null, function* () {
|
|
1940
2551
|
return "";
|
|
1941
2552
|
}),
|
|
1942
2553
|
isCreatingCommit: false,
|
|
1943
2554
|
isInscribing: false
|
|
1944
2555
|
};
|
|
1945
|
-
|
|
1946
|
-
var
|
|
2556
|
+
bitcoin222222222222222222.initEccLib(ecc222222222222222222);
|
|
2557
|
+
var __async222222222222222222 = (__this, __arguments, generator) => {
|
|
1947
2558
|
return new Promise((resolve, reject) => {
|
|
1948
2559
|
var fulfilled = (value) => {
|
|
1949
2560
|
try {
|
|
@@ -1963,8 +2574,8 @@ var __async2222222222222 = (__this, __arguments, generator) => {
|
|
|
1963
2574
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1964
2575
|
});
|
|
1965
2576
|
};
|
|
1966
|
-
var
|
|
1967
|
-
var
|
|
2577
|
+
var MAINNET4222222222222222222 = "mainnet";
|
|
2578
|
+
var initialWalletContext2222222222222222222 = {
|
|
1968
2579
|
hasUnisat: false,
|
|
1969
2580
|
hasXverse: false,
|
|
1970
2581
|
hasOyl: false,
|
|
@@ -1981,55 +2592,55 @@ var initialWalletContext22222222222222 = {
|
|
|
1981
2592
|
paymentAddress: "",
|
|
1982
2593
|
paymentPublicKey: "",
|
|
1983
2594
|
balance: void 0,
|
|
1984
|
-
network:
|
|
2595
|
+
network: MAINNET4222222222222222222,
|
|
1985
2596
|
library: null,
|
|
1986
2597
|
provider: null,
|
|
1987
2598
|
accounts: [],
|
|
1988
|
-
connect: (walletName) =>
|
|
2599
|
+
connect: (walletName) => __async222222222222222222(void 0, null, function* () {
|
|
1989
2600
|
}),
|
|
1990
2601
|
disconnect: () => {
|
|
1991
2602
|
},
|
|
1992
|
-
requestAccounts: () =>
|
|
2603
|
+
requestAccounts: () => __async222222222222222222(void 0, null, function* () {
|
|
1993
2604
|
return [];
|
|
1994
2605
|
}),
|
|
1995
|
-
getNetwork: () =>
|
|
1996
|
-
return
|
|
2606
|
+
getNetwork: () => __async222222222222222222(void 0, null, function* () {
|
|
2607
|
+
return MAINNET4222222222222222222;
|
|
1997
2608
|
}),
|
|
1998
|
-
switchNetwork: (network) =>
|
|
2609
|
+
switchNetwork: (network) => __async222222222222222222(void 0, null, function* () {
|
|
1999
2610
|
}),
|
|
2000
|
-
getPublicKey: () =>
|
|
2611
|
+
getPublicKey: () => __async222222222222222222(void 0, null, function* () {
|
|
2001
2612
|
return "";
|
|
2002
2613
|
}),
|
|
2003
|
-
getBalance: () =>
|
|
2614
|
+
getBalance: () => __async222222222222222222(void 0, null, function* () {
|
|
2004
2615
|
return "";
|
|
2005
2616
|
}),
|
|
2006
|
-
getInscriptions: () =>
|
|
2617
|
+
getInscriptions: () => __async222222222222222222(void 0, null, function* () {
|
|
2007
2618
|
return [];
|
|
2008
2619
|
}),
|
|
2009
|
-
sendBTC: (to, amount) =>
|
|
2620
|
+
sendBTC: (to, amount) => __async222222222222222222(void 0, null, function* () {
|
|
2010
2621
|
return "";
|
|
2011
2622
|
}),
|
|
2012
|
-
signMessage: (message) =>
|
|
2623
|
+
signMessage: (message) => __async222222222222222222(void 0, null, function* () {
|
|
2013
2624
|
return "";
|
|
2014
2625
|
}),
|
|
2015
|
-
signPsbt: (tx) =>
|
|
2626
|
+
signPsbt: (tx) => __async222222222222222222(void 0, null, function* () {
|
|
2016
2627
|
return {
|
|
2017
2628
|
signedPsbtHex: "",
|
|
2018
2629
|
signedPsbtBase64: "",
|
|
2019
2630
|
txId: ""
|
|
2020
2631
|
};
|
|
2021
2632
|
}),
|
|
2022
|
-
pushPsbt: (tx) =>
|
|
2633
|
+
pushPsbt: (tx) => __async222222222222222222(void 0, null, function* () {
|
|
2023
2634
|
return "";
|
|
2024
2635
|
}),
|
|
2025
|
-
inscribe: (content) =>
|
|
2636
|
+
inscribe: (content) => __async222222222222222222(void 0, null, function* () {
|
|
2026
2637
|
return "";
|
|
2027
2638
|
}),
|
|
2028
2639
|
isCreatingCommit: false,
|
|
2029
2640
|
isInscribing: false
|
|
2030
2641
|
};
|
|
2031
|
-
|
|
2032
|
-
var
|
|
2642
|
+
bitcoin2222222222222222222.initEccLib(ecc2222222222222222222);
|
|
2643
|
+
var __async2222222222222222222 = (__this, __arguments, generator) => {
|
|
2033
2644
|
return new Promise((resolve, reject) => {
|
|
2034
2645
|
var fulfilled = (value) => {
|
|
2035
2646
|
try {
|
|
@@ -2049,8 +2660,8 @@ var __async22222222222222 = (__this, __arguments, generator) => {
|
|
|
2049
2660
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2050
2661
|
});
|
|
2051
2662
|
};
|
|
2052
|
-
var
|
|
2053
|
-
var
|
|
2663
|
+
var MAINNET42222222222222222222 = "mainnet";
|
|
2664
|
+
var initialWalletContext22222222222222222222 = {
|
|
2054
2665
|
hasUnisat: false,
|
|
2055
2666
|
hasXverse: false,
|
|
2056
2667
|
hasOyl: false,
|
|
@@ -2067,55 +2678,55 @@ var initialWalletContext222222222222222 = {
|
|
|
2067
2678
|
paymentAddress: "",
|
|
2068
2679
|
paymentPublicKey: "",
|
|
2069
2680
|
balance: void 0,
|
|
2070
|
-
network:
|
|
2681
|
+
network: MAINNET42222222222222222222,
|
|
2071
2682
|
library: null,
|
|
2072
2683
|
provider: null,
|
|
2073
2684
|
accounts: [],
|
|
2074
|
-
connect: (walletName) =>
|
|
2685
|
+
connect: (walletName) => __async2222222222222222222(void 0, null, function* () {
|
|
2075
2686
|
}),
|
|
2076
2687
|
disconnect: () => {
|
|
2077
2688
|
},
|
|
2078
|
-
requestAccounts: () =>
|
|
2689
|
+
requestAccounts: () => __async2222222222222222222(void 0, null, function* () {
|
|
2079
2690
|
return [];
|
|
2080
2691
|
}),
|
|
2081
|
-
getNetwork: () =>
|
|
2082
|
-
return
|
|
2692
|
+
getNetwork: () => __async2222222222222222222(void 0, null, function* () {
|
|
2693
|
+
return MAINNET42222222222222222222;
|
|
2083
2694
|
}),
|
|
2084
|
-
switchNetwork: (network) =>
|
|
2695
|
+
switchNetwork: (network) => __async2222222222222222222(void 0, null, function* () {
|
|
2085
2696
|
}),
|
|
2086
|
-
getPublicKey: () =>
|
|
2697
|
+
getPublicKey: () => __async2222222222222222222(void 0, null, function* () {
|
|
2087
2698
|
return "";
|
|
2088
2699
|
}),
|
|
2089
|
-
getBalance: () =>
|
|
2700
|
+
getBalance: () => __async2222222222222222222(void 0, null, function* () {
|
|
2090
2701
|
return "";
|
|
2091
2702
|
}),
|
|
2092
|
-
getInscriptions: () =>
|
|
2703
|
+
getInscriptions: () => __async2222222222222222222(void 0, null, function* () {
|
|
2093
2704
|
return [];
|
|
2094
2705
|
}),
|
|
2095
|
-
sendBTC: (to, amount) =>
|
|
2706
|
+
sendBTC: (to, amount) => __async2222222222222222222(void 0, null, function* () {
|
|
2096
2707
|
return "";
|
|
2097
2708
|
}),
|
|
2098
|
-
signMessage: (message) =>
|
|
2709
|
+
signMessage: (message) => __async2222222222222222222(void 0, null, function* () {
|
|
2099
2710
|
return "";
|
|
2100
2711
|
}),
|
|
2101
|
-
signPsbt: (tx) =>
|
|
2712
|
+
signPsbt: (tx) => __async2222222222222222222(void 0, null, function* () {
|
|
2102
2713
|
return {
|
|
2103
2714
|
signedPsbtHex: "",
|
|
2104
2715
|
signedPsbtBase64: "",
|
|
2105
2716
|
txId: ""
|
|
2106
2717
|
};
|
|
2107
2718
|
}),
|
|
2108
|
-
pushPsbt: (tx) =>
|
|
2719
|
+
pushPsbt: (tx) => __async2222222222222222222(void 0, null, function* () {
|
|
2109
2720
|
return "";
|
|
2110
2721
|
}),
|
|
2111
|
-
inscribe: (content) =>
|
|
2722
|
+
inscribe: (content) => __async2222222222222222222(void 0, null, function* () {
|
|
2112
2723
|
return "";
|
|
2113
2724
|
}),
|
|
2114
2725
|
isCreatingCommit: false,
|
|
2115
2726
|
isInscribing: false
|
|
2116
2727
|
};
|
|
2117
|
-
|
|
2118
|
-
var
|
|
2728
|
+
bitcoin22222222222222222222.initEccLib(ecc22222222222222222222);
|
|
2729
|
+
var __async22222222222222222222 = (__this, __arguments, generator) => {
|
|
2119
2730
|
return new Promise((resolve, reject) => {
|
|
2120
2731
|
var fulfilled = (value) => {
|
|
2121
2732
|
try {
|
|
@@ -2135,8 +2746,8 @@ var __async222222222222222 = (__this, __arguments, generator) => {
|
|
|
2135
2746
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2136
2747
|
});
|
|
2137
2748
|
};
|
|
2138
|
-
var
|
|
2139
|
-
var
|
|
2749
|
+
var MAINNET422222222222222222222 = "mainnet";
|
|
2750
|
+
var initialWalletContext222222222222222222222 = {
|
|
2140
2751
|
hasUnisat: false,
|
|
2141
2752
|
hasXverse: false,
|
|
2142
2753
|
hasOyl: false,
|
|
@@ -2153,70 +2764,75 @@ var initialWalletContext2222222222222222 = {
|
|
|
2153
2764
|
paymentAddress: "",
|
|
2154
2765
|
paymentPublicKey: "",
|
|
2155
2766
|
balance: void 0,
|
|
2156
|
-
network:
|
|
2767
|
+
network: MAINNET422222222222222222222,
|
|
2157
2768
|
library: null,
|
|
2158
2769
|
provider: null,
|
|
2159
2770
|
accounts: [],
|
|
2160
|
-
connect: (walletName) =>
|
|
2771
|
+
connect: (walletName) => __async22222222222222222222(void 0, null, function* () {
|
|
2161
2772
|
}),
|
|
2162
2773
|
disconnect: () => {
|
|
2163
2774
|
},
|
|
2164
|
-
requestAccounts: () =>
|
|
2775
|
+
requestAccounts: () => __async22222222222222222222(void 0, null, function* () {
|
|
2165
2776
|
return [];
|
|
2166
2777
|
}),
|
|
2167
|
-
getNetwork: () =>
|
|
2168
|
-
return
|
|
2778
|
+
getNetwork: () => __async22222222222222222222(void 0, null, function* () {
|
|
2779
|
+
return MAINNET422222222222222222222;
|
|
2169
2780
|
}),
|
|
2170
|
-
switchNetwork: (network) =>
|
|
2781
|
+
switchNetwork: (network) => __async22222222222222222222(void 0, null, function* () {
|
|
2171
2782
|
}),
|
|
2172
|
-
getPublicKey: () =>
|
|
2783
|
+
getPublicKey: () => __async22222222222222222222(void 0, null, function* () {
|
|
2173
2784
|
return "";
|
|
2174
2785
|
}),
|
|
2175
|
-
getBalance: () =>
|
|
2786
|
+
getBalance: () => __async22222222222222222222(void 0, null, function* () {
|
|
2176
2787
|
return "";
|
|
2177
2788
|
}),
|
|
2178
|
-
getInscriptions: () =>
|
|
2789
|
+
getInscriptions: () => __async22222222222222222222(void 0, null, function* () {
|
|
2179
2790
|
return [];
|
|
2180
2791
|
}),
|
|
2181
|
-
sendBTC: (to, amount) =>
|
|
2792
|
+
sendBTC: (to, amount) => __async22222222222222222222(void 0, null, function* () {
|
|
2182
2793
|
return "";
|
|
2183
2794
|
}),
|
|
2184
|
-
signMessage: (message) =>
|
|
2795
|
+
signMessage: (message) => __async22222222222222222222(void 0, null, function* () {
|
|
2185
2796
|
return "";
|
|
2186
2797
|
}),
|
|
2187
|
-
signPsbt: (tx) =>
|
|
2798
|
+
signPsbt: (tx) => __async22222222222222222222(void 0, null, function* () {
|
|
2188
2799
|
return {
|
|
2189
2800
|
signedPsbtHex: "",
|
|
2190
2801
|
signedPsbtBase64: "",
|
|
2191
2802
|
txId: ""
|
|
2192
2803
|
};
|
|
2193
2804
|
}),
|
|
2194
|
-
pushPsbt: (tx) =>
|
|
2805
|
+
pushPsbt: (tx) => __async22222222222222222222(void 0, null, function* () {
|
|
2195
2806
|
return "";
|
|
2196
2807
|
}),
|
|
2197
|
-
inscribe: (content) =>
|
|
2808
|
+
inscribe: (content) => __async22222222222222222222(void 0, null, function* () {
|
|
2198
2809
|
return "";
|
|
2199
2810
|
}),
|
|
2200
2811
|
isCreatingCommit: false,
|
|
2201
2812
|
isInscribing: false
|
|
2202
2813
|
};
|
|
2203
|
-
bitcoin3.initEccLib(
|
|
2204
|
-
var LaserEyesContext = createContext(
|
|
2205
|
-
var LaserEyesContext2 = createContext2(
|
|
2206
|
-
var LaserEyesContext3 = createContext3(
|
|
2207
|
-
var LaserEyesContext4 = createContext4(
|
|
2208
|
-
var LaserEyesContext5 = createContext5(
|
|
2209
|
-
var LaserEyesContext6 = createContext6(
|
|
2210
|
-
var LaserEyesContext7 = createContext7(
|
|
2211
|
-
var LaserEyesContext8 = createContext8(
|
|
2212
|
-
var LaserEyesContext9 = createContext9(
|
|
2213
|
-
var LaserEyesContext10 = createContext10(
|
|
2214
|
-
var LaserEyesContext11 = createContext11(
|
|
2215
|
-
var LaserEyesContext12 = createContext12(
|
|
2216
|
-
var LaserEyesContext13 = createContext13(
|
|
2217
|
-
var LaserEyesContext14 = createContext14(
|
|
2218
|
-
var LaserEyesContext15 = createContext15(
|
|
2219
|
-
var LaserEyesContext16 = createContext16(
|
|
2814
|
+
bitcoin3.initEccLib(ecc222222222222222222222);
|
|
2815
|
+
var LaserEyesContext = createContext(initialWalletContext222222222222222222222);
|
|
2816
|
+
var LaserEyesContext2 = createContext2(initialWalletContext22222222222222222222);
|
|
2817
|
+
var LaserEyesContext3 = createContext3(initialWalletContext2222222222222222222);
|
|
2818
|
+
var LaserEyesContext4 = createContext4(initialWalletContext222222222222222222);
|
|
2819
|
+
var LaserEyesContext5 = createContext5(initialWalletContext22222222222222222);
|
|
2820
|
+
var LaserEyesContext6 = createContext6(initialWalletContext2222222222222222);
|
|
2821
|
+
var LaserEyesContext7 = createContext7(initialWalletContext222222222222222);
|
|
2822
|
+
var LaserEyesContext8 = createContext8(initialWalletContext22222222222222);
|
|
2823
|
+
var LaserEyesContext9 = createContext9(initialWalletContext2222222222222);
|
|
2824
|
+
var LaserEyesContext10 = createContext10(initialWalletContext222222222222);
|
|
2825
|
+
var LaserEyesContext11 = createContext11(initialWalletContext22222222222);
|
|
2826
|
+
var LaserEyesContext12 = createContext12(initialWalletContext2222222222);
|
|
2827
|
+
var LaserEyesContext13 = createContext13(initialWalletContext222222222);
|
|
2828
|
+
var LaserEyesContext14 = createContext14(initialWalletContext22222222);
|
|
2829
|
+
var LaserEyesContext15 = createContext15(initialWalletContext2222222);
|
|
2830
|
+
var LaserEyesContext16 = createContext16(initialWalletContext222222);
|
|
2831
|
+
var LaserEyesContext17 = createContext17(initialWalletContext22222);
|
|
2832
|
+
var LaserEyesContext18 = createContext18(initialWalletContext2222);
|
|
2833
|
+
var LaserEyesContext19 = createContext19(initialWalletContext222);
|
|
2834
|
+
var LaserEyesContext20 = createContext20(initialWalletContext22);
|
|
2835
|
+
var LaserEyesContext21 = createContext21(initialWalletContext2);
|
|
2220
2836
|
|
|
2221
2837
|
// example/lib/urls.ts
|
|
2222
2838
|
var MEMPOOL_SPACE_URL3 = "https://mempool.space";
|
|
@@ -2225,42 +2841,42 @@ var MEMPOOL_SPACE_SIGNET_URL2 = "https://mempool.space/signet";
|
|
|
2225
2841
|
var getMempoolSpaceUrl3 = (network) => network === TESTNET3 ? MEMPOOL_SPACE_TESTNET_URL3 : network === SIGNET3 ? MEMPOOL_SPACE_SIGNET_URL2 : MEMPOOL_SPACE_URL3;
|
|
2226
2842
|
|
|
2227
2843
|
// src/providers/LaserEyesProvider.tsx
|
|
2228
|
-
import { jsx as
|
|
2229
|
-
var
|
|
2844
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
2845
|
+
var LaserEyesContext22 = createContext22(initialWalletContext);
|
|
2230
2846
|
var useLaserEyes = () => {
|
|
2231
|
-
return
|
|
2847
|
+
return useContext22(LaserEyesContext22);
|
|
2232
2848
|
};
|
|
2233
2849
|
var LaserEyesProvider = ({
|
|
2234
2850
|
children,
|
|
2235
2851
|
config
|
|
2236
2852
|
}) => {
|
|
2237
|
-
const selfRef =
|
|
2853
|
+
const selfRef = useRef22({
|
|
2238
2854
|
accounts: []
|
|
2239
2855
|
});
|
|
2240
2856
|
const self = selfRef.current;
|
|
2241
|
-
const [library, setLibrary] =
|
|
2242
|
-
const [provider, setProvider] =
|
|
2243
|
-
const [isInitializing, setIsInitializing] =
|
|
2244
|
-
const [connected, setConnected] =
|
|
2245
|
-
const [isConnecting, setIsConnecting] =
|
|
2246
|
-
const [accounts, setAccounts] =
|
|
2247
|
-
const [publicKey, setPublicKey] =
|
|
2248
|
-
const [paymentPublicKey, setPaymentPublicKey] =
|
|
2249
|
-
const [address3, setAddress] =
|
|
2250
|
-
const [paymentAddress, setPaymentAddress] =
|
|
2251
|
-
const [balance, setBalance] =
|
|
2252
|
-
const [hasUnisat, setHasUnisat] =
|
|
2253
|
-
const [hasXverse, setHasXverse] =
|
|
2254
|
-
const [hasOyl, setHasOyl] =
|
|
2255
|
-
const [hasMagicEden, setHasMagicEden] =
|
|
2256
|
-
const [hasOkx, setHasOkx] =
|
|
2257
|
-
const [hasLeather, setHasLeather] =
|
|
2258
|
-
const [hasPhantom, setHasPhantom] =
|
|
2259
|
-
const [hasWizz, setHasWizz] =
|
|
2260
|
-
const [network, setNetwork] =
|
|
2857
|
+
const [library, setLibrary] = useState43(null);
|
|
2858
|
+
const [provider, setProvider] = useState43();
|
|
2859
|
+
const [isInitializing, setIsInitializing] = useState43(true);
|
|
2860
|
+
const [connected, setConnected] = useState43(false);
|
|
2861
|
+
const [isConnecting, setIsConnecting] = useState43(false);
|
|
2862
|
+
const [accounts, setAccounts] = useState43([]);
|
|
2863
|
+
const [publicKey, setPublicKey] = useState43("");
|
|
2864
|
+
const [paymentPublicKey, setPaymentPublicKey] = useState43("");
|
|
2865
|
+
const [address3, setAddress] = useState43("");
|
|
2866
|
+
const [paymentAddress, setPaymentAddress] = useState43("");
|
|
2867
|
+
const [balance, setBalance] = useState43();
|
|
2868
|
+
const [hasUnisat, setHasUnisat] = useState43(false);
|
|
2869
|
+
const [hasXverse, setHasXverse] = useState43(false);
|
|
2870
|
+
const [hasOyl, setHasOyl] = useState43(false);
|
|
2871
|
+
const [hasMagicEden, setHasMagicEden] = useState43(false);
|
|
2872
|
+
const [hasOkx, setHasOkx] = useState43(false);
|
|
2873
|
+
const [hasLeather, setHasLeather] = useState43(false);
|
|
2874
|
+
const [hasPhantom, setHasPhantom] = useState43(false);
|
|
2875
|
+
const [hasWizz, setHasWizz] = useState43(false);
|
|
2876
|
+
const [network, setNetwork] = useLocalStorage22("network", MAINNET, {
|
|
2261
2877
|
initializeWithValue: false
|
|
2262
2878
|
});
|
|
2263
|
-
|
|
2879
|
+
useEffect43(() => {
|
|
2264
2880
|
if (config) {
|
|
2265
2881
|
setNetwork(config.network);
|
|
2266
2882
|
getNetwork().then((foundNetwork) => {
|
|
@@ -2277,7 +2893,7 @@ var LaserEyesProvider = ({
|
|
|
2277
2893
|
setIsInitializing(false);
|
|
2278
2894
|
}
|
|
2279
2895
|
};
|
|
2280
|
-
|
|
2896
|
+
useEffect43(() => {
|
|
2281
2897
|
const observer = new MutationObserver(() => {
|
|
2282
2898
|
const unisatLib = window == null ? void 0 : window.unisat;
|
|
2283
2899
|
if (unisatLib) {
|
|
@@ -2290,7 +2906,7 @@ var LaserEyesProvider = ({
|
|
|
2290
2906
|
observer.disconnect();
|
|
2291
2907
|
};
|
|
2292
2908
|
}, []);
|
|
2293
|
-
|
|
2909
|
+
useEffect43(() => {
|
|
2294
2910
|
const observer = new MutationObserver(() => {
|
|
2295
2911
|
var _a;
|
|
2296
2912
|
const xverseLib = (_a = window == null ? void 0 : window.XverseProviders) == null ? void 0 : _a.BitcoinProvider;
|
|
@@ -2304,7 +2920,7 @@ var LaserEyesProvider = ({
|
|
|
2304
2920
|
observer.disconnect();
|
|
2305
2921
|
};
|
|
2306
2922
|
}, []);
|
|
2307
|
-
|
|
2923
|
+
useEffect43(() => {
|
|
2308
2924
|
const observer = new MutationObserver(() => {
|
|
2309
2925
|
const oylLib = window == null ? void 0 : window.oyl;
|
|
2310
2926
|
if (oylLib) {
|
|
@@ -2317,7 +2933,7 @@ var LaserEyesProvider = ({
|
|
|
2317
2933
|
observer.disconnect();
|
|
2318
2934
|
};
|
|
2319
2935
|
}, []);
|
|
2320
|
-
|
|
2936
|
+
useEffect43(() => {
|
|
2321
2937
|
const observer = new MutationObserver(() => {
|
|
2322
2938
|
const magicEdenLib = window == null ? void 0 : window.magicEden;
|
|
2323
2939
|
if (magicEdenLib) {
|
|
@@ -2330,7 +2946,7 @@ var LaserEyesProvider = ({
|
|
|
2330
2946
|
observer.disconnect();
|
|
2331
2947
|
};
|
|
2332
2948
|
}, []);
|
|
2333
|
-
|
|
2949
|
+
useEffect43(() => {
|
|
2334
2950
|
const observer = new MutationObserver(() => {
|
|
2335
2951
|
var _a, _b;
|
|
2336
2952
|
let foundOkx;
|
|
@@ -2349,7 +2965,7 @@ var LaserEyesProvider = ({
|
|
|
2349
2965
|
observer.disconnect();
|
|
2350
2966
|
};
|
|
2351
2967
|
}, [network]);
|
|
2352
|
-
|
|
2968
|
+
useEffect43(() => {
|
|
2353
2969
|
const observer = new MutationObserver(() => {
|
|
2354
2970
|
const leatherLib = window == null ? void 0 : window.LeatherProvider;
|
|
2355
2971
|
if (leatherLib) {
|
|
@@ -2362,7 +2978,7 @@ var LaserEyesProvider = ({
|
|
|
2362
2978
|
observer.disconnect();
|
|
2363
2979
|
};
|
|
2364
2980
|
}, []);
|
|
2365
|
-
|
|
2981
|
+
useEffect43(() => {
|
|
2366
2982
|
const observer = new MutationObserver(() => {
|
|
2367
2983
|
var _a;
|
|
2368
2984
|
const phantomLib = (_a = window == null ? void 0 : window.phantom) == null ? void 0 : _a.bitcoin;
|
|
@@ -2379,7 +2995,7 @@ var LaserEyesProvider = ({
|
|
|
2379
2995
|
observer.disconnect();
|
|
2380
2996
|
};
|
|
2381
2997
|
}, []);
|
|
2382
|
-
|
|
2998
|
+
useEffect43(() => {
|
|
2383
2999
|
const observer = new MutationObserver(() => {
|
|
2384
3000
|
const wizzLib = window == null ? void 0 : window.wizz;
|
|
2385
3001
|
if (wizzLib) {
|
|
@@ -2392,7 +3008,7 @@ var LaserEyesProvider = ({
|
|
|
2392
3008
|
observer.disconnect();
|
|
2393
3009
|
};
|
|
2394
3010
|
}, []);
|
|
2395
|
-
|
|
3011
|
+
useEffect43(() => {
|
|
2396
3012
|
checkInitializationComplete();
|
|
2397
3013
|
}, [
|
|
2398
3014
|
hasUnisat,
|
|
@@ -2404,10 +3020,10 @@ var LaserEyesProvider = ({
|
|
|
2404
3020
|
hasPhantom,
|
|
2405
3021
|
hasWizz
|
|
2406
3022
|
]);
|
|
2407
|
-
|
|
3023
|
+
useEffect43(() => {
|
|
2408
3024
|
setBalance(void 0);
|
|
2409
3025
|
}, [network]);
|
|
2410
|
-
|
|
3026
|
+
useEffect43(() => {
|
|
2411
3027
|
if (provider !== UNISAT && provider !== WIZZ) {
|
|
2412
3028
|
return;
|
|
2413
3029
|
}
|
|
@@ -2421,7 +3037,7 @@ var LaserEyesProvider = ({
|
|
|
2421
3037
|
library.removeListener("networkChanged", handleNetworkChanged);
|
|
2422
3038
|
};
|
|
2423
3039
|
}, [library]);
|
|
2424
|
-
|
|
3040
|
+
useEffect43(() => {
|
|
2425
3041
|
if (!isInitializing) {
|
|
2426
3042
|
const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(
|
|
2427
3043
|
LOCAL_STORAGE_DEFAULT_WALLET
|
|
@@ -2432,7 +3048,7 @@ var LaserEyesProvider = ({
|
|
|
2432
3048
|
}
|
|
2433
3049
|
}
|
|
2434
3050
|
}, [isInitializing]);
|
|
2435
|
-
const connectUnisat =
|
|
3051
|
+
const connectUnisat = useCallback43(() => __async(void 0, null, function* () {
|
|
2436
3052
|
try {
|
|
2437
3053
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, UNISAT);
|
|
2438
3054
|
const lib = window.unisat;
|
|
@@ -2456,7 +3072,7 @@ var LaserEyesProvider = ({
|
|
|
2456
3072
|
throw error;
|
|
2457
3073
|
}
|
|
2458
3074
|
}), [hasUnisat]);
|
|
2459
|
-
const connectXverse =
|
|
3075
|
+
const connectXverse = useCallback43(() => __async(void 0, null, function* () {
|
|
2460
3076
|
try {
|
|
2461
3077
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, XVERSE);
|
|
2462
3078
|
let xverseNetwork = getXverseNetwork((config == null ? void 0 : config.network) || MAINNET);
|
|
@@ -2490,7 +3106,7 @@ var LaserEyesProvider = ({
|
|
|
2490
3106
|
throw new Error(`Can't lasereyes to ${XVERSE} wallet`);
|
|
2491
3107
|
}
|
|
2492
3108
|
};
|
|
2493
|
-
yield
|
|
3109
|
+
yield getAddress22(getAddressOptions);
|
|
2494
3110
|
setConnected(true);
|
|
2495
3111
|
} catch (error) {
|
|
2496
3112
|
throw error;
|
|
@@ -2555,7 +3171,7 @@ var LaserEyesProvider = ({
|
|
|
2555
3171
|
}
|
|
2556
3172
|
};
|
|
2557
3173
|
console.log(JSON.stringify(getAddressOptions));
|
|
2558
|
-
yield
|
|
3174
|
+
yield getAddress22(getAddressOptions);
|
|
2559
3175
|
setConnected(true);
|
|
2560
3176
|
} catch (error) {
|
|
2561
3177
|
console.log("error", error);
|
|
@@ -2586,7 +3202,7 @@ var LaserEyesProvider = ({
|
|
|
2586
3202
|
throw error;
|
|
2587
3203
|
}
|
|
2588
3204
|
});
|
|
2589
|
-
const connectLeather =
|
|
3205
|
+
const connectLeather = useCallback43(() => __async(void 0, null, function* () {
|
|
2590
3206
|
try {
|
|
2591
3207
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, LEATHER);
|
|
2592
3208
|
const lib = window.LeatherProvider;
|
|
@@ -2979,7 +3595,7 @@ var LaserEyesProvider = ({
|
|
|
2979
3595
|
throw new Error("Transaction failed");
|
|
2980
3596
|
return txId;
|
|
2981
3597
|
} else if (provider === XVERSE) {
|
|
2982
|
-
const response = yield
|
|
3598
|
+
const response = yield request22("sendTransfer", {
|
|
2983
3599
|
recipients: [
|
|
2984
3600
|
{
|
|
2985
3601
|
address: to,
|
|
@@ -2990,7 +3606,7 @@ var LaserEyesProvider = ({
|
|
|
2990
3606
|
if (response.status === "success") {
|
|
2991
3607
|
return response.result.txid;
|
|
2992
3608
|
} else {
|
|
2993
|
-
if (response.error.code ===
|
|
3609
|
+
if (response.error.code === RpcErrorCode22.USER_REJECTION) {
|
|
2994
3610
|
throw new Error("User rejected the request");
|
|
2995
3611
|
} else {
|
|
2996
3612
|
throw new Error("Error sending BTC: " + response.error.message);
|
|
@@ -3043,7 +3659,7 @@ var LaserEyesProvider = ({
|
|
|
3043
3659
|
if ((_a = response == null ? void 0 : response.result) == null ? void 0 : _a.txid) {
|
|
3044
3660
|
return response.result.txid;
|
|
3045
3661
|
} else {
|
|
3046
|
-
if (response.error.code ===
|
|
3662
|
+
if (response.error.code === RpcErrorCode22.USER_REJECTION) {
|
|
3047
3663
|
throw new Error("User rejected the request");
|
|
3048
3664
|
} else {
|
|
3049
3665
|
throw new Error("Error sending BTC: " + response.error.message);
|
|
@@ -3069,14 +3685,14 @@ var LaserEyesProvider = ({
|
|
|
3069
3685
|
if (provider === UNISAT) {
|
|
3070
3686
|
return yield library == null ? void 0 : library.signMessage(message);
|
|
3071
3687
|
} else if (provider === XVERSE) {
|
|
3072
|
-
const response = yield
|
|
3688
|
+
const response = yield request22("signMessage", {
|
|
3073
3689
|
address: address3,
|
|
3074
3690
|
message
|
|
3075
3691
|
});
|
|
3076
3692
|
if (response.status === "success") {
|
|
3077
3693
|
return response.result.signature;
|
|
3078
3694
|
} else {
|
|
3079
|
-
if (response.error.code ===
|
|
3695
|
+
if (response.error.code === RpcErrorCode22.USER_REJECTION) {
|
|
3080
3696
|
throw new Error("User rejected the request");
|
|
3081
3697
|
} else {
|
|
3082
3698
|
throw new Error("Error signing message: " + response.error.message);
|
|
@@ -3084,13 +3700,13 @@ var LaserEyesProvider = ({
|
|
|
3084
3700
|
}
|
|
3085
3701
|
} else if (provider === MAGIC_EDEN) {
|
|
3086
3702
|
let signedMessage;
|
|
3087
|
-
yield
|
|
3703
|
+
yield signMessageSatsConnect22({
|
|
3088
3704
|
getProvider: () => __async(void 0, null, function* () {
|
|
3089
3705
|
return window.magicEden.bitcoin;
|
|
3090
3706
|
}),
|
|
3091
3707
|
payload: {
|
|
3092
3708
|
network: {
|
|
3093
|
-
type:
|
|
3709
|
+
type: BitcoinNetworkType22.Mainnet
|
|
3094
3710
|
},
|
|
3095
3711
|
address: paymentAddress,
|
|
3096
3712
|
message
|
|
@@ -3134,11 +3750,11 @@ var LaserEyesProvider = ({
|
|
|
3134
3750
|
if (!psbt)
|
|
3135
3751
|
throw new Error("No PSBT provided");
|
|
3136
3752
|
if (isHex(psbt)) {
|
|
3137
|
-
psbtBase64 =
|
|
3753
|
+
psbtBase64 = bitcoin25.Psbt.fromHex(psbt).toBase64();
|
|
3138
3754
|
psbtHex = psbt;
|
|
3139
3755
|
} else if (isBase64(psbt)) {
|
|
3140
3756
|
psbtBase64 = psbt;
|
|
3141
|
-
psbtHex =
|
|
3757
|
+
psbtHex = bitcoin25.Psbt.fromBase64(psbt).toHex();
|
|
3142
3758
|
} else {
|
|
3143
3759
|
throw new Error("Invalid PSBT format");
|
|
3144
3760
|
}
|
|
@@ -3146,7 +3762,7 @@ var LaserEyesProvider = ({
|
|
|
3146
3762
|
const signedPsbt = yield library == null ? void 0 : library.signPsbt(psbtHex, {
|
|
3147
3763
|
autoFinalized: finalize
|
|
3148
3764
|
});
|
|
3149
|
-
const psbtSignedPsbt =
|
|
3765
|
+
const psbtSignedPsbt = bitcoin25.Psbt.fromHex(signedPsbt);
|
|
3150
3766
|
if (finalize && broadcast) {
|
|
3151
3767
|
const txId = yield pushPsbt(signedPsbt);
|
|
3152
3768
|
return {
|
|
@@ -3161,7 +3777,7 @@ var LaserEyesProvider = ({
|
|
|
3161
3777
|
txId: void 0
|
|
3162
3778
|
};
|
|
3163
3779
|
} else if (provider === XVERSE) {
|
|
3164
|
-
const toSignPsbt =
|
|
3780
|
+
const toSignPsbt = bitcoin25.Psbt.fromBase64(String(psbtBase64), {
|
|
3165
3781
|
network: getBitcoinNetwork(network)
|
|
3166
3782
|
});
|
|
3167
3783
|
const inputs = toSignPsbt.data.inputs;
|
|
@@ -3179,7 +3795,7 @@ var LaserEyesProvider = ({
|
|
|
3179
3795
|
for (var iter = __forAwait(inputs), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
|
|
3180
3796
|
let input = temp.value;
|
|
3181
3797
|
const { script } = input.witnessUtxo;
|
|
3182
|
-
const addressFromScript =
|
|
3798
|
+
const addressFromScript = fromOutputScript22(
|
|
3183
3799
|
script,
|
|
3184
3800
|
getBitcoinNetwork(network)
|
|
3185
3801
|
);
|
|
@@ -3222,7 +3838,7 @@ var LaserEyesProvider = ({
|
|
|
3222
3838
|
if (response.txId) {
|
|
3223
3839
|
txId = response.txId;
|
|
3224
3840
|
} else if (response.psbtBase64) {
|
|
3225
|
-
const signedPsbt =
|
|
3841
|
+
const signedPsbt = bitcoin25.Psbt.fromBase64(
|
|
3226
3842
|
String(response.psbtBase64),
|
|
3227
3843
|
{
|
|
3228
3844
|
network: getBitcoinNetwork(network)
|
|
@@ -3234,7 +3850,7 @@ var LaserEyesProvider = ({
|
|
|
3234
3850
|
},
|
|
3235
3851
|
onCancel: () => console.log("Canceled")
|
|
3236
3852
|
};
|
|
3237
|
-
yield
|
|
3853
|
+
yield signTransaction22(signPsbtOptions);
|
|
3238
3854
|
return {
|
|
3239
3855
|
signedPsbtHex,
|
|
3240
3856
|
signedPsbtBase64,
|
|
@@ -3243,7 +3859,7 @@ var LaserEyesProvider = ({
|
|
|
3243
3859
|
} else if (provider === OYL) {
|
|
3244
3860
|
const signedPsbt = yield library == null ? void 0 : library.signPsbt(psbtHex, true, true);
|
|
3245
3861
|
console.log({ signedPsbt });
|
|
3246
|
-
const psbtSignedPsbt =
|
|
3862
|
+
const psbtSignedPsbt = bitcoin25.Psbt.fromHex(signedPsbt);
|
|
3247
3863
|
if (broadcast) {
|
|
3248
3864
|
const txId = yield pushPsbt(psbtSignedPsbt.toHex());
|
|
3249
3865
|
return {
|
|
@@ -3259,7 +3875,7 @@ var LaserEyesProvider = ({
|
|
|
3259
3875
|
};
|
|
3260
3876
|
}
|
|
3261
3877
|
} else if (provider === MAGIC_EDEN) {
|
|
3262
|
-
const toSignPsbt =
|
|
3878
|
+
const toSignPsbt = bitcoin25.Psbt.fromBase64(String(psbtBase64), {
|
|
3263
3879
|
network: getBitcoinNetwork(network)
|
|
3264
3880
|
});
|
|
3265
3881
|
const inputs = toSignPsbt.data.inputs;
|
|
@@ -3277,7 +3893,7 @@ var LaserEyesProvider = ({
|
|
|
3277
3893
|
for (var iter2 = __forAwait(inputs), more2, temp2, error2; more2 = !(temp2 = yield iter2.next()).done; more2 = false) {
|
|
3278
3894
|
let input = temp2.value;
|
|
3279
3895
|
const { script } = input.witnessUtxo;
|
|
3280
|
-
const addressFromScript =
|
|
3896
|
+
const addressFromScript = fromOutputScript22(
|
|
3281
3897
|
script,
|
|
3282
3898
|
getBitcoinNetwork(network)
|
|
3283
3899
|
);
|
|
@@ -3321,7 +3937,7 @@ var LaserEyesProvider = ({
|
|
|
3321
3937
|
},
|
|
3322
3938
|
onFinish: (response) => {
|
|
3323
3939
|
if (response.psbtBase64) {
|
|
3324
|
-
const signedPsbt =
|
|
3940
|
+
const signedPsbt = bitcoin25.Psbt.fromBase64(
|
|
3325
3941
|
String(response.psbtBase64),
|
|
3326
3942
|
{
|
|
3327
3943
|
network: getBitcoinNetwork(network)
|
|
@@ -3340,9 +3956,9 @@ var LaserEyesProvider = ({
|
|
|
3340
3956
|
throw error3;
|
|
3341
3957
|
}
|
|
3342
3958
|
};
|
|
3343
|
-
yield
|
|
3959
|
+
yield signTransaction22(signPsbtOptions);
|
|
3344
3960
|
if (broadcast) {
|
|
3345
|
-
const signed =
|
|
3961
|
+
const signed = bitcoin25.Psbt.fromBase64(String(signedPsbtBase64));
|
|
3346
3962
|
const finalized = signed.finalizeAllInputs();
|
|
3347
3963
|
const extracted = finalized.extractTransaction();
|
|
3348
3964
|
const txId2 = yield pushPsbt(extracted.toHex());
|
|
@@ -3362,7 +3978,7 @@ var LaserEyesProvider = ({
|
|
|
3362
3978
|
const signedPsbt = yield library == null ? void 0 : library.signPsbt(psbtHex, {
|
|
3363
3979
|
autoFinalized: finalize
|
|
3364
3980
|
});
|
|
3365
|
-
const psbtSignedPsbt =
|
|
3981
|
+
const psbtSignedPsbt = bitcoin25.Psbt.fromHex(signedPsbt);
|
|
3366
3982
|
if (finalize && broadcast) {
|
|
3367
3983
|
const txId = yield pushPsbt(signedPsbt);
|
|
3368
3984
|
return {
|
|
@@ -3388,7 +4004,7 @@ var LaserEyesProvider = ({
|
|
|
3388
4004
|
);
|
|
3389
4005
|
const leatherHexResult = response.result;
|
|
3390
4006
|
const signedTx = leatherHexResult.hex;
|
|
3391
|
-
const signed =
|
|
4007
|
+
const signed = bitcoin25.Psbt.fromHex(String(signedTx));
|
|
3392
4008
|
if (finalize && broadcast) {
|
|
3393
4009
|
const finalized = signed.finalizeAllInputs();
|
|
3394
4010
|
const txId = yield pushPsbt(finalized.toHex());
|
|
@@ -3416,7 +4032,7 @@ var LaserEyesProvider = ({
|
|
|
3416
4032
|
autoFinalized: finalize,
|
|
3417
4033
|
broadcast: false
|
|
3418
4034
|
});
|
|
3419
|
-
const psbtSignedPsbt =
|
|
4035
|
+
const psbtSignedPsbt = bitcoin25.Psbt.fromHex(signedPsbt);
|
|
3420
4036
|
if (finalize && broadcast) {
|
|
3421
4037
|
const txId = yield pushPsbt(signedPsbt);
|
|
3422
4038
|
return {
|
|
@@ -3448,11 +4064,11 @@ var LaserEyesProvider = ({
|
|
|
3448
4064
|
} else if (provider === OKX) {
|
|
3449
4065
|
return yield library == null ? void 0 : library.pushPsbt(psbt);
|
|
3450
4066
|
} else if (provider === MAGIC_EDEN) {
|
|
3451
|
-
return yield
|
|
4067
|
+
return yield axios45.post(`${getMempoolSpaceUrl3(network)}/api/tx`, psbt).then((res) => res.data);
|
|
3452
4068
|
} else if (provider === LEATHER) {
|
|
3453
|
-
const decoded =
|
|
4069
|
+
const decoded = bitcoin25.Psbt.fromHex(psbt);
|
|
3454
4070
|
const extracted = decoded.extractTransaction();
|
|
3455
|
-
return yield
|
|
4071
|
+
return yield axios45.post(`${getMempoolSpaceUrl3(network)}/api/tx`, extracted.toHex()).then((res) => res.data);
|
|
3456
4072
|
} else if (provider === WIZZ) {
|
|
3457
4073
|
return yield library == null ? void 0 : library.pushPsbt(psbt);
|
|
3458
4074
|
} else {
|
|
@@ -3462,8 +4078,8 @@ var LaserEyesProvider = ({
|
|
|
3462
4078
|
throw error;
|
|
3463
4079
|
}
|
|
3464
4080
|
});
|
|
3465
|
-
return /* @__PURE__ */
|
|
3466
|
-
|
|
4081
|
+
return /* @__PURE__ */ jsx58(
|
|
4082
|
+
LaserEyesContext22.Provider,
|
|
3467
4083
|
{
|
|
3468
4084
|
value: {
|
|
3469
4085
|
library,
|
|
@@ -3506,36 +4122,36 @@ var LaserEyesProvider = ({
|
|
|
3506
4122
|
};
|
|
3507
4123
|
|
|
3508
4124
|
// src/hooks/useInscriber.ts
|
|
3509
|
-
import { useCallback as
|
|
4125
|
+
import { useCallback as useCallback44, useEffect as useEffect44, useState as useState44 } from "react";
|
|
3510
4126
|
|
|
3511
4127
|
// src/consts/inscribe.ts
|
|
3512
4128
|
var MIME_TYPE_TEXT = "text/plain;charset=utf-8";
|
|
3513
4129
|
|
|
3514
4130
|
// src/hooks/useInscriber.ts
|
|
3515
|
-
import
|
|
4131
|
+
import axios46 from "axios";
|
|
3516
4132
|
var DESCRIBE_API_URL = "http://localhost:3000/api";
|
|
3517
4133
|
var useInscriber = ({
|
|
3518
4134
|
inscribeApiUrl = DESCRIBE_API_URL
|
|
3519
4135
|
}) => {
|
|
3520
4136
|
const { address: address3, paymentAddress, paymentPublicKey, publicKey, signPsbt } = useLaserEyes();
|
|
3521
|
-
const [content, setContent] =
|
|
3522
|
-
const [mimeType, setMimeType] =
|
|
3523
|
-
const [commitPsbtHex, setCommitPsbtHex] =
|
|
3524
|
-
const [commitPsbtBase64, setCommitPsbtBase64] =
|
|
3525
|
-
const [commitTxId, setCommitTxId] =
|
|
3526
|
-
const [feeRate, setFeeRate] =
|
|
3527
|
-
const [totalFees, setTotalFees] =
|
|
3528
|
-
const [inscriberAddress, setInscriberAddress] =
|
|
3529
|
-
const [inscriptionTxId, setInscriptionTxId] =
|
|
3530
|
-
const [previewUrl, setPreviewUrl] =
|
|
3531
|
-
const [isFetchingCommitPsbt, setIsFetchingCommitPsbt] =
|
|
3532
|
-
const [isInscribing, setIsInscribing] =
|
|
3533
|
-
|
|
4137
|
+
const [content, setContent] = useState44("");
|
|
4138
|
+
const [mimeType, setMimeType] = useState44(MIME_TYPE_TEXT);
|
|
4139
|
+
const [commitPsbtHex, setCommitPsbtHex] = useState44("");
|
|
4140
|
+
const [commitPsbtBase64, setCommitPsbtBase64] = useState44("");
|
|
4141
|
+
const [commitTxId, setCommitTxId] = useState44("");
|
|
4142
|
+
const [feeRate, setFeeRate] = useState44(10);
|
|
4143
|
+
const [totalFees, setTotalFees] = useState44(0);
|
|
4144
|
+
const [inscriberAddress, setInscriberAddress] = useState44("");
|
|
4145
|
+
const [inscriptionTxId, setInscriptionTxId] = useState44("");
|
|
4146
|
+
const [previewUrl, setPreviewUrl] = useState44("");
|
|
4147
|
+
const [isFetchingCommitPsbt, setIsFetchingCommitPsbt] = useState44(false);
|
|
4148
|
+
const [isInscribing, setIsInscribing] = useState44(false);
|
|
4149
|
+
useEffect44(() => {
|
|
3534
4150
|
setCommitPsbtHex("");
|
|
3535
4151
|
setCommitPsbtBase64("");
|
|
3536
4152
|
setCommitTxId("");
|
|
3537
4153
|
}, [content, address3, mimeType, feeRate]);
|
|
3538
|
-
const getCommitPsbt =
|
|
4154
|
+
const getCommitPsbt = useCallback44(() => __async(void 0, null, function* () {
|
|
3539
4155
|
try {
|
|
3540
4156
|
if (!content)
|
|
3541
4157
|
throw new Error("missing content");
|
|
@@ -3548,7 +4164,7 @@ var useInscriber = ({
|
|
|
3548
4164
|
if (!mimeType)
|
|
3549
4165
|
throw new Error("missing mimeType");
|
|
3550
4166
|
setIsFetchingCommitPsbt(true);
|
|
3551
|
-
return yield
|
|
4167
|
+
return yield axios46.post(`${inscribeApiUrl}/create-inscription`, {
|
|
3552
4168
|
content,
|
|
3553
4169
|
paymentAddress,
|
|
3554
4170
|
paymentPublicKey,
|
|
@@ -3582,7 +4198,7 @@ var useInscriber = ({
|
|
|
3582
4198
|
throw e;
|
|
3583
4199
|
}
|
|
3584
4200
|
});
|
|
3585
|
-
const inscribe =
|
|
4201
|
+
const inscribe = useCallback44(
|
|
3586
4202
|
(_0) => __async(void 0, [_0], function* ({
|
|
3587
4203
|
content: providedContent,
|
|
3588
4204
|
mimeType: providedMimeType,
|
|
@@ -3611,7 +4227,7 @@ var useInscriber = ({
|
|
|
3611
4227
|
yield delay(1e4);
|
|
3612
4228
|
if (!inscribeCommitTxId)
|
|
3613
4229
|
throw new Error("missing commitTxId");
|
|
3614
|
-
return yield
|
|
4230
|
+
return yield axios46.post(`${inscribeApiUrl}/inscribe`, {
|
|
3615
4231
|
content,
|
|
3616
4232
|
mimeType,
|
|
3617
4233
|
ordinalAddress: address3,
|
|
@@ -3664,22 +4280,627 @@ var useInscriber = ({
|
|
|
3664
4280
|
reset
|
|
3665
4281
|
};
|
|
3666
4282
|
};
|
|
4283
|
+
|
|
4284
|
+
// src/icons/oyl.tsx
|
|
4285
|
+
import { jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4286
|
+
var OylLogo = (_a) => {
|
|
4287
|
+
var _b = _a, {
|
|
4288
|
+
size = 42,
|
|
4289
|
+
variant = "first",
|
|
4290
|
+
className
|
|
4291
|
+
} = _b, props = __objRest(_b, [
|
|
4292
|
+
"size",
|
|
4293
|
+
"variant",
|
|
4294
|
+
"className"
|
|
4295
|
+
]);
|
|
4296
|
+
if (variant === "first") {
|
|
4297
|
+
return /* @__PURE__ */ jsxs33(
|
|
4298
|
+
"svg",
|
|
4299
|
+
__spreadProps(__spreadValues({
|
|
4300
|
+
className,
|
|
4301
|
+
width: size,
|
|
4302
|
+
height: size,
|
|
4303
|
+
viewBox: "0 0 42 42",
|
|
4304
|
+
fill: "none",
|
|
4305
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4306
|
+
}, props), {
|
|
4307
|
+
children: [
|
|
4308
|
+
/* @__PURE__ */ jsx59(
|
|
4309
|
+
"rect",
|
|
4310
|
+
{
|
|
4311
|
+
width: "42",
|
|
4312
|
+
height: "42",
|
|
4313
|
+
rx: "10",
|
|
4314
|
+
fill: "#090A0C",
|
|
4315
|
+
style: { fill: "#090A0C", fillOpacity: 1 }
|
|
4316
|
+
}
|
|
4317
|
+
),
|
|
4318
|
+
/* @__PURE__ */ jsx59(
|
|
4319
|
+
"path",
|
|
4320
|
+
{
|
|
4321
|
+
d: "M21 14C29.222 14 38 15.9676 38 20.9054C38 25.8622 29.222 28 21 28C12.778 28 4 26.0324 4 21.0946C4 16.1378 12.778 14 21 14ZM21.0397 25.3135C24.6939 25.3135 30.1752 24.3297 30.1752 21C30.1752 17.6703 24.6939 16.6865 21.0397 16.6865H20.9603C17.3061 16.6865 11.8248 17.6703 11.8248 21C11.8248 24.3297 17.3061 25.3135 20.9603 25.3135H21.0397Z",
|
|
4322
|
+
fill: "white",
|
|
4323
|
+
style: { fill: "white", fillOpacity: 1 }
|
|
4324
|
+
}
|
|
4325
|
+
)
|
|
4326
|
+
]
|
|
4327
|
+
})
|
|
4328
|
+
);
|
|
4329
|
+
}
|
|
4330
|
+
return /* @__PURE__ */ jsxs33(
|
|
4331
|
+
"svg",
|
|
4332
|
+
__spreadProps(__spreadValues({
|
|
4333
|
+
className,
|
|
4334
|
+
width: size,
|
|
4335
|
+
height: size,
|
|
4336
|
+
viewBox: "0 0 42 42",
|
|
4337
|
+
fill: "none",
|
|
4338
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4339
|
+
}, props), {
|
|
4340
|
+
children: [
|
|
4341
|
+
/* @__PURE__ */ jsx59(
|
|
4342
|
+
"rect",
|
|
4343
|
+
{
|
|
4344
|
+
width: "42",
|
|
4345
|
+
height: "42",
|
|
4346
|
+
rx: "10",
|
|
4347
|
+
fill: "white",
|
|
4348
|
+
style: { fill: "white", fillOpacity: 1 }
|
|
4349
|
+
}
|
|
4350
|
+
),
|
|
4351
|
+
/* @__PURE__ */ jsx59(
|
|
4352
|
+
"path",
|
|
4353
|
+
{
|
|
4354
|
+
d: "M21 14C29.222 14 38 15.9676 38 20.9054C38 25.8622 29.222 28 21 28C12.778 28 4 26.0324 4 21.0946C4 16.1378 12.778 14 21 14ZM21.0397 25.3135C24.6939 25.3135 30.1752 24.3297 30.1752 21C30.1752 17.6703 24.6939 16.6865 21.0397 16.6865H20.9603C17.3061 16.6865 11.8248 17.6703 11.8248 21C11.8248 24.3297 17.3061 25.3135 20.9603 25.3135H21.0397Z",
|
|
4355
|
+
fill: "#090A0C",
|
|
4356
|
+
style: { fill: "#090A0C", fillOpacity: 1 }
|
|
4357
|
+
}
|
|
4358
|
+
)
|
|
4359
|
+
]
|
|
4360
|
+
})
|
|
4361
|
+
);
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
// src/icons/leather.tsx
|
|
4365
|
+
import { jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4366
|
+
var LeatherLogo = (_a) => {
|
|
4367
|
+
var _b = _a, {
|
|
4368
|
+
size = 42,
|
|
4369
|
+
variant = "first",
|
|
4370
|
+
className
|
|
4371
|
+
} = _b, props = __objRest(_b, [
|
|
4372
|
+
"size",
|
|
4373
|
+
"variant",
|
|
4374
|
+
"className"
|
|
4375
|
+
]);
|
|
4376
|
+
if (variant === "first") {
|
|
4377
|
+
return /* @__PURE__ */ jsxs34(
|
|
4378
|
+
"svg",
|
|
4379
|
+
__spreadProps(__spreadValues({
|
|
4380
|
+
className,
|
|
4381
|
+
width: size,
|
|
4382
|
+
height: size,
|
|
4383
|
+
viewBox: "0 0 128 128",
|
|
4384
|
+
fill: "none",
|
|
4385
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4386
|
+
}, props), {
|
|
4387
|
+
children: [
|
|
4388
|
+
/* @__PURE__ */ jsx60("rect", { width: "128", height: "128", rx: "26.8387", fill: "#12100F" }),
|
|
4389
|
+
/* @__PURE__ */ jsx60(
|
|
4390
|
+
"path",
|
|
4391
|
+
{
|
|
4392
|
+
d: "M74.9171 52.7114C82.4766 51.5408 93.4087 43.5804 93.4087 37.3761C93.4087 35.5031 91.8968 34.2154 89.6871 34.2154C85.5004 34.2154 78.4061 40.5368 74.9171 52.7114ZM39.911 83.4991C30.0256 83.4991 29.2115 93.3324 39.0969 93.3324C43.5163 93.3324 48.8661 91.5764 51.6573 88.4157C47.5868 84.9038 44.2141 83.4991 39.911 83.4991ZM102.829 79.2848C103.41 95.7907 95.0369 105.039 80.8484 105.039C72.4748 105.039 68.2881 101.878 59.333 96.0249C54.681 101.176 45.8423 105.039 38.5154 105.039C13.2785 105.039 14.3252 72.8463 40.0273 72.8463C45.3771 72.8463 49.9128 74.2511 55.7277 77.88L59.5656 64.4177C43.7489 60.0864 35.8405 47.9118 43.6326 30.4693H56.1929C49.215 42.0586 53.9832 51.6578 62.822 52.7114C67.5903 35.7372 77.8246 22.509 91.4316 22.509C99.1074 22.509 105.155 27.5428 105.155 36.6737C105.155 51.3066 86.0819 63.2471 71.6607 64.4177L65.7295 85.3721C72.4748 93.2153 91.199 100.824 91.199 79.2848H102.829Z",
|
|
4393
|
+
fill: "#F5F1ED"
|
|
4394
|
+
}
|
|
4395
|
+
)
|
|
4396
|
+
]
|
|
4397
|
+
})
|
|
4398
|
+
);
|
|
4399
|
+
}
|
|
4400
|
+
return /* @__PURE__ */ jsxs34(
|
|
4401
|
+
"svg",
|
|
4402
|
+
__spreadProps(__spreadValues({
|
|
4403
|
+
className,
|
|
4404
|
+
width: size,
|
|
4405
|
+
height: size,
|
|
4406
|
+
viewBox: "0 0 128 128",
|
|
4407
|
+
fill: "none",
|
|
4408
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4409
|
+
}, props), {
|
|
4410
|
+
children: [
|
|
4411
|
+
/* @__PURE__ */ jsx60("rect", { width: "128", height: "128", rx: "26.8387", fill: "#F5F1ED" }),
|
|
4412
|
+
/* @__PURE__ */ jsx60(
|
|
4413
|
+
"path",
|
|
4414
|
+
{
|
|
4415
|
+
d: "M74.9171 52.7115C82.4766 51.5409 93.4087 43.5806 93.4087 37.3762C93.4087 35.5032 91.8968 34.2155 89.6871 34.2155C85.5004 34.2155 78.4061 40.5369 74.9171 52.7115ZM39.911 83.4992C30.0256 83.4992 29.2115 93.3325 39.0969 93.3325C43.5163 93.3325 48.8661 91.5766 51.6573 88.4159C47.5868 84.904 44.2141 83.4992 39.911 83.4992ZM102.829 79.2849C103.41 95.7908 95.0369 105.039 80.8484 105.039C72.4748 105.039 68.2881 101.878 59.333 96.025C54.681 101.176 45.8423 105.039 38.5154 105.039C13.2785 105.039 14.3252 72.8464 40.0273 72.8464C45.3771 72.8464 49.9128 74.2512 55.7277 77.8801L59.5656 64.4179C43.7489 60.0865 35.8405 47.9119 43.6326 30.4695H56.1929C49.215 42.0587 53.9832 51.6579 62.822 52.7115C67.5903 35.7373 77.8246 22.5092 91.4316 22.5092C99.1074 22.5092 105.155 27.5429 105.155 36.6738C105.155 51.3068 86.0819 63.2472 71.6607 64.4179L65.7295 85.3722C72.4748 93.2155 91.199 100.825 91.199 79.2849H102.829Z",
|
|
4416
|
+
fill: "#12100F"
|
|
4417
|
+
}
|
|
4418
|
+
)
|
|
4419
|
+
]
|
|
4420
|
+
})
|
|
4421
|
+
);
|
|
4422
|
+
};
|
|
4423
|
+
|
|
4424
|
+
// src/icons/phantom.tsx
|
|
4425
|
+
import { jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4426
|
+
var PhantomLogo = (_a) => {
|
|
4427
|
+
var _b = _a, {
|
|
4428
|
+
size = 42,
|
|
4429
|
+
variant = "first",
|
|
4430
|
+
className
|
|
4431
|
+
} = _b, props = __objRest(_b, [
|
|
4432
|
+
"size",
|
|
4433
|
+
"variant",
|
|
4434
|
+
"className"
|
|
4435
|
+
]);
|
|
4436
|
+
if (variant === "first") {
|
|
4437
|
+
return /* @__PURE__ */ jsxs35(
|
|
4438
|
+
"svg",
|
|
4439
|
+
__spreadProps(__spreadValues({
|
|
4440
|
+
className,
|
|
4441
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4442
|
+
width: size,
|
|
4443
|
+
height: size,
|
|
4444
|
+
viewBox: "0 0 42 42",
|
|
4445
|
+
fill: "none"
|
|
4446
|
+
}, props), {
|
|
4447
|
+
children: [
|
|
4448
|
+
/* @__PURE__ */ jsxs35("g", { clipPath: "url(#a)", children: [
|
|
4449
|
+
/* @__PURE__ */ jsx61(
|
|
4450
|
+
"path",
|
|
4451
|
+
{
|
|
4452
|
+
fill: "#AB9FF2",
|
|
4453
|
+
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4454
|
+
}
|
|
4455
|
+
),
|
|
4456
|
+
/* @__PURE__ */ jsx61(
|
|
4457
|
+
"path",
|
|
4458
|
+
{
|
|
4459
|
+
fill: "#FFFDF8",
|
|
4460
|
+
fillRule: "evenodd",
|
|
4461
|
+
d: "M17.686 27.567c-1.676 2.569-4.484 5.819-8.22 5.819-1.767 0-3.466-.728-3.466-3.887C6 21.454 16.984 9 27.176 9c5.798 0 8.108 4.023 8.108 8.59 0 5.864-3.805 12.568-7.587 12.568-1.2 0-1.79-.659-1.79-1.704 0-.273.046-.568.137-.887-1.291 2.205-3.783 4.25-6.116 4.25-1.698 0-2.559-1.068-2.559-2.568 0-.545.114-1.113.317-1.681Zm8.78-10.135c0 1.331-.786 1.997-1.664 1.997-.892 0-1.664-.666-1.664-1.997s.772-1.996 1.664-1.996c.878 0 1.663.665 1.663 1.996Zm4.99 0c0 1.331-.785 1.997-1.663 1.997-.892 0-1.664-.666-1.664-1.997 0-1.33.772-1.996 1.664-1.996.878 0 1.664.665 1.664 1.996Z",
|
|
4462
|
+
clipRule: "evenodd"
|
|
4463
|
+
}
|
|
4464
|
+
)
|
|
4465
|
+
] }),
|
|
4466
|
+
/* @__PURE__ */ jsx61("defs", { children: /* @__PURE__ */ jsx61("clipPath", { id: "a", children: /* @__PURE__ */ jsx61("path", { fill: "#fff", d: "M0 0h42v42H0z" }) }) })
|
|
4467
|
+
]
|
|
4468
|
+
})
|
|
4469
|
+
);
|
|
4470
|
+
}
|
|
4471
|
+
return /* @__PURE__ */ jsxs35(
|
|
4472
|
+
"svg",
|
|
4473
|
+
__spreadProps(__spreadValues({
|
|
4474
|
+
className,
|
|
4475
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4476
|
+
width: size,
|
|
4477
|
+
height: size,
|
|
4478
|
+
viewBox: "0 0 42 42",
|
|
4479
|
+
fill: "none"
|
|
4480
|
+
}, props), {
|
|
4481
|
+
children: [
|
|
4482
|
+
/* @__PURE__ */ jsxs35("g", { clipPath: "url(#a)", children: [
|
|
4483
|
+
/* @__PURE__ */ jsx61(
|
|
4484
|
+
"path",
|
|
4485
|
+
{
|
|
4486
|
+
fill: "#FFFDF8",
|
|
4487
|
+
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4488
|
+
}
|
|
4489
|
+
),
|
|
4490
|
+
/* @__PURE__ */ jsx61(
|
|
4491
|
+
"path",
|
|
4492
|
+
{
|
|
4493
|
+
fill: "#AB9FF2",
|
|
4494
|
+
fillRule: "evenodd",
|
|
4495
|
+
d: "M17.686 27.567c-1.676 2.569-4.484 5.819-8.22 5.819-1.767 0-3.466-.728-3.466-3.887C6 21.454 16.984 9 27.176 9c5.798 0 8.108 4.023 8.108 8.59 0 5.864-3.805 12.568-7.587 12.568-1.2 0-1.79-.659-1.79-1.704 0-.273.046-.568.137-.887-1.291 2.205-3.783 4.25-6.116 4.25-1.698 0-2.559-1.068-2.559-2.568 0-.545.114-1.113.317-1.681Zm8.78-10.135c0 1.331-.786 1.997-1.664 1.997-.892 0-1.664-.666-1.664-1.997s.772-1.996 1.664-1.996c.878 0 1.663.665 1.663 1.996Zm4.99 0c0 1.331-.785 1.997-1.663 1.997-.892 0-1.664-.666-1.664-1.997 0-1.33.772-1.996 1.664-1.996.878 0 1.664.665 1.664 1.996Z",
|
|
4496
|
+
clipRule: "evenodd"
|
|
4497
|
+
}
|
|
4498
|
+
)
|
|
4499
|
+
] }),
|
|
4500
|
+
/* @__PURE__ */ jsx61("defs", { children: /* @__PURE__ */ jsx61("clipPath", { id: "a", children: /* @__PURE__ */ jsx61("path", { fill: "#fff", d: "M0 0h42v42H0z" }) }) })
|
|
4501
|
+
]
|
|
4502
|
+
})
|
|
4503
|
+
);
|
|
4504
|
+
};
|
|
4505
|
+
|
|
4506
|
+
// src/icons/xverse.tsx
|
|
4507
|
+
import { jsx as jsx62, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4508
|
+
var XverseLogo = (_a) => {
|
|
4509
|
+
var _b = _a, {
|
|
4510
|
+
size = 42,
|
|
4511
|
+
variant = "first",
|
|
4512
|
+
className
|
|
4513
|
+
} = _b, props = __objRest(_b, [
|
|
4514
|
+
"size",
|
|
4515
|
+
"variant",
|
|
4516
|
+
"className"
|
|
4517
|
+
]);
|
|
4518
|
+
return /* @__PURE__ */ jsxs36(
|
|
4519
|
+
"svg",
|
|
4520
|
+
__spreadProps(__spreadValues({
|
|
4521
|
+
className,
|
|
4522
|
+
width: size,
|
|
4523
|
+
height: size,
|
|
4524
|
+
viewBox: "0 0 42 42",
|
|
4525
|
+
fill: "none",
|
|
4526
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4527
|
+
}, props), {
|
|
4528
|
+
children: [
|
|
4529
|
+
/* @__PURE__ */ jsxs36("g", { clipPath: "url(#clip0_3_53)", children: [
|
|
4530
|
+
/* @__PURE__ */ jsx62(
|
|
4531
|
+
"path",
|
|
4532
|
+
{
|
|
4533
|
+
d: "M32 0H10C4.47715 0 0 4.47715 0 10V32C0 37.5228 4.47715 42 10 42H32C37.5228 42 42 37.5228 42 32V10C42 4.47715 37.5228 0 32 0Z",
|
|
4534
|
+
fill: "#181818"
|
|
4535
|
+
}
|
|
4536
|
+
),
|
|
4537
|
+
/* @__PURE__ */ jsx62(
|
|
4538
|
+
"path",
|
|
4539
|
+
{
|
|
4540
|
+
d: "M32 31.6745V27.6829C32 27.5233 31.9203 27.3636 31.8406 27.2438L14.8225 10.1597C14.7029 10.0399 14.5435 10 14.3841 10H10.3986C10.1993 10 10.0399 10.1597 10.0399 10.3592V14.0715C10.0399 14.2311 10.1196 14.3908 10.1993 14.5105L16.2971 20.6177C16.4565 20.7774 16.4565 20.977 16.2971 21.1366L10.1196 27.3237C10.0399 27.4035 10 27.4834 10 27.5632V31.6346C10 31.8342 10.1594 31.9939 10.3587 31.9939H17.0544C17.2536 31.9939 17.413 31.8342 17.413 31.6346V29.2396C17.413 29.1598 17.4529 29.0401 17.5326 29.0002L20.8406 25.6871C21 25.5275 21.1993 25.5275 21.3587 25.6871L27.4964 31.8342C27.6159 31.954 27.7753 31.9939 27.9348 31.9939H31.6413C31.8406 32.0337 32 31.8741 32 31.6745Z",
|
|
4541
|
+
fill: "white"
|
|
4542
|
+
}
|
|
4543
|
+
),
|
|
4544
|
+
/* @__PURE__ */ jsx62(
|
|
4545
|
+
"path",
|
|
4546
|
+
{
|
|
4547
|
+
d: "M23.3406 15.0793H26.5592C26.7507 15.0793 26.9039 15.2333 26.9039 15.4257V18.658C26.9039 18.9658 27.2871 19.1197 27.4788 18.8888L31.8851 14.4637C31.9617 14.3867 32 14.3097 32 14.2328V10.3463C32 10.1539 31.8468 10 31.6552 10H27.7469C27.6703 10 27.5554 10.0385 27.5171 10.1154L23.1107 14.5021C22.8808 14.6945 23.0341 15.0793 23.3406 15.0793Z",
|
|
4548
|
+
fill: "#EE7A30"
|
|
4549
|
+
}
|
|
4550
|
+
)
|
|
4551
|
+
] }),
|
|
4552
|
+
/* @__PURE__ */ jsx62("defs", { children: /* @__PURE__ */ jsx62("clipPath", { id: "clip0_3_53", children: /* @__PURE__ */ jsx62("rect", { width: "42", height: "42", fill: "white" }) }) })
|
|
4553
|
+
]
|
|
4554
|
+
})
|
|
4555
|
+
);
|
|
4556
|
+
};
|
|
4557
|
+
|
|
4558
|
+
// src/icons/unisat.tsx
|
|
4559
|
+
import { jsx as jsx63, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4560
|
+
var UnisatLogo = (_a) => {
|
|
4561
|
+
var _b = _a, {
|
|
4562
|
+
size = 42,
|
|
4563
|
+
variant = "first",
|
|
4564
|
+
className
|
|
4565
|
+
} = _b, props = __objRest(_b, [
|
|
4566
|
+
"size",
|
|
4567
|
+
"variant",
|
|
4568
|
+
"className"
|
|
4569
|
+
]);
|
|
4570
|
+
return /* @__PURE__ */ jsxs37(
|
|
4571
|
+
"svg",
|
|
4572
|
+
__spreadProps(__spreadValues({
|
|
4573
|
+
className,
|
|
4574
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4575
|
+
width: size,
|
|
4576
|
+
height: size,
|
|
4577
|
+
viewBox: "0 0 42 42",
|
|
4578
|
+
fill: "none"
|
|
4579
|
+
}, props), {
|
|
4580
|
+
children: [
|
|
4581
|
+
/* @__PURE__ */ jsxs37("g", { clipPath: "url(#a)", children: [
|
|
4582
|
+
/* @__PURE__ */ jsx63(
|
|
4583
|
+
"path",
|
|
4584
|
+
{
|
|
4585
|
+
fill: "#000",
|
|
4586
|
+
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4587
|
+
}
|
|
4588
|
+
),
|
|
4589
|
+
/* @__PURE__ */ jsx63(
|
|
4590
|
+
"path",
|
|
4591
|
+
{
|
|
4592
|
+
fill: "url(#b)",
|
|
4593
|
+
d: "m25.517 9.483 5.759 5.611c.49.477.731.959.724 1.445-.008.486-.219.929-.631 1.33-.431.421-.897.634-1.395.644-.497.007-.992-.228-1.482-.705l-5.89-5.738c-.669-.652-1.315-1.114-1.936-1.385a2.873 2.873 0 0 0-1.96-.127c-.685.185-1.42.662-2.21 1.428-1.086 1.06-1.605 2.054-1.552 2.983.053.929.593 1.893 1.617 2.89l5.938 5.786c.496.482.74.964.732 1.443-.008.48-.22.923-.64 1.332-.419.408-.88.62-1.382.638-.502.016-1.001-.217-1.495-.7l-5.76-5.61c-.936-.912-1.613-1.776-2.029-2.59-.416-.815-.572-1.737-.464-2.765.097-.88.384-1.732.863-2.558.477-.827 1.161-1.671 2.048-2.537C15.43 9.268 16.438 8.48 17.4 7.93c.96-.55 1.889-.854 2.786-.917.899-.064 1.784.112 2.66.527.876.415 1.765 1.061 2.67 1.943h.002Z"
|
|
4594
|
+
}
|
|
4595
|
+
),
|
|
4596
|
+
/* @__PURE__ */ jsx63(
|
|
4597
|
+
"path",
|
|
4598
|
+
{
|
|
4599
|
+
fill: "url(#c)",
|
|
4600
|
+
d: "m16.482 32.123-5.758-5.611c-.49-.479-.731-.959-.724-1.445.008-.486.219-.929.631-1.33.431-.421.897-.634 1.395-.644.498-.007.992.227 1.482.705l5.888 5.738c.671.652 1.315 1.114 1.936 1.385.622.27 1.276.312 1.962.127.685-.185 1.42-.662 2.21-1.43 1.086-1.06 1.605-2.054 1.552-2.983-.053-.929-.593-1.893-1.617-2.891l-3.164-3.056c-.496-.482-.74-.964-.732-1.443.008-.48.22-.923.64-1.332.419-.408.88-.62 1.382-.638.502-.016 1.002.217 1.496.7l2.983 2.88c.936.912 1.613 1.775 2.03 2.59.415.815.571 1.736.463 2.764a6.477 6.477 0 0 1-.863 2.559c-.477.826-1.16 1.67-2.048 2.536-1.057 1.03-2.066 1.819-3.027 2.368-.962.55-1.89.856-2.79.92-.898.063-1.784-.113-2.66-.527-.876-.415-1.765-1.062-2.67-1.944l.003.002Z"
|
|
4601
|
+
}
|
|
4602
|
+
),
|
|
4603
|
+
/* @__PURE__ */ jsx63(
|
|
4604
|
+
"path",
|
|
4605
|
+
{
|
|
4606
|
+
fill: "url(#d)",
|
|
4607
|
+
d: "M20.073 17.645c1.168 0 2.115-.93 2.115-2.08 0-1.149-.947-2.08-2.115-2.08-1.168 0-2.115.931-2.115 2.08 0 1.15.947 2.08 2.115 2.08Z"
|
|
4608
|
+
}
|
|
4609
|
+
)
|
|
4610
|
+
] }),
|
|
4611
|
+
/* @__PURE__ */ jsxs37("defs", { children: [
|
|
4612
|
+
/* @__PURE__ */ jsxs37(
|
|
4613
|
+
"linearGradient",
|
|
4614
|
+
{
|
|
4615
|
+
id: "b",
|
|
4616
|
+
x1: 30.329,
|
|
4617
|
+
x2: 12.579,
|
|
4618
|
+
y1: 12.752,
|
|
4619
|
+
y2: 20.772,
|
|
4620
|
+
gradientUnits: "userSpaceOnUse",
|
|
4621
|
+
children: [
|
|
4622
|
+
/* @__PURE__ */ jsx63("stop", { stopColor: "#201C1B" }),
|
|
4623
|
+
/* @__PURE__ */ jsx63("stop", { offset: 0.36, stopColor: "#77390D" }),
|
|
4624
|
+
/* @__PURE__ */ jsx63("stop", { offset: 0.67, stopColor: "#EA8101" }),
|
|
4625
|
+
/* @__PURE__ */ jsx63("stop", { offset: 1, stopColor: "#F4B852" })
|
|
4626
|
+
]
|
|
4627
|
+
}
|
|
4628
|
+
),
|
|
4629
|
+
/* @__PURE__ */ jsxs37(
|
|
4630
|
+
"linearGradient",
|
|
4631
|
+
{
|
|
4632
|
+
id: "c",
|
|
4633
|
+
x1: 12.163,
|
|
4634
|
+
x2: 32.789,
|
|
4635
|
+
y1: 29.085,
|
|
4636
|
+
y2: 22.844,
|
|
4637
|
+
gradientUnits: "userSpaceOnUse",
|
|
4638
|
+
children: [
|
|
4639
|
+
/* @__PURE__ */ jsx63("stop", { stopColor: "#1F1D1C" }),
|
|
4640
|
+
/* @__PURE__ */ jsx63("stop", { offset: 0.37, stopColor: "#77390D" }),
|
|
4641
|
+
/* @__PURE__ */ jsx63("stop", { offset: 0.67, stopColor: "#EA8101" }),
|
|
4642
|
+
/* @__PURE__ */ jsx63("stop", { offset: 1, stopColor: "#F4FB52" })
|
|
4643
|
+
]
|
|
4644
|
+
}
|
|
4645
|
+
),
|
|
4646
|
+
/* @__PURE__ */ jsxs37(
|
|
4647
|
+
"radialGradient",
|
|
4648
|
+
{
|
|
4649
|
+
id: "d",
|
|
4650
|
+
cx: 0,
|
|
4651
|
+
cy: 0,
|
|
4652
|
+
r: 1,
|
|
4653
|
+
gradientTransform: "matrix(2.11484 0 0 2.08019 20.073 15.567)",
|
|
4654
|
+
gradientUnits: "userSpaceOnUse",
|
|
4655
|
+
children: [
|
|
4656
|
+
/* @__PURE__ */ jsx63("stop", { stopColor: "#F4B852" }),
|
|
4657
|
+
/* @__PURE__ */ jsx63("stop", { offset: 0.33, stopColor: "#EA8101" }),
|
|
4658
|
+
/* @__PURE__ */ jsx63("stop", { offset: 0.64, stopColor: "#77390D" }),
|
|
4659
|
+
/* @__PURE__ */ jsx63("stop", { offset: 1, stopColor: "#211C1D" })
|
|
4660
|
+
]
|
|
4661
|
+
}
|
|
4662
|
+
),
|
|
4663
|
+
/* @__PURE__ */ jsx63("clipPath", { id: "a", children: /* @__PURE__ */ jsx63("path", { fill: "#fff", d: "M0 0h42v42H0z" }) })
|
|
4664
|
+
] })
|
|
4665
|
+
]
|
|
4666
|
+
})
|
|
4667
|
+
);
|
|
4668
|
+
};
|
|
4669
|
+
|
|
4670
|
+
// src/icons/wizz.tsx
|
|
4671
|
+
import { jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4672
|
+
var WizzLogo = (_a) => {
|
|
4673
|
+
var _b = _a, {
|
|
4674
|
+
size = 42,
|
|
4675
|
+
variant = "first",
|
|
4676
|
+
className
|
|
4677
|
+
} = _b, props = __objRest(_b, [
|
|
4678
|
+
"size",
|
|
4679
|
+
"variant",
|
|
4680
|
+
"className"
|
|
4681
|
+
]);
|
|
4682
|
+
return /* @__PURE__ */ jsxs38(
|
|
4683
|
+
"svg",
|
|
4684
|
+
__spreadProps(__spreadValues({
|
|
4685
|
+
className,
|
|
4686
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4687
|
+
width: size,
|
|
4688
|
+
height: size,
|
|
4689
|
+
viewBox: "0 0 42 42",
|
|
4690
|
+
fill: "none"
|
|
4691
|
+
}, props), {
|
|
4692
|
+
children: [
|
|
4693
|
+
/* @__PURE__ */ jsxs38("g", { clipPath: "url(#a)", children: [
|
|
4694
|
+
/* @__PURE__ */ jsx64(
|
|
4695
|
+
"path",
|
|
4696
|
+
{
|
|
4697
|
+
fill: "#000",
|
|
4698
|
+
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4699
|
+
}
|
|
4700
|
+
),
|
|
4701
|
+
/* @__PURE__ */ jsxs38("g", { fillRule: "evenodd", clipPath: "url(#b)", clipRule: "evenodd", children: [
|
|
4702
|
+
/* @__PURE__ */ jsx64(
|
|
4703
|
+
"path",
|
|
4704
|
+
{
|
|
4705
|
+
fill: "#FFD815",
|
|
4706
|
+
d: "m26.507 17.74-1.623-1.623-1.624 1.623 1.623 1.623 1.624 1.624 1.623-1.624-1.623-1.623Z"
|
|
4707
|
+
}
|
|
4708
|
+
),
|
|
4709
|
+
/* @__PURE__ */ jsx64(
|
|
4710
|
+
"path",
|
|
4711
|
+
{
|
|
4712
|
+
fill: "#FF9813",
|
|
4713
|
+
d: "m26.507 8-1.624 1.623 1.624 1.624 1.623-1.624L26.507 8ZM33 14.493l-1.623-1.623-1.624 1.623 1.624 1.623L33 14.493ZM23.26 27.48l1.623 1.623 1.624-1.623-1.623-1.624-1.624 1.624ZM11.897 16.117l1.623 1.623 1.623-1.623-1.623-1.624-1.623 1.624ZM20.014 8 18.39 9.623l1.624 1.624 1.623-1.624L20.014 8ZM13.52 11.247l1.624 1.623 1.623-1.623-1.623-1.624-1.624 1.624ZM31.377 19.363l-1.624 1.623 1.624 1.624L33 20.987l-1.623-1.624ZM28.13 25.856l1.623 1.624 1.624-1.624-1.624-1.623-1.623 1.623Z"
|
|
4714
|
+
}
|
|
4715
|
+
),
|
|
4716
|
+
/* @__PURE__ */ jsx64(
|
|
4717
|
+
"path",
|
|
4718
|
+
{
|
|
4719
|
+
fill: "#5B5B72",
|
|
4720
|
+
d: "m26.507 20.986-1.624-1.623-1.623 1.623-1.623-1.623-1.623-1.623 1.623-1.624-1.623-1.623-1.624-1.623-1.623 1.623 1.623 1.623-1.623 1.624 1.623 1.623-1.623 1.623-.812-.811-1.623 1.623 1.623 1.623-1.623 1.624-1.543 1.542-1.542 1.543-1.624 1.623L8 31.377 9.623 33l1.624-1.623 1.623-1.624 1.543-1.542.08-.08 1.462-1.463.08-.08 1.544-1.543 1.623 1.623 1.623-1.623-.811-.812 1.623-1.623 1.623 1.623 1.623-1.623 1.624 1.623 1.623-1.623-1.623-1.624Z"
|
|
4721
|
+
}
|
|
4722
|
+
),
|
|
4723
|
+
/* @__PURE__ */ jsx64(
|
|
4724
|
+
"path",
|
|
4725
|
+
{
|
|
4726
|
+
fill: "#FF9813",
|
|
4727
|
+
d: "m26.507 14.493-1.624-1.623-1.623 1.623-1.623-1.623-1.623 1.623 1.623 1.623-1.623 1.624 1.623 1.623 1.623 1.623 1.623-1.623-1.623-1.623 1.623-1.623 1.624 1.623 1.623-1.623-1.623-1.624Z"
|
|
4728
|
+
}
|
|
4729
|
+
)
|
|
4730
|
+
] })
|
|
4731
|
+
] }),
|
|
4732
|
+
/* @__PURE__ */ jsxs38("defs", { children: [
|
|
4733
|
+
/* @__PURE__ */ jsx64("clipPath", { id: "a", children: /* @__PURE__ */ jsx64("path", { fill: "#fff", d: "M0 0h42v42H0z" }) }),
|
|
4734
|
+
/* @__PURE__ */ jsx64("clipPath", { id: "b", children: /* @__PURE__ */ jsx64("path", { fill: "#fff", d: "M8 8h25v25H8z" }) })
|
|
4735
|
+
] })
|
|
4736
|
+
]
|
|
4737
|
+
})
|
|
4738
|
+
);
|
|
4739
|
+
};
|
|
4740
|
+
|
|
4741
|
+
// src/icons/okx.tsx
|
|
4742
|
+
import { jsx as jsx65, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4743
|
+
var OkxLogo = (_a) => {
|
|
4744
|
+
var _b = _a, {
|
|
4745
|
+
size = 42,
|
|
4746
|
+
variant = "first",
|
|
4747
|
+
className
|
|
4748
|
+
} = _b, props = __objRest(_b, [
|
|
4749
|
+
"size",
|
|
4750
|
+
"variant",
|
|
4751
|
+
"className"
|
|
4752
|
+
]);
|
|
4753
|
+
return /* @__PURE__ */ jsxs39(
|
|
4754
|
+
"svg",
|
|
4755
|
+
__spreadProps(__spreadValues({
|
|
4756
|
+
className,
|
|
4757
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4758
|
+
width: size,
|
|
4759
|
+
height: size,
|
|
4760
|
+
viewBox: "0 0 42 42",
|
|
4761
|
+
fill: "none"
|
|
4762
|
+
}, props), {
|
|
4763
|
+
children: [
|
|
4764
|
+
/* @__PURE__ */ jsxs39("g", { clipPath: "url(#a)", children: [
|
|
4765
|
+
/* @__PURE__ */ jsx65(
|
|
4766
|
+
"path",
|
|
4767
|
+
{
|
|
4768
|
+
fill: "#000",
|
|
4769
|
+
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4770
|
+
}
|
|
4771
|
+
),
|
|
4772
|
+
/* @__PURE__ */ jsx65("g", { fill: "#fff", clipPath: "url(#b)", children: /* @__PURE__ */ jsx65("path", { d: "M24.578 17.052h-6.787a.523.523 0 0 0-.52.52v6.788c0 .286.235.52.52.52h6.787c.286 0 .521-.234.521-.52v-6.787a.523.523 0 0 0-.52-.521ZM16.733 9.223H9.946a.523.523 0 0 0-.521.521v6.787c0 .286.235.521.52.521h6.788c.285 0 .52-.235.52-.52V9.743a.523.523 0 0 0-.52-.52ZM32.424 9.223h-6.787a.523.523 0 0 0-.521.521v6.787c0 .286.235.521.52.521h6.788c.286 0 .52-.235.52-.52V9.743a.523.523 0 0 0-.52-.52ZM16.733 24.898H9.946a.523.523 0 0 0-.521.52v6.788c0 .285.235.52.52.52h6.788c.285 0 .52-.235.52-.52v-6.788a.523.523 0 0 0-.52-.52ZM32.424 24.898h-6.787a.523.523 0 0 0-.521.52v6.788c0 .285.235.52.52.52h6.788c.286 0 .52-.235.52-.52v-6.788a.523.523 0 0 0-.52-.52Z" }) })
|
|
4773
|
+
] }),
|
|
4774
|
+
/* @__PURE__ */ jsxs39("defs", { children: [
|
|
4775
|
+
/* @__PURE__ */ jsx65("clipPath", { id: "a", children: /* @__PURE__ */ jsx65("path", { fill: "#fff", d: "M0 0h42v42H0z" }) }),
|
|
4776
|
+
/* @__PURE__ */ jsx65("clipPath", { id: "b", children: /* @__PURE__ */ jsx65("path", { fill: "#fff", d: "M0 0h42v42H0z" }) })
|
|
4777
|
+
] })
|
|
4778
|
+
]
|
|
4779
|
+
})
|
|
4780
|
+
);
|
|
4781
|
+
};
|
|
4782
|
+
|
|
4783
|
+
// src/icons/magiceden.tsx
|
|
4784
|
+
import { jsx as jsx66, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4785
|
+
var MagicEdenLogo = (_a) => {
|
|
4786
|
+
var _b = _a, {
|
|
4787
|
+
size = 42,
|
|
4788
|
+
variant = "first",
|
|
4789
|
+
className
|
|
4790
|
+
} = _b, props = __objRest(_b, [
|
|
4791
|
+
"size",
|
|
4792
|
+
"variant",
|
|
4793
|
+
"className"
|
|
4794
|
+
]);
|
|
4795
|
+
return /* @__PURE__ */ jsxs40(
|
|
4796
|
+
"svg",
|
|
4797
|
+
__spreadProps(__spreadValues({
|
|
4798
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4799
|
+
width: size,
|
|
4800
|
+
height: size,
|
|
4801
|
+
className,
|
|
4802
|
+
viewBox: "0 0 42 42",
|
|
4803
|
+
fill: "none"
|
|
4804
|
+
}, props), {
|
|
4805
|
+
children: [
|
|
4806
|
+
/* @__PURE__ */ jsxs40("g", { clipPath: "url(#clip0_17_93)", children: [
|
|
4807
|
+
/* @__PURE__ */ jsx66(
|
|
4808
|
+
"path",
|
|
4809
|
+
{
|
|
4810
|
+
fill: "#070C34",
|
|
4811
|
+
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4812
|
+
}
|
|
4813
|
+
),
|
|
4814
|
+
/* @__PURE__ */ jsx66(
|
|
4815
|
+
"path",
|
|
4816
|
+
{
|
|
4817
|
+
fill: "url(#paint0_linear_17_93)",
|
|
4818
|
+
d: "m27.666 16.837 1.874 2.177c.215.245.404.446.483.562.56.55.874 1.293.874 2.07-.053.915-.657 1.54-1.213 2.205l-1.311 1.521-.685.79a.184.184 0 0 0 .046.281c.033.02.07.028.107.026h6.835c1.045 0 2.36.868 2.283 2.184 0 .597-.247 1.171-.68 1.595a2.36 2.36 0 0 1-1.637.664H23.936c-.704 0-2.598.076-3.128-1.521a1.841 1.841 0 0 1-.043-1.035 4.5 4.5 0 0 1 .72-1.404 65.543 65.543 0 0 1 1.695-2.343c.741-1.002 1.503-1.971 2.251-2.992a.19.19 0 0 0 .04-.116.19.19 0 0 0-.04-.116l-2.72-3.156a.192.192 0 0 0-.153-.073.192.192 0 0 0-.152.073c-.728.96-3.917 5.203-4.598 6.063-.68.86-2.355.907-3.283 0l-4.255-4.161a.197.197 0 0 0-.1-.053.195.195 0 0 0-.2.082.192.192 0 0 0-.032.106v8a2.678 2.678 0 0 1-.494 1.594c-.33.466-.804.823-1.352 1.014a2.375 2.375 0 0 1-2.111-.293 2.271 2.271 0 0 1-.72-.805A2.22 2.22 0 0 1 5 28.736V14.349a2.416 2.416 0 0 1 .548-1.422c.33-.406.785-.7 1.298-.841a2.632 2.632 0 0 1 2.502.664l6.54 6.381c.019.02.043.034.07.043a.197.197 0 0 0 .161-.013.188.188 0 0 0 .061-.054l4.646-6.27c.215-.254.485-.46.79-.601.304-.142.636-.217.976-.221H34.68c.33 0 .657.07.959.204a2.31 2.31 0 0 1 1.263 1.409c.096.309.122.633.079.952a2.288 2.288 0 0 1-.813 1.42c-.439.364-.996.56-1.572.551h-6.768a.188.188 0 0 0-.163.099.187.187 0 0 0-.022.095c0 .032.013.065.032.093h-.008Z"
|
|
4819
|
+
}
|
|
4820
|
+
)
|
|
4821
|
+
] }),
|
|
4822
|
+
/* @__PURE__ */ jsxs40("defs", { children: [
|
|
4823
|
+
/* @__PURE__ */ jsxs40(
|
|
4824
|
+
"linearGradient",
|
|
4825
|
+
{
|
|
4826
|
+
id: "paint0_linear_17_93",
|
|
4827
|
+
x1: "-0.315",
|
|
4828
|
+
x2: "35.366",
|
|
4829
|
+
y1: "9.343",
|
|
4830
|
+
y2: "30.176",
|
|
4831
|
+
gradientUnits: "userSpaceOnUse",
|
|
4832
|
+
children: [
|
|
4833
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.23", stopColor: "#FF0074" }),
|
|
4834
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.26", stopColor: "#FF0068" }),
|
|
4835
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.32", stopColor: "#FF0048" }),
|
|
4836
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.39", stopColor: "#FF0015" }),
|
|
4837
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.41", stopColor: "#FF0009" }),
|
|
4838
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.43", stopColor: "#FF0908" }),
|
|
4839
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.54", stopColor: "#FF4003" }),
|
|
4840
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.62", stopColor: "#FF6201" }),
|
|
4841
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.66", stopColor: "#FF6F00" }),
|
|
4842
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.72", stopColor: "#FF8700" }),
|
|
4843
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.83", stopColor: "#FFAB00" }),
|
|
4844
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.92", stopColor: "#FFC100" }),
|
|
4845
|
+
/* @__PURE__ */ jsx66("stop", { offset: "0.98", stopColor: "#FFCA00" })
|
|
4846
|
+
]
|
|
4847
|
+
}
|
|
4848
|
+
),
|
|
4849
|
+
/* @__PURE__ */ jsx66("clipPath", { id: "clip0_17_93", children: /* @__PURE__ */ jsx66("path", { fill: "#fff", d: "M0 0h42v42H0z" }) })
|
|
4850
|
+
] })
|
|
4851
|
+
]
|
|
4852
|
+
})
|
|
4853
|
+
);
|
|
4854
|
+
};
|
|
4855
|
+
|
|
4856
|
+
// src/icons/walletIcon.tsx
|
|
4857
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
4858
|
+
var WalletIcon = ({
|
|
4859
|
+
size,
|
|
4860
|
+
className,
|
|
4861
|
+
variant,
|
|
4862
|
+
walletName
|
|
4863
|
+
}) => {
|
|
4864
|
+
if (walletName === XVERSE) {
|
|
4865
|
+
return /* @__PURE__ */ jsx67(XverseLogo, { size, className, variant });
|
|
4866
|
+
} else if (walletName === WIZZ) {
|
|
4867
|
+
return /* @__PURE__ */ jsx67(WizzLogo, { size, className, variant });
|
|
4868
|
+
} else if (walletName === LEATHER) {
|
|
4869
|
+
return /* @__PURE__ */ jsx67(LeatherLogo, { size, className, variant });
|
|
4870
|
+
} else if (walletName === MAGIC_EDEN) {
|
|
4871
|
+
return /* @__PURE__ */ jsx67(MagicEdenLogo, { size, className, variant });
|
|
4872
|
+
} else if (walletName === OKX) {
|
|
4873
|
+
return /* @__PURE__ */ jsx67(OkxLogo, { size, className, variant });
|
|
4874
|
+
} else if (walletName === PHANTOM) {
|
|
4875
|
+
return /* @__PURE__ */ jsx67(PhantomLogo, { size, className, variant });
|
|
4876
|
+
} else if (walletName === UNISAT) {
|
|
4877
|
+
return /* @__PURE__ */ jsx67(UnisatLogo, { size, className, variant });
|
|
4878
|
+
} else if (walletName === OYL) {
|
|
4879
|
+
return /* @__PURE__ */ jsx67(OylLogo, { size, className, variant });
|
|
4880
|
+
} else {
|
|
4881
|
+
return /* @__PURE__ */ jsx67(LeatherLogo, { size, className, variant });
|
|
4882
|
+
}
|
|
4883
|
+
};
|
|
3667
4884
|
export {
|
|
3668
4885
|
LEATHER,
|
|
3669
4886
|
LEATHER_MAINNET,
|
|
3670
4887
|
LEATHER_TESTNET,
|
|
3671
4888
|
LaserEyesProvider,
|
|
4889
|
+
LeatherLogo,
|
|
3672
4890
|
MAGIC_EDEN,
|
|
3673
4891
|
MAINNET,
|
|
3674
4892
|
MEMPOOL_SPACE_SIGNET_URL,
|
|
3675
4893
|
MEMPOOL_SPACE_TESTNET_URL,
|
|
3676
4894
|
MEMPOOL_SPACE_URL,
|
|
4895
|
+
MagicEdenLogo,
|
|
3677
4896
|
OKX,
|
|
3678
4897
|
OKX_MAINNET,
|
|
3679
4898
|
OKX_TESTNET,
|
|
3680
4899
|
OP_WALLET_MAINNET,
|
|
3681
4900
|
OP_WALLET_TESTNET,
|
|
3682
4901
|
OYL,
|
|
4902
|
+
OkxLogo,
|
|
4903
|
+
OylLogo,
|
|
3683
4904
|
P2PKH,
|
|
3684
4905
|
P2PSH,
|
|
3685
4906
|
P2SH,
|
|
@@ -3687,21 +4908,26 @@ export {
|
|
|
3687
4908
|
P2WPKH,
|
|
3688
4909
|
P2WSH,
|
|
3689
4910
|
PHANTOM,
|
|
4911
|
+
PhantomLogo,
|
|
3690
4912
|
REGTEST,
|
|
3691
4913
|
SIGNET,
|
|
3692
4914
|
TESTNET,
|
|
3693
4915
|
UNISAT,
|
|
3694
4916
|
UNISAT_MAINNET,
|
|
3695
4917
|
UNISAT_TESTNET,
|
|
4918
|
+
UnisatLogo,
|
|
3696
4919
|
WALLETS,
|
|
3697
4920
|
WIZZ,
|
|
3698
4921
|
WIZZ_MAINNET,
|
|
3699
4922
|
WIZZ_TESTNET,
|
|
4923
|
+
WalletIcon,
|
|
4924
|
+
WizzLogo,
|
|
3700
4925
|
XVERSE,
|
|
3701
4926
|
XVERSE_MAINNET,
|
|
3702
4927
|
XVERSE_NETWORK,
|
|
3703
4928
|
XVERSE_SIGNET,
|
|
3704
4929
|
XVERSE_TESTNET,
|
|
4930
|
+
XverseLogo,
|
|
3705
4931
|
createConfig,
|
|
3706
4932
|
createSendBtcPsbt,
|
|
3707
4933
|
delay,
|