@multiversx/sdk-dapp-liquidity 1.1.0-alpha.35 → 1.1.0-alpha.37
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/package.json +1 -1
- package/reactjs/components/BridgeForm/BridgeForm.js +0 -3
- package/reactjs/components/BridgeForm/BridgeForm.mjs +0 -3
- package/reactjs/components/BridgeHistory/BridgeHistory.js +2 -1
- package/reactjs/components/BridgeHistory/BridgeHistory.mjs +2 -1
- package/reactjs/queries/useCheckAccount.query.js +1 -1
- package/reactjs/queries/useCheckAccount.query.mjs +1 -1
- package/reactjs/queries/useGetAllTokens.query.js +1 -1
- package/reactjs/queries/useGetAllTokens.query.mjs +1 -1
- package/reactjs/queries/useGetChains.query.js +1 -1
- package/reactjs/queries/useGetChains.query.mjs +1 -1
- package/reactjs/queries/useGetEvmTokensBalances.query.js +1 -1
- package/reactjs/queries/useGetEvmTokensBalances.query.mjs +1 -1
- package/reactjs/queries/useGetHistory.query.js +2 -1
- package/reactjs/queries/useGetHistory.query.mjs +2 -1
- package/reactjs/queries/useGetMvxTokensBalances.query.js +6 -1
- package/reactjs/queries/useGetMvxTokensBalances.query.mjs +6 -1
package/package.json
CHANGED
|
@@ -147,9 +147,6 @@ const BridgeForm = ({
|
|
|
147
147
|
const { switchNetwork } = react.useAppKitNetwork();
|
|
148
148
|
const { config, options, supportedChains: sdkChains } = reactjs_context_useWeb3App.useWeb3App();
|
|
149
149
|
const chainId = reactjs_hooks_useGetChainId.useGetChainId();
|
|
150
|
-
console.log("BridgeForm", {
|
|
151
|
-
nativeAuthToken
|
|
152
|
-
});
|
|
153
150
|
const {
|
|
154
151
|
evmTokensWithBalances,
|
|
155
152
|
mvxTokensWithBalances,
|
|
@@ -144,9 +144,6 @@ const BridgeForm = ({
|
|
|
144
144
|
const { switchNetwork } = useAppKitNetwork();
|
|
145
145
|
const { config, options, supportedChains: sdkChains } = useWeb3App();
|
|
146
146
|
const chainId = useGetChainId();
|
|
147
|
-
console.log("BridgeForm", {
|
|
148
|
-
nativeAuthToken
|
|
149
|
-
});
|
|
150
147
|
const {
|
|
151
148
|
evmTokensWithBalances,
|
|
152
149
|
mvxTokensWithBalances,
|
|
@@ -31,7 +31,8 @@ const BridgeHistory = ({
|
|
|
31
31
|
}) => {
|
|
32
32
|
const { options } = reactjs_context_useWeb3App.useWeb3App();
|
|
33
33
|
const { data, isLoading, isError } = reactjs_queries_useGetHistory_query.useGetHistoryQuery({
|
|
34
|
-
address: mvxAddress
|
|
34
|
+
address: mvxAddress,
|
|
35
|
+
nativeAuthToken
|
|
35
36
|
});
|
|
36
37
|
const resolveTransactionIcon = React.useCallback((transaction) => {
|
|
37
38
|
switch (transaction.status) {
|
|
@@ -28,7 +28,8 @@ const BridgeHistory = ({
|
|
|
28
28
|
}) => {
|
|
29
29
|
const { options } = useWeb3App();
|
|
30
30
|
const { data, isLoading, isError } = useGetHistoryQuery({
|
|
31
|
-
address: mvxAddress
|
|
31
|
+
address: mvxAddress,
|
|
32
|
+
nativeAuthToken
|
|
32
33
|
});
|
|
33
34
|
const resolveTransactionIcon = useCallback((transaction) => {
|
|
34
35
|
switch (transaction.status) {
|
|
@@ -40,7 +40,7 @@ const useCheckAccountQuery = ({
|
|
|
40
40
|
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
41
41
|
};
|
|
42
42
|
return reactQuery.useQuery({
|
|
43
|
-
queryKey: ["check-account", address, chainId],
|
|
43
|
+
queryKey: ["check-account", address, chainId, nativeAuthToken],
|
|
44
44
|
queryFn,
|
|
45
45
|
retry,
|
|
46
46
|
refetchOnWindowFocus: false,
|
|
@@ -37,7 +37,7 @@ const useCheckAccountQuery = ({
|
|
|
37
37
|
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
38
38
|
};
|
|
39
39
|
return useQuery({
|
|
40
|
-
queryKey: ["check-account", address, chainId],
|
|
40
|
+
queryKey: ["check-account", address, chainId, nativeAuthToken],
|
|
41
41
|
queryFn,
|
|
42
42
|
retry,
|
|
43
43
|
refetchOnWindowFocus: false,
|
|
@@ -23,7 +23,7 @@ const useGetAllTokensQuery = ({
|
|
|
23
23
|
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
24
24
|
};
|
|
25
25
|
return reactQuery.useQuery({
|
|
26
|
-
queryKey: ["all-tokens"],
|
|
26
|
+
queryKey: ["all-tokens", nativeAuthToken],
|
|
27
27
|
queryFn,
|
|
28
28
|
retry,
|
|
29
29
|
refetchOnWindowFocus: false,
|
|
@@ -55,7 +55,7 @@ const useGetEvmTokensBalancesQuery = ({
|
|
|
55
55
|
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
56
56
|
};
|
|
57
57
|
return reactQuery.useQuery({
|
|
58
|
-
queryKey: ["evm-tokens-balances", address, chainId],
|
|
58
|
+
queryKey: ["evm-tokens-balances", address, chainId, nativeAuthToken],
|
|
59
59
|
queryFn,
|
|
60
60
|
retry,
|
|
61
61
|
enabled: Boolean(address) && Boolean(chainId),
|
|
@@ -52,7 +52,7 @@ const useGetEvmTokensBalancesQuery = ({
|
|
|
52
52
|
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
53
53
|
};
|
|
54
54
|
return useQuery({
|
|
55
|
-
queryKey: ["evm-tokens-balances", address, chainId],
|
|
55
|
+
queryKey: ["evm-tokens-balances", address, chainId, nativeAuthToken],
|
|
56
56
|
queryFn,
|
|
57
57
|
retry,
|
|
58
58
|
enabled: Boolean(address) && Boolean(chainId),
|
|
@@ -44,7 +44,12 @@ const useGetMvxTokensBalancesQuery = ({
|
|
|
44
44
|
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
45
45
|
};
|
|
46
46
|
return reactQuery.useQuery({
|
|
47
|
-
queryKey: [
|
|
47
|
+
queryKey: [
|
|
48
|
+
"mvx-tokens-balances",
|
|
49
|
+
mvxAddress,
|
|
50
|
+
tokenIdentifiers.sort(),
|
|
51
|
+
nativeAuthToken
|
|
52
|
+
],
|
|
48
53
|
queryFn,
|
|
49
54
|
retry,
|
|
50
55
|
enabled: Boolean(mvxAddress) && tokenIdentifiers.length > 0,
|
|
@@ -41,7 +41,12 @@ const useGetMvxTokensBalancesQuery = ({
|
|
|
41
41
|
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
42
42
|
};
|
|
43
43
|
return useQuery({
|
|
44
|
-
queryKey: [
|
|
44
|
+
queryKey: [
|
|
45
|
+
"mvx-tokens-balances",
|
|
46
|
+
mvxAddress,
|
|
47
|
+
tokenIdentifiers.sort(),
|
|
48
|
+
nativeAuthToken
|
|
49
|
+
],
|
|
45
50
|
queryFn,
|
|
46
51
|
retry,
|
|
47
52
|
enabled: Boolean(mvxAddress) && tokenIdentifiers.length > 0,
|