@0xsquid/react-hooks 8.11.0 → 8.11.1-beta-danal.1
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/dist/core/client/index.d.ts +1 -0
- package/dist/core/constants.d.ts +2 -0
- package/dist/core/types/danal.d.ts +1 -0
- package/dist/core/types/wallet.d.ts +7 -0
- package/dist/hooks/chains/useSquidChains.d.ts +1 -0
- package/dist/hooks/store/useDepositAddressStore.d.ts +6 -0
- package/dist/hooks/swap/useDepositAddress.d.ts +2 -0
- package/dist/hooks/tokens/useSquidTokens.d.ts +1 -0
- package/dist/hooks/wallet/useMultiChainWallet.d.ts +38 -0
- package/dist/hooks/wallet/useWallet.d.ts +42 -0
- package/dist/{index-BzTFES6t.js → index-BT6G_mgr.js} +143 -18
- package/dist/index-BT6G_mgr.js.map +1 -0
- package/dist/{index-D5bkikGx.js → index-D6rznmR_.js} +140 -19
- package/dist/index-D6rznmR_.js.map +1 -0
- package/dist/{index.es-DaKI7v5_.js → index.es-BZb8tg2z.js} +2 -2
- package/dist/{index.es-DaKI7v5_.js.map → index.es-BZb8tg2z.js.map} +1 -1
- package/dist/{index.es-wL3I3c3h.js → index.es-Dl19u5sy.js} +2 -2
- package/dist/{index.es-wL3I3c3h.js.map → index.es-Dl19u5sy.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/{secretService-BMH_eXJd.js → secretService-Dvc9Dg4U.js} +2 -2
- package/dist/{secretService-BMH_eXJd.js.map → secretService-Dvc9Dg4U.js.map} +1 -1
- package/dist/{secretService-D70MRo5w.js → secretService-TP5V9Jwg.js} +2 -2
- package/dist/{secretService-D70MRo5w.js.map → secretService-TP5V9Jwg.js.map} +1 -1
- package/dist/server.esm.js +6 -0
- package/dist/server.esm.js.map +1 -1
- package/dist/server.js +6 -0
- package/dist/server.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/internal/danalService.d.ts +8 -0
- package/dist/services/internal/transactionService.d.ts +8 -0
- package/dist/{stellarService.client-DhwF4F1c.js → stellarService.client-WTkVJJhn.js} +2 -2
- package/dist/{stellarService.client-DhwF4F1c.js.map → stellarService.client-WTkVJJhn.js.map} +1 -1
- package/dist/{stellarService.client-BpCW1qZY.js → stellarService.client-c48cnGgL.js} +2 -2
- package/dist/{stellarService.client-BpCW1qZY.js.map → stellarService.client-c48cnGgL.js.map} +1 -1
- package/dist/tests/danalService.test.d.ts +1 -0
- package/package.json +2 -2
- package/dist/index-BzTFES6t.js.map +0 -1
- package/dist/index-D5bkikGx.js.map +0 -1
|
@@ -59,6 +59,7 @@ const suiZeroAddress = "0x0000000000000000000000000000000000000000";
|
|
|
59
59
|
const xrplZeroAddress = "rrrrrrrrrrrrrrrrrrrrrhoLvTp";
|
|
60
60
|
const stellarZeroAddress = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF";
|
|
61
61
|
const cantonZeroAddress = "none::12200000000000000000000000000000000000000000000000000000000000000000";
|
|
62
|
+
const danalZeroAddress = "PCI00000000000000000000000000000000000000000000000000";
|
|
62
63
|
const chainTypeToZeroAddressMap = {
|
|
63
64
|
[ChainType.EVM]: zeroAddress$1,
|
|
64
65
|
[ChainType.COSMOS]: cosmosZeroAddress,
|
|
@@ -68,6 +69,7 @@ const chainTypeToZeroAddressMap = {
|
|
|
68
69
|
[ChainType.XRPL]: xrplZeroAddress,
|
|
69
70
|
[ChainType.STELLAR]: stellarZeroAddress,
|
|
70
71
|
[ChainType.CANTON]: cantonZeroAddress,
|
|
72
|
+
[ChainType.DANAL]: danalZeroAddress,
|
|
71
73
|
};
|
|
72
74
|
const nativeEvmTokenAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
73
75
|
const nativeCosmosTokenAddress = "uosmo";
|
|
@@ -77,6 +79,7 @@ const nativeSuiTokenAddress = "0x00000000000000000000000000000000000000000000000
|
|
|
77
79
|
const nativeXrplTokenAddress = "xrp";
|
|
78
80
|
const nativeStellarTokenAddress = "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
|
|
79
81
|
const nativeCantonTokenAddress = "DSO::1220b1431ef217342db44d516bb9befde802be7d8899637d290895fa58880f19accc";
|
|
82
|
+
const nativeDanalTokenAddress = "pci";
|
|
80
83
|
// by setting slippage to undefined, it's set to "auto"
|
|
81
84
|
const defaultSlippage = undefined;
|
|
82
85
|
const destinationAddressResetValue = "null";
|
|
@@ -142,6 +145,7 @@ const CHAIN_IDS = {
|
|
|
142
145
|
STELLAR: "stellar-mainnet",
|
|
143
146
|
STELLAR_TESTNET: "stellar-testnet",
|
|
144
147
|
CANTON: "canton",
|
|
148
|
+
DANAL_TESTNET: "danal-testnet",
|
|
145
149
|
};
|
|
146
150
|
const chainTypeToDefaultChainIdMap = {
|
|
147
151
|
[ChainType.EVM]: CHAIN_IDS.ETHEREUM,
|
|
@@ -152,6 +156,7 @@ const chainTypeToDefaultChainIdMap = {
|
|
|
152
156
|
[ChainType.XRPL]: CHAIN_IDS.XRPL,
|
|
153
157
|
[ChainType.STELLAR]: CHAIN_IDS.STELLAR,
|
|
154
158
|
[ChainType.CANTON]: CHAIN_IDS.CANTON,
|
|
159
|
+
[ChainType.DANAL]: CHAIN_IDS.DANAL_TESTNET,
|
|
155
160
|
};
|
|
156
161
|
const chainTypeToNativeTokenAddressMap = {
|
|
157
162
|
[ChainType.EVM]: nativeEvmTokenAddress,
|
|
@@ -162,6 +167,7 @@ const chainTypeToNativeTokenAddressMap = {
|
|
|
162
167
|
[ChainType.XRPL]: nativeXrplTokenAddress,
|
|
163
168
|
[ChainType.STELLAR]: nativeStellarTokenAddress,
|
|
164
169
|
[ChainType.CANTON]: nativeCantonTokenAddress,
|
|
170
|
+
[ChainType.DANAL]: nativeDanalTokenAddress,
|
|
165
171
|
};
|
|
166
172
|
const defaultConfigValues = {
|
|
167
173
|
integratorId: INTEGRATOR_ID,
|
|
@@ -21105,6 +21111,41 @@ function groupCantonHoldingBalances(acsResponse) {
|
|
|
21105
21111
|
return Object.fromEntries(Object.entries(totals).map(([key, total]) => [key, total.toString(10)]));
|
|
21106
21112
|
}
|
|
21107
21113
|
|
|
21114
|
+
// Matches the backend validation: "PCI" + 50 uppercase-hex chars, case-sensitive.
|
|
21115
|
+
const DANAL_ADDRESS_REGEX = /^PCI[0-9A-F]{50}$/;
|
|
21116
|
+
function isDanalAddressValid(address) {
|
|
21117
|
+
if (!address)
|
|
21118
|
+
return false;
|
|
21119
|
+
return DANAL_ADDRESS_REGEX.test(address);
|
|
21120
|
+
}
|
|
21121
|
+
// Fabric transaction id: 64 hex chars, no 0x prefix
|
|
21122
|
+
const DANAL_TX_HASH_REGEX = /^[0-9a-fA-F]{64}$/;
|
|
21123
|
+
function isDanalTxHashValid(hash) {
|
|
21124
|
+
if (!hash)
|
|
21125
|
+
return false;
|
|
21126
|
+
return DANAL_TX_HASH_REGEX.test(hash);
|
|
21127
|
+
}
|
|
21128
|
+
function isDanalTransferRequestBody(value) {
|
|
21129
|
+
if (typeof value !== "object" || value === null)
|
|
21130
|
+
return false;
|
|
21131
|
+
const { receiver, amount, memo } = value;
|
|
21132
|
+
return (typeof receiver === "string" &&
|
|
21133
|
+
receiver.length > 0 &&
|
|
21134
|
+
typeof amount === "string" &&
|
|
21135
|
+
amount.length > 0 &&
|
|
21136
|
+
typeof memo === "string" &&
|
|
21137
|
+
memo.length > 0);
|
|
21138
|
+
}
|
|
21139
|
+
function parseDanalTransferBody(data) {
|
|
21140
|
+
try {
|
|
21141
|
+
const parsed = JSON.parse(data);
|
|
21142
|
+
return isDanalTransferRequestBody(parsed) ? parsed : null;
|
|
21143
|
+
}
|
|
21144
|
+
catch {
|
|
21145
|
+
return null;
|
|
21146
|
+
}
|
|
21147
|
+
}
|
|
21148
|
+
|
|
21108
21149
|
const solanaTokenProgramIdByAddress = {
|
|
21109
21150
|
[TOKEN_PROGRAM_ID.toBase58()]: TOKEN_PROGRAM_ID,
|
|
21110
21151
|
[TOKEN_2022_PROGRAM_ID.toBase58()]: TOKEN_2022_PROGRAM_ID,
|
|
@@ -21441,6 +21482,15 @@ function isOnChainTxData(squidData) {
|
|
|
21441
21482
|
function isDepositAddressDirectTransferRoute(squidData) {
|
|
21442
21483
|
return squidData.type === SquidDataType.DepositAddressDirectTransfer;
|
|
21443
21484
|
}
|
|
21485
|
+
/**
|
|
21486
|
+
* Danal keeps SquidDataType.DepositAddressWithMemo, which XRPL/Stellar use for
|
|
21487
|
+
* wallet-signed transactions — so the deposit treatment is gated on the chain,
|
|
21488
|
+
* not just the type
|
|
21489
|
+
*/
|
|
21490
|
+
function isDanalDepositRoute(route) {
|
|
21491
|
+
return (route.params.fromChain === CHAIN_IDS.DANAL_TESTNET &&
|
|
21492
|
+
route.transactionRequest?.type === SquidDataType.DepositAddressWithMemo);
|
|
21493
|
+
}
|
|
21444
21494
|
function getHistoryTransactionId(tx) {
|
|
21445
21495
|
switch (tx.txType) {
|
|
21446
21496
|
case HistoryTxType.SWAP:
|
|
@@ -21965,6 +22015,11 @@ const chainTypeToTrimLength = {
|
|
|
21965
22015
|
start: 3,
|
|
21966
22016
|
end: 3,
|
|
21967
22017
|
},
|
|
22018
|
+
// PCI0180...E77E
|
|
22019
|
+
[ChainType.DANAL]: {
|
|
22020
|
+
start: 7,
|
|
22021
|
+
end: 4,
|
|
22022
|
+
},
|
|
21968
22023
|
};
|
|
21969
22024
|
const truncateWithEllipsis = (value, startLength, endLength) => value.length <= startLength + endLength
|
|
21970
22025
|
? value
|
|
@@ -22013,6 +22068,8 @@ const isWalletAddressValid = (chainData, address) => {
|
|
|
22013
22068
|
return isStellarAddressValid(address);
|
|
22014
22069
|
case ChainType.CANTON:
|
|
22015
22070
|
return isCantonAddressValid(address);
|
|
22071
|
+
case ChainType.DANAL:
|
|
22072
|
+
return isDanalAddressValid(address);
|
|
22016
22073
|
}
|
|
22017
22074
|
};
|
|
22018
22075
|
const redirectToExtensionsStore = (wallet) => {
|
|
@@ -22297,6 +22354,8 @@ const connectByChainType = async (chainType, wallet, defaultChain, params) => {
|
|
|
22297
22354
|
connector,
|
|
22298
22355
|
},
|
|
22299
22356
|
});
|
|
22357
|
+
case ChainType.DANAL:
|
|
22358
|
+
return null;
|
|
22300
22359
|
}
|
|
22301
22360
|
};
|
|
22302
22361
|
const getChainTypesToConnect = (selectedChainTypes, defaultChain, supportedChains) => {
|
|
@@ -23281,7 +23340,7 @@ const handleDestinationAddressOnSwapChange = ({ fromChainId, fromTokenAddress, t
|
|
|
23281
23340
|
});
|
|
23282
23341
|
let destinationTokenAddress = toChainId && !toTokenAddress
|
|
23283
23342
|
? defaultToAddress
|
|
23284
|
-
:
|
|
23343
|
+
: toTokenAddress ?? swapRoute?.toTokenAddress;
|
|
23285
23344
|
const lowerCaseDestinationTokenAddress = destinationTokenAddress?.toLowerCase();
|
|
23286
23345
|
if (destinationTokensFiltered.find((t) => t.address === lowerCaseDestinationTokenAddress) === undefined) {
|
|
23287
23346
|
destinationTokenAddress = defaultToAddress;
|
|
@@ -23333,7 +23392,7 @@ const getNewSwapParamsFromInput = ({ inputParams, initialSwapRoute, tokens, chai
|
|
|
23333
23392
|
toTokenAddress === initialSwapRoute?.fromTokenAddress;
|
|
23334
23393
|
const sourceTokenAddress = sameNewDestAndInitialSource || onlySourceChainIdChanged
|
|
23335
23394
|
? defaultFromAddress
|
|
23336
|
-
:
|
|
23395
|
+
: fromTokenAddress ?? initialSwapRoute?.fromTokenAddress;
|
|
23337
23396
|
let destinationTokenAddress = undefined;
|
|
23338
23397
|
if (!sameNewSourceAndInitialDest) {
|
|
23339
23398
|
if (onlySourceChainIdChanged) {
|
|
@@ -23655,7 +23714,7 @@ const filterViewableTokens = (tokens, config, direction) => {
|
|
|
23655
23714
|
};
|
|
23656
23715
|
const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
|
|
23657
23716
|
const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
|
|
23658
|
-
const { fetchAllSecretBalances } = await import('./secretService-
|
|
23717
|
+
const { fetchAllSecretBalances } = await import('./secretService-Dvc9Dg4U.js');
|
|
23659
23718
|
return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
|
|
23660
23719
|
};
|
|
23661
23720
|
function getTokenAssetsKey(token) {
|
|
@@ -25649,7 +25708,7 @@ const useSquidTokens = (direction) => {
|
|
|
25649
25708
|
config.availableChains,
|
|
25650
25709
|
direction,
|
|
25651
25710
|
]);
|
|
25652
|
-
const { evmTokens, cosmosTokens, solanaTokens, bitcoinTokens, suiTokens, xrplTokens, stellarTokens, cantonTokens, } = useMemo(() => {
|
|
25711
|
+
const { evmTokens, cosmosTokens, solanaTokens, bitcoinTokens, suiTokens, xrplTokens, stellarTokens, cantonTokens, danalTokens, } = useMemo(() => {
|
|
25653
25712
|
return tokens?.reduce((acc, token) => {
|
|
25654
25713
|
switch (token.type) {
|
|
25655
25714
|
case ChainType.EVM:
|
|
@@ -25676,6 +25735,9 @@ const useSquidTokens = (direction) => {
|
|
|
25676
25735
|
case ChainType.CANTON:
|
|
25677
25736
|
acc.cantonTokens.push(token);
|
|
25678
25737
|
break;
|
|
25738
|
+
case ChainType.DANAL:
|
|
25739
|
+
acc.danalTokens.push(token);
|
|
25740
|
+
break;
|
|
25679
25741
|
}
|
|
25680
25742
|
return acc;
|
|
25681
25743
|
}, {
|
|
@@ -25687,6 +25749,7 @@ const useSquidTokens = (direction) => {
|
|
|
25687
25749
|
xrplTokens: [],
|
|
25688
25750
|
stellarTokens: [],
|
|
25689
25751
|
cantonTokens: [],
|
|
25752
|
+
danalTokens: [],
|
|
25690
25753
|
});
|
|
25691
25754
|
}, [tokens]);
|
|
25692
25755
|
const findToken = useCallback((address, chainId) => {
|
|
@@ -25705,6 +25768,7 @@ const useSquidTokens = (direction) => {
|
|
|
25705
25768
|
xrplTokens,
|
|
25706
25769
|
stellarTokens,
|
|
25707
25770
|
cantonTokens,
|
|
25771
|
+
danalTokens,
|
|
25708
25772
|
};
|
|
25709
25773
|
};
|
|
25710
25774
|
|
|
@@ -26241,6 +26305,7 @@ const chainTypeToRefetchInterval = {
|
|
|
26241
26305
|
[ChainType.XRPL]: 1_000,
|
|
26242
26306
|
[ChainType.STELLAR]: 1_000,
|
|
26243
26307
|
[ChainType.CANTON]: 1_000,
|
|
26308
|
+
[ChainType.DANAL]: 1_000,
|
|
26244
26309
|
};
|
|
26245
26310
|
/**
|
|
26246
26311
|
* Returns the status refetch interval of a Send transaction
|
|
@@ -26507,7 +26572,7 @@ const useSquidChains = (direction) => {
|
|
|
26507
26572
|
const chain = findChain(chainId);
|
|
26508
26573
|
return chain?.chainType;
|
|
26509
26574
|
}, [findChain]);
|
|
26510
|
-
const { evmChains, cosmosChains, suiChains, stellarChains, xrplChains, cantonChains, } = useMemo(() => {
|
|
26575
|
+
const { evmChains, cosmosChains, suiChains, stellarChains, xrplChains, cantonChains, danalChains, } = useMemo(() => {
|
|
26511
26576
|
return chains.reduce((acc, chain) => {
|
|
26512
26577
|
switch (chain.chainType) {
|
|
26513
26578
|
case ChainType.EVM:
|
|
@@ -26528,6 +26593,9 @@ const useSquidChains = (direction) => {
|
|
|
26528
26593
|
case ChainType.CANTON:
|
|
26529
26594
|
acc.cantonChains.push(chain);
|
|
26530
26595
|
break;
|
|
26596
|
+
case ChainType.DANAL:
|
|
26597
|
+
acc.danalChains.push(chain);
|
|
26598
|
+
break;
|
|
26531
26599
|
}
|
|
26532
26600
|
return acc;
|
|
26533
26601
|
}, {
|
|
@@ -26537,6 +26605,7 @@ const useSquidChains = (direction) => {
|
|
|
26537
26605
|
xrplChains: [],
|
|
26538
26606
|
stellarChains: [],
|
|
26539
26607
|
cantonChains: [],
|
|
26608
|
+
danalChains: [],
|
|
26540
26609
|
});
|
|
26541
26610
|
}, [chains]);
|
|
26542
26611
|
const { supportedSourceChains, supportedDestinationChains } = useMemo(() => {
|
|
@@ -26558,6 +26627,7 @@ const useSquidChains = (direction) => {
|
|
|
26558
26627
|
xrplChains,
|
|
26559
26628
|
stellarChains,
|
|
26560
26629
|
cantonChains,
|
|
26630
|
+
danalChains,
|
|
26561
26631
|
getChainType,
|
|
26562
26632
|
findChain,
|
|
26563
26633
|
};
|
|
@@ -27403,7 +27473,7 @@ function useStellarWallets() {
|
|
|
27403
27473
|
try {
|
|
27404
27474
|
const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
|
|
27405
27475
|
const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module.mjs');
|
|
27406
|
-
const { formatStellarWallet } = await import('./stellarService.client-
|
|
27476
|
+
const { formatStellarWallet } = await import('./stellarService.client-c48cnGgL.js');
|
|
27407
27477
|
const modules = [...initializeAllModules(), new LedgerModule()];
|
|
27408
27478
|
const promises = modules.map(async (module) => {
|
|
27409
27479
|
const isAvailable = await module.isAvailable();
|
|
@@ -28213,6 +28283,8 @@ const useMultiChainWallet = (chain) => {
|
|
|
28213
28283
|
chainType: chain.chainType,
|
|
28214
28284
|
}),
|
|
28215
28285
|
};
|
|
28286
|
+
case ChainType.DANAL:
|
|
28287
|
+
return {};
|
|
28216
28288
|
}
|
|
28217
28289
|
}, [
|
|
28218
28290
|
chain?.chainType,
|
|
@@ -29051,6 +29123,8 @@ async function createClient(chain) {
|
|
|
29051
29123
|
return new StellarRpcClient(chain.rpc);
|
|
29052
29124
|
case ChainType.CANTON:
|
|
29053
29125
|
return null;
|
|
29126
|
+
case ChainType.DANAL:
|
|
29127
|
+
return null;
|
|
29054
29128
|
}
|
|
29055
29129
|
}
|
|
29056
29130
|
|
|
@@ -30317,7 +30391,7 @@ const useCantonBalance = ({ chain, token, userAddress, enabled = true, refreshIn
|
|
|
30317
30391
|
};
|
|
30318
30392
|
|
|
30319
30393
|
function useNativeTokenForChain(chain) {
|
|
30320
|
-
const { evmTokens, cosmosTokens, solanaTokens, bitcoinTokens, suiTokens, xrplTokens, stellarTokens, cantonTokens, } = useSquidTokens();
|
|
30394
|
+
const { evmTokens, cosmosTokens, solanaTokens, bitcoinTokens, suiTokens, xrplTokens, stellarTokens, cantonTokens, danalTokens, } = useSquidTokens();
|
|
30321
30395
|
const getTokensForChainType = () => {
|
|
30322
30396
|
if (!chain?.chainType)
|
|
30323
30397
|
return [];
|
|
@@ -30338,6 +30412,8 @@ function useNativeTokenForChain(chain) {
|
|
|
30338
30412
|
return stellarTokens;
|
|
30339
30413
|
case ChainType.CANTON:
|
|
30340
30414
|
return cantonTokens;
|
|
30415
|
+
case ChainType.DANAL:
|
|
30416
|
+
return danalTokens;
|
|
30341
30417
|
}
|
|
30342
30418
|
};
|
|
30343
30419
|
const nativeTokenForChainType = useMemo(() => {
|
|
@@ -30598,6 +30674,9 @@ const useNativeBalance = (chain) => {
|
|
|
30598
30674
|
case ChainType.CANTON:
|
|
30599
30675
|
balance = nativeCantonBalance;
|
|
30600
30676
|
break;
|
|
30677
|
+
case ChainType.DANAL:
|
|
30678
|
+
balance = undefined;
|
|
30679
|
+
break;
|
|
30601
30680
|
}
|
|
30602
30681
|
const balanceFormatted = !!balance
|
|
30603
30682
|
? formatBNToReadable(balance.value, balance.decimals)
|
|
@@ -30637,6 +30716,8 @@ const useNativeBalance = (chain) => {
|
|
|
30637
30716
|
return isStellarLoading;
|
|
30638
30717
|
case ChainType.CANTON:
|
|
30639
30718
|
return isCantonLoading;
|
|
30719
|
+
case ChainType.DANAL:
|
|
30720
|
+
return false;
|
|
30640
30721
|
}
|
|
30641
30722
|
}, [
|
|
30642
30723
|
chain?.chainType,
|
|
@@ -30862,7 +30943,7 @@ function hederaWalletConnect(parameters) {
|
|
|
30862
30943
|
const optionalChains = config.chains.map((x) => x.id);
|
|
30863
30944
|
if (!optionalChains.length)
|
|
30864
30945
|
return;
|
|
30865
|
-
const { EthereumProvider } = await import('./index.es-
|
|
30946
|
+
const { EthereumProvider } = await import('./index.es-Dl19u5sy.js');
|
|
30866
30947
|
const rawProvider = await EthereumProvider.init({
|
|
30867
30948
|
...restParameters,
|
|
30868
30949
|
disableProviderPing: true,
|
|
@@ -31096,6 +31177,8 @@ const useSigner = ({ chain }) => {
|
|
|
31096
31177
|
return isStellarSignerReady;
|
|
31097
31178
|
case ChainType.CANTON:
|
|
31098
31179
|
return isCantonSignerReady;
|
|
31180
|
+
case ChainType.DANAL:
|
|
31181
|
+
return false;
|
|
31099
31182
|
}
|
|
31100
31183
|
}, [
|
|
31101
31184
|
chain?.chainType,
|
|
@@ -31548,8 +31631,12 @@ const useSendTransactionStore = create((set, get) => ({
|
|
|
31548
31631
|
const useDepositAddressStore = create((set) => ({
|
|
31549
31632
|
deposit: null,
|
|
31550
31633
|
selectedPaymentMethod: "connectedWallet",
|
|
31634
|
+
userDepositTxId: null,
|
|
31551
31635
|
setDeposit: (data) => {
|
|
31552
|
-
set({ deposit: data });
|
|
31636
|
+
set({ deposit: data, userDepositTxId: null });
|
|
31637
|
+
},
|
|
31638
|
+
setUserDepositTxId: (txId) => {
|
|
31639
|
+
set({ userDepositTxId: txId });
|
|
31553
31640
|
},
|
|
31554
31641
|
setPaymentMethod: (method) => {
|
|
31555
31642
|
set({ selectedPaymentMethod: method });
|
|
@@ -31561,7 +31648,7 @@ function useDepositAddress(squidRoute) {
|
|
|
31561
31648
|
selectedPaymentMethod: state.selectedPaymentMethod,
|
|
31562
31649
|
depositAddress: state.deposit?.depositAddress,
|
|
31563
31650
|
}));
|
|
31564
|
-
const { setDeposit, setPaymentMethod, deposit } = useDepositAddressStore();
|
|
31651
|
+
const { setDeposit, setPaymentMethod, deposit, userDepositTxId, setUserDepositTxId, } = useDepositAddressStore();
|
|
31565
31652
|
const { squid } = useSquidStore();
|
|
31566
31653
|
const { fromChain } = useSwap();
|
|
31567
31654
|
const isAvailableAsPaymentMethod = useMemo(() => {
|
|
@@ -31571,11 +31658,13 @@ function useDepositAddress(squidRoute) {
|
|
|
31571
31658
|
CHAIN_IDS.BITCOIN,
|
|
31572
31659
|
CHAIN_IDS.SOLANA,
|
|
31573
31660
|
CHAIN_IDS.CANTON,
|
|
31661
|
+
CHAIN_IDS.DANAL_TESTNET,
|
|
31574
31662
|
];
|
|
31575
31663
|
return chainsSupportingDepositAddress.includes(fromChain.chainId);
|
|
31576
31664
|
}, [fromChain?.chainId]);
|
|
31577
|
-
const routeProvidesDirectDepositAddress = !!squidRoute?.transactionRequest &&
|
|
31578
|
-
isDepositAddressDirectTransferRoute(squidRoute.transactionRequest)
|
|
31665
|
+
const routeProvidesDirectDepositAddress = (!!squidRoute?.transactionRequest &&
|
|
31666
|
+
isDepositAddressDirectTransferRoute(squidRoute.transactionRequest)) ||
|
|
31667
|
+
(!!squidRoute && isDanalDepositRoute(squidRoute));
|
|
31579
31668
|
const swapWillGenerateDepositAddress = isChainflipDepositRoute(squidRoute) || routeProvidesDirectDepositAddress;
|
|
31580
31669
|
const paymentMethod = isAvailableAsPaymentMethod
|
|
31581
31670
|
? selectedPaymentMethod
|
|
@@ -31601,6 +31690,19 @@ function useDepositAddress(squidRoute) {
|
|
|
31601
31690
|
});
|
|
31602
31691
|
return;
|
|
31603
31692
|
}
|
|
31693
|
+
else if (isDanalDepositRoute(route)) {
|
|
31694
|
+
const transferBody = parseDanalTransferBody(route.transactionRequest.data);
|
|
31695
|
+
if (!transferBody) {
|
|
31696
|
+
throw new Error("Could not parse Danal transfer request body");
|
|
31697
|
+
}
|
|
31698
|
+
setDeposit({
|
|
31699
|
+
amount: transferBody.amount,
|
|
31700
|
+
depositAddress: route.transactionRequest.target,
|
|
31701
|
+
statusTrackingId: transferBody.memo,
|
|
31702
|
+
memo: transferBody.memo,
|
|
31703
|
+
});
|
|
31704
|
+
return;
|
|
31705
|
+
}
|
|
31604
31706
|
else if (isDepositAddressDirectTransferRoute(route.transactionRequest)) {
|
|
31605
31707
|
// Canton case
|
|
31606
31708
|
const orderHash = route.transactionRequest.data;
|
|
@@ -31623,6 +31725,8 @@ function useDepositAddress(squidRoute) {
|
|
|
31623
31725
|
depositAddress,
|
|
31624
31726
|
closeDepositChannel,
|
|
31625
31727
|
depositData: deposit,
|
|
31728
|
+
userDepositTxId,
|
|
31729
|
+
setUserDepositTxId,
|
|
31626
31730
|
};
|
|
31627
31731
|
}
|
|
31628
31732
|
|
|
@@ -31650,7 +31754,7 @@ const useUrlSwapParams = () => {
|
|
|
31650
31754
|
|
|
31651
31755
|
const useAllTokensWithBalanceForChainType = ({ chainType, address, direction, queryOptions, }) => {
|
|
31652
31756
|
const { evmChains, cosmosChains, suiChains, xrplChains, stellarChains } = useSquidChains(direction);
|
|
31653
|
-
const { evmTokens, cosmosTokens, solanaTokens, bitcoinTokens, suiTokens, xrplTokens, stellarTokens, cantonTokens, } = useSquidTokens(direction);
|
|
31757
|
+
const { evmTokens, cosmosTokens, solanaTokens, bitcoinTokens, suiTokens, xrplTokens, stellarTokens, cantonTokens, danalTokens, } = useSquidTokens(direction);
|
|
31654
31758
|
const { keplrTypeWallet } = useCosmosContext();
|
|
31655
31759
|
const cantonConnector = useWalletStore((store) => store.connectedWalletsByChainType[ChainType.CANTON]?.wallet?.connector);
|
|
31656
31760
|
const placeholderData = useMemo(() => {
|
|
@@ -31663,6 +31767,7 @@ const useAllTokensWithBalanceForChainType = ({ chainType, address, direction, qu
|
|
|
31663
31767
|
[ChainType.XRPL]: xrplTokens.map((t) => ({ ...t, balance: "0" })),
|
|
31664
31768
|
[ChainType.STELLAR]: stellarTokens.map((t) => ({ ...t, balance: "0" })),
|
|
31665
31769
|
[ChainType.CANTON]: cantonTokens.map((t) => ({ ...t, balance: "0" })),
|
|
31770
|
+
[ChainType.DANAL]: danalTokens.map((t) => ({ ...t, balance: "0" })),
|
|
31666
31771
|
};
|
|
31667
31772
|
if (!chainType) {
|
|
31668
31773
|
// Return all tokens with zero balance
|
|
@@ -31685,6 +31790,7 @@ const useAllTokensWithBalanceForChainType = ({ chainType, address, direction, qu
|
|
|
31685
31790
|
xrplTokens,
|
|
31686
31791
|
stellarTokens,
|
|
31687
31792
|
cantonTokens,
|
|
31793
|
+
danalTokens,
|
|
31688
31794
|
]);
|
|
31689
31795
|
const isQueryEnabled = useMemo(() => {
|
|
31690
31796
|
// Respect the queryOptions.enabled override if provided
|
|
@@ -31709,6 +31815,8 @@ const useAllTokensWithBalanceForChainType = ({ chainType, address, direction, qu
|
|
|
31709
31815
|
return stellarTokens.length > 0;
|
|
31710
31816
|
case ChainType.CANTON:
|
|
31711
31817
|
return cantonTokens.length > 0;
|
|
31818
|
+
case ChainType.DANAL:
|
|
31819
|
+
return danalTokens.length > 0;
|
|
31712
31820
|
}
|
|
31713
31821
|
}, [
|
|
31714
31822
|
chainType,
|
|
@@ -31722,6 +31830,7 @@ const useAllTokensWithBalanceForChainType = ({ chainType, address, direction, qu
|
|
|
31722
31830
|
xrplTokens.length,
|
|
31723
31831
|
stellarTokens.length,
|
|
31724
31832
|
cantonTokens.length,
|
|
31833
|
+
danalTokens.length,
|
|
31725
31834
|
]);
|
|
31726
31835
|
const query = useQuery(keys().allTokensBalance(address, chainType, direction), async () => {
|
|
31727
31836
|
// Return zero balances if no address
|
|
@@ -31846,6 +31955,12 @@ const useAllConnectedWalletBalances = ({ direction, queryOptions = {
|
|
|
31846
31955
|
direction,
|
|
31847
31956
|
queryOptions,
|
|
31848
31957
|
});
|
|
31958
|
+
const danalBalancesQuery = useAllTokensWithBalanceForChainType({
|
|
31959
|
+
chainType: ChainType.DANAL,
|
|
31960
|
+
address: connectedAddresses?.[ChainType.DANAL],
|
|
31961
|
+
direction,
|
|
31962
|
+
queryOptions,
|
|
31963
|
+
});
|
|
31849
31964
|
// Create a map of chain type to balance query results
|
|
31850
31965
|
const balanceQueries = useMemo(() => ({
|
|
31851
31966
|
[ChainType.EVM]: evmBalancesQuery,
|
|
@@ -31856,6 +31971,7 @@ const useAllConnectedWalletBalances = ({ direction, queryOptions = {
|
|
|
31856
31971
|
[ChainType.XRPL]: xrplBalancesQuery,
|
|
31857
31972
|
[ChainType.STELLAR]: stellarBalancesQuery,
|
|
31858
31973
|
[ChainType.CANTON]: cantonBalancesQuery,
|
|
31974
|
+
[ChainType.DANAL]: danalBalancesQuery,
|
|
31859
31975
|
}), [
|
|
31860
31976
|
evmBalancesQuery,
|
|
31861
31977
|
cosmosBalancesQuery,
|
|
@@ -31865,6 +31981,7 @@ const useAllConnectedWalletBalances = ({ direction, queryOptions = {
|
|
|
31865
31981
|
xrplBalancesQuery,
|
|
31866
31982
|
stellarBalancesQuery,
|
|
31867
31983
|
cantonBalancesQuery,
|
|
31984
|
+
danalBalancesQuery,
|
|
31868
31985
|
]);
|
|
31869
31986
|
// Combine all tokens from different chains
|
|
31870
31987
|
const allTokens = useMemo(() => Object.values(balanceQueries).flatMap((query) => query.data?.tokens ?? []), [balanceQueries]);
|
|
@@ -31972,6 +32089,8 @@ const useMultiChainBalance = ({ chain, token, userAddress, enabled = true, }) =>
|
|
|
31972
32089
|
return stellarBalance;
|
|
31973
32090
|
case ChainType.CANTON:
|
|
31974
32091
|
return cantonBalance;
|
|
32092
|
+
case ChainType.DANAL:
|
|
32093
|
+
return "0";
|
|
31975
32094
|
}
|
|
31976
32095
|
}, [
|
|
31977
32096
|
chain?.chainType,
|
|
@@ -33081,8 +33200,9 @@ function useSendTransaction({ to, amount, token, chain, }) {
|
|
|
33081
33200
|
chain,
|
|
33082
33201
|
});
|
|
33083
33202
|
break;
|
|
33084
|
-
case ChainType.CANTON:
|
|
33085
|
-
|
|
33203
|
+
case ChainType.CANTON:
|
|
33204
|
+
case ChainType.DANAL: {
|
|
33205
|
+
throw new Error(`Send not implemented for chain type ${chain.chainType}`);
|
|
33086
33206
|
}
|
|
33087
33207
|
}
|
|
33088
33208
|
return {
|
|
@@ -33288,7 +33408,8 @@ async function getSendTransactionStatus({ chain, txHash, }) {
|
|
|
33288
33408
|
chain,
|
|
33289
33409
|
});
|
|
33290
33410
|
case ChainType.CANTON:
|
|
33291
|
-
|
|
33411
|
+
case ChainType.DANAL:
|
|
33412
|
+
throw new Error(`Send not implemented for chain type ${chain.chainType}`);
|
|
33292
33413
|
}
|
|
33293
33414
|
}
|
|
33294
33415
|
|
|
@@ -38158,7 +38279,7 @@ refetchIntervalInBackground = false, refetchInterval = 30000, quoteOnly = true,
|
|
|
38158
38279
|
//
|
|
38159
38280
|
// If deposit address is not selected, we use the connected address as the source address instead
|
|
38160
38281
|
const sourceUserAddress = isDepositAddressActive
|
|
38161
|
-
?
|
|
38282
|
+
? depositRefundAddress ?? sourceConnectedAddress
|
|
38162
38283
|
: sourceConnectedAddress;
|
|
38163
38284
|
const squidRouteQueryKeys = useMemo(() => keys().transaction(fromChain?.chainId, toChain?.chainId, toToken?.address, fromToken?.address, fromPrice, config.slippage, sourceUserAddress, config.degenMode, destinationAddress, fallbackAddress, quoteOnly, fromChain?.chainType, config.preHook, config.postHook, config.overrideGasRefundAddress), [
|
|
38164
38285
|
fromChain?.chainId,
|
|
@@ -38825,5 +38946,5 @@ const SquidProvider = ({ children, config, placeholder, }) => {
|
|
|
38825
38946
|
React.createElement(CosmosProvider, null, children))))))))))) : (placeholder);
|
|
38826
38947
|
};
|
|
38827
38948
|
|
|
38828
|
-
export { useWalletStore as $, AxelarStatusResponseType as A, useHederaAccountActivation as B, CHAIN_IDS as C, DEFAULT_LOCALE as D, useHederaTokenAssociations as E, useKeyboardNavigation as F, useSquidQueryClient as G, HistoryTxType as H, useSquid as I, useStellarAccountActivation as J, useStellarTrustLine as K, useAddressBookStore as L, useAssetsColorsStore as M, Nr as N, useFavoriteTokensStore as O, useHistoryStore as P, QueryKeys as Q, useSendTransactionStore as R, SquidStatusErrorType as S, TransactionErrorType as T, useConfigStore as U, useSquidStore as V, Wo as W, XamanXrplNetwork as X, useSwapRoutePersistStore as Y, useTransactionStore as Z, ConnectingWalletStatus as _, WindowWalletFlag as a, useAvailableQuotes as a$, useDepositAddress as a0, useSwap as a1, buildUrlSearchParamsFromSwapEvent as a2, parseInitialAssetsFromUrl as a3, useUrlSwapParams as a4, useAllConnectedWalletBalances as a5, useAllTokensWithBalanceForChainType as a6, useCosmosBalance as a7, useEvmBalance as a8, useMultiChainBalance as a9, useRouteWarnings as aA, useSendTransactionStatus as aB, useSwapTransactionStatus as aC, useAvatar as aD, useHistory as aE, useDebouncedValue as aF, useAddToken as aG, useAutoConnect as aH, useEnsDataForAddress as aI, useEnsSearch as aJ, useGnosisContext as aK, useIsSameAddressAndGnosisContext as aL, useIntegratorContext as aM, useMultiChainWallet as aN, useSigner as aO, useWallet as aP, useWallets as aQ, useXrplTrustLine as aR, TX_STATUS_CONSTANTS as aS, FINAL_TRANSACTION_STATUSES as aT, useGetFiatQuote as aU, useGetOnRampConfig as aV, useExecuteFiatQuote as aW, useFiatOnRampTxStatus as aX, useFiatTransactions as aY, useCurrencyDetails as aZ, useCountryDetails as a_, useMultipleTokenPrices as aa, useBitcoinNativeBalance as ab, useCosmosNativeBalance as ac, useEvmNativeBalance as ad, useNativeBalance as ae, useSolanaNativeBalance as af, useStellarNativeBalance as ag, useSuiNativeBalance as ah, useXrplNativeBalance as ai, useNativeTokenForChain as aj, useSingleTokenPrice as ak, useSourceChainGasToken as al, useSquidTokens as am, useHistoricalData as an, useTokensData as ao, useEstimateSendTransaction as ap, useSendTransaction as aq, useSendTransactionGas as ar, useAllTransactionsStatus as as, useApproval as at, useDepositTransactionStatus as au, useEstimate as av, useEstimatePriceImpact as aw, useExecuteTransaction as ax, useGetRoute as ay, useGetRouteWrapper as az, DEFAULT_ROUTE_REFETCH_INTERVAL as b,
|
|
38829
|
-
//# sourceMappingURL=index-
|
|
38949
|
+
export { useWalletStore as $, AxelarStatusResponseType as A, useHederaAccountActivation as B, CHAIN_IDS as C, DEFAULT_LOCALE as D, useHederaTokenAssociations as E, useKeyboardNavigation as F, useSquidQueryClient as G, HistoryTxType as H, useSquid as I, useStellarAccountActivation as J, useStellarTrustLine as K, useAddressBookStore as L, useAssetsColorsStore as M, Nr as N, useFavoriteTokensStore as O, useHistoryStore as P, QueryKeys as Q, useSendTransactionStore as R, SquidStatusErrorType as S, TransactionErrorType as T, useConfigStore as U, useSquidStore as V, Wo as W, XamanXrplNetwork as X, useSwapRoutePersistStore as Y, useTransactionStore as Z, ConnectingWalletStatus as _, WindowWalletFlag as a, useAvailableQuotes as a$, useDepositAddress as a0, useSwap as a1, buildUrlSearchParamsFromSwapEvent as a2, parseInitialAssetsFromUrl as a3, useUrlSwapParams as a4, useAllConnectedWalletBalances as a5, useAllTokensWithBalanceForChainType as a6, useCosmosBalance as a7, useEvmBalance as a8, useMultiChainBalance as a9, useRouteWarnings as aA, useSendTransactionStatus as aB, useSwapTransactionStatus as aC, useAvatar as aD, useHistory as aE, useDebouncedValue as aF, useAddToken as aG, useAutoConnect as aH, useEnsDataForAddress as aI, useEnsSearch as aJ, useGnosisContext as aK, useIsSameAddressAndGnosisContext as aL, useIntegratorContext as aM, useMultiChainWallet as aN, useSigner as aO, useWallet as aP, useWallets as aQ, useXrplTrustLine as aR, TX_STATUS_CONSTANTS as aS, FINAL_TRANSACTION_STATUSES as aT, useGetFiatQuote as aU, useGetOnRampConfig as aV, useExecuteFiatQuote as aW, useFiatOnRampTxStatus as aX, useFiatTransactions as aY, useCurrencyDetails as aZ, useCountryDetails as a_, useMultipleTokenPrices as aa, useBitcoinNativeBalance as ab, useCosmosNativeBalance as ac, useEvmNativeBalance as ad, useNativeBalance as ae, useSolanaNativeBalance as af, useStellarNativeBalance as ag, useSuiNativeBalance as ah, useXrplNativeBalance as ai, useNativeTokenForChain as aj, useSingleTokenPrice as ak, useSourceChainGasToken as al, useSquidTokens as am, useHistoricalData as an, useTokensData as ao, useEstimateSendTransaction as ap, useSendTransaction as aq, useSendTransactionGas as ar, useAllTransactionsStatus as as, useApproval as at, useDepositTransactionStatus as au, useEstimate as av, useEstimatePriceImpact as aw, useExecuteTransaction as ax, useGetRoute as ay, useGetRouteWrapper as az, DEFAULT_ROUTE_REFETCH_INTERVAL as b, createQuoteRequestParamsHash as b$, useRecommendedQuote as b0, useGetOnrampPaymentTypes as b1, useSuggestedFiatAmounts as b2, SquidProvider as b3, EnsService as b4, getXummClient as b5, isXamanXAppContext as b6, getQueryHeaders as b7, getStatusCode as b8, is404Error as b9, randomIntFromInterval as bA, getTokensForChain as bB, getFirstAvailableChainId as bC, fetchHighestBalanceToken as bD, getInitialOrDefaultTokenAddressForChain as bE, getInitialTokenAddressForChain as bF, filterTokensForDestination as bG, getInitialChainIdFromConfig as bH, getCosmosKey as bI, getKeysSettled as bJ, getAllKeysForSupportedCosmosChains as bK, isCosmosAddressValid as bL, getCosmosSigningClient as bM, getCosmosChainInfosObject as bN, connectCosmosWallet as bO, isFallbackAddressNeeded as bP, suggestChainOrThrow as bQ, isDanalAddressValid as bR, isDanalTxHashValid as bS, parseDanalTransferBody as bT, normalizeError as bU, transactionErrorCode as bV, isUserRejectionError as bW, getTransactionError as bX, handleTransactionErrorEvents as bY, isSwapRouteError as bZ, isStatusError as b_, assetsBaseUrl as ba, shareSubgraphId as bb, sortTokensBySharedSubgraphIds as bc, getSupportedChainIdsForDirection as bd, filterChains as be, filterTokens as bf, getTokenImage as bg, getNewSwapParamsFromInput as bh, sortAllTokens as bi, findToken as bj, findNativeToken as bk, normalizeIbcAddress as bl, groupTokensBySymbol as bm, groupTokensByChainId as bn, filterViewableTokens as bo, getSecretNetworkBalances as bp, getTokenAssetsKey as bq, fetchAssetsColors as br, isSupportedChainType as bs, initializeSquidData as bt, isEmptyObject as bu, normalizeTokenSymbol as bv, areTokenSymbolsCompatible as bw, isEvmosChain as bx, resolveChainIdFromAsset as by, getConfigWithDefaults as bz, chainTypeToNativeTokenAddressMap as c, getHalfSuccessState as c$, WidgetEvents as c0, EvmNetworkNotSupportedErrorCode as c1, addEthereumChain as c2, parseEvmAddress as c3, formatEvmWallet as c4, filterWagmiConnector as c5, waitForReceiptWithRetry as c6, getUserCountry as c7, getCountryData as c8, getCurrencyData as c9, stellarAddressToScVal as cA, getStellarTrustLineAsset as cB, isStellarToken as cC, isStellarIssuedToken as cD, getStellarHorizonApiUrl as cE, isValidIssuedAsset as cF, isValidHorizonAsset as cG, formatTransactionHistoryDate as cH, getAxelarExplorerTxUrl as cI, getSourceExplorerTxUrl as cJ, getMainExplorerUrl as cK, formatDistance as cL, formatSeconds as cM, formatSwapTxStatusResponseForStorage as cN, simplifyRouteAction as cO, fetchSwapTransactionStatus as cP, compareTransactionIds as cQ, isCoralBridgeAction as cR, isActionCompletedOnSourceTx as cS, sleep as cT, isChainflipDepositRoute as cU, isChainflipBridgeTransaction as cV, isOnChainTxData as cW, isDepositAddressDirectTransferRoute as cX, isDanalDepositRoute as cY, getHistoryTransactionId as cZ, getStepStatuses as c_, adaptiveRound as ca, getSuggestedAmountsForCurrency as cb, HederaExtensionHelper as cc, convertHederaAccountIdToEvmAddress as cd, convertEvmAddressToHederaAccountId as ce, scaleHbarToWei as cf, scaleWeiToHbar as cg, parseToBigInt as ch, roundNumericValue as ci, formatUnitsRounded as cj, formatTokenAmount as ck, formatUsdAmount as cl, trimExtraDecimals as cm, getNumericValue as cn, cleanAmount as co, convertTokenAmountToUSD as cp, convertUSDToTokenAmount as cq, calculateTotal24hChange as cr, getRouteExpiry as cs, searchTokens as ct, filterSolanaWallets as cu, isSolanaAddressValid as cv, executeSolanaSwap as cw, executeSolanaTransfer as cx, isStellarAddressValid as cy, getStellarNetwork as cz, definedInWindow as d, getStepsInfos as d0, getSwapTxStatusRefetchInterval as d1, getSendTxStatusRefetchInterval as d2, chainflipMultihopBridgeType as d3, getBridgeType as d4, getTransactionStatus as d5, getTransactionEndStatus as d6, isHistoryTransactionPending as d7, isHistoryTransactionFailed as d8, isHistoryTransactionWarning as d9, parseXrplTokenAddress as dA, isHistoryTransactionEnded as da, formatHash as db, isWalletAddressValid as dc, redirectToExtensionsStore as dd, populateWallets as de, buildFallbackWallets as df, getDefaultChain as dg, sortWallets as dh, areSameAddress as di, sortAddressBook as dj, calculateTotalUsdBalanceUSD as dk, addTokenToWallet as dl, isEvmChainNotSupportedError as dm, getWalletSupportedChainTypes as dn, getConnectorForChainType as dp, walletSupportsChainType as dq, connectWallet as dr, cancelConnectWallet as ds, isProblematicConnector as dt, mergeWallets as du, isXionSmartContractAddress as dv, isXrplAddressValid as dw, buildXrplTrustSetTx as dx, getXrplNetwork as dy, parseXrplPaymentTx as dz, er as e, formatBNToReadable as f, chainTypeToZeroAddressMap as g, destinationAddressResetValue as h, fallbackAddressResetValue as i, nativeCantonTokenAddress as j, nativeCosmosTokenAddress as k, nativeEvmTokenAddress as l, nativeSolanaTokenAddress as m, nativeBitcoinTokenAddress as n, nativeStellarTokenAddress as o, nativeSuiTokenAddress as p, nativeXrplTokenAddress as q, CosmosProvider as r, SendTransactionStatus as s, TransactionStatus as t, useCosmosContext as u, useTrackSearchEmpty as v, walletIconBaseUrl as w, useSquidChains as x, useClient as y, useCosmosForChain as z };
|
|
38950
|
+
//# sourceMappingURL=index-D6rznmR_.js.map
|