@xswap-link/sdk 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/index.css +7 -14
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +465 -390
- package/dist/index.mjs +404 -329
- package/package.json +1 -1
- package/src/components/TxConfigForm/FeesDetails.tsx +44 -30
- package/src/components/TxConfigForm/Form.tsx +9 -2
- package/src/components/TxConfigForm/Summary.tsx +15 -10
- package/src/components/TxConfigForm/SwapPanel.tsx +4 -0
- package/src/components/TxConfigForm/TopBar.tsx +8 -3
- package/src/components/TxConfigForm/UsdPrice.tsx +14 -1
- package/src/components/TxConfigForm/index.tsx +5 -10
- package/src/components/WaitingForInit/index.tsx +20 -0
- package/src/config/init.tsx +75 -0
- package/src/constants/index.ts +1 -0
- package/src/models/Route.ts +6 -2
- package/src/utils/contracts.ts +2 -4
- package/tailwind.config.js +2 -2
- package/src/config/init.ts +0 -35
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
5
5
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// src/config/init.
|
|
8
|
+
// src/config/init.tsx
|
|
9
9
|
import { createRoot } from "react-dom/client";
|
|
10
10
|
|
|
11
11
|
// xswap.config.ts
|
|
@@ -23,35 +23,92 @@ var xswap_config_default = {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
// package.json
|
|
26
|
-
var version = "0.2.
|
|
26
|
+
var version = "0.2.4";
|
|
27
27
|
|
|
28
|
-
// src/
|
|
28
|
+
// src/components/WaitingForInit/index.tsx
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
|
+
var WaitingForInit = () => {
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
style: {
|
|
35
|
+
zIndex: 10,
|
|
36
|
+
top: 0,
|
|
37
|
+
right: 0,
|
|
38
|
+
bottom: 0,
|
|
39
|
+
left: 0,
|
|
40
|
+
backgroundColor: "rgba(0,0,0,0.8)",
|
|
41
|
+
position: "fixed",
|
|
42
|
+
display: "flex",
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
justifyContent: "center"
|
|
45
|
+
},
|
|
46
|
+
children: "Waiting for XPay initialization ..."
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// src/config/init.tsx
|
|
52
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
53
|
+
var initIndicatorRoot;
|
|
29
54
|
var xswapRoot;
|
|
30
55
|
var txStatusRoot;
|
|
56
|
+
var initCompleted = false;
|
|
31
57
|
var initDocument = () => {
|
|
32
58
|
if (typeof document === "undefined") {
|
|
33
59
|
throw new Error("Can't render XPay components from server side.");
|
|
34
60
|
}
|
|
35
|
-
|
|
36
|
-
|
|
61
|
+
createInitIndicatorRoot();
|
|
62
|
+
Promise.all([
|
|
63
|
+
createStyleElement(),
|
|
64
|
+
createXswapRoot(),
|
|
65
|
+
createTxStatusRoot()
|
|
66
|
+
]).then(() => {
|
|
67
|
+
initCompleted = true;
|
|
37
68
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
69
|
+
};
|
|
70
|
+
var waitForInitialization = async () => {
|
|
71
|
+
if (!initCompleted) {
|
|
72
|
+
displayInitIndicator(true);
|
|
73
|
+
while (!initCompleted) {
|
|
74
|
+
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
43
75
|
}
|
|
76
|
+
displayInitIndicator(false);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
var createStyleElement = async () => {
|
|
80
|
+
const css = await fetch(
|
|
81
|
+
`${xswap_config_default.apiUrl}/sdk/css?${new URLSearchParams({
|
|
82
|
+
data: JSON.stringify({ version })
|
|
83
|
+
})}`
|
|
44
84
|
);
|
|
85
|
+
const text = await css.text();
|
|
86
|
+
const style = document.createElement("style");
|
|
87
|
+
style.textContent = text;
|
|
88
|
+
document.body.appendChild(style);
|
|
89
|
+
};
|
|
90
|
+
var createXswapRoot = async () => {
|
|
45
91
|
const xswapElement = document.createElement("div");
|
|
46
92
|
xswapElement.setAttribute("id", "xswap-modal");
|
|
47
93
|
document.body.appendChild(xswapElement);
|
|
48
94
|
xswapRoot = createRoot(xswapElement);
|
|
95
|
+
};
|
|
96
|
+
var createTxStatusRoot = async () => {
|
|
49
97
|
const txStatusElement = document.createElement("div");
|
|
50
98
|
txStatusElement.setAttribute("id", "xswap-tx-status");
|
|
51
99
|
txStatusElement.setAttribute("class", "xswap-tx-status");
|
|
52
100
|
document.body.appendChild(txStatusElement);
|
|
53
101
|
txStatusRoot = createRoot(txStatusElement);
|
|
54
102
|
};
|
|
103
|
+
var createInitIndicatorRoot = () => {
|
|
104
|
+
const initIndicatorElement = document.createElement("div");
|
|
105
|
+
initIndicatorElement.setAttribute("id", "xswap-init-indicator");
|
|
106
|
+
document.body.appendChild(initIndicatorElement);
|
|
107
|
+
initIndicatorRoot = createRoot(initIndicatorElement);
|
|
108
|
+
};
|
|
109
|
+
var displayInitIndicator = (display) => {
|
|
110
|
+
display ? initIndicatorRoot.render(/* @__PURE__ */ jsx2(WaitingForInit, {})) : initIndicatorRoot.render("");
|
|
111
|
+
};
|
|
55
112
|
|
|
56
113
|
// src/models/Addresses.ts
|
|
57
114
|
var ContractName = /* @__PURE__ */ ((ContractName2) => {
|
|
@@ -141,30 +198,6 @@ import { ethers as ethers2 } from "ethers";
|
|
|
141
198
|
// src/utils/contracts.ts
|
|
142
199
|
import { ethers } from "ethers";
|
|
143
200
|
|
|
144
|
-
// src/utils/numbers.ts
|
|
145
|
-
import { BigNumber as BigNumberJS } from "bignumber.js";
|
|
146
|
-
import { BigNumber, utils } from "ethers";
|
|
147
|
-
var safeBigNumberFrom = (value) => {
|
|
148
|
-
BigNumberJS.config({ DECIMAL_PLACES: 0 });
|
|
149
|
-
return BigNumber.from(new BigNumberJS(value).div(1).toFixed());
|
|
150
|
-
};
|
|
151
|
-
var weiToHumanReadable = ({
|
|
152
|
-
amount,
|
|
153
|
-
decimals,
|
|
154
|
-
precisionFractionalPlaces,
|
|
155
|
-
prettifySmallNumber = false
|
|
156
|
-
}) => {
|
|
157
|
-
const decimalsFactor = Math.pow(10, decimals);
|
|
158
|
-
BigNumberJS.config({ DECIMAL_PLACES: precisionFractionalPlaces });
|
|
159
|
-
const res = new BigNumberJS(amount).div(decimalsFactor).toFixed();
|
|
160
|
-
if (prettifySmallNumber && res === "0" && amount !== "0") {
|
|
161
|
-
return `<${(1 / 10 ** precisionFractionalPlaces).toFixed(
|
|
162
|
-
precisionFractionalPlaces
|
|
163
|
-
)}`;
|
|
164
|
-
}
|
|
165
|
-
return res;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
201
|
// src/contracts/abi/BatchQuery.json
|
|
169
202
|
var BatchQuery_default = [
|
|
170
203
|
{
|
|
@@ -493,6 +526,7 @@ var NUMBER_INPUT_REGEX = /^[0-9]*[.,]?[0-9]*$/;
|
|
|
493
526
|
var SLIPPAGE_PRESETS = [0.5, 1.5, 3];
|
|
494
527
|
var DELIVERY_TIME = 30 * 1e3 * 60;
|
|
495
528
|
var EXPRESS_DELIVERY_TIME = 30 * 1e3;
|
|
529
|
+
var EXPRESS_DELIVERY_LIMIT = 1e3;
|
|
496
530
|
var BALANCES_CHUNK_SIZE = 500;
|
|
497
531
|
var ROUTE_TIMEOUT_MS = 5e3;
|
|
498
532
|
var MINIMUM_DISPLAYED_TOKEN_AMOUNT = 1e-4;
|
|
@@ -561,6 +595,30 @@ var getErc20Balances = async (chain, wallet) => {
|
|
|
561
595
|
return balances;
|
|
562
596
|
};
|
|
563
597
|
|
|
598
|
+
// src/utils/numbers.ts
|
|
599
|
+
import { BigNumber as BigNumberJS } from "bignumber.js";
|
|
600
|
+
import { BigNumber as BigNumber2, utils } from "ethers";
|
|
601
|
+
var safeBigNumberFrom = (value) => {
|
|
602
|
+
BigNumberJS.config({ DECIMAL_PLACES: 0 });
|
|
603
|
+
return BigNumber2.from(new BigNumberJS(value).div(1).toFixed());
|
|
604
|
+
};
|
|
605
|
+
var weiToHumanReadable = ({
|
|
606
|
+
amount,
|
|
607
|
+
decimals,
|
|
608
|
+
precisionFractionalPlaces,
|
|
609
|
+
prettifySmallNumber = false
|
|
610
|
+
}) => {
|
|
611
|
+
const decimalsFactor = Math.pow(10, decimals);
|
|
612
|
+
BigNumberJS.config({ DECIMAL_PLACES: precisionFractionalPlaces });
|
|
613
|
+
const res = new BigNumberJS(amount).div(decimalsFactor).toFixed();
|
|
614
|
+
if (prettifySmallNumber && res === "0" && amount !== "0") {
|
|
615
|
+
return `<${(1 / 10 ** precisionFractionalPlaces).toFixed(
|
|
616
|
+
precisionFractionalPlaces
|
|
617
|
+
)}`;
|
|
618
|
+
}
|
|
619
|
+
return res;
|
|
620
|
+
};
|
|
621
|
+
|
|
564
622
|
// src/utils/strings.ts
|
|
565
623
|
var shortAddress = (address) => {
|
|
566
624
|
return `${address?.substring(0, 5)}...${address?.substring(
|
|
@@ -648,45 +706,24 @@ var mapTransports = (chains) => {
|
|
|
648
706
|
return transports;
|
|
649
707
|
};
|
|
650
708
|
|
|
651
|
-
// src/components/icons/CloseIcon.tsx
|
|
652
|
-
import { jsx } from "react/jsx-runtime";
|
|
653
|
-
var CloseIcon = () => {
|
|
654
|
-
return /* @__PURE__ */ jsx(
|
|
655
|
-
"svg",
|
|
656
|
-
{
|
|
657
|
-
height: "18",
|
|
658
|
-
width: "18",
|
|
659
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
660
|
-
viewBox: "0 0 10.312 8.319",
|
|
661
|
-
children: /* @__PURE__ */ jsx(
|
|
662
|
-
"path",
|
|
663
|
-
{
|
|
664
|
-
fill: "white",
|
|
665
|
-
d: "M6.073 4.078 10.151 0H9.093A1.87 1.87 0 0 0 7.77.548L5.157 3.162 2.543.548A1.87 1.87 0 0 0 1.22 0H.161L4.24 4.078 0 8.318h1.058a1.87 1.87 0 0 0 1.322-.547l2.777-2.777 2.776 2.777a1.869 1.869 0 0 0 1.322.548h1.058Z"
|
|
666
|
-
}
|
|
667
|
-
)
|
|
668
|
-
}
|
|
669
|
-
);
|
|
670
|
-
};
|
|
671
|
-
|
|
672
709
|
// src/components/icons/ArrowRightIcon.tsx
|
|
673
|
-
import { jsx as
|
|
710
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
674
711
|
var ArrowRightIcon = () => {
|
|
675
|
-
return /* @__PURE__ */
|
|
712
|
+
return /* @__PURE__ */ jsx3(
|
|
676
713
|
"svg",
|
|
677
714
|
{
|
|
678
715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
679
716
|
viewBox: "0 0 448 512",
|
|
680
717
|
fill: "currentColor",
|
|
681
|
-
children: /* @__PURE__ */
|
|
718
|
+
children: /* @__PURE__ */ jsx3("path", { d: "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z" })
|
|
682
719
|
}
|
|
683
720
|
);
|
|
684
721
|
};
|
|
685
722
|
|
|
686
723
|
// src/components/icons/ArrowDownIcon.tsx
|
|
687
|
-
import { jsx as
|
|
724
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
688
725
|
var ArrowDownIcon = () => {
|
|
689
|
-
return /* @__PURE__ */
|
|
726
|
+
return /* @__PURE__ */ jsx4(
|
|
690
727
|
"svg",
|
|
691
728
|
{
|
|
692
729
|
width: "20",
|
|
@@ -694,7 +731,7 @@ var ArrowDownIcon = () => {
|
|
|
694
731
|
viewBox: "0 0 20 20",
|
|
695
732
|
fill: "none",
|
|
696
733
|
xmlns: "http://www.w3.org/2000/svg",
|
|
697
|
-
children: /* @__PURE__ */
|
|
734
|
+
children: /* @__PURE__ */ jsx4(
|
|
698
735
|
"path",
|
|
699
736
|
{
|
|
700
737
|
d: "M12 2.45932L12 12.8957L15.8625 9.15023L18 11.1866L10.5 18.4593L3 11.1866L5.1375 9.15023L9 12.8957L9 2.45932L12 2.45932Z",
|
|
@@ -706,9 +743,9 @@ var ArrowDownIcon = () => {
|
|
|
706
743
|
};
|
|
707
744
|
|
|
708
745
|
// src/components/icons/ArrowLeftIcon.tsx
|
|
709
|
-
import { jsx as
|
|
746
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
710
747
|
var ArrowLeftIcon = () => {
|
|
711
|
-
return /* @__PURE__ */
|
|
748
|
+
return /* @__PURE__ */ jsx5(
|
|
712
749
|
"svg",
|
|
713
750
|
{
|
|
714
751
|
width: "10",
|
|
@@ -716,7 +753,7 @@ var ArrowLeftIcon = () => {
|
|
|
716
753
|
viewBox: "0 0 10 16",
|
|
717
754
|
fill: "none",
|
|
718
755
|
xmlns: "http://www.w3.org/2000/svg",
|
|
719
|
-
children: /* @__PURE__ */
|
|
756
|
+
children: /* @__PURE__ */ jsx5(
|
|
720
757
|
"path",
|
|
721
758
|
{
|
|
722
759
|
d: "M0.5 8L8.13251 15.5L9.5 14.1562L3.20318 8L9.4682 1.84375L8.10071 0.5L0.5 8Z",
|
|
@@ -728,44 +765,44 @@ var ArrowLeftIcon = () => {
|
|
|
728
765
|
};
|
|
729
766
|
|
|
730
767
|
// src/components/icons/ArrowUpRightIcon.tsx
|
|
731
|
-
import { jsx as
|
|
768
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
732
769
|
var ArrowUpRightIcon = () => {
|
|
733
|
-
return /* @__PURE__ */
|
|
770
|
+
return /* @__PURE__ */ jsx6(
|
|
734
771
|
"svg",
|
|
735
772
|
{
|
|
736
773
|
xmlns: "http://www.w3.org/2000/svg",
|
|
737
774
|
viewBox: "0 0 512 512",
|
|
738
775
|
fill: "currentColor",
|
|
739
|
-
children: /* @__PURE__ */
|
|
776
|
+
children: /* @__PURE__ */ jsx6("path", { d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z" })
|
|
740
777
|
}
|
|
741
778
|
);
|
|
742
779
|
};
|
|
743
780
|
|
|
744
781
|
// src/components/icons/CheckIcon.tsx
|
|
745
|
-
import { jsx as
|
|
782
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
746
783
|
var CheckIcon = () => {
|
|
747
|
-
return /* @__PURE__ */
|
|
784
|
+
return /* @__PURE__ */ jsx7(
|
|
748
785
|
"svg",
|
|
749
786
|
{
|
|
750
787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
751
788
|
viewBox: "0 0 448 512",
|
|
752
789
|
fill: "currentColor",
|
|
753
|
-
children: /* @__PURE__ */
|
|
790
|
+
children: /* @__PURE__ */ jsx7("path", { d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" })
|
|
754
791
|
}
|
|
755
792
|
);
|
|
756
793
|
};
|
|
757
794
|
|
|
758
795
|
// src/components/icons/ChevronDownIcon.tsx
|
|
759
|
-
import { jsx as
|
|
796
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
760
797
|
var ChevronDownIcon = () => {
|
|
761
|
-
return /* @__PURE__ */
|
|
798
|
+
return /* @__PURE__ */ jsx8(
|
|
762
799
|
"svg",
|
|
763
800
|
{
|
|
764
801
|
width: "12",
|
|
765
802
|
height: "12",
|
|
766
803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
767
804
|
viewBox: "0 0 512 512",
|
|
768
|
-
children: /* @__PURE__ */
|
|
805
|
+
children: /* @__PURE__ */ jsx8(
|
|
769
806
|
"path",
|
|
770
807
|
{
|
|
771
808
|
fill: "currentColor",
|
|
@@ -777,9 +814,9 @@ var ChevronDownIcon = () => {
|
|
|
777
814
|
};
|
|
778
815
|
|
|
779
816
|
// src/components/icons/ChevronUpIcon.tsx
|
|
780
|
-
import { jsx as
|
|
817
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
781
818
|
var ChevronUpIcon = () => {
|
|
782
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ jsx9("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: /* @__PURE__ */ jsx9(
|
|
783
820
|
"path",
|
|
784
821
|
{
|
|
785
822
|
fill: "currentColor",
|
|
@@ -789,7 +826,7 @@ var ChevronUpIcon = () => {
|
|
|
789
826
|
};
|
|
790
827
|
|
|
791
828
|
// src/components/icons/CircularProgressIcon.tsx
|
|
792
|
-
import { jsx as
|
|
829
|
+
import { jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
793
830
|
var CircularProgressIcon = () => {
|
|
794
831
|
return /* @__PURE__ */ jsxs2(
|
|
795
832
|
"svg",
|
|
@@ -801,7 +838,7 @@ var CircularProgressIcon = () => {
|
|
|
801
838
|
fill: "none",
|
|
802
839
|
xmlns: "http://www.w3.org/2000/svg",
|
|
803
840
|
children: [
|
|
804
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ jsx10(
|
|
805
842
|
"circle",
|
|
806
843
|
{
|
|
807
844
|
cx: "16.5",
|
|
@@ -812,16 +849,37 @@ var CircularProgressIcon = () => {
|
|
|
812
849
|
strokeWidth: "2"
|
|
813
850
|
}
|
|
814
851
|
),
|
|
815
|
-
/* @__PURE__ */
|
|
852
|
+
/* @__PURE__ */ jsx10("path", { d: "M1 16C1 7.71573 7.71573 1 16 1", stroke: "white", strokeWidth: "2" })
|
|
816
853
|
]
|
|
817
854
|
}
|
|
818
855
|
);
|
|
819
856
|
};
|
|
820
857
|
|
|
858
|
+
// src/components/icons/CloseIcon.tsx
|
|
859
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
860
|
+
var CloseIcon = () => {
|
|
861
|
+
return /* @__PURE__ */ jsx11(
|
|
862
|
+
"svg",
|
|
863
|
+
{
|
|
864
|
+
height: "18",
|
|
865
|
+
width: "18",
|
|
866
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
867
|
+
viewBox: "0 0 10.312 8.319",
|
|
868
|
+
children: /* @__PURE__ */ jsx11(
|
|
869
|
+
"path",
|
|
870
|
+
{
|
|
871
|
+
fill: "white",
|
|
872
|
+
d: "M6.073 4.078 10.151 0H9.093A1.87 1.87 0 0 0 7.77.548L5.157 3.162 2.543.548A1.87 1.87 0 0 0 1.22 0H.161L4.24 4.078 0 8.318h1.058a1.87 1.87 0 0 0 1.322-.547l2.777-2.777 2.776 2.777a1.869 1.869 0 0 0 1.322.548h1.058Z"
|
|
873
|
+
}
|
|
874
|
+
)
|
|
875
|
+
}
|
|
876
|
+
);
|
|
877
|
+
};
|
|
878
|
+
|
|
821
879
|
// src/components/icons/CoinsIcon.tsx
|
|
822
|
-
import { jsx as
|
|
880
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
823
881
|
var CoinsIcon = () => {
|
|
824
|
-
return /* @__PURE__ */
|
|
882
|
+
return /* @__PURE__ */ jsx12(
|
|
825
883
|
"svg",
|
|
826
884
|
{
|
|
827
885
|
width: "24",
|
|
@@ -829,7 +887,7 @@ var CoinsIcon = () => {
|
|
|
829
887
|
viewBox: "0 0 24 24",
|
|
830
888
|
fill: "none",
|
|
831
889
|
xmlns: "http://www.w3.org/2000/svg",
|
|
832
|
-
children: /* @__PURE__ */
|
|
890
|
+
children: /* @__PURE__ */ jsx12(
|
|
833
891
|
"path",
|
|
834
892
|
{
|
|
835
893
|
d: "M15 20C12.7667 20 10.875 19.225 9.325 17.675C7.775 16.125 7 14.2333 7 12C7 9.76667 7.775 7.875 9.325 6.325C10.875 4.775 12.7667 4 15 4C17.2333 4 19.125 4.775 20.675 6.325C22.225 7.875 23 9.76667 23 12C23 14.2333 22.225 16.125 20.675 17.675C19.125 19.225 17.2333 20 15 20ZM7 19.75C5.23333 19.2833 3.79167 18.3333 2.675 16.9C1.55833 15.4667 1 13.8333 1 12C1 10.1667 1.55833 8.53333 2.675 7.1C3.79167 5.66667 5.23333 4.71667 7 4.25V6.35C5.8 6.76667 4.83333 7.49167 4.1 8.525C3.36667 9.55833 3 10.7167 3 12C3 13.2833 3.36667 14.4417 4.1 15.475C4.83333 16.5083 5.8 17.2333 7 17.65V19.75ZM15 18C16.6667 18 18.0833 17.4167 19.25 16.25C20.4167 15.0833 21 13.6667 21 12C21 10.3333 20.4167 8.91667 19.25 7.75C18.0833 6.58333 16.6667 6 15 6C13.3333 6 11.9167 6.58333 10.75 7.75C9.58333 8.91667 9 10.3333 9 12C9 13.6667 9.58333 15.0833 10.75 16.25C11.9167 17.4167 13.3333 18 15 18Z",
|
|
@@ -842,9 +900,9 @@ var CoinsIcon = () => {
|
|
|
842
900
|
};
|
|
843
901
|
|
|
844
902
|
// src/components/icons/DownArrorIcon.tsx
|
|
845
|
-
import { jsx as
|
|
903
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
846
904
|
var DownArrowIcon = () => {
|
|
847
|
-
return /* @__PURE__ */
|
|
905
|
+
return /* @__PURE__ */ jsx13(
|
|
848
906
|
"svg",
|
|
849
907
|
{
|
|
850
908
|
width: 16,
|
|
@@ -852,7 +910,7 @@ var DownArrowIcon = () => {
|
|
|
852
910
|
viewBox: "0 0 16 16",
|
|
853
911
|
fill: "none",
|
|
854
912
|
xmlns: "http://www.w3.org/2000/svg",
|
|
855
|
-
children: /* @__PURE__ */
|
|
913
|
+
children: /* @__PURE__ */ jsx13(
|
|
856
914
|
"path",
|
|
857
915
|
{
|
|
858
916
|
d: "M8.00008 9.76921L5.06421 6.83334H10.9359L8.00008 9.76921Z",
|
|
@@ -865,9 +923,9 @@ var DownArrowIcon = () => {
|
|
|
865
923
|
};
|
|
866
924
|
|
|
867
925
|
// src/components/icons/HistoryIcon.tsx
|
|
868
|
-
import { jsx as
|
|
926
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
869
927
|
var HistoryIcon = () => {
|
|
870
|
-
return /* @__PURE__ */
|
|
928
|
+
return /* @__PURE__ */ jsx14(
|
|
871
929
|
"svg",
|
|
872
930
|
{
|
|
873
931
|
width: "20",
|
|
@@ -875,7 +933,7 @@ var HistoryIcon = () => {
|
|
|
875
933
|
viewBox: "0 0 20 20",
|
|
876
934
|
fill: "none",
|
|
877
935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
878
|
-
children: /* @__PURE__ */
|
|
936
|
+
children: /* @__PURE__ */ jsx14(
|
|
879
937
|
"path",
|
|
880
938
|
{
|
|
881
939
|
d: "M9.98413 17.5C8.1633 17.5 6.57667 16.8646 5.22424 15.5938C3.8718 14.3229 3.09663 12.7361 2.89871 10.8333H4.52163C4.70635 12.2778 5.3166 13.4722 6.35236 14.4167C7.38812 15.3611 8.59871 15.8333 9.98413 15.8333C11.5279 15.8333 12.8374 15.2674 13.9128 14.1354C14.9881 13.0035 15.5258 11.625 15.5258 10C15.5258 8.375 14.9881 6.99653 13.9128 5.86458C12.8374 4.73264 11.5279 4.16667 9.98413 4.16667C9.07371 4.16667 8.22267 4.38889 7.43101 4.83333C6.63934 5.27778 5.97302 5.88889 5.43205 6.66667H7.60913V8.33333H2.85913V3.33333H4.44246V5.29167C5.11538 4.40278 5.93673 3.71528 6.90653 3.22917C7.87632 2.74306 8.90219 2.5 9.98413 2.5C10.9737 2.5 11.9006 2.69792 12.7649 3.09375C13.6291 3.48958 14.3812 4.02431 15.0211 4.69792C15.661 5.37153 16.169 6.16319 16.5451 7.07292C16.9211 7.98264 17.1091 8.95833 17.1091 10C17.1091 11.0417 16.9211 12.0174 16.5451 12.9271C16.169 13.8368 15.661 14.6285 15.0211 15.3021C14.3812 15.9757 13.6291 16.5104 12.7649 16.9062C11.9006 17.3021 10.9737 17.5 9.98413 17.5ZM12.2008 13.5L9.19246 10.3333V5.83333H10.7758V9.66667L13.3091 12.3333L12.2008 13.5Z",
|
|
@@ -887,12 +945,12 @@ var HistoryIcon = () => {
|
|
|
887
945
|
};
|
|
888
946
|
|
|
889
947
|
// src/components/icons/HourGlassIcon.tsx
|
|
890
|
-
import { jsx as
|
|
948
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
891
949
|
|
|
892
950
|
// src/components/icons/SearchIcon.tsx
|
|
893
|
-
import { jsx as
|
|
951
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
894
952
|
var SearchIcon = () => {
|
|
895
|
-
return /* @__PURE__ */
|
|
953
|
+
return /* @__PURE__ */ jsx16(
|
|
896
954
|
"svg",
|
|
897
955
|
{
|
|
898
956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -900,16 +958,16 @@ var SearchIcon = () => {
|
|
|
900
958
|
width: "24",
|
|
901
959
|
viewBox: "0 -960 960 960",
|
|
902
960
|
fill: "#ffffffc0",
|
|
903
|
-
children: /* @__PURE__ */
|
|
961
|
+
children: /* @__PURE__ */ jsx16("path", { d: "M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z" })
|
|
904
962
|
}
|
|
905
963
|
);
|
|
906
964
|
};
|
|
907
965
|
|
|
908
966
|
// src/components/icons/XMarkIcon.tsx
|
|
909
|
-
import { jsx as
|
|
967
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
910
968
|
|
|
911
969
|
// src/components/icons/PercentageIcon.tsx
|
|
912
|
-
import { jsx as
|
|
970
|
+
import { jsx as jsx18, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
913
971
|
var PercentageIcon = () => {
|
|
914
972
|
return /* @__PURE__ */ jsxs3(
|
|
915
973
|
"svg",
|
|
@@ -920,14 +978,14 @@ var PercentageIcon = () => {
|
|
|
920
978
|
fill: "none",
|
|
921
979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
922
980
|
children: [
|
|
923
|
-
/* @__PURE__ */
|
|
981
|
+
/* @__PURE__ */ jsx18(
|
|
924
982
|
"path",
|
|
925
983
|
{
|
|
926
984
|
d: "M3.00008 5.33329C2.35564 5.33329 1.80564 5.10552 1.35008 4.64996C0.894526 4.1944 0.666748 3.6444 0.666748 2.99996C0.666748 2.35551 0.894526 1.80551 1.35008 1.34996C1.80564 0.894404 2.35564 0.666626 3.00008 0.666626C3.64453 0.666626 4.19453 0.894404 4.65008 1.34996C5.10564 1.80551 5.33342 2.35551 5.33342 2.99996C5.33342 3.6444 5.10564 4.1944 4.65008 4.64996C4.19453 5.10552 3.64453 5.33329 3.00008 5.33329ZM3.00008 3.99996C3.27786 3.99996 3.51397 3.90274 3.70841 3.70829C3.90286 3.51385 4.00008 3.27774 4.00008 2.99996C4.00008 2.72218 3.90286 2.48607 3.70841 2.29163C3.51397 2.09718 3.27786 1.99996 3.00008 1.99996C2.7223 1.99996 2.48619 2.09718 2.29175 2.29163C2.0973 2.48607 2.00008 2.72218 2.00008 2.99996C2.00008 3.27774 2.0973 3.51385 2.29175 3.70829C2.48619 3.90274 2.7223 3.99996 3.00008 3.99996ZM9.00008 11.3333C8.35564 11.3333 7.80564 11.1055 7.35008 10.65C6.89453 10.1944 6.66675 9.6444 6.66675 8.99996C6.66675 8.35552 6.89453 7.80552 7.35008 7.34996C7.80564 6.8944 8.35564 6.66663 9.00008 6.66663C9.64453 6.66663 10.1945 6.8944 10.6501 7.34996C11.1056 7.80552 11.3334 8.35552 11.3334 8.99996C11.3334 9.6444 11.1056 10.1944 10.6501 10.65C10.1945 11.1055 9.64453 11.3333 9.00008 11.3333ZM9.00008 9.99996C9.27786 9.99996 9.51397 9.90274 9.70842 9.70829C9.90286 9.51385 10.0001 9.27774 10.0001 8.99996C10.0001 8.72218 9.90286 8.48607 9.70842 8.29163C9.51397 8.09718 9.27786 7.99996 9.00008 7.99996C8.7223 7.99996 8.48619 8.09718 8.29175 8.29163C8.0973 8.48607 8.00008 8.72218 8.00008 8.99996C8.00008 9.27774 8.0973 9.51385 8.29175 9.70829C8.48619 9.90274 8.7223 9.99996 9.00008 9.99996ZM1.60008 11.3333L0.666748 10.4L10.4001 0.666626L11.3334 1.59996L1.60008 11.3333Z",
|
|
927
985
|
fill: "url(#paint0_linear_32_1164)"
|
|
928
986
|
}
|
|
929
987
|
),
|
|
930
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ jsx18("defs", { children: /* @__PURE__ */ jsxs3(
|
|
931
989
|
"linearGradient",
|
|
932
990
|
{
|
|
933
991
|
id: "paint0_linear_32_1164",
|
|
@@ -937,8 +995,8 @@ var PercentageIcon = () => {
|
|
|
937
995
|
y2: "1.31767",
|
|
938
996
|
gradientUnits: "userSpaceOnUse",
|
|
939
997
|
children: [
|
|
940
|
-
/* @__PURE__ */
|
|
941
|
-
/* @__PURE__ */
|
|
998
|
+
/* @__PURE__ */ jsx18("stop", { stopColor: "#3681C6" }),
|
|
999
|
+
/* @__PURE__ */ jsx18("stop", { offset: "1", stopColor: "#2B4A9D" })
|
|
942
1000
|
]
|
|
943
1001
|
}
|
|
944
1002
|
) })
|
|
@@ -948,9 +1006,9 @@ var PercentageIcon = () => {
|
|
|
948
1006
|
};
|
|
949
1007
|
|
|
950
1008
|
// src/components/icons/TimerIcon.tsx
|
|
951
|
-
import { jsx as
|
|
1009
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
952
1010
|
var TimerIcon = () => {
|
|
953
|
-
return /* @__PURE__ */
|
|
1011
|
+
return /* @__PURE__ */ jsx19(
|
|
954
1012
|
"svg",
|
|
955
1013
|
{
|
|
956
1014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -958,15 +1016,15 @@ var TimerIcon = () => {
|
|
|
958
1016
|
viewBox: "0 -960 960 960",
|
|
959
1017
|
width: "16",
|
|
960
1018
|
fill: "currentColor",
|
|
961
|
-
children: /* @__PURE__ */
|
|
1019
|
+
children: /* @__PURE__ */ jsx19("path", { d: "M360-840v-80h240v80H360Zm80 440h80v-240h-80v240Zm40 320q-74 0-139.5-28.5T226-186q-49-49-77.5-114.5T120-440q0-74 28.5-139.5T226-694q49-49 114.5-77.5T480-800q62 0 119 20t107 58l56-56 56 56-56 56q38 50 58 107t20 119q0 74-28.5 139.5T734-186q-49 49-114.5 77.5T480-80Zm0-80q116 0 198-82t82-198q0-116-82-198t-198-82q-116 0-198 82t-82 198q0 116 82 198t198 82Zm0-280Z" })
|
|
962
1020
|
}
|
|
963
1021
|
);
|
|
964
1022
|
};
|
|
965
1023
|
|
|
966
1024
|
// src/components/icons/InfoIcon.tsx
|
|
967
|
-
import { jsx as
|
|
1025
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
968
1026
|
var InfoIcon = () => {
|
|
969
|
-
return /* @__PURE__ */
|
|
1027
|
+
return /* @__PURE__ */ jsx20(
|
|
970
1028
|
"svg",
|
|
971
1029
|
{
|
|
972
1030
|
width: "28",
|
|
@@ -974,15 +1032,15 @@ var InfoIcon = () => {
|
|
|
974
1032
|
viewBox: "0 0 28 28",
|
|
975
1033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
976
1034
|
fill: "currentColor",
|
|
977
|
-
children: /* @__PURE__ */
|
|
1035
|
+
children: /* @__PURE__ */ jsx20("path", { d: "M12.6667 20.6666H15.3334V12.6666H12.6667V20.6666ZM14.0001 9.99996C14.3779 9.99996 14.6945 9.87218 14.9501 9.61663C15.2056 9.36107 15.3334 9.0444 15.3334 8.66663C15.3334 8.28885 15.2056 7.97218 14.9501 7.71663C14.6945 7.46107 14.3779 7.33329 14.0001 7.33329C13.6223 7.33329 13.3056 7.46107 13.0501 7.71663C12.7945 7.97218 12.6667 8.28885 12.6667 8.66663C12.6667 9.0444 12.7945 9.36107 13.0501 9.61663C13.3056 9.87218 13.6223 9.99996 14.0001 9.99996ZM14.0001 27.3333C12.1556 27.3333 10.4223 26.9833 8.80008 26.2833C7.17786 25.5833 5.76675 24.6333 4.56675 23.4333C3.36675 22.2333 2.41675 20.8222 1.71675 19.2C1.01675 17.5777 0.666748 15.8444 0.666748 14C0.666748 12.1555 1.01675 10.4222 1.71675 8.79996C2.41675 7.17774 3.36675 5.76663 4.56675 4.56663C5.76675 3.36663 7.17786 2.41663 8.80008 1.71663C10.4223 1.01663 12.1556 0.666626 14.0001 0.666626C15.8445 0.666626 17.5779 1.01663 19.2001 1.71663C20.8223 2.41663 22.2334 3.36663 23.4334 4.56663C24.6334 5.76663 25.5834 7.17774 26.2834 8.79996C26.9834 10.4222 27.3334 12.1555 27.3334 14C27.3334 15.8444 26.9834 17.5777 26.2834 19.2C25.5834 20.8222 24.6334 22.2333 23.4334 23.4333C22.2334 24.6333 20.8223 25.5833 19.2001 26.2833C17.5779 26.9833 15.8445 27.3333 14.0001 27.3333ZM14.0001 24.6666C16.9779 24.6666 19.5001 23.6333 21.5667 21.5666C23.6334 19.5 24.6667 16.9777 24.6667 14C24.6667 11.0222 23.6334 8.49996 21.5667 6.43329C19.5001 4.36663 16.9779 3.33329 14.0001 3.33329C11.0223 3.33329 8.50008 4.36663 6.43341 6.43329C4.36675 8.49996 3.33341 11.0222 3.33341 14C3.33341 16.9777 4.36675 19.5 6.43341 21.5666C8.50008 23.6333 11.0223 24.6666 14.0001 24.6666Z" })
|
|
978
1036
|
}
|
|
979
1037
|
);
|
|
980
1038
|
};
|
|
981
1039
|
|
|
982
1040
|
// src/components/icons/SettingsIcon.tsx
|
|
983
|
-
import { jsx as
|
|
1041
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
984
1042
|
var SettingsIcon = () => {
|
|
985
|
-
return /* @__PURE__ */
|
|
1043
|
+
return /* @__PURE__ */ jsx21(
|
|
986
1044
|
"svg",
|
|
987
1045
|
{
|
|
988
1046
|
width: "18",
|
|
@@ -990,7 +1048,7 @@ var SettingsIcon = () => {
|
|
|
990
1048
|
viewBox: "0 0 18 18",
|
|
991
1049
|
fill: "none",
|
|
992
1050
|
xmlns: "http://www.w3.org/2000/svg",
|
|
993
|
-
children: /* @__PURE__ */
|
|
1051
|
+
children: /* @__PURE__ */ jsx21(
|
|
994
1052
|
"path",
|
|
995
1053
|
{
|
|
996
1054
|
d: "M6.62325 17.5L6.26504 14.78C6.07101 14.7092 5.88818 14.6242 5.71653 14.525C5.54489 14.4258 5.37698 14.3196 5.2128 14.2063L2.54862 15.2688L0.0859375 11.2312L2.39191 9.57375C2.37698 9.47458 2.36952 9.37896 2.36952 9.28687V8.71313C2.36952 8.62104 2.37698 8.52542 2.39191 8.42625L0.0859375 6.76875L2.54862 2.73125L5.2128 3.79375C5.37698 3.68042 5.54862 3.57417 5.72773 3.475C5.90683 3.37583 6.08594 3.29083 6.26504 3.22L6.62325 0.5H11.5486L11.9068 3.22C12.1009 3.29083 12.2837 3.37583 12.4553 3.475C12.627 3.57417 12.7949 3.68042 12.9591 3.79375L15.6233 2.73125L18.0859 6.76875L15.78 8.42625C15.7949 8.52542 15.8024 8.62104 15.8024 8.71313V9.28687C15.8024 9.37896 15.7874 9.47458 15.7576 9.57375L18.0635 11.2312L15.6009 15.2688L12.9591 14.2063C12.7949 14.3196 12.6233 14.4258 12.4441 14.525C12.265 14.6242 12.0859 14.7092 11.9068 14.78L11.5486 17.5H6.62325ZM9.13071 11.975C9.99639 11.975 10.7352 11.6846 11.3471 11.1038C11.9591 10.5229 12.265 9.82167 12.265 9C12.265 8.17833 11.9591 7.47708 11.3471 6.89625C10.7352 6.31542 9.99639 6.025 9.13071 6.025C8.25012 6.025 7.50758 6.31542 6.9031 6.89625C6.29862 7.47708 5.99639 8.17833 5.99639 9C5.99639 9.82167 6.29862 10.5229 6.9031 11.1038C7.50758 11.6846 8.25012 11.975 9.13071 11.975ZM9.13071 10.275C8.75758 10.275 8.44042 10.151 8.17922 9.90312C7.91803 9.65521 7.78743 9.35417 7.78743 9C7.78743 8.64583 7.91803 8.34479 8.17922 8.09688C8.44042 7.84896 8.75758 7.725 9.13071 7.725C9.50385 7.725 9.82101 7.84896 10.0822 8.09688C10.3434 8.34479 10.474 8.64583 10.474 9C10.474 9.35417 10.3434 9.65521 10.0822 9.90312C9.82101 10.151 9.50385 10.275 9.13071 10.275ZM8.19042 15.8H9.95907L10.2725 13.5475C10.7352 13.4342 11.1643 13.2677 11.5598 13.0481C11.9553 12.8285 12.3173 12.5629 12.6456 12.2513L14.8621 13.1225L15.7352 11.6775L13.8098 10.2963C13.8844 10.0979 13.9367 9.88896 13.9665 9.66938C13.9964 9.44979 14.0113 9.22667 14.0113 9C14.0113 8.77333 13.9964 8.55021 13.9665 8.33063C13.9367 8.11104 13.8844 7.90208 13.8098 7.70375L15.7352 6.3225L14.8621 4.8775L12.6456 5.77C12.3173 5.44417 11.9553 5.17146 11.5598 4.95188C11.1643 4.73229 10.7352 4.56583 10.2725 4.4525L9.98146 2.2H8.2128L7.89937 4.4525C7.43668 4.56583 7.00758 4.73229 6.61206 4.95188C6.21653 5.17146 5.85459 5.43708 5.52624 5.74875L3.30982 4.8775L2.43668 6.3225L4.36206 7.6825C4.28743 7.895 4.23519 8.1075 4.20534 8.32C4.17549 8.5325 4.16056 8.75917 4.16056 9C4.16056 9.22667 4.17549 9.44625 4.20534 9.65875C4.23519 9.87125 4.28743 10.0837 4.36206 10.2963L2.43668 11.6775L3.30982 13.1225L5.52624 12.23C5.85459 12.5558 6.21653 12.8285 6.61206 13.0481C7.00758 13.2677 7.43668 13.4342 7.89937 13.5475L8.19042 15.8Z",
|
|
@@ -1002,7 +1060,7 @@ var SettingsIcon = () => {
|
|
|
1002
1060
|
};
|
|
1003
1061
|
|
|
1004
1062
|
// src/components/icons/XSwapBadgeIcon.tsx
|
|
1005
|
-
import { jsx as
|
|
1063
|
+
import { jsx as jsx22, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1006
1064
|
var XSwapBadgeIcon = () => {
|
|
1007
1065
|
return /* @__PURE__ */ jsxs4(
|
|
1008
1066
|
"svg",
|
|
@@ -1013,8 +1071,8 @@ var XSwapBadgeIcon = () => {
|
|
|
1013
1071
|
width: "80",
|
|
1014
1072
|
height: "27",
|
|
1015
1073
|
children: [
|
|
1016
|
-
/* @__PURE__ */
|
|
1017
|
-
/* @__PURE__ */
|
|
1074
|
+
/* @__PURE__ */ jsx22("title", { children: "xswap-badge" }),
|
|
1075
|
+
/* @__PURE__ */ jsx22("defs", { children: /* @__PURE__ */ jsx22(
|
|
1018
1076
|
"image",
|
|
1019
1077
|
{
|
|
1020
1078
|
width: "80",
|
|
@@ -1023,15 +1081,15 @@ var XSwapBadgeIcon = () => {
|
|
|
1023
1081
|
href: "data:image/png;base64,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"
|
|
1024
1082
|
}
|
|
1025
1083
|
) }),
|
|
1026
|
-
/* @__PURE__ */
|
|
1027
|
-
/* @__PURE__ */
|
|
1084
|
+
/* @__PURE__ */ jsx22("style", {}),
|
|
1085
|
+
/* @__PURE__ */ jsx22("use", { id: "Background", href: "#img1iVBORw0KGgoAAAANSUhEUgAAAF", x: "0", y: "1" })
|
|
1028
1086
|
]
|
|
1029
1087
|
}
|
|
1030
1088
|
);
|
|
1031
1089
|
};
|
|
1032
1090
|
|
|
1033
1091
|
// src/components/icons/ChainlinkCCIPIcon.tsx
|
|
1034
|
-
import { jsx as
|
|
1092
|
+
import { jsx as jsx23, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1035
1093
|
var ChainlinkCCIPIcon = () => {
|
|
1036
1094
|
return /* @__PURE__ */ jsxs5(
|
|
1037
1095
|
"svg",
|
|
@@ -1042,8 +1100,8 @@ var ChainlinkCCIPIcon = () => {
|
|
|
1042
1100
|
width: "67",
|
|
1043
1101
|
height: "27",
|
|
1044
1102
|
children: [
|
|
1045
|
-
/* @__PURE__ */
|
|
1046
|
-
/* @__PURE__ */
|
|
1103
|
+
/* @__PURE__ */ jsx23("title", { children: "chainlink-CCIP" }),
|
|
1104
|
+
/* @__PURE__ */ jsx23("defs", { children: /* @__PURE__ */ jsx23(
|
|
1047
1105
|
"image",
|
|
1048
1106
|
{
|
|
1049
1107
|
width: "67",
|
|
@@ -1052,17 +1110,17 @@ var ChainlinkCCIPIcon = () => {
|
|
|
1052
1110
|
href: "data:image/png;base64,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"
|
|
1053
1111
|
}
|
|
1054
1112
|
) }),
|
|
1055
|
-
/* @__PURE__ */
|
|
1056
|
-
/* @__PURE__ */
|
|
1113
|
+
/* @__PURE__ */ jsx23("style", {}),
|
|
1114
|
+
/* @__PURE__ */ jsx23("use", { id: "Background", href: "#imgiVBORw0KGgoAAA", x: "0", y: "0" })
|
|
1057
1115
|
]
|
|
1058
1116
|
}
|
|
1059
1117
|
);
|
|
1060
1118
|
};
|
|
1061
1119
|
|
|
1062
1120
|
// src/components/icons/XSwapLogo.tsx
|
|
1063
|
-
import { jsx as
|
|
1121
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1064
1122
|
var XSwapLogo = () => {
|
|
1065
|
-
return /* @__PURE__ */
|
|
1123
|
+
return /* @__PURE__ */ jsx24(
|
|
1066
1124
|
"svg",
|
|
1067
1125
|
{
|
|
1068
1126
|
version: "1.1",
|
|
@@ -1072,7 +1130,7 @@ var XSwapLogo = () => {
|
|
|
1072
1130
|
y: "0px",
|
|
1073
1131
|
viewBox: "0 0 50 50",
|
|
1074
1132
|
enableBackground: "new 0 0 50 50",
|
|
1075
|
-
children: /* @__PURE__ */
|
|
1133
|
+
children: /* @__PURE__ */ jsx24(
|
|
1076
1134
|
"image",
|
|
1077
1135
|
{
|
|
1078
1136
|
id: "image0",
|
|
@@ -1086,13 +1144,13 @@ var XSwapLogo = () => {
|
|
|
1086
1144
|
};
|
|
1087
1145
|
|
|
1088
1146
|
// src/components/TxConfigForm/PoweredBy.tsx
|
|
1089
|
-
import { jsx as
|
|
1147
|
+
import { jsx as jsx25, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1090
1148
|
var PoweredBy = () => {
|
|
1091
1149
|
return /* @__PURE__ */ jsxs6("div", { className: "flex justify-center items-center gap-2 my-3", children: [
|
|
1092
|
-
/* @__PURE__ */
|
|
1093
|
-
/* @__PURE__ */
|
|
1094
|
-
/* @__PURE__ */
|
|
1095
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ jsx25("span", { className: "text-x_grey", children: "Powered by" }),
|
|
1151
|
+
/* @__PURE__ */ jsx25(XSwapBadgeIcon, {}),
|
|
1152
|
+
/* @__PURE__ */ jsx25("span", { children: "\u2715" }),
|
|
1153
|
+
/* @__PURE__ */ jsx25(ChainlinkCCIPIcon, {})
|
|
1096
1154
|
] });
|
|
1097
1155
|
};
|
|
1098
1156
|
|
|
@@ -1124,7 +1182,7 @@ import BigNumberJS2 from "bignumber.js";
|
|
|
1124
1182
|
|
|
1125
1183
|
// src/components/TxConfigForm/HistoryCard.tsx
|
|
1126
1184
|
import { useCallback, useMemo } from "react";
|
|
1127
|
-
import { Fragment, jsx as
|
|
1185
|
+
import { Fragment, jsx as jsx26, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1128
1186
|
var HistoryCard = ({ transaction, supportedChains }) => {
|
|
1129
1187
|
const date = getDate(transaction.timestamp);
|
|
1130
1188
|
const supportedTokens = useMemo(() => {
|
|
@@ -1172,12 +1230,12 @@ var HistoryCard = ({ transaction, supportedChains }) => {
|
|
|
1172
1230
|
);
|
|
1173
1231
|
return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col globalBorder rounded-xl bg-[rgb(15,15,15)] text-white text-xs sm:text-sm p-4 gap-3 mb-2", children: [
|
|
1174
1232
|
/* @__PURE__ */ jsxs7("div", { className: "flex w-full items-center justify-between", children: [
|
|
1175
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ jsx26("div", { className: "text-sm sm:text-base", children: date }),
|
|
1176
1234
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
|
|
1177
|
-
transaction.status === "IN_PROGRESS" && /* @__PURE__ */
|
|
1178
|
-
transaction.status === "DONE" && /* @__PURE__ */
|
|
1179
|
-
transaction.status === "REVERTED" && /* @__PURE__ */
|
|
1180
|
-
/* @__PURE__ */
|
|
1235
|
+
transaction.status === "IN_PROGRESS" && /* @__PURE__ */ jsx26("div", { className: "flex items-center", children: /* @__PURE__ */ jsx26("div", { className: "text-[rgb(250,200,100)]", children: "In progress" }) }),
|
|
1236
|
+
transaction.status === "DONE" && /* @__PURE__ */ jsx26("div", { className: "flex items-center", children: /* @__PURE__ */ jsx26("div", { className: "text-[rgb(100,200,100)]", children: "Done" }) }),
|
|
1237
|
+
transaction.status === "REVERTED" && /* @__PURE__ */ jsx26("div", { className: "flex items-center", children: /* @__PURE__ */ jsx26("div", { className: "text-[rgb(255,100,100)]", children: "Reverted" }) }),
|
|
1238
|
+
/* @__PURE__ */ jsx26(
|
|
1181
1239
|
"a",
|
|
1182
1240
|
{
|
|
1183
1241
|
href: `${supportedChains.find(
|
|
@@ -1187,7 +1245,7 @@ var HistoryCard = ({ transaction, supportedChains }) => {
|
|
|
1187
1245
|
rel: "noreferrer",
|
|
1188
1246
|
className: "ml-2 no-underline",
|
|
1189
1247
|
"aria-label": "Show the transaction in the chain explorer",
|
|
1190
|
-
children: /* @__PURE__ */
|
|
1248
|
+
children: /* @__PURE__ */ jsx26("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ jsx26(ArrowUpRightIcon, {}) })
|
|
1191
1249
|
}
|
|
1192
1250
|
)
|
|
1193
1251
|
] })
|
|
@@ -1195,7 +1253,7 @@ var HistoryCard = ({ transaction, supportedChains }) => {
|
|
|
1195
1253
|
/* @__PURE__ */ jsxs7("div", { className: "flex justify-between flex-wrap gap-2", children: [
|
|
1196
1254
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
|
|
1197
1255
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
|
|
1198
|
-
/* @__PURE__ */
|
|
1256
|
+
/* @__PURE__ */ jsx26(
|
|
1199
1257
|
"img",
|
|
1200
1258
|
{
|
|
1201
1259
|
src: sourceChainData?.image,
|
|
@@ -1203,11 +1261,11 @@ var HistoryCard = ({ transaction, supportedChains }) => {
|
|
|
1203
1261
|
className: "w-5 h-5 mr-1"
|
|
1204
1262
|
}
|
|
1205
1263
|
),
|
|
1206
|
-
/* @__PURE__ */
|
|
1264
|
+
/* @__PURE__ */ jsx26("div", { children: sourceChainData?.displayName })
|
|
1207
1265
|
] }),
|
|
1208
|
-
/* @__PURE__ */
|
|
1266
|
+
/* @__PURE__ */ jsx26("div", { className: "w-3.5 h-3.5 my-0 mx-1.5", children: /* @__PURE__ */ jsx26(ArrowRightIcon, {}) }),
|
|
1209
1267
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
|
|
1210
|
-
/* @__PURE__ */
|
|
1268
|
+
/* @__PURE__ */ jsx26(
|
|
1211
1269
|
"img",
|
|
1212
1270
|
{
|
|
1213
1271
|
src: targetChainData?.image,
|
|
@@ -1215,35 +1273,35 @@ var HistoryCard = ({ transaction, supportedChains }) => {
|
|
|
1215
1273
|
className: "w-5 h-5 mr-1"
|
|
1216
1274
|
}
|
|
1217
1275
|
),
|
|
1218
|
-
/* @__PURE__ */
|
|
1276
|
+
/* @__PURE__ */ jsx26("div", { children: targetChainData?.displayName })
|
|
1219
1277
|
] })
|
|
1220
1278
|
] }),
|
|
1221
|
-
/* @__PURE__ */
|
|
1279
|
+
/* @__PURE__ */ jsx26("div", { className: "flex items-center mb-2 last:mb-0", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center flex-wrap", children: [
|
|
1222
1280
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
|
|
1223
1281
|
Number(transferredAmount) < MINIMUM_DISPLAYED_TOKEN_AMOUNT ? `<${MINIMUM_DISPLAYED_TOKEN_AMOUNT}` : transferredAmount,
|
|
1224
|
-
/* @__PURE__ */
|
|
1225
|
-
tokenData?.image ? /* @__PURE__ */
|
|
1282
|
+
/* @__PURE__ */ jsx26("div", { className: "ml-1", children: tokenData?.symbol }),
|
|
1283
|
+
tokenData?.image ? /* @__PURE__ */ jsx26(
|
|
1226
1284
|
"img",
|
|
1227
1285
|
{
|
|
1228
1286
|
src: tokenData?.image,
|
|
1229
1287
|
alt: tokenData?.name || "",
|
|
1230
1288
|
className: "w-5 h-5 ml-1"
|
|
1231
1289
|
}
|
|
1232
|
-
) : /* @__PURE__ */
|
|
1290
|
+
) : /* @__PURE__ */ jsx26("div", { className: "flex items-center justify-center w-5 h-5 text-[10px] ml-1 rounded-full bg-[#272e40] text-[#e0e7fa]", children: tokenData?.symbol.substring(0, 1) })
|
|
1233
1291
|
] }),
|
|
1234
1292
|
transaction.tokenOutAddress && /* @__PURE__ */ jsxs7(Fragment, { children: [
|
|
1235
|
-
/* @__PURE__ */
|
|
1293
|
+
/* @__PURE__ */ jsx26("div", { className: "w-3.5 h-3.5 my-0 mx-1.5", children: /* @__PURE__ */ jsx26(ArrowRightIcon, {}) }),
|
|
1236
1294
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
|
|
1237
1295
|
Number(receivedAmount) < 1e-4 ? "<0.0001" : receivedAmount,
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
tokenOutData?.image ? /* @__PURE__ */
|
|
1296
|
+
/* @__PURE__ */ jsx26("div", { className: "ml-1", children: tokenOutData?.symbol }),
|
|
1297
|
+
tokenOutData?.image ? /* @__PURE__ */ jsx26(
|
|
1240
1298
|
"img",
|
|
1241
1299
|
{
|
|
1242
1300
|
src: tokenOutData?.image,
|
|
1243
1301
|
alt: tokenOutData?.name || "",
|
|
1244
1302
|
className: "w-5 h-5 ml-1"
|
|
1245
1303
|
}
|
|
1246
|
-
) : /* @__PURE__ */
|
|
1304
|
+
) : /* @__PURE__ */ jsx26("div", { className: "flex items-center justify-center w-5 h-5 text-[10px] ml-1 rounded-full bg-[#272e40] text-[#e0e7fa]", children: tokenData?.symbol.substring(0, 1) })
|
|
1247
1305
|
] })
|
|
1248
1306
|
] })
|
|
1249
1307
|
] }) })
|
|
@@ -1252,7 +1310,7 @@ var HistoryCard = ({ transaction, supportedChains }) => {
|
|
|
1252
1310
|
};
|
|
1253
1311
|
|
|
1254
1312
|
// src/components/TxConfigForm/History.tsx
|
|
1255
|
-
import { jsx as
|
|
1313
|
+
import { jsx as jsx27, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1256
1314
|
var History = ({ signer, supportedChains }) => {
|
|
1257
1315
|
const [fetchedHistory, setFetchedHistory] = useState2();
|
|
1258
1316
|
const [historyLoadedOnce, setHistoryLoadedOnce] = useState2(false);
|
|
@@ -1304,11 +1362,11 @@ var History = ({ signer, supportedChains }) => {
|
|
|
1304
1362
|
return () => clearInterval(timer);
|
|
1305
1363
|
}, [signer, fetchHistory, getHistory, historyLoadedOnce]);
|
|
1306
1364
|
if (!signer)
|
|
1307
|
-
return /* @__PURE__ */
|
|
1308
|
-
return /* @__PURE__ */
|
|
1309
|
-
fetchedHistory?.length === 0 && historyLoadedOnce && /* @__PURE__ */
|
|
1310
|
-
!fetchedHistory && !historyLoadedOnce && /* @__PURE__ */
|
|
1311
|
-
fetchedHistory?.map((transaction, index) => /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ jsx27("div", { className: "flex items-center justify-center w-full h-[30vh]", children: "Connect a wallet to browse history" });
|
|
1366
|
+
return /* @__PURE__ */ jsx27("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ jsxs8("div", { className: "w-full h-96 overflow-scroll overflow-x-hidden", children: [
|
|
1367
|
+
fetchedHistory?.length === 0 && historyLoadedOnce && /* @__PURE__ */ jsx27("div", { className: "w-full text-center py-4 px-0 text-[rgb(158,158,158)]", children: "Your history is empty..." }),
|
|
1368
|
+
!fetchedHistory && !historyLoadedOnce && /* @__PURE__ */ jsx27("div", { className: "flex w-full h-full items-center justify-center", children: /* @__PURE__ */ jsx27(CircularProgressIcon, {}) }),
|
|
1369
|
+
fetchedHistory?.map((transaction, index) => /* @__PURE__ */ jsx27(
|
|
1312
1370
|
HistoryCard,
|
|
1313
1371
|
{
|
|
1314
1372
|
transaction,
|
|
@@ -1320,39 +1378,41 @@ var History = ({ signer, supportedChains }) => {
|
|
|
1320
1378
|
};
|
|
1321
1379
|
|
|
1322
1380
|
// src/components/TxConfigForm/TopBar.tsx
|
|
1323
|
-
import { Fragment as Fragment2, jsx as
|
|
1381
|
+
import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1324
1382
|
var TopBar = ({
|
|
1325
1383
|
signer,
|
|
1326
1384
|
setSettingsShown,
|
|
1327
1385
|
setHistoryTabShown,
|
|
1328
|
-
historyTabShown
|
|
1386
|
+
historyTabShown,
|
|
1387
|
+
onClose
|
|
1329
1388
|
}) => {
|
|
1330
|
-
return /* @__PURE__ */ jsxs9("div", { className: "flex w-full justify-between items-center mx-auto
|
|
1331
|
-
/* @__PURE__ */
|
|
1332
|
-
/* @__PURE__ */ jsxs9("div", { className: "flex gap-2", children: [
|
|
1333
|
-
!historyTabShown && /* @__PURE__ */
|
|
1389
|
+
return /* @__PURE__ */ jsxs9("div", { className: "flex w-full justify-between items-center mx-auto p-2", children: [
|
|
1390
|
+
/* @__PURE__ */ jsx28("div", { className: "rounded-lg text-[rgba(255,255,255,0.6)] text-xs sm:text-base whitespace-nowrap", children: signer ? `Connected wallet: ${shortAddress(signer)}` : `Wallet disconnected` }),
|
|
1391
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex gap-2 justify-center items-center", children: [
|
|
1392
|
+
!historyTabShown && /* @__PURE__ */ jsx28(
|
|
1334
1393
|
"div",
|
|
1335
1394
|
{
|
|
1336
1395
|
onClick: () => setSettingsShown(true),
|
|
1337
1396
|
className: "flex items-center text-xs gap-1 cursor-pointer",
|
|
1338
|
-
children: /* @__PURE__ */
|
|
1397
|
+
children: /* @__PURE__ */ jsx28("div", { className: "w-7 h-7 rounded-full bg-gradient-to-r from-x_blue_light to-x_blue_dark flex items-center justify-center", children: /* @__PURE__ */ jsx28(SettingsIcon, {}) })
|
|
1339
1398
|
}
|
|
1340
1399
|
),
|
|
1341
|
-
/* @__PURE__ */
|
|
1400
|
+
/* @__PURE__ */ jsx28(
|
|
1342
1401
|
"div",
|
|
1343
1402
|
{
|
|
1344
1403
|
onClick: () => setHistoryTabShown((x) => !x),
|
|
1345
1404
|
className: "flex items-center text-sm gap-1 cursor-pointer",
|
|
1346
|
-
children: !historyTabShown ? /* @__PURE__ */
|
|
1405
|
+
children: !historyTabShown ? /* @__PURE__ */ jsx28(Fragment2, { children: /* @__PURE__ */ jsx28("div", { className: "w-7 h-7 rounded-full bg-gradient-to-r from-x_blue_light to-x_blue_dark flex items-center justify-center", children: /* @__PURE__ */ jsx28(HistoryIcon, {}) }) }) : /* @__PURE__ */ jsx28("div", { children: "Back" })
|
|
1347
1406
|
}
|
|
1348
|
-
)
|
|
1407
|
+
),
|
|
1408
|
+
/* @__PURE__ */ jsx28("div", { className: "cursor-pointer text-white", onClick: onClose, children: /* @__PURE__ */ jsx28(CloseIcon, {}) })
|
|
1349
1409
|
] })
|
|
1350
1410
|
] });
|
|
1351
1411
|
};
|
|
1352
1412
|
|
|
1353
1413
|
// src/components/TxConfigForm/Settings.tsx
|
|
1354
1414
|
import { useState as useState3, useEffect as useEffect3 } from "react";
|
|
1355
|
-
import { jsx as
|
|
1415
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1356
1416
|
var Settings = ({
|
|
1357
1417
|
setSlippage,
|
|
1358
1418
|
setSettingsShown,
|
|
@@ -1369,22 +1429,22 @@ var Settings = ({
|
|
|
1369
1429
|
);
|
|
1370
1430
|
}
|
|
1371
1431
|
}, [slippageActivePresetIndex, usingSlippageInput]);
|
|
1372
|
-
return /* @__PURE__ */
|
|
1432
|
+
return /* @__PURE__ */ jsx29("div", { className: "absolute w-[310px] right-0 top-[46px] z-10 bg-black border border-solid border-[rgba(54,129,198,1)] p-4 rounded-xl", children: /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-4 justify-between", children: [
|
|
1373
1433
|
/* @__PURE__ */ jsxs10("div", { className: "flex justify-between", children: [
|
|
1374
|
-
/* @__PURE__ */
|
|
1375
|
-
/* @__PURE__ */
|
|
1434
|
+
/* @__PURE__ */ jsx29("div", { className: "text-base", children: "Settings" }),
|
|
1435
|
+
/* @__PURE__ */ jsx29(
|
|
1376
1436
|
"div",
|
|
1377
1437
|
{
|
|
1378
1438
|
className: "cursor-pointer",
|
|
1379
1439
|
onClick: () => setSettingsShown(false),
|
|
1380
|
-
children: /* @__PURE__ */
|
|
1440
|
+
children: /* @__PURE__ */ jsx29(CloseIcon, {})
|
|
1381
1441
|
}
|
|
1382
1442
|
)
|
|
1383
1443
|
] }),
|
|
1384
1444
|
/* @__PURE__ */ jsxs10("div", { children: [
|
|
1385
1445
|
/* @__PURE__ */ jsxs10("div", { className: "flex gap-2 items-center", children: [
|
|
1386
|
-
/* @__PURE__ */
|
|
1387
|
-
/* @__PURE__ */
|
|
1446
|
+
/* @__PURE__ */ jsx29("div", { className: "text-sm text-[rgba(255,255,255,0.6)]", children: "Express delivery" }),
|
|
1447
|
+
/* @__PURE__ */ jsx29("div", { children: /* @__PURE__ */ jsxs10(
|
|
1388
1448
|
"span",
|
|
1389
1449
|
{
|
|
1390
1450
|
className: "inline-flex w-14 h-9 p-3 relative align-middle box-border overflow-hidden cursor-pointer",
|
|
@@ -1392,8 +1452,8 @@ var Settings = ({
|
|
|
1392
1452
|
setExpressChecked((x) => !x);
|
|
1393
1453
|
},
|
|
1394
1454
|
children: [
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
-
/* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ jsx29("span", { className: "h-full, w-full rounded-lg bg-[rgba(255,255,255,0.3)]" }),
|
|
1456
|
+
/* @__PURE__ */ jsx29(
|
|
1397
1457
|
"span",
|
|
1398
1458
|
{
|
|
1399
1459
|
className: `transition-all w-5 h-5 rounded-full absolute translate-y-[-4px]
|
|
@@ -1405,14 +1465,14 @@ var Settings = ({
|
|
|
1405
1465
|
) })
|
|
1406
1466
|
] }),
|
|
1407
1467
|
/* @__PURE__ */ jsxs10("div", { className: "flex gap-4", children: [
|
|
1408
|
-
/* @__PURE__ */
|
|
1409
|
-
/* @__PURE__ */
|
|
1468
|
+
/* @__PURE__ */ jsx29("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ jsx29(InfoIcon, {}) }),
|
|
1469
|
+
/* @__PURE__ */ jsx29("div", { className: "text-xs text-left", children: "Express delivery is a special feature of XSwap that reduces transaction time across chains to around 30 seconds. It is currently available for swaps below a value of $ 1000 USD." })
|
|
1410
1470
|
] })
|
|
1411
1471
|
] }),
|
|
1412
1472
|
/* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-2 ", children: [
|
|
1413
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ jsx29("div", { className: " text-[rgba(255,255,255,0.6)] text-sm", children: "Slippage" }),
|
|
1414
1474
|
/* @__PURE__ */ jsxs10("div", { className: "flex gap-2", children: [
|
|
1415
|
-
/* @__PURE__ */
|
|
1475
|
+
/* @__PURE__ */ jsx29("div", { className: "flex items-center bg-[rgba(15,15,15,1)] p-1 globalBorder rounded-xl", children: SLIPPAGE_PRESETS.map((preset, index) => /* @__PURE__ */ jsx29(
|
|
1416
1476
|
"div",
|
|
1417
1477
|
{
|
|
1418
1478
|
className: `transition-all cursor-pointer block rounded-lg p-2 border-none text-sm leading-[10px] ${index === slippageActivePresetIndex && !usingSlippageInput ? "text-white" : "text-[rgba(255,255,255,0.2)]"} ${index === slippageActivePresetIndex && !usingSlippageInput ? "bg-gradient-to-r from-[#3681c6] to-[#2b4a9d]" : ""}`,
|
|
@@ -1425,7 +1485,7 @@ var Settings = ({
|
|
|
1425
1485
|
index
|
|
1426
1486
|
)) }),
|
|
1427
1487
|
/* @__PURE__ */ jsxs10("div", { className: "bg-[rgba(39,39,39,1)] p-2 border border-solid border-[rgba(82,82,82,1)] rounded-xl text-white flex items-center", children: [
|
|
1428
|
-
/* @__PURE__ */
|
|
1488
|
+
/* @__PURE__ */ jsx29(
|
|
1429
1489
|
"input",
|
|
1430
1490
|
{
|
|
1431
1491
|
className: "text-white border-none bg-[rgba(39,39,39,1)] w-10 placeholder:text-[rgba(255,255,255,0.2)] focus:outline-none text-sm leading-none",
|
|
@@ -1444,16 +1504,16 @@ var Settings = ({
|
|
|
1444
1504
|
}
|
|
1445
1505
|
}
|
|
1446
1506
|
),
|
|
1447
|
-
/* @__PURE__ */
|
|
1507
|
+
/* @__PURE__ */ jsx29(PercentageIcon, {})
|
|
1448
1508
|
] })
|
|
1449
1509
|
] }),
|
|
1450
1510
|
/* @__PURE__ */ jsxs10("div", { className: "flex gap-4", children: [
|
|
1451
|
-
/* @__PURE__ */
|
|
1511
|
+
/* @__PURE__ */ jsx29("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ jsx29(InfoIcon, {}) }),
|
|
1452
1512
|
/* @__PURE__ */ jsxs10("div", { className: "text-xs text-left", children: [
|
|
1453
1513
|
"Slippage is the price variation you are willing to accept in the event that the price of the trade changes while it is processing.",
|
|
1454
|
-
/* @__PURE__ */
|
|
1514
|
+
/* @__PURE__ */ jsx29("br", {}),
|
|
1455
1515
|
" ",
|
|
1456
|
-
/* @__PURE__ */
|
|
1516
|
+
/* @__PURE__ */ jsx29("br", {}),
|
|
1457
1517
|
"If the trade fails due to too-low slippage, you will receive USDC on the destination chain."
|
|
1458
1518
|
] })
|
|
1459
1519
|
] })
|
|
@@ -1462,23 +1522,24 @@ var Settings = ({
|
|
|
1462
1522
|
};
|
|
1463
1523
|
|
|
1464
1524
|
// src/components/TxConfigForm/FeesDetails.tsx
|
|
1465
|
-
import { jsx as
|
|
1525
|
+
import { jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1466
1526
|
var FeesDetails = ({
|
|
1467
1527
|
isGettingRoute,
|
|
1468
1528
|
route,
|
|
1469
1529
|
paymentToken,
|
|
1470
1530
|
dstToken,
|
|
1471
1531
|
expressChecked,
|
|
1532
|
+
exceedsExpressDeliveryLimit,
|
|
1472
1533
|
slippage,
|
|
1473
1534
|
feesDetailsShown,
|
|
1474
1535
|
setFeesDetailsShown
|
|
1475
1536
|
}) => {
|
|
1476
|
-
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3 globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4 mb-1", children: [
|
|
1477
|
-
/* @__PURE__ */ jsxs11("div", { className: "flex w-full items-center justify-between text-xs sm:text-sm
|
|
1537
|
+
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3 globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-2 sm:p-4 mb-1", children: [
|
|
1538
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex w-full items-center justify-between text-xs sm:text-sm", children: [
|
|
1478
1539
|
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-1 font-medium text-white opacity-60", children: [
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
-
isGettingRoute ? /* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ jsx30(CoinsIcon, {}),
|
|
1541
|
+
/* @__PURE__ */ jsx30("div", { className: "mr-1", children: "Fees:" }),
|
|
1542
|
+
isGettingRoute ? /* @__PURE__ */ jsx30(Skeleton, { width: "w-20", height: "h-4" }) : ` ${weiToHumanReadable({
|
|
1482
1543
|
amount: safeBigNumberFrom(
|
|
1483
1544
|
route?.xSwapFees.xSwapFee.nativeFee || "0"
|
|
1484
1545
|
).add(safeBigNumberFrom(route?.xSwapFees.ccipFee || "0")).add(
|
|
@@ -1492,57 +1553,58 @@ var FeesDetails = ({
|
|
|
1492
1553
|
/* @__PURE__ */ jsxs11(
|
|
1493
1554
|
"div",
|
|
1494
1555
|
{
|
|
1495
|
-
className: `flex gap-1 items-center font-medium ${expressChecked ? "text-x_green" : "text-white opacity-60"}`,
|
|
1556
|
+
className: `flex gap-1 items-center font-medium ${expressChecked && !exceedsExpressDeliveryLimit ? "text-x_green" : "text-white opacity-60"}`,
|
|
1496
1557
|
children: [
|
|
1497
|
-
/* @__PURE__ */
|
|
1498
|
-
expressChecked ? "Fast ~ 30sec " : "Normal ~ 30min"
|
|
1558
|
+
/* @__PURE__ */ jsx30(TimerIcon, {}),
|
|
1559
|
+
expressChecked && !exceedsExpressDeliveryLimit ? "Fast ~ 30sec " : "Normal ~ 30min"
|
|
1499
1560
|
]
|
|
1500
1561
|
}
|
|
1501
1562
|
),
|
|
1502
|
-
/* @__PURE__ */
|
|
1563
|
+
/* @__PURE__ */ jsx30(
|
|
1503
1564
|
"div",
|
|
1504
1565
|
{
|
|
1505
1566
|
onClick: () => setFeesDetailsShown((x) => !x),
|
|
1506
1567
|
className: "font-medium text-white opacity-60 cursor-pointer flex items-center w-[15px] h-[9px]",
|
|
1507
|
-
children: feesDetailsShown ? /* @__PURE__ */
|
|
1568
|
+
children: feesDetailsShown ? /* @__PURE__ */ jsx30(ChevronUpIcon, {}) : /* @__PURE__ */ jsx30(ChevronDownIcon, {})
|
|
1508
1569
|
}
|
|
1509
1570
|
)
|
|
1510
1571
|
] })
|
|
1511
1572
|
] }),
|
|
1512
|
-
feesDetailsShown && /* @__PURE__ */ jsxs11("div", { className: "flex w-full items-center justify-between ", children: [
|
|
1573
|
+
feesDetailsShown && /* @__PURE__ */ jsxs11("div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
1513
1574
|
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col text-[10px] gap-1", children: [
|
|
1514
|
-
/* @__PURE__ */ jsxs11("div", { className: "font-medium text-white opacity-60", children: [
|
|
1515
|
-
"CCIP Fee:",
|
|
1516
|
-
` ${weiToHumanReadable({
|
|
1575
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
|
|
1576
|
+
/* @__PURE__ */ jsx30("div", { children: "CCIP Fee:" }),
|
|
1577
|
+
/* @__PURE__ */ jsx30("div", { className: "whitespace-nowrap", children: ` ${weiToHumanReadable({
|
|
1517
1578
|
amount: route?.xSwapFees.ccipFee || "0",
|
|
1518
1579
|
decimals: 18,
|
|
1519
1580
|
precisionFractionalPlaces: 5
|
|
1520
|
-
})} ${paymentToken?.symbol}`
|
|
1581
|
+
})} ${paymentToken?.symbol}` })
|
|
1521
1582
|
] }),
|
|
1522
|
-
/* @__PURE__ */ jsxs11("div", { className: "font-medium text-white opacity-60", children: [
|
|
1523
|
-
"Native Fee:",
|
|
1524
|
-
` ${weiToHumanReadable({
|
|
1583
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
|
|
1584
|
+
/* @__PURE__ */ jsx30("div", { children: "Native Fee:" }),
|
|
1585
|
+
/* @__PURE__ */ jsx30("div", { className: "whitespace-nowrap", children: ` ${weiToHumanReadable({
|
|
1525
1586
|
amount: route?.xSwapFees.xSwapFee.nativeFee || "0",
|
|
1526
1587
|
decimals: 18,
|
|
1527
1588
|
precisionFractionalPlaces: 5
|
|
1528
|
-
})} ${paymentToken?.symbol}`
|
|
1589
|
+
})} ${paymentToken?.symbol}` })
|
|
1529
1590
|
] })
|
|
1530
1591
|
] }),
|
|
1531
1592
|
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col text-[10px] gap-1", children: [
|
|
1532
|
-
/* @__PURE__ */ jsxs11("div", { className: "font-medium text-white opacity-60", children: [
|
|
1533
|
-
"Slippage:
|
|
1534
|
-
`${slippage}%`
|
|
1593
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
|
|
1594
|
+
/* @__PURE__ */ jsx30("div", { children: "Slippage:" }),
|
|
1595
|
+
/* @__PURE__ */ jsx30("div", { className: "whitespace-nowrap", children: `${slippage}%` })
|
|
1535
1596
|
] }),
|
|
1536
|
-
/* @__PURE__ */ jsxs11("div", { className: "font-medium text-white opacity-60", children: [
|
|
1537
|
-
"Min amount out:",
|
|
1538
|
-
" ",
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1597
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
|
|
1598
|
+
/* @__PURE__ */ jsx30("div", { children: "Min amount out:" }),
|
|
1599
|
+
/* @__PURE__ */ jsxs11("div", { className: "whitespace-nowrap", children: [
|
|
1600
|
+
weiToHumanReadable({
|
|
1601
|
+
amount: route?.minAmountOut || "0",
|
|
1602
|
+
decimals: dstToken?.decimals || 18,
|
|
1603
|
+
precisionFractionalPlaces: 5
|
|
1604
|
+
}),
|
|
1605
|
+
" ",
|
|
1606
|
+
dstToken?.symbol
|
|
1607
|
+
] })
|
|
1546
1608
|
] })
|
|
1547
1609
|
] })
|
|
1548
1610
|
] })
|
|
@@ -1554,24 +1616,32 @@ import { useEffect as useEffect5, useMemo as useMemo3, useState as useState5 } f
|
|
|
1554
1616
|
|
|
1555
1617
|
// src/components/TxConfigForm/UsdPrice.tsx
|
|
1556
1618
|
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
1557
|
-
import { Fragment as Fragment3, jsx as
|
|
1619
|
+
import { Fragment as Fragment3, jsx as jsx31 } from "react/jsx-runtime";
|
|
1558
1620
|
var UsdPrice = ({
|
|
1559
1621
|
prices,
|
|
1560
1622
|
token,
|
|
1561
1623
|
amount = "0",
|
|
1562
|
-
loading = false
|
|
1624
|
+
loading = false,
|
|
1625
|
+
type,
|
|
1626
|
+
setExceedsExpressDeliveryLimit
|
|
1563
1627
|
}) => {
|
|
1564
1628
|
const [usdPrice, setUsdPrice] = useState4("0.00");
|
|
1565
1629
|
useEffect4(() => {
|
|
1566
1630
|
if (token && prices && prices[token.address]) {
|
|
1567
|
-
|
|
1631
|
+
const newUsdPrice = (Number(amount) * Number(prices[token.address])).toFixed(2);
|
|
1632
|
+
if (type === "src" && setExceedsExpressDeliveryLimit) {
|
|
1633
|
+
setExceedsExpressDeliveryLimit(
|
|
1634
|
+
Number(newUsdPrice) > EXPRESS_DELIVERY_LIMIT
|
|
1635
|
+
);
|
|
1636
|
+
}
|
|
1637
|
+
setUsdPrice(newUsdPrice);
|
|
1568
1638
|
}
|
|
1569
1639
|
}, [token, prices, amount]);
|
|
1570
|
-
return /* @__PURE__ */
|
|
1640
|
+
return /* @__PURE__ */ jsx31("div", { className: "opacity-60 py-4", children: loading ? /* @__PURE__ */ jsx31(Skeleton, { width: "w-12", height: "h-4" }) : token ? prices && prices[token.address] ? /* @__PURE__ */ jsx31("div", { children: `$${usdPrice}` }) : /* @__PURE__ */ jsx31(Alert, { desc: "Unknown price" }) : /* @__PURE__ */ jsx31(Fragment3, { children: "$0.00" }) });
|
|
1571
1641
|
};
|
|
1572
1642
|
|
|
1573
1643
|
// src/components/TxConfigForm/Summary.tsx
|
|
1574
|
-
import { jsx as
|
|
1644
|
+
import { jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1575
1645
|
var Summary = ({
|
|
1576
1646
|
isGettingRoute,
|
|
1577
1647
|
route,
|
|
@@ -1597,38 +1667,41 @@ var Summary = ({
|
|
|
1597
1667
|
return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4 relative", children: [
|
|
1598
1668
|
/* @__PURE__ */ jsxs12("div", { className: "flex justify-between", children: [
|
|
1599
1669
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-1", children: [
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
-
isGettingRoute ? /* @__PURE__ */
|
|
1670
|
+
/* @__PURE__ */ jsx32("p", { className: "text-[rgba(255,255,255,0.6)] text-sm", children: "You receive" }),
|
|
1671
|
+
isGettingRoute ? /* @__PURE__ */ jsx32(
|
|
1602
1672
|
Skeleton,
|
|
1603
1673
|
{
|
|
1604
1674
|
width: "w-[100px]",
|
|
1605
1675
|
height: "h-[36px]",
|
|
1606
1676
|
other: "sm:w-[190px]"
|
|
1607
1677
|
}
|
|
1608
|
-
) : /* @__PURE__ */
|
|
1609
|
-
amountReadable,
|
|
1610
|
-
/* @__PURE__ */ jsx30("div", { className: "w-4 sm:w-6 h-4 sm:h-6", children: /* @__PURE__ */ jsx30("img", { src: dstToken?.image, alt: dstToken?.name }) }),
|
|
1611
|
-
/* @__PURE__ */ jsx30("p", { className: "text-base sm:text-xl", children: dstToken?.symbol })
|
|
1612
|
-
] })
|
|
1678
|
+
) : /* @__PURE__ */ jsx32("div", { className: "flex gap-2 items-center text-white text-xl sm:text-3xl", children: amountReadable })
|
|
1613
1679
|
] }),
|
|
1614
|
-
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-1 text-sm", children: [
|
|
1615
|
-
/* @__PURE__ */
|
|
1616
|
-
|
|
1617
|
-
/* @__PURE__ */
|
|
1618
|
-
|
|
1680
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-end gap-1 text-sm", children: [
|
|
1681
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex justify-center items-center gap-1", children: [
|
|
1682
|
+
/* @__PURE__ */ jsx32("div", { className: "w-4 sm:w-6 h-4 sm:h-6", children: /* @__PURE__ */ jsx32("img", { src: dstToken?.image, alt: dstToken?.name }) }),
|
|
1683
|
+
/* @__PURE__ */ jsx32("p", { className: "text-base sm:text-xl", children: dstToken?.symbol })
|
|
1684
|
+
] }),
|
|
1685
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex justify-center items-center gap-1", children: [
|
|
1686
|
+
/* @__PURE__ */ jsx32("p", { className: "text-[rgba(255,255,255,0.6)] text-right", children: "on " }),
|
|
1687
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-1 text-white", children: [
|
|
1688
|
+
/* @__PURE__ */ jsx32("div", { className: "w-4 h-4", children: /* @__PURE__ */ jsx32("img", { src: dstChain?.image, alt: dstChain?.name }) }),
|
|
1689
|
+
/* @__PURE__ */ jsx32("div", { children: dstChain?.displayName })
|
|
1690
|
+
] })
|
|
1619
1691
|
] })
|
|
1620
1692
|
] })
|
|
1621
1693
|
] }),
|
|
1622
|
-
/* @__PURE__ */
|
|
1694
|
+
/* @__PURE__ */ jsx32(
|
|
1623
1695
|
UsdPrice,
|
|
1624
1696
|
{
|
|
1625
1697
|
prices,
|
|
1626
1698
|
token: dstToken,
|
|
1627
1699
|
amount: amountReadable,
|
|
1628
|
-
loading: isGettingRoute
|
|
1700
|
+
loading: isGettingRoute,
|
|
1701
|
+
type: "dst"
|
|
1629
1702
|
}
|
|
1630
1703
|
),
|
|
1631
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ jsx32("div", { className: "absolute right-[50%] top-0 translate-x-1/2 translate-y-[-60%] globalBorder rounded-xl p-[5px] bg-[rgba(15,15,15,1)]", children: /* @__PURE__ */ jsx32("div", { className: " flex items-center justify-center rounded-lg w-8 h-8 bg-gradient-to-l from-[rgba(54,129,198,1)] to-[rgba(43,74,157,1)] ", children: /* @__PURE__ */ jsx32(ArrowDownIcon, {}) }) })
|
|
1632
1705
|
] });
|
|
1633
1706
|
};
|
|
1634
1707
|
|
|
@@ -1638,7 +1711,7 @@ import { useState as useState7, useEffect as useEffect6, useRef as useRef2, useM
|
|
|
1638
1711
|
// src/components/TxConfigForm/TokenPicker.tsx
|
|
1639
1712
|
import { useState as useState6, useMemo as useMemo4 } from "react";
|
|
1640
1713
|
import { createPortal } from "react-dom";
|
|
1641
|
-
import { Fragment as Fragment4, jsx as
|
|
1714
|
+
import { Fragment as Fragment4, jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1642
1715
|
var TokenPicker = ({
|
|
1643
1716
|
onCloseClick,
|
|
1644
1717
|
tokens,
|
|
@@ -1665,24 +1738,24 @@ var TokenPicker = ({
|
|
|
1665
1738
|
);
|
|
1666
1739
|
}, [searchValue, tokens]);
|
|
1667
1740
|
return modalRoot ? createPortal(
|
|
1668
|
-
/* @__PURE__ */
|
|
1741
|
+
/* @__PURE__ */ jsx33(
|
|
1669
1742
|
"div",
|
|
1670
1743
|
{
|
|
1671
1744
|
onClick: onBackdropClick,
|
|
1672
1745
|
className: "box-border fixed h-full w-full z-[999] top-0 left-0 bg-[rgba(0,0,0,0.8)] flex items-center justify-center p-5",
|
|
1673
1746
|
children: /* @__PURE__ */ jsxs13("div", { className: "relative bg-black rounded-3xl p-6 max-h-[70%] flex flex-col text-base text-white w-[452px] h-[70%] border border-solid border-[rgba(255,255,255,0.2)]", children: [
|
|
1674
|
-
/* @__PURE__ */
|
|
1747
|
+
/* @__PURE__ */ jsx33(
|
|
1675
1748
|
"div",
|
|
1676
1749
|
{
|
|
1677
1750
|
onClick: onCloseClick,
|
|
1678
1751
|
className: "absolute top-4 right-4 cursor-pointer",
|
|
1679
|
-
children: /* @__PURE__ */
|
|
1752
|
+
children: /* @__PURE__ */ jsx33(CloseIcon, {})
|
|
1680
1753
|
}
|
|
1681
1754
|
),
|
|
1682
|
-
/* @__PURE__ */
|
|
1755
|
+
/* @__PURE__ */ jsx33("p", { className: "text-base mb-4", children: "Pick a token" }),
|
|
1683
1756
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center border border-solid border-[rgba(255,255,255,0.1)] rounded-lg py-0 px-3 gap-2 bg-[rgba(15,15,15,1)]", children: [
|
|
1684
|
-
/* @__PURE__ */
|
|
1685
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ jsx33("div", { className: "w-6 h-6", children: /* @__PURE__ */ jsx33(SearchIcon, {}) }),
|
|
1758
|
+
/* @__PURE__ */ jsx33(
|
|
1686
1759
|
"input",
|
|
1687
1760
|
{
|
|
1688
1761
|
placeholder: "Search name or paste address",
|
|
@@ -1692,7 +1765,7 @@ var TokenPicker = ({
|
|
|
1692
1765
|
}
|
|
1693
1766
|
)
|
|
1694
1767
|
] }),
|
|
1695
|
-
/* @__PURE__ */
|
|
1768
|
+
/* @__PURE__ */ jsx33("div", { className: "my-4 mx-0 flex flex-wrap gap-3", children: tokens?.filter((token) => token?.quickPick).map((token) => /* @__PURE__ */ jsxs13(
|
|
1696
1769
|
"div",
|
|
1697
1770
|
{
|
|
1698
1771
|
className: `flex gap-2 py-1 px-2 items-center bg-[rgb(15,15,15)] rounded-2xl border border-solid border-[rgba(255,255,255,0.1)] hover:bg-[rgb(25,25,25)] hover:cursor-pointer ${token.address === selectedToken?.address ? "bg-[rgb(35, 35, 35)]" : ""}`,
|
|
@@ -1701,14 +1774,14 @@ var TokenPicker = ({
|
|
|
1701
1774
|
onCloseClick();
|
|
1702
1775
|
},
|
|
1703
1776
|
children: [
|
|
1704
|
-
/* @__PURE__ */
|
|
1705
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ jsx33("img", { src: token.image, alt: token.name, className: "w-5" }),
|
|
1778
|
+
/* @__PURE__ */ jsx33("div", { className: "text-sm", children: token.symbol })
|
|
1706
1779
|
]
|
|
1707
1780
|
},
|
|
1708
1781
|
token.address
|
|
1709
1782
|
)) }),
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
/* @__PURE__ */
|
|
1783
|
+
/* @__PURE__ */ jsx33("div", { className: "h-[2px] my-0 mx-[-24px] w-[100%+48px] px-12 bg-[rgba(255,255,255,0.1)]" }),
|
|
1784
|
+
/* @__PURE__ */ jsx33("div", { className: "overflow-y-scroll h-full mx-[-24px] w-[100%+48px] flex flex-col", children: filteredTokens && filteredTokens.length > 0 ? filteredTokens.map((token, index) => /* @__PURE__ */ jsxs13(
|
|
1712
1785
|
"div",
|
|
1713
1786
|
{
|
|
1714
1787
|
className: `flex gap-3 py-2 px-[24px] w-full items-center hover:bg-[rgb(25,25,25)] hover:cursor-pointer ${token.address === selectedToken?.address ? "bg-[rgb(35,35,35)]" : ""}`,
|
|
@@ -1717,29 +1790,29 @@ var TokenPicker = ({
|
|
|
1717
1790
|
onCloseClick();
|
|
1718
1791
|
},
|
|
1719
1792
|
children: [
|
|
1720
|
-
token.image ? /* @__PURE__ */
|
|
1793
|
+
token.image ? /* @__PURE__ */ jsx33(
|
|
1721
1794
|
"img",
|
|
1722
1795
|
{
|
|
1723
1796
|
src: token.image,
|
|
1724
1797
|
alt: token.name,
|
|
1725
1798
|
className: "token-picker__all__logo"
|
|
1726
1799
|
}
|
|
1727
|
-
) : /* @__PURE__ */
|
|
1800
|
+
) : /* @__PURE__ */ jsx33("div", { className: "flex items-center justify-center w-9 h-9 text-[15px] ml-1 rounded-full bg-[#272e40] text-[#e0e7fa]", children: token?.symbol.substring(0, 1) }),
|
|
1728
1801
|
/* @__PURE__ */ jsxs13("div", { className: "flex justify-between items-center gap-1 overflow-hidden grow", children: [
|
|
1729
1802
|
/* @__PURE__ */ jsxs13("div", { className: "flex flex-col leading-[16px]", children: [
|
|
1730
|
-
/* @__PURE__ */
|
|
1731
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ jsx33("div", { className: "overflow-hidden whitespace-nowrap text-ellipsis text-[15px]", children: token.name }),
|
|
1804
|
+
/* @__PURE__ */ jsx33("div", { className: "text-[#888] text-[11px]", children: token.symbol })
|
|
1732
1805
|
] }),
|
|
1733
|
-
signer && /* @__PURE__ */
|
|
1806
|
+
signer && /* @__PURE__ */ jsx33(Fragment4, { children: balances && balances[token.address] && token.decimals ? /* @__PURE__ */ jsx33("div", { className: "text-xs", children: weiToHumanReadable({
|
|
1734
1807
|
amount: balances[token.address]?.toString() || "0",
|
|
1735
1808
|
decimals: token.decimals,
|
|
1736
1809
|
precisionFractionalPlaces: 4
|
|
1737
|
-
}) }) : /* @__PURE__ */
|
|
1810
|
+
}) }) : /* @__PURE__ */ jsx33(Skeleton, { width: "w-12", height: "h-3" }) })
|
|
1738
1811
|
] })
|
|
1739
1812
|
]
|
|
1740
1813
|
},
|
|
1741
1814
|
`${index}_${token.address}`
|
|
1742
|
-
)) : /* @__PURE__ */
|
|
1815
|
+
)) : /* @__PURE__ */ jsx33("div", { className: "mt-4 flex justify-center", children: /* @__PURE__ */ jsx33("p", { className: "text-sm text-white", children: "No tokens found." }) }) })
|
|
1743
1816
|
] })
|
|
1744
1817
|
}
|
|
1745
1818
|
),
|
|
@@ -1748,7 +1821,7 @@ var TokenPicker = ({
|
|
|
1748
1821
|
};
|
|
1749
1822
|
|
|
1750
1823
|
// src/components/TxConfigForm/ChainListElement.tsx
|
|
1751
|
-
import { jsx as
|
|
1824
|
+
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1752
1825
|
var ChainListElement = ({
|
|
1753
1826
|
chain,
|
|
1754
1827
|
setSrcChain,
|
|
@@ -1766,19 +1839,19 @@ var ChainListElement = ({
|
|
|
1766
1839
|
setChainListShown(false);
|
|
1767
1840
|
},
|
|
1768
1841
|
children: [
|
|
1769
|
-
/* @__PURE__ */
|
|
1842
|
+
/* @__PURE__ */ jsx34("img", { width: 12, height: 12, src: chain.image, alt: chain.displayName }),
|
|
1770
1843
|
chain.displayName
|
|
1771
1844
|
]
|
|
1772
1845
|
}
|
|
1773
1846
|
),
|
|
1774
|
-
index !== length - 1 && /* @__PURE__ */
|
|
1847
|
+
index !== length - 1 && /* @__PURE__ */ jsx34("div", { className: "h-px mx-2 bg-[rgba(255,255,255,0.15)]" })
|
|
1775
1848
|
] }, `${chain.ecosystem}-${chain.chainId}`);
|
|
1776
1849
|
};
|
|
1777
1850
|
|
|
1778
1851
|
// src/components/TxConfigForm/BalanceComponent.tsx
|
|
1779
1852
|
import { useMemo as useMemo5 } from "react";
|
|
1780
1853
|
import BigNumber3 from "bignumber.js";
|
|
1781
|
-
import { Fragment as Fragment5, jsx as
|
|
1854
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1782
1855
|
var BalanceComponent = ({ srcToken, balances }) => {
|
|
1783
1856
|
const balanceText = useMemo5(() => {
|
|
1784
1857
|
if (!balances || !srcToken) return "0";
|
|
@@ -1806,12 +1879,12 @@ var BalanceComponent = ({ srcToken, balances }) => {
|
|
|
1806
1879
|
decimals: srcToken.decimals,
|
|
1807
1880
|
precisionFractionalPlaces: 4
|
|
1808
1881
|
}) : 0,
|
|
1809
|
-
/* @__PURE__ */
|
|
1882
|
+
/* @__PURE__ */ jsx35("span", { className: "bg-gradient-to-r from-x_blue_light to-x_blue_dark bg-clip-text text-transparent", children: "Max" })
|
|
1810
1883
|
] });
|
|
1811
1884
|
};
|
|
1812
1885
|
|
|
1813
1886
|
// src/components/TxConfigForm/SwapPanel.tsx
|
|
1814
|
-
import { jsx as
|
|
1887
|
+
import { jsx as jsx36, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1815
1888
|
var SwapPanel = ({
|
|
1816
1889
|
amount,
|
|
1817
1890
|
setAmount,
|
|
@@ -1822,7 +1895,8 @@ var SwapPanel = ({
|
|
|
1822
1895
|
signer,
|
|
1823
1896
|
balances,
|
|
1824
1897
|
prices,
|
|
1825
|
-
supportedChains
|
|
1898
|
+
supportedChains,
|
|
1899
|
+
setExceedsExpressDeliveryLimit
|
|
1826
1900
|
}) => {
|
|
1827
1901
|
const [chainListShown, setChainListShown] = useState7(false);
|
|
1828
1902
|
const [tokenListShown, setTokenListShown] = useState7(false);
|
|
@@ -1859,8 +1933,8 @@ var SwapPanel = ({
|
|
|
1859
1933
|
return /* @__PURE__ */ jsxs16("div", { className: "flex justify-between globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4", children: [
|
|
1860
1934
|
/* @__PURE__ */ jsxs16("div", { className: "flex flex-col justify-between gap-2 overflow-hidden w-1/2", children: [
|
|
1861
1935
|
/* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1", children: [
|
|
1862
|
-
/* @__PURE__ */
|
|
1863
|
-
/* @__PURE__ */
|
|
1936
|
+
/* @__PURE__ */ jsx36("p", { className: "text-white opacity-60 text-xs sm:text-sm font-medium", children: "You pay" }),
|
|
1937
|
+
/* @__PURE__ */ jsx36(
|
|
1864
1938
|
"input",
|
|
1865
1939
|
{
|
|
1866
1940
|
className: "p-0 border-none outline-none bg-transparent text-2xl overflow-ellipsis",
|
|
@@ -1879,13 +1953,15 @@ var SwapPanel = ({
|
|
|
1879
1953
|
}
|
|
1880
1954
|
)
|
|
1881
1955
|
] }),
|
|
1882
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ jsx36("div", { className: "flex items-center text-sm text-[rgba(255,255,255,0.6)]", children: /* @__PURE__ */ jsx36(
|
|
1883
1957
|
UsdPrice,
|
|
1884
1958
|
{
|
|
1885
1959
|
prices,
|
|
1886
1960
|
token: srcToken,
|
|
1887
1961
|
amount,
|
|
1888
|
-
loading: false
|
|
1962
|
+
loading: false,
|
|
1963
|
+
type: "src",
|
|
1964
|
+
setExceedsExpressDeliveryLimit
|
|
1889
1965
|
}
|
|
1890
1966
|
) })
|
|
1891
1967
|
] }),
|
|
@@ -1898,7 +1974,7 @@ var SwapPanel = ({
|
|
|
1898
1974
|
setTokenListShown((state) => !state);
|
|
1899
1975
|
},
|
|
1900
1976
|
children: [
|
|
1901
|
-
/* @__PURE__ */
|
|
1977
|
+
/* @__PURE__ */ jsx36(
|
|
1902
1978
|
"img",
|
|
1903
1979
|
{
|
|
1904
1980
|
height: 16,
|
|
@@ -1907,12 +1983,12 @@ var SwapPanel = ({
|
|
|
1907
1983
|
alt: srcToken?.name
|
|
1908
1984
|
}
|
|
1909
1985
|
),
|
|
1910
|
-
/* @__PURE__ */
|
|
1911
|
-
/* @__PURE__ */
|
|
1986
|
+
/* @__PURE__ */ jsx36("div", { children: srcToken?.symbol }),
|
|
1987
|
+
/* @__PURE__ */ jsx36(DownArrowIcon, {})
|
|
1912
1988
|
]
|
|
1913
1989
|
}
|
|
1914
1990
|
),
|
|
1915
|
-
tokenListShown && /* @__PURE__ */
|
|
1991
|
+
tokenListShown && /* @__PURE__ */ jsx36(
|
|
1916
1992
|
TokenPicker,
|
|
1917
1993
|
{
|
|
1918
1994
|
onCloseClick: () => setTokenListShown(false),
|
|
@@ -1923,12 +1999,12 @@ var SwapPanel = ({
|
|
|
1923
1999
|
balances
|
|
1924
2000
|
}
|
|
1925
2001
|
),
|
|
1926
|
-
/* @__PURE__ */
|
|
2002
|
+
/* @__PURE__ */ jsx36(
|
|
1927
2003
|
"div",
|
|
1928
2004
|
{
|
|
1929
2005
|
onClick: handleMaxClick,
|
|
1930
2006
|
className: "flex gap-1 items-center font-medium text-white opacity-60 py-0.5 cursor-pointer",
|
|
1931
|
-
children: signer && /* @__PURE__ */
|
|
2007
|
+
children: signer && /* @__PURE__ */ jsx36(BalanceComponent, { balances, srcToken })
|
|
1932
2008
|
}
|
|
1933
2009
|
),
|
|
1934
2010
|
/* @__PURE__ */ jsxs16(
|
|
@@ -1938,7 +2014,7 @@ var SwapPanel = ({
|
|
|
1938
2014
|
className: "bg-black globalBorder rounded-2xl whitespace-nowrap flex items-center p-2 cursor-pointer gap-2",
|
|
1939
2015
|
onClick: () => setChainListShown((prev) => !prev),
|
|
1940
2016
|
children: [
|
|
1941
|
-
/* @__PURE__ */
|
|
2017
|
+
/* @__PURE__ */ jsx36(
|
|
1942
2018
|
"img",
|
|
1943
2019
|
{
|
|
1944
2020
|
width: "16",
|
|
@@ -1947,17 +2023,17 @@ var SwapPanel = ({
|
|
|
1947
2023
|
alt: srcChain?.name
|
|
1948
2024
|
}
|
|
1949
2025
|
),
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
2026
|
+
/* @__PURE__ */ jsx36("div", { children: srcChain?.displayName }),
|
|
2027
|
+
/* @__PURE__ */ jsx36(DownArrowIcon, {})
|
|
1952
2028
|
]
|
|
1953
2029
|
}
|
|
1954
2030
|
),
|
|
1955
|
-
chainListShown && /* @__PURE__ */
|
|
2031
|
+
chainListShown && /* @__PURE__ */ jsx36(
|
|
1956
2032
|
"ul",
|
|
1957
2033
|
{
|
|
1958
2034
|
ref: listRef,
|
|
1959
2035
|
className: "bg-black globalBorder rounded-lg whitespace-nowrap z-1 right-0 top-10 px-2 max-w-full max-h-[40vh] overflow-auto absolute text-sm z-20",
|
|
1960
|
-
children: chainListOptions.map((chain, index) => /* @__PURE__ */
|
|
2036
|
+
children: chainListOptions.map((chain, index) => /* @__PURE__ */ jsx36(
|
|
1961
2037
|
ChainListElement,
|
|
1962
2038
|
{
|
|
1963
2039
|
index,
|
|
@@ -1974,9 +2050,9 @@ var SwapPanel = ({
|
|
|
1974
2050
|
};
|
|
1975
2051
|
|
|
1976
2052
|
// src/components/TxConfigForm/ErrorField.tsx
|
|
1977
|
-
import { jsx as
|
|
2053
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1978
2054
|
var ErrorField = ({ error }) => {
|
|
1979
|
-
return /* @__PURE__ */
|
|
2055
|
+
return /* @__PURE__ */ jsx37(
|
|
1980
2056
|
"div",
|
|
1981
2057
|
{
|
|
1982
2058
|
className: `flex justify-center mb-1 items-center w-full rounded-2xl bg-x_error_background border border-solid ${error.length > 0 ? "border-x_error_border" : "border-transparent"}`,
|
|
@@ -1986,15 +2062,15 @@ var ErrorField = ({ error }) => {
|
|
|
1986
2062
|
};
|
|
1987
2063
|
|
|
1988
2064
|
// src/components/TxConfigForm/Description.tsx
|
|
1989
|
-
import { jsx as
|
|
2065
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1990
2066
|
var Description = ({ description }) => {
|
|
1991
|
-
return /* @__PURE__ */
|
|
2067
|
+
return /* @__PURE__ */ jsx38("div", { className: "flex flex-col items-start rounded-lg px-4 py-2", children: /* @__PURE__ */ jsx38("div", { className: "w-full flex gap-4 items-start justify-between text-xl", children: description }) });
|
|
1992
2068
|
};
|
|
1993
2069
|
|
|
1994
2070
|
// src/components/TxConfigForm/Button.tsx
|
|
1995
|
-
import { jsx as
|
|
2071
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
1996
2072
|
var Button = ({ children, onClick, type, disabled }) => {
|
|
1997
|
-
return /* @__PURE__ */
|
|
2073
|
+
return /* @__PURE__ */ jsx39(
|
|
1998
2074
|
"button",
|
|
1999
2075
|
{
|
|
2000
2076
|
className: "text-white border-none rounded-2xl text-xl py-4 cursor-pointer w-full bg-gradient-to-r from-[#3681c6] to-[#2b4a9d] disabled:opacity-25",
|
|
@@ -2007,14 +2083,15 @@ var Button = ({ children, onClick, type, disabled }) => {
|
|
|
2007
2083
|
};
|
|
2008
2084
|
|
|
2009
2085
|
// src/components/TxConfigForm/Form.tsx
|
|
2010
|
-
import { jsx as
|
|
2086
|
+
import { jsx as jsx40, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2011
2087
|
var Form = ({
|
|
2012
2088
|
dstChainId,
|
|
2013
2089
|
dstTokenAddr,
|
|
2014
2090
|
customContractCalls,
|
|
2015
2091
|
desc,
|
|
2016
2092
|
supportedChains,
|
|
2017
|
-
onSubmit
|
|
2093
|
+
onSubmit,
|
|
2094
|
+
onClose
|
|
2018
2095
|
}) => {
|
|
2019
2096
|
const [signer, setSigner] = useState8();
|
|
2020
2097
|
const [dstChain, setDstChain] = useState8();
|
|
@@ -2033,6 +2110,7 @@ var Form = ({
|
|
|
2033
2110
|
const [formError, setFormError] = useState8("");
|
|
2034
2111
|
const [slippage, setSlippage] = useState8("1.5");
|
|
2035
2112
|
const [feesDetailsShown, setFeesDetailsShown] = useState8(false);
|
|
2113
|
+
const [exceedsExpressDeliveryLimit, setExceedsExpressDeliveryLimit] = useState8(false);
|
|
2036
2114
|
const debouncedAmount = useDebounce(amount, 1e3);
|
|
2037
2115
|
const account = useAccount();
|
|
2038
2116
|
const { switchChainAsync } = useSwitchChain();
|
|
@@ -2081,7 +2159,7 @@ var Form = ({
|
|
|
2081
2159
|
toToken: dstTokenAddr,
|
|
2082
2160
|
paymentToken: paymentToken.address,
|
|
2083
2161
|
slippage: Number(slippage),
|
|
2084
|
-
expressDelivery: expressChecked,
|
|
2162
|
+
expressDelivery: expressChecked && !exceedsExpressDeliveryLimit,
|
|
2085
2163
|
customContractCalls
|
|
2086
2164
|
}).then((response) => {
|
|
2087
2165
|
setRoute(response);
|
|
@@ -2140,19 +2218,20 @@ var Form = ({
|
|
|
2140
2218
|
return /* @__PURE__ */ jsxs17(
|
|
2141
2219
|
"form",
|
|
2142
2220
|
{
|
|
2143
|
-
className: "flex flex-col gap-2 z-10 my-0
|
|
2221
|
+
className: "flex flex-col gap-2 z-10 my-0 p-2 md:p-4 rounded-3xl overflow-hidden font-light sm:w-x_desktop",
|
|
2144
2222
|
onSubmit: handleSubmit,
|
|
2145
2223
|
children: [
|
|
2146
|
-
/* @__PURE__ */
|
|
2224
|
+
/* @__PURE__ */ jsx40(
|
|
2147
2225
|
TopBar,
|
|
2148
2226
|
{
|
|
2149
2227
|
signer,
|
|
2150
2228
|
historyTabShown,
|
|
2151
2229
|
setHistoryTabShown,
|
|
2152
|
-
setSettingsShown
|
|
2230
|
+
setSettingsShown,
|
|
2231
|
+
onClose
|
|
2153
2232
|
}
|
|
2154
2233
|
),
|
|
2155
|
-
settingsShown && /* @__PURE__ */
|
|
2234
|
+
settingsShown && /* @__PURE__ */ jsx40(
|
|
2156
2235
|
Settings,
|
|
2157
2236
|
{
|
|
2158
2237
|
expressChecked,
|
|
@@ -2162,9 +2241,9 @@ var Form = ({
|
|
|
2162
2241
|
setSlippage
|
|
2163
2242
|
}
|
|
2164
2243
|
),
|
|
2165
|
-
historyTabShown ? /* @__PURE__ */
|
|
2166
|
-
desc && /* @__PURE__ */
|
|
2167
|
-
/* @__PURE__ */
|
|
2244
|
+
historyTabShown ? /* @__PURE__ */ jsx40(History, { signer, supportedChains }) : /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-2", children: [
|
|
2245
|
+
desc && /* @__PURE__ */ jsx40(Description, { description: desc }),
|
|
2246
|
+
/* @__PURE__ */ jsx40(
|
|
2168
2247
|
SwapPanel,
|
|
2169
2248
|
{
|
|
2170
2249
|
amount,
|
|
@@ -2176,10 +2255,11 @@ var Form = ({
|
|
|
2176
2255
|
balances,
|
|
2177
2256
|
prices,
|
|
2178
2257
|
supportedChains,
|
|
2179
|
-
setSrcChain
|
|
2258
|
+
setSrcChain,
|
|
2259
|
+
setExceedsExpressDeliveryLimit
|
|
2180
2260
|
}
|
|
2181
2261
|
),
|
|
2182
|
-
/* @__PURE__ */
|
|
2262
|
+
/* @__PURE__ */ jsx40(
|
|
2183
2263
|
Summary,
|
|
2184
2264
|
{
|
|
2185
2265
|
isGettingRoute,
|
|
@@ -2188,7 +2268,7 @@ var Form = ({
|
|
|
2188
2268
|
dstChain
|
|
2189
2269
|
}
|
|
2190
2270
|
),
|
|
2191
|
-
/* @__PURE__ */
|
|
2271
|
+
/* @__PURE__ */ jsx40(
|
|
2192
2272
|
FeesDetails,
|
|
2193
2273
|
{
|
|
2194
2274
|
route,
|
|
@@ -2196,13 +2276,14 @@ var Form = ({
|
|
|
2196
2276
|
paymentToken,
|
|
2197
2277
|
dstToken,
|
|
2198
2278
|
expressChecked,
|
|
2279
|
+
exceedsExpressDeliveryLimit,
|
|
2199
2280
|
slippage,
|
|
2200
2281
|
feesDetailsShown,
|
|
2201
2282
|
setFeesDetailsShown
|
|
2202
2283
|
}
|
|
2203
2284
|
),
|
|
2204
|
-
formError.length > 0 && /* @__PURE__ */
|
|
2205
|
-
signer && srcChain && srcChain.chainId !== account.chainId?.toString() ? /* @__PURE__ */
|
|
2285
|
+
formError.length > 0 && /* @__PURE__ */ jsx40(ErrorField, { error: formError }),
|
|
2286
|
+
signer && srcChain && srcChain.chainId !== account.chainId?.toString() ? /* @__PURE__ */ jsx40(Button, { type: "button", onClick: handleSwitchChain, children: "Switch chain" }) : /* @__PURE__ */ jsx40(
|
|
2206
2287
|
Button,
|
|
2207
2288
|
{
|
|
2208
2289
|
type: "submit",
|
|
@@ -2217,7 +2298,7 @@ var Form = ({
|
|
|
2217
2298
|
};
|
|
2218
2299
|
|
|
2219
2300
|
// src/components/TxConfigForm/index.tsx
|
|
2220
|
-
import { jsx as
|
|
2301
|
+
import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2221
2302
|
var TxConfigForm = ({
|
|
2222
2303
|
dstChainId,
|
|
2223
2304
|
dstTokenAddr,
|
|
@@ -2239,13 +2320,13 @@ var TxConfigForm = ({
|
|
|
2239
2320
|
() => getWagmiConfig(supportedChains),
|
|
2240
2321
|
supportedChains
|
|
2241
2322
|
);
|
|
2242
|
-
return /* @__PURE__ */
|
|
2323
|
+
return /* @__PURE__ */ jsx41(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx41(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx41(
|
|
2243
2324
|
"div",
|
|
2244
2325
|
{
|
|
2245
2326
|
className: "top-0 left-0 right-0 bottom-0 bg-[rgba(0,0,0,0.8)] fixed flex items-center justify-center z-10",
|
|
2246
2327
|
onClick: onBackdropClick,
|
|
2247
|
-
children: /* @__PURE__ */ jsxs18("div", { className: "relative bg-black rounded-3xl
|
|
2248
|
-
/* @__PURE__ */
|
|
2328
|
+
children: /* @__PURE__ */ jsxs18("div", { className: "relative bg-black rounded-3xl overflow-auto text-white border-2 border-solid border-[rgba(255,255,255,0.1)]", children: [
|
|
2329
|
+
/* @__PURE__ */ jsx41(
|
|
2249
2330
|
Form,
|
|
2250
2331
|
{
|
|
2251
2332
|
dstChainId,
|
|
@@ -2253,18 +2334,11 @@ var TxConfigForm = ({
|
|
|
2253
2334
|
customContractCalls,
|
|
2254
2335
|
desc,
|
|
2255
2336
|
supportedChains,
|
|
2256
|
-
onSubmit
|
|
2337
|
+
onSubmit,
|
|
2338
|
+
onClose
|
|
2257
2339
|
}
|
|
2258
2340
|
),
|
|
2259
|
-
/* @__PURE__ */
|
|
2260
|
-
"div",
|
|
2261
|
-
{
|
|
2262
|
-
className: "absolute top-7 right-4 cursor-pointer text-white",
|
|
2263
|
-
onClick: onClose,
|
|
2264
|
-
children: /* @__PURE__ */ jsx39(CloseIcon, {})
|
|
2265
|
-
}
|
|
2266
|
-
),
|
|
2267
|
-
/* @__PURE__ */ jsx39(PoweredBy, {})
|
|
2341
|
+
/* @__PURE__ */ jsx41(PoweredBy, {})
|
|
2268
2342
|
] })
|
|
2269
2343
|
}
|
|
2270
2344
|
) }) });
|
|
@@ -2277,9 +2351,10 @@ var openTxConfigForm = async ({
|
|
|
2277
2351
|
supportedChains
|
|
2278
2352
|
}) => {
|
|
2279
2353
|
try {
|
|
2280
|
-
return await new Promise((resolve) => {
|
|
2354
|
+
return await new Promise(async (resolve) => {
|
|
2355
|
+
await waitForInitialization();
|
|
2281
2356
|
xswapRoot.render(
|
|
2282
|
-
/* @__PURE__ */
|
|
2357
|
+
/* @__PURE__ */ jsx41(
|
|
2283
2358
|
TxConfigForm,
|
|
2284
2359
|
{
|
|
2285
2360
|
dstChainId,
|
|
@@ -2305,7 +2380,7 @@ var openTxConfigForm = async ({
|
|
|
2305
2380
|
|
|
2306
2381
|
// src/components/TxStatusButton/index.tsx
|
|
2307
2382
|
import { useMemo as useMemo8, useState as useState9 } from "react";
|
|
2308
|
-
import { Fragment as Fragment6, jsx as
|
|
2383
|
+
import { Fragment as Fragment6, jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2309
2384
|
var TxStatusButton = ({ transaction }) => {
|
|
2310
2385
|
const {
|
|
2311
2386
|
fromChain,
|
|
@@ -2336,7 +2411,7 @@ var TxStatusButton = ({ transaction }) => {
|
|
|
2336
2411
|
children: [
|
|
2337
2412
|
/* @__PURE__ */ jsxs19("div", { className: "flex justify-between flex-col gap-2 sm:gap-5 sm:flex-row w-full", children: [
|
|
2338
2413
|
/* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-2", children: [
|
|
2339
|
-
/* @__PURE__ */
|
|
2414
|
+
/* @__PURE__ */ jsx42(
|
|
2340
2415
|
"img",
|
|
2341
2416
|
{
|
|
2342
2417
|
className: "w-5 h-5",
|
|
@@ -2344,16 +2419,16 @@ var TxStatusButton = ({ transaction }) => {
|
|
|
2344
2419
|
alt: "source chain"
|
|
2345
2420
|
}
|
|
2346
2421
|
),
|
|
2347
|
-
/* @__PURE__ */
|
|
2348
|
-
/* @__PURE__ */
|
|
2349
|
-
/* @__PURE__ */
|
|
2350
|
-
/* @__PURE__ */
|
|
2422
|
+
/* @__PURE__ */ jsx42("div", { children: fromChain }),
|
|
2423
|
+
/* @__PURE__ */ jsx42("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ jsx42(ArrowRightIcon, {}) }),
|
|
2424
|
+
/* @__PURE__ */ jsx42("img", { className: "w-5 h-5", src: toChainImage, alt: "to chain" }),
|
|
2425
|
+
/* @__PURE__ */ jsx42("div", { children: toChain })
|
|
2351
2426
|
] }),
|
|
2352
2427
|
/* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-2", children: [
|
|
2353
|
-
/* @__PURE__ */
|
|
2354
|
-
/* @__PURE__ */
|
|
2355
|
-
/* @__PURE__ */
|
|
2356
|
-
/* @__PURE__ */
|
|
2428
|
+
/* @__PURE__ */ jsx42("div", { children: "Sent" }),
|
|
2429
|
+
/* @__PURE__ */ jsx42("div", { children: fromAmount }),
|
|
2430
|
+
/* @__PURE__ */ jsx42("div", { children: fromToken }),
|
|
2431
|
+
/* @__PURE__ */ jsx42(
|
|
2357
2432
|
"img",
|
|
2358
2433
|
{
|
|
2359
2434
|
className: "w-5 h-5",
|
|
@@ -2363,7 +2438,7 @@ var TxStatusButton = ({ transaction }) => {
|
|
|
2363
2438
|
)
|
|
2364
2439
|
] })
|
|
2365
2440
|
] }),
|
|
2366
|
-
/* @__PURE__ */
|
|
2441
|
+
/* @__PURE__ */ jsx42(
|
|
2367
2442
|
"a",
|
|
2368
2443
|
{
|
|
2369
2444
|
href: explorer,
|
|
@@ -2371,21 +2446,21 @@ var TxStatusButton = ({ transaction }) => {
|
|
|
2371
2446
|
rel: "noreferrer",
|
|
2372
2447
|
className: "no-underline cursor-pointer",
|
|
2373
2448
|
"aria-label": "Show the transaction in the chain explorer",
|
|
2374
|
-
children: /* @__PURE__ */
|
|
2449
|
+
children: /* @__PURE__ */ jsx42("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ jsx42(ArrowUpRightIcon, {}) })
|
|
2375
2450
|
}
|
|
2376
2451
|
)
|
|
2377
2452
|
]
|
|
2378
2453
|
}
|
|
2379
2454
|
),
|
|
2380
|
-
/* @__PURE__ */
|
|
2455
|
+
/* @__PURE__ */ jsx42(
|
|
2381
2456
|
"div",
|
|
2382
2457
|
{
|
|
2383
2458
|
className: `text-white rounded-xl cursor-pointer ${background} ${border}`,
|
|
2384
2459
|
children: /* @__PURE__ */ jsxs19("div", { className: "flex gap-2 items-center h-14 w-20 justify-center", children: [
|
|
2385
|
-
/* @__PURE__ */
|
|
2386
|
-
/* @__PURE__ */
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
/* @__PURE__ */
|
|
2460
|
+
/* @__PURE__ */ jsx42(ArrowLeftIcon, {}),
|
|
2461
|
+
/* @__PURE__ */ jsx42("div", { className: "relative flex items-center justify-center w-9 h-9", children: isDone ? /* @__PURE__ */ jsx42("div", { className: "text-x_green w-5 h-5", children: /* @__PURE__ */ jsx42(CheckIcon, {}) }) : /* @__PURE__ */ jsxs19(Fragment6, { children: [
|
|
2462
|
+
/* @__PURE__ */ jsx42("div", { className: "w-5 h-5", children: /* @__PURE__ */ jsx42(XSwapLogo, {}) }),
|
|
2463
|
+
/* @__PURE__ */ jsx42("div", { className: "absolute flex items-center justify-center top-0 left-0 right-0 bottom-0 text-white", children: /* @__PURE__ */ jsx42(CircularProgressIcon, {}) })
|
|
2389
2464
|
] }) })
|
|
2390
2465
|
] })
|
|
2391
2466
|
}
|
|
@@ -2412,14 +2487,14 @@ var updateTransactionDoneInRenderedTransactions = (txHash) => {
|
|
|
2412
2487
|
}
|
|
2413
2488
|
};
|
|
2414
2489
|
var renderTxStatusButtons = () => {
|
|
2415
|
-
const buttons = renderedTransactions.map((item) => /* @__PURE__ */
|
|
2490
|
+
const buttons = renderedTransactions.map((item) => /* @__PURE__ */ jsx42(TxStatusButton, { transaction: item }, item.txHash));
|
|
2416
2491
|
txStatusRoot.render(buttons);
|
|
2417
2492
|
};
|
|
2418
2493
|
|
|
2419
2494
|
// src/components/Skeleton/index.tsx
|
|
2420
|
-
import { jsx as
|
|
2495
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2421
2496
|
var Skeleton = ({ width, height }) => {
|
|
2422
|
-
return /* @__PURE__ */
|
|
2497
|
+
return /* @__PURE__ */ jsx43("div", { className: `bg-current rounded animate-pulse ${width} ${height}` });
|
|
2423
2498
|
};
|
|
2424
2499
|
|
|
2425
2500
|
// src/services/integrations/monitoring.ts
|