@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 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.0-alpha.35",
31
+ "version": "1.1.0-alpha.37",
32
32
  "main": "index.js",
33
33
  "module": "index.mjs",
34
34
  "types": "index.d.ts",
@@ -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,
@@ -20,7 +20,7 @@ const useGetAllTokensQuery = ({
20
20
  return ((_a = error.response) == null ? void 0 : _a.status) === 404;
21
21
  };
22
22
  return useQuery({
23
- queryKey: ["all-tokens"],
23
+ queryKey: ["all-tokens", nativeAuthToken],
24
24
  queryFn,
25
25
  retry,
26
26
  refetchOnWindowFocus: false,
@@ -23,7 +23,7 @@ const useGetChainsQuery = ({
23
23
  return ((_a = error.response) == null ? void 0 : _a.status) === 404;
24
24
  };
25
25
  return reactQuery.useQuery({
26
- queryKey: ["chains"],
26
+ queryKey: ["chains", nativeAuthToken],
27
27
  queryFn,
28
28
  retry,
29
29
  refetchOnWindowFocus: false,
@@ -20,7 +20,7 @@ const useGetChainsQuery = ({
20
20
  return ((_a = error.response) == null ? void 0 : _a.status) === 404;
21
21
  };
22
22
  return useQuery({
23
- queryKey: ["chains"],
23
+ queryKey: ["chains", nativeAuthToken],
24
24
  queryFn,
25
25
  retry,
26
26
  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),
@@ -46,7 +46,8 @@ const useGetHistoryQuery = ({
46
46
  provider,
47
47
  status,
48
48
  tokenIn,
49
- tokenOut
49
+ tokenOut,
50
+ nativeAuthToken
50
51
  ],
51
52
  queryFn,
52
53
  retry,
@@ -43,7 +43,8 @@ const useGetHistoryQuery = ({
43
43
  provider,
44
44
  status,
45
45
  tokenIn,
46
- tokenOut
46
+ tokenOut,
47
+ nativeAuthToken
47
48
  ],
48
49
  queryFn,
49
50
  retry,
@@ -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: ["mvx-tokens-balances", mvxAddress, tokenIdentifiers.sort()],
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: ["mvx-tokens-balances", mvxAddress, tokenIdentifiers.sort()],
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,