@xswap-link/sdk 0.2.6 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +2 -2
- package/.github/workflows/publish.yml +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/index.css +99 -2
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1178 -409
- package/dist/index.mjs +1205 -430
- package/package.json +1 -1
- package/src/components/Skeleton/index.tsx +1 -1
- package/src/components/Spinner/index.tsx +28 -0
- package/src/components/TxConfigForm/ConfirmationAmount.tsx +91 -0
- package/src/components/TxConfigForm/Description.tsx +5 -3
- package/src/components/TxConfigForm/FeesDetails.tsx +5 -11
- package/src/components/TxConfigForm/Form.tsx +763 -118
- package/src/components/TxConfigForm/HistoryCard.tsx +1 -1
- package/src/components/TxConfigForm/Summary.tsx +9 -8
- package/src/components/TxConfigForm/SwapPanel.tsx +1 -4
- package/src/components/TxConfigForm/UsdPrice.tsx +3 -13
- package/src/components/TxConfigForm/index.tsx +33 -6
- package/src/components/TxStatusButton/index.tsx +12 -2
- package/src/components/icons/ErrorIcon.tsx +32 -0
- package/src/components/icons/SignIcon.tsx +17 -0
- package/src/components/icons/SuccessIcon.tsx +29 -0
- package/src/components/icons/index.ts +3 -0
- package/src/config/init.tsx +27 -10
- package/src/constants/index.ts +2 -2
- package/src/models/payloads/GetSwapTxPayload.ts +2 -0
- package/src/services/integrations/monitoring.ts +10 -3
- package/src/services/integrations/transactions.ts +9 -3
- package/src/utils/contracts.ts +18 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/parseWeb3Error.ts +93 -0
- package/tailwind.config.js +39 -0
package/tailwind.config.js
CHANGED
|
@@ -15,6 +15,45 @@ export default {
|
|
|
15
15
|
x_blue_dark: "rgba(43,74,157,1)",
|
|
16
16
|
x_green_light: "rgba(43,74,157,1)",
|
|
17
17
|
x_green_dark: "rgba(46,125,50,1)",
|
|
18
|
+
|
|
19
|
+
x_gray_100: "#D1D3D4",
|
|
20
|
+
x_gray_200: "#90A4AE",
|
|
21
|
+
x_gray_300: "#3C3C3B",
|
|
22
|
+
x_gray_400: "#272727",
|
|
23
|
+
x_gray_500: "#0F0F0F",
|
|
24
|
+
x_gray_600: "#020202",
|
|
25
|
+
x_green_100: "#11EFAA",
|
|
26
|
+
x_green_200: "#07C166",
|
|
27
|
+
x_green_300: "#4CAF50",
|
|
28
|
+
x_green_400: "#2E7D32",
|
|
29
|
+
x_green_500: "#08493C",
|
|
30
|
+
x_green_600: "#032921",
|
|
31
|
+
x_red_100: "#FFB7B2",
|
|
32
|
+
x_red_200: "#FE796F",
|
|
33
|
+
x_red_300: "#F44336",
|
|
34
|
+
x_red_400: "#C62828",
|
|
35
|
+
x_red_500: "#890000",
|
|
36
|
+
x_red_600: "#540000",
|
|
37
|
+
x_blue_100: "#A0F2FE",
|
|
38
|
+
x_blue_200: "#12AAFF",
|
|
39
|
+
x_blue_300: "#3681C6",
|
|
40
|
+
x_blue_300_20: "#3681C633",
|
|
41
|
+
x_blue_400: "#2B4A9D",
|
|
42
|
+
x_blue_400_20: "#2B4A9D33",
|
|
43
|
+
x_blue_500: "#1C227B",
|
|
44
|
+
x_blue_600: "#0B173A",
|
|
45
|
+
x_purple_100: "#EFA9FF",
|
|
46
|
+
x_purple_200: "#D427FC",
|
|
47
|
+
x_purple_300: "#AC8FFF",
|
|
48
|
+
x_purple_400: "#8247E5",
|
|
49
|
+
x_purple_500: "#46139D",
|
|
50
|
+
x_purple_600: "#2E075F",
|
|
51
|
+
x_orange_100: "#FEECA8",
|
|
52
|
+
x_orange_200: "#FDD835",
|
|
53
|
+
x_orange_300: "#FFCA28",
|
|
54
|
+
x_orange_400: "#F7A80D",
|
|
55
|
+
x_orange_500: "#FF6F00",
|
|
56
|
+
x_orange_600: "#795548",
|
|
18
57
|
},
|
|
19
58
|
width: {
|
|
20
59
|
x_desktop: "600px",
|