@multiversx/sdk-dapp-liquidity 1.1.1-alpha.5 → 1.1.1-alpha.6
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/{bignumber-CKZkoo0g.mjs → bignumber-DYhUzmvI.mjs} +7 -7
- package/{bignumber-B8vjg9qn.js → bignumber-lN9qPw6T.js} +7 -7
- package/{getConnections-BBxOUh4c.mjs → getConnections-DQnXNzbL.mjs} +1 -1
- package/{getConnections-DufiP2Qa.js → getConnections-kO4Pfo50.js} +1 -1
- package/package.json +3 -3
- package/reactjs/components/BridgeForm/Deposit.js +1 -1
- package/reactjs/components/BridgeForm/Deposit.mjs +1 -1
- package/reactjs/components/BridgeForm/Transfer.js +2 -2
- package/reactjs/components/BridgeForm/Transfer.mjs +2 -2
- package/reactjs/components/Connect/BridgeAccountDisplay.js +1 -1
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +1 -1
- package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -1
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +1 -1
- package/reactjs/components/Error/Error.js +1 -1
- package/reactjs/components/Error/Error.mjs +1 -1
- package/reactjs/queries/useCheckAccount.query.js +1 -1
- package/reactjs/queries/useCheckAccount.query.mjs +1 -1
- package/reactjs/queries/useGetNonMvxTokensBalances.query.js +1 -1
- package/reactjs/queries/useGetNonMvxTokensBalances.query.mjs +1 -1
- package/reactjs/utils/getCleanStringAmount.js +1 -1
- package/reactjs/utils/getCleanStringAmount.mjs +1 -1
- package/reactjs/utils/hasEnoughFunds.js +1 -1
- package/reactjs/utils/hasEnoughFunds.mjs +1 -1
- package/reactjs/utils/isStringFloat.js +1 -1
- package/reactjs/utils/isStringFloat.mjs +1 -1
- package/reactjs/utils/mxClsx.js +3 -5
- package/reactjs/utils/mxClsx.mjs +3 -5
- package/reactjs/utils/roundAmount.js +1 -1
- package/reactjs/utils/roundAmount.mjs +1 -1
- package/style.css +0 -6
- package/api/confirmFiatRate.d.ts +0 -19
- package/api/confirmFiatRate.js +0 -34
- package/api/confirmFiatRate.mjs +0 -33
|
@@ -153,24 +153,24 @@ function clone(configObject) {
|
|
|
153
153
|
if (obj.hasOwnProperty(p = "EXPONENTIAL_AT")) {
|
|
154
154
|
v = obj[p];
|
|
155
155
|
if (v && v.pop) {
|
|
156
|
-
intCheck(v[0], -
|
|
156
|
+
intCheck(v[0], -MAX, 0, p);
|
|
157
157
|
intCheck(v[1], 0, MAX, p);
|
|
158
158
|
TO_EXP_NEG = v[0];
|
|
159
159
|
TO_EXP_POS = v[1];
|
|
160
160
|
} else {
|
|
161
|
-
intCheck(v, -
|
|
161
|
+
intCheck(v, -MAX, MAX, p);
|
|
162
162
|
TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
if (obj.hasOwnProperty(p = "RANGE")) {
|
|
166
166
|
v = obj[p];
|
|
167
167
|
if (v && v.pop) {
|
|
168
|
-
intCheck(v[0], -
|
|
168
|
+
intCheck(v[0], -MAX, -1, p);
|
|
169
169
|
intCheck(v[1], 1, MAX, p);
|
|
170
170
|
MIN_EXP = v[0];
|
|
171
171
|
MAX_EXP = v[1];
|
|
172
172
|
} else {
|
|
173
|
-
intCheck(v, -
|
|
173
|
+
intCheck(v, -MAX, MAX, p);
|
|
174
174
|
if (v) {
|
|
175
175
|
MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);
|
|
176
176
|
} else {
|
|
@@ -240,7 +240,7 @@ function clone(configObject) {
|
|
|
240
240
|
if (!BigNumber2.DEBUG) return true;
|
|
241
241
|
var i, n, c = v.c, e = v.e, s = v.s;
|
|
242
242
|
out: if ({}.toString.call(c) == "[object Array]") {
|
|
243
|
-
if ((s === 1 || s === -1) && e >= -
|
|
243
|
+
if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) {
|
|
244
244
|
if (c[0] === 0) {
|
|
245
245
|
if (e === 0 && c.length === 1) return true;
|
|
246
246
|
break out;
|
|
@@ -575,7 +575,7 @@ function clone(configObject) {
|
|
|
575
575
|
for (; len < i; str += "0", len++) ;
|
|
576
576
|
str = toExponential(str, e);
|
|
577
577
|
} else {
|
|
578
|
-
i -= ne;
|
|
578
|
+
i -= ne + (id === 2 && e > ne);
|
|
579
579
|
str = toFixedPoint(str, e, "0");
|
|
580
580
|
if (e + 1 > len) {
|
|
581
581
|
if (--i > 0) for (str += "."; i--; str += "0") ;
|
|
@@ -1080,7 +1080,7 @@ function clone(configObject) {
|
|
|
1080
1080
|
return n;
|
|
1081
1081
|
};
|
|
1082
1082
|
P.shiftedBy = function(k) {
|
|
1083
|
-
intCheck(k, -
|
|
1083
|
+
intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);
|
|
1084
1084
|
return this.times("1e" + k);
|
|
1085
1085
|
};
|
|
1086
1086
|
P.squareRoot = P.sqrt = function() {
|
|
@@ -155,24 +155,24 @@ function clone(configObject) {
|
|
|
155
155
|
if (obj.hasOwnProperty(p = "EXPONENTIAL_AT")) {
|
|
156
156
|
v = obj[p];
|
|
157
157
|
if (v && v.pop) {
|
|
158
|
-
intCheck(v[0], -
|
|
158
|
+
intCheck(v[0], -MAX, 0, p);
|
|
159
159
|
intCheck(v[1], 0, MAX, p);
|
|
160
160
|
TO_EXP_NEG = v[0];
|
|
161
161
|
TO_EXP_POS = v[1];
|
|
162
162
|
} else {
|
|
163
|
-
intCheck(v, -
|
|
163
|
+
intCheck(v, -MAX, MAX, p);
|
|
164
164
|
TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
if (obj.hasOwnProperty(p = "RANGE")) {
|
|
168
168
|
v = obj[p];
|
|
169
169
|
if (v && v.pop) {
|
|
170
|
-
intCheck(v[0], -
|
|
170
|
+
intCheck(v[0], -MAX, -1, p);
|
|
171
171
|
intCheck(v[1], 1, MAX, p);
|
|
172
172
|
MIN_EXP = v[0];
|
|
173
173
|
MAX_EXP = v[1];
|
|
174
174
|
} else {
|
|
175
|
-
intCheck(v, -
|
|
175
|
+
intCheck(v, -MAX, MAX, p);
|
|
176
176
|
if (v) {
|
|
177
177
|
MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);
|
|
178
178
|
} else {
|
|
@@ -242,7 +242,7 @@ function clone(configObject) {
|
|
|
242
242
|
if (!BigNumber2.DEBUG) return true;
|
|
243
243
|
var i, n, c = v.c, e = v.e, s = v.s;
|
|
244
244
|
out: if ({}.toString.call(c) == "[object Array]") {
|
|
245
|
-
if ((s === 1 || s === -1) && e >= -
|
|
245
|
+
if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) {
|
|
246
246
|
if (c[0] === 0) {
|
|
247
247
|
if (e === 0 && c.length === 1) return true;
|
|
248
248
|
break out;
|
|
@@ -577,7 +577,7 @@ function clone(configObject) {
|
|
|
577
577
|
for (; len < i; str += "0", len++) ;
|
|
578
578
|
str = toExponential(str, e);
|
|
579
579
|
} else {
|
|
580
|
-
i -= ne;
|
|
580
|
+
i -= ne + (id === 2 && e > ne);
|
|
581
581
|
str = toFixedPoint(str, e, "0");
|
|
582
582
|
if (e + 1 > len) {
|
|
583
583
|
if (--i > 0) for (str += "."; i--; str += "0") ;
|
|
@@ -1082,7 +1082,7 @@ function clone(configObject) {
|
|
|
1082
1082
|
return n;
|
|
1083
1083
|
};
|
|
1084
1084
|
P.shiftedBy = function(k) {
|
|
1085
|
-
intCheck(k, -
|
|
1085
|
+
intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);
|
|
1086
1086
|
return this.times("1e" + k);
|
|
1087
1087
|
};
|
|
1088
1088
|
P.squareRoot = P.sqrt = function() {
|
|
@@ -24,7 +24,7 @@ function deepEqual(a, b) {
|
|
|
24
24
|
if (length !== Object.keys(b).length)
|
|
25
25
|
return false;
|
|
26
26
|
for (i = length; i-- !== 0; )
|
|
27
|
-
if (!Object.
|
|
27
|
+
if (!Object.hasOwn(b, keys[i]))
|
|
28
28
|
return false;
|
|
29
29
|
for (i = length; i-- !== 0; ) {
|
|
30
30
|
const key = keys[i];
|
|
@@ -26,7 +26,7 @@ function deepEqual(a, b) {
|
|
|
26
26
|
if (length !== Object.keys(b).length)
|
|
27
27
|
return false;
|
|
28
28
|
for (i = length; i-- !== 0; )
|
|
29
|
-
if (!Object.
|
|
29
|
+
if (!Object.hasOwn(b, keys[i]))
|
|
30
30
|
return false;
|
|
31
31
|
for (i = length; i-- !== 0; ) {
|
|
32
32
|
const key = keys[i];
|
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/multiversx/mx-sdk-dapp-liquidity#readme",
|
|
30
30
|
"license": "MIT",
|
|
31
|
-
"version": "1.1.1-alpha.
|
|
31
|
+
"version": "1.1.1-alpha.6",
|
|
32
32
|
"main": "index.js",
|
|
33
33
|
"module": "index.mjs",
|
|
34
34
|
"types": "index.d.ts",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@reown/appkit-adapter-bitcoin": "1.7.1",
|
|
57
57
|
"@reown/appkit-adapter-solana": "1.7.1",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "1.7.1",
|
|
59
|
-
"@solana/web3.js": "1.98.
|
|
59
|
+
"@solana/web3.js": "1.98.2",
|
|
60
60
|
"@tanstack/react-query": "5.71.3",
|
|
61
61
|
"animated-number-react": "0.1.2",
|
|
62
|
-
"axios": "1.7.
|
|
62
|
+
"axios": "1.7.4",
|
|
63
63
|
"formik": "2.4.6",
|
|
64
64
|
"lodash": "4.17.21",
|
|
65
65
|
"numeral": "2.0.6",
|
|
@@ -45,7 +45,7 @@ const reactjs_components_ToggleDirection_ToggleDirection = require("../ToggleDir
|
|
|
45
45
|
const reactjs_components_TokenSelector_TokenSelector = require("../TokenSelector/TokenSelector.js");
|
|
46
46
|
const viem = require("viem");
|
|
47
47
|
const actions = require("viem/actions");
|
|
48
|
-
const getConnections = require("../../../getConnections-
|
|
48
|
+
const getConnections = require("../../../getConnections-kO4Pfo50.js");
|
|
49
49
|
function getAction(client, actionFn, name) {
|
|
50
50
|
const action_implicit = client[actionFn.name];
|
|
51
51
|
if (typeof action_implicit === "function")
|
|
@@ -42,7 +42,7 @@ import { ToggleDirection } from "../ToggleDirection/ToggleDirection.mjs";
|
|
|
42
42
|
import { TokenSelector } from "../TokenSelector/TokenSelector.mjs";
|
|
43
43
|
import { hexToString } from "viem";
|
|
44
44
|
import { waitForTransactionReceipt as waitForTransactionReceipt$1, getTransaction, call } from "viem/actions";
|
|
45
|
-
import { g as getConnections } from "../../../getConnections-
|
|
45
|
+
import { g as getConnections } from "../../../getConnections-DQnXNzbL.mjs";
|
|
46
46
|
function getAction(client, actionFn, name) {
|
|
47
47
|
const action_implicit = client[actionFn.name];
|
|
48
48
|
if (typeof action_implicit === "function")
|
|
@@ -13,7 +13,7 @@ const reactjs_constants_index = require("../../constants/index.js");
|
|
|
13
13
|
const reactjs_context_useWeb3App = require("../../context/useWeb3App.js");
|
|
14
14
|
require("yup");
|
|
15
15
|
require("@multiversx/sdk-dapp-utils/out/helpers/parseAmount");
|
|
16
|
-
require("../../../bignumber-
|
|
16
|
+
require("../../../bignumber-lN9qPw6T.js");
|
|
17
17
|
const reactjs_hooks_useAccount = require("../../hooks/useAccount.js");
|
|
18
18
|
require("axios");
|
|
19
19
|
const reactjs_hooks_useBridgeFormik = require("../../hooks/useBridgeFormik.js");
|
|
@@ -48,7 +48,7 @@ const reactjs_components_Connect_BridgeAccountDisplay = require("../Connect/Brid
|
|
|
48
48
|
const reactjs_components_Connect_MvxAccountDisplay = require("../Connect/MvxAccountDisplay.js");
|
|
49
49
|
const reactjs_components_ToggleDirection_ToggleDirection = require("../ToggleDirection/ToggleDirection.js");
|
|
50
50
|
const reactjs_components_TokenSelector_TokenSelector = require("../TokenSelector/TokenSelector.js");
|
|
51
|
-
const getConnections = require("../../../getConnections-
|
|
51
|
+
const getConnections = require("../../../getConnections-kO4Pfo50.js");
|
|
52
52
|
let fetchRateInterval;
|
|
53
53
|
const Transfer = ({
|
|
54
54
|
mvxChainId,
|
|
@@ -10,7 +10,7 @@ import { safeWindow } from "../../constants/index.mjs";
|
|
|
10
10
|
import { useWeb3App } from "../../context/useWeb3App.mjs";
|
|
11
11
|
import "yup";
|
|
12
12
|
import "@multiversx/sdk-dapp-utils/out/helpers/parseAmount";
|
|
13
|
-
import "../../../bignumber-
|
|
13
|
+
import "../../../bignumber-DYhUzmvI.mjs";
|
|
14
14
|
import { useAccount } from "../../hooks/useAccount.mjs";
|
|
15
15
|
import "axios";
|
|
16
16
|
import { useBridgeFormik, BridgeFormikValuesEnum } from "../../hooks/useBridgeFormik.mjs";
|
|
@@ -45,7 +45,7 @@ import { BridgeAccountDisplay } from "../Connect/BridgeAccountDisplay.mjs";
|
|
|
45
45
|
import { MvxAccountDisplay } from "../Connect/MvxAccountDisplay.mjs";
|
|
46
46
|
import { ToggleDirection } from "../ToggleDirection/ToggleDirection.mjs";
|
|
47
47
|
import { TokenSelector } from "../TokenSelector/TokenSelector.mjs";
|
|
48
|
-
import { g as getConnections } from "../../../getConnections-
|
|
48
|
+
import { g as getConnections } from "../../../getConnections-DQnXNzbL.mjs";
|
|
49
49
|
let fetchRateInterval;
|
|
50
50
|
const Transfer = ({
|
|
51
51
|
mvxChainId,
|
|
@@ -12,7 +12,7 @@ const helpers_getApiURL = require("../../../helpers/getApiURL.js");
|
|
|
12
12
|
const reactjs_context_useWeb3App = require("../../context/useWeb3App.js");
|
|
13
13
|
require("yup");
|
|
14
14
|
require("@multiversx/sdk-dapp-utils/out/helpers/parseAmount");
|
|
15
|
-
require("../../../bignumber-
|
|
15
|
+
require("../../../bignumber-lN9qPw6T.js");
|
|
16
16
|
const reactjs_hooks_useAccount = require("../../hooks/useAccount.js");
|
|
17
17
|
require("axios");
|
|
18
18
|
require("formik");
|
|
@@ -9,7 +9,7 @@ import { getApiURL } from "../../../helpers/getApiURL.mjs";
|
|
|
9
9
|
import { useWeb3App } from "../../context/useWeb3App.mjs";
|
|
10
10
|
import "yup";
|
|
11
11
|
import "@multiversx/sdk-dapp-utils/out/helpers/parseAmount";
|
|
12
|
-
import "../../../bignumber-
|
|
12
|
+
import "../../../bignumber-DYhUzmvI.mjs";
|
|
13
13
|
import { useAccount } from "../../hooks/useAccount.mjs";
|
|
14
14
|
import "axios";
|
|
15
15
|
import "formik";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const bignumber = require("../../../bignumber-
|
|
5
|
+
const bignumber = require("../../../bignumber-lN9qPw6T.js");
|
|
6
6
|
const isString = require("lodash/isString");
|
|
7
7
|
const reactjs_components_DisplayAmount_components_AnimateNumber_AnimateNumber = require("./components/AnimateNumber/AnimateNumber.js");
|
|
8
8
|
const reactjs_components_DisplayAmount_components_PrecisedAmount_PrecisedAmount = require("./components/PrecisedAmount/PrecisedAmount.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { B as BigNumber } from "../../../bignumber-
|
|
2
|
+
import { B as BigNumber } from "../../../bignumber-DYhUzmvI.mjs";
|
|
3
3
|
import isString from "lodash/isString";
|
|
4
4
|
import { AnimateNumber } from "./components/AnimateNumber/AnimateNumber.mjs";
|
|
5
5
|
import { PrecisedAmount } from "./components/PrecisedAmount/PrecisedAmount.mjs";
|
|
@@ -8,7 +8,7 @@ const reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
|
8
8
|
const reactjs_constants_index = require("../../constants/index.js");
|
|
9
9
|
require("@multiversx/sdk-dapp-utils/out/helpers/formatAmount");
|
|
10
10
|
require("@multiversx/sdk-dapp-utils/out/helpers/stringIsInteger");
|
|
11
|
-
require("../../../bignumber-
|
|
11
|
+
require("../../../bignumber-lN9qPw6T.js");
|
|
12
12
|
require("@multiversx/sdk-dapp-utils/out/helpers/parseAmount");
|
|
13
13
|
const reactjs_utils_mxClsx = require("../../utils/mxClsx.js");
|
|
14
14
|
const reactjs_components_base_MxButton_MxButton = require("../base/MxButton/MxButton.js");
|
|
@@ -5,7 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
5
5
|
import { safeWindow } from "../../constants/index.mjs";
|
|
6
6
|
import "@multiversx/sdk-dapp-utils/out/helpers/formatAmount";
|
|
7
7
|
import "@multiversx/sdk-dapp-utils/out/helpers/stringIsInteger";
|
|
8
|
-
import "../../../bignumber-
|
|
8
|
+
import "../../../bignumber-DYhUzmvI.mjs";
|
|
9
9
|
import "@multiversx/sdk-dapp-utils/out/helpers/parseAmount";
|
|
10
10
|
import { mxClsx } from "../../utils/mxClsx.mjs";
|
|
11
11
|
import { MxButton } from "../base/MxButton/MxButton.mjs";
|
|
@@ -9,7 +9,7 @@ const reactjs_context_useWeb3App = require("../context/useWeb3App.js");
|
|
|
9
9
|
require("yup");
|
|
10
10
|
require("react");
|
|
11
11
|
require("@multiversx/sdk-dapp-utils/out/helpers/parseAmount");
|
|
12
|
-
require("../../bignumber-
|
|
12
|
+
require("../../bignumber-lN9qPw6T.js");
|
|
13
13
|
require("wagmi");
|
|
14
14
|
require("axios");
|
|
15
15
|
require("formik");
|
|
@@ -6,7 +6,7 @@ import { useWeb3App } from "../context/useWeb3App.mjs";
|
|
|
6
6
|
import "yup";
|
|
7
7
|
import "react";
|
|
8
8
|
import "@multiversx/sdk-dapp-utils/out/helpers/parseAmount";
|
|
9
|
-
import "../../bignumber-
|
|
9
|
+
import "../../bignumber-DYhUzmvI.mjs";
|
|
10
10
|
import "wagmi";
|
|
11
11
|
import "axios";
|
|
12
12
|
import "formik";
|
|
@@ -7,7 +7,7 @@ const React = require("react");
|
|
|
7
7
|
const reactjs_context_queryClient = require("../context/queryClient.js");
|
|
8
8
|
require("yup");
|
|
9
9
|
require("@multiversx/sdk-dapp-utils/out/helpers/parseAmount");
|
|
10
|
-
require("../../bignumber-
|
|
10
|
+
require("../../bignumber-lN9qPw6T.js");
|
|
11
11
|
require("wagmi");
|
|
12
12
|
const reactjs_hooks_useBalances = require("../hooks/useBalances.js");
|
|
13
13
|
require("formik");
|
|
@@ -4,7 +4,7 @@ import { useMemo } from "react";
|
|
|
4
4
|
import { getQueryClient } from "../context/queryClient.mjs";
|
|
5
5
|
import "yup";
|
|
6
6
|
import "@multiversx/sdk-dapp-utils/out/helpers/parseAmount";
|
|
7
|
-
import "../../bignumber-
|
|
7
|
+
import "../../bignumber-DYhUzmvI.mjs";
|
|
8
8
|
import "wagmi";
|
|
9
9
|
import { useBalances } from "../hooks/useBalances.mjs";
|
|
10
10
|
import "formik";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const bignumber = require("../../bignumber-
|
|
4
|
+
const bignumber = require("../../bignumber-lN9qPw6T.js");
|
|
5
5
|
const reactjs_utils_removeCommas = require("./removeCommas.js");
|
|
6
6
|
const getCleanStringAmount = (amount) => {
|
|
7
7
|
const amountWithoutCommas = reactjs_utils_removeCommas.removeCommas(amount);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BigNumber } from "../../bignumber-
|
|
1
|
+
import { B as BigNumber } from "../../bignumber-DYhUzmvI.mjs";
|
|
2
2
|
import { removeCommas } from "./removeCommas.mjs";
|
|
3
3
|
const getCleanStringAmount = (amount) => {
|
|
4
4
|
const amountWithoutCommas = removeCommas(amount);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const parseAmount = require("@multiversx/sdk-dapp-utils/out/helpers/parseAmount");
|
|
5
|
-
const bignumber = require("../../bignumber-
|
|
5
|
+
const bignumber = require("../../bignumber-lN9qPw6T.js");
|
|
6
6
|
const reactjs_utils_testNumber = require("./testNumber.js");
|
|
7
7
|
function hasEnoughFunds({
|
|
8
8
|
balance,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseAmount } from "@multiversx/sdk-dapp-utils/out/helpers/parseAmount";
|
|
2
|
-
import { B as BigNumber } from "../../bignumber-
|
|
2
|
+
import { B as BigNumber } from "../../bignumber-DYhUzmvI.mjs";
|
|
3
3
|
import { testNumber } from "./testNumber.mjs";
|
|
4
4
|
function hasEnoughFunds({
|
|
5
5
|
balance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const bignumber = require("../../bignumber-
|
|
4
|
+
const bignumber = require("../../bignumber-lN9qPw6T.js");
|
|
5
5
|
const isStringFloat = (amount) => {
|
|
6
6
|
if (amount.match(/^-*[0-9]*\.?[0-9]*$/) === null) {
|
|
7
7
|
return false;
|
package/reactjs/utils/mxClsx.js
CHANGED
|
@@ -5,14 +5,12 @@ const tailwindMerge = require("tailwind-merge");
|
|
|
5
5
|
function r(e) {
|
|
6
6
|
var t, f, n = "";
|
|
7
7
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
8
|
-
else if ("object" == typeof e) if (Array.isArray(e))
|
|
9
|
-
|
|
10
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
11
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
8
|
+
else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
9
|
+
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
12
10
|
return n;
|
|
13
11
|
}
|
|
14
12
|
function clsx() {
|
|
15
|
-
for (var e, t, f = 0, n = ""
|
|
13
|
+
for (var e, t, f = 0, n = ""; f < arguments.length; ) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
16
14
|
return n;
|
|
17
15
|
}
|
|
18
16
|
const mxClsx = (...inputs) => {
|
package/reactjs/utils/mxClsx.mjs
CHANGED
|
@@ -2,14 +2,12 @@ import { twMerge } from "tailwind-merge";
|
|
|
2
2
|
function r(e) {
|
|
3
3
|
var t, f, n = "";
|
|
4
4
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
-
else if ("object" == typeof e) if (Array.isArray(e))
|
|
6
|
-
|
|
7
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
5
|
+
else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
6
|
+
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
9
7
|
return n;
|
|
10
8
|
}
|
|
11
9
|
function clsx() {
|
|
12
|
-
for (var e, t, f = 0, n = ""
|
|
10
|
+
for (var e, t, f = 0, n = ""; f < arguments.length; ) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
11
|
return n;
|
|
14
12
|
}
|
|
15
13
|
const mxClsx = (...inputs) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const bignumber = require("../../bignumber-
|
|
4
|
+
const bignumber = require("../../bignumber-lN9qPw6T.js");
|
|
5
5
|
const reactjs_utils_isStringFloat = require("./isStringFloat.js");
|
|
6
6
|
const roundAmount = (amount, digits, addCommas) => {
|
|
7
7
|
const digitsToUse = digits ?? 4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BigNumber } from "../../bignumber-
|
|
1
|
+
import { B as BigNumber } from "../../bignumber-DYhUzmvI.mjs";
|
|
2
2
|
import { isStringFloat } from "./isStringFloat.mjs";
|
|
3
3
|
const roundAmount = (amount, digits, addCommas) => {
|
|
4
4
|
const digitsToUse = digits ?? 4;
|
package/style.css
CHANGED
|
@@ -1460,17 +1460,13 @@ video {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
.liq-backdrop-blur-sm{
|
|
1462
1462
|
--tw-backdrop-blur: blur(4px);
|
|
1463
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1464
1463
|
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1465
1464
|
}
|
|
1466
1465
|
.liq-backdrop-filter{
|
|
1467
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1468
1466
|
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1469
1467
|
}
|
|
1470
1468
|
.liq-transition{
|
|
1471
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
1472
1469
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1473
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
1474
1470
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1475
1471
|
transition-duration: 150ms;
|
|
1476
1472
|
}
|
|
@@ -1994,9 +1990,7 @@ video {
|
|
|
1994
1990
|
fill: #757985 !important;
|
|
1995
1991
|
--tw-text-opacity: 1 !important;
|
|
1996
1992
|
color: rgb(117 121 133 / var(--tw-text-opacity, 1)) !important;
|
|
1997
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
1998
1993
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1999
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
2000
1994
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2001
1995
|
transition-duration: 150ms;
|
|
2002
1996
|
}
|
package/api/confirmFiatRate.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ConfirmRateDto } from '../dto/ConfirmRate.dto';
|
|
2
|
-
import { AxiosResponse } from 'axios';
|
|
3
|
-
|
|
4
|
-
type ConfirmFiatRateProps = {
|
|
5
|
-
url: string;
|
|
6
|
-
nativeAuthToken: string;
|
|
7
|
-
body: ConfirmRateDto;
|
|
8
|
-
};
|
|
9
|
-
type ConfirmFiatRateResponse = ConfirmRateDto & {
|
|
10
|
-
type: string;
|
|
11
|
-
content: string;
|
|
12
|
-
additionalInfo: {
|
|
13
|
-
url: string;
|
|
14
|
-
checksum: string;
|
|
15
|
-
jsonRequest: string;
|
|
16
|
-
};
|
|
17
|
-
}[];
|
|
18
|
-
export declare function confirmFiatRate({ url, nativeAuthToken, body }: ConfirmFiatRateProps): Promise<AxiosResponse<ConfirmFiatRateResponse>>;
|
|
19
|
-
export {};
|
package/api/confirmFiatRate.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const axios = require("axios");
|
|
5
|
-
const helpers_decodeToken = require("../helpers/decodeToken.js");
|
|
6
|
-
async function confirmFiatRate({
|
|
7
|
-
url,
|
|
8
|
-
nativeAuthToken,
|
|
9
|
-
body
|
|
10
|
-
}) {
|
|
11
|
-
var _a;
|
|
12
|
-
const config = {
|
|
13
|
-
baseURL: url,
|
|
14
|
-
headers: {
|
|
15
|
-
Authorization: `Bearer ${nativeAuthToken}`
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
if (!nativeAuthToken) {
|
|
19
|
-
(_a = config.headers) == null ? true : delete _a.Authorization;
|
|
20
|
-
}
|
|
21
|
-
const decodedToken = await helpers_decodeToken.decodeToken(nativeAuthToken);
|
|
22
|
-
if (config.headers.set) {
|
|
23
|
-
config.headers.set({
|
|
24
|
-
...config.headers,
|
|
25
|
-
origin: (decodedToken == null ? void 0 : decodedToken.origin) ?? ""
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return await axios.post(
|
|
29
|
-
`/rate/confirm`,
|
|
30
|
-
body,
|
|
31
|
-
config
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
exports.confirmFiatRate = confirmFiatRate;
|
package/api/confirmFiatRate.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import axios from "axios";
|
|
2
|
-
import { decodeToken } from "../helpers/decodeToken.mjs";
|
|
3
|
-
async function confirmFiatRate({
|
|
4
|
-
url,
|
|
5
|
-
nativeAuthToken,
|
|
6
|
-
body
|
|
7
|
-
}) {
|
|
8
|
-
var _a;
|
|
9
|
-
const config = {
|
|
10
|
-
baseURL: url,
|
|
11
|
-
headers: {
|
|
12
|
-
Authorization: `Bearer ${nativeAuthToken}`
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
if (!nativeAuthToken) {
|
|
16
|
-
(_a = config.headers) == null ? true : delete _a.Authorization;
|
|
17
|
-
}
|
|
18
|
-
const decodedToken = await decodeToken(nativeAuthToken);
|
|
19
|
-
if (config.headers.set) {
|
|
20
|
-
config.headers.set({
|
|
21
|
-
...config.headers,
|
|
22
|
-
origin: (decodedToken == null ? void 0 : decodedToken.origin) ?? ""
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return await axios.post(
|
|
26
|
-
`/rate/confirm`,
|
|
27
|
-
body,
|
|
28
|
-
config
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
confirmFiatRate
|
|
33
|
-
};
|