@0xsquid/react-hooks 8.8.1-beta-canton.0 → 8.8.1-beta-canton.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/{index-D1udDcRZ.js → index-BOyZL5gB.js} +17 -6
- package/dist/{index-CtTVUC-R.js.map → index-BOyZL5gB.js.map} +1 -1
- package/dist/{index-CtTVUC-R.js → index-C6O8biTF.js} +17 -6
- package/dist/index-C6O8biTF.js.map +1 -0
- package/dist/{index.es-Q71H7cJa.js → index.es-CjEZHrFG.js} +2 -2
- package/dist/{index.es-Q71H7cJa.js.map → index.es-CjEZHrFG.js.map} +1 -1
- package/dist/{index.es-DFjaMQJG.js → index.es-DXtULgAw.js} +2 -2
- package/dist/{index.es-DFjaMQJG.js.map → index.es-DXtULgAw.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{secretService-Dg5_VwtW.js → secretService-DQhP5g0c.js} +2 -2
- package/dist/{secretService-Dg5_VwtW.js.map → secretService-DQhP5g0c.js.map} +1 -1
- package/dist/{secretService-BJNdJc-J.js → secretService-s34iHqOe.js} +2 -2
- package/dist/{secretService-BJNdJc-J.js.map → secretService-s34iHqOe.js.map} +1 -1
- package/dist/{stellarService.client-BFUfF3-j.js → stellarService.client-BQrRZDwB.js} +2 -2
- package/dist/{stellarService.client-BFUfF3-j.js.map → stellarService.client-BQrRZDwB.js.map} +1 -1
- package/dist/{stellarService.client-B9xCCNV0.js → stellarService.client-DlaL8w0o.js} +2 -2
- package/dist/{stellarService.client-B9xCCNV0.js.map → stellarService.client-DlaL8w0o.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-D1udDcRZ.js.map +0 -1
|
@@ -21004,6 +21004,7 @@ const getSourceExplorerTxUrl = (chain, txID) => {
|
|
|
21004
21004
|
case CHAIN_IDS.AGORIC:
|
|
21005
21005
|
case CHAIN_IDS.XRPL:
|
|
21006
21006
|
case CHAIN_IDS.XRPL_TESTNET:
|
|
21007
|
+
case CHAIN_IDS.CANTON:
|
|
21007
21008
|
txSuffix = "/transactions/";
|
|
21008
21009
|
break;
|
|
21009
21010
|
case CHAIN_IDS.HEDERA:
|
|
@@ -21113,10 +21114,16 @@ const simplifyRouteAction = (action) => {
|
|
|
21113
21114
|
};
|
|
21114
21115
|
const fetchSwapTransactionStatus = async ({ transaction, integratorId, apiUrl, }) => {
|
|
21115
21116
|
const statusEndpoint = `${apiUrl}/v2/status`;
|
|
21117
|
+
const isCanton = transaction?.fromChain === CHAIN_IDS.CANTON;
|
|
21118
|
+
// For Canton, the backend handles all tx detection/submission from the quoteId
|
|
21119
|
+
// alone, so no transactionId is sent — only the quoteId param below.
|
|
21120
|
+
const transactionId = isCanton
|
|
21121
|
+
? undefined
|
|
21122
|
+
: transaction?.transactionIdForStatus ?? transaction?.transactionId;
|
|
21116
21123
|
try {
|
|
21117
21124
|
const response = await axios.get(statusEndpoint, {
|
|
21118
21125
|
params: {
|
|
21119
|
-
transactionId
|
|
21126
|
+
transactionId,
|
|
21120
21127
|
fromChainId: transaction?.fromChain,
|
|
21121
21128
|
toChainId: transaction?.toChain,
|
|
21122
21129
|
bridgeType: transaction?.bridgeType,
|
|
@@ -23368,7 +23375,7 @@ const filterViewableTokens = (tokens, config, direction) => {
|
|
|
23368
23375
|
};
|
|
23369
23376
|
const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
|
|
23370
23377
|
const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
|
|
23371
|
-
const { fetchAllSecretBalances } = await Promise.resolve().then(function () { return require('./secretService-
|
|
23378
|
+
const { fetchAllSecretBalances } = await Promise.resolve().then(function () { return require('./secretService-DQhP5g0c.js'); });
|
|
23372
23379
|
return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
|
|
23373
23380
|
};
|
|
23374
23381
|
function getTokenAssetsKey(token) {
|
|
@@ -26777,7 +26784,7 @@ function useStellarWallets() {
|
|
|
26777
26784
|
try {
|
|
26778
26785
|
const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
|
|
26779
26786
|
const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module.mjs');
|
|
26780
|
-
const { formatStellarWallet } = await Promise.resolve().then(function () { return require('./stellarService.client-
|
|
26787
|
+
const { formatStellarWallet } = await Promise.resolve().then(function () { return require('./stellarService.client-BQrRZDwB.js'); });
|
|
26781
26788
|
const modules = [...initializeAllModules(), new LedgerModule()];
|
|
26782
26789
|
const promises = modules.map(async (module) => {
|
|
26783
26790
|
const isAvailable = await module.isAvailable();
|
|
@@ -30127,7 +30134,7 @@ function hederaWalletConnect(parameters) {
|
|
|
30127
30134
|
const optionalChains = config.chains.map((x) => x.id);
|
|
30128
30135
|
if (!optionalChains.length)
|
|
30129
30136
|
return;
|
|
30130
|
-
const { EthereumProvider } = await Promise.resolve().then(function () { return require('./index.es-
|
|
30137
|
+
const { EthereumProvider } = await Promise.resolve().then(function () { return require('./index.es-CjEZHrFG.js'); });
|
|
30131
30138
|
const rawProvider = await EthereumProvider.init({
|
|
30132
30139
|
...restParameters,
|
|
30133
30140
|
disableProviderPing: true,
|
|
@@ -30868,6 +30875,7 @@ function useDepositAddress(squidRoute) {
|
|
|
30868
30875
|
setDeposit({
|
|
30869
30876
|
amount: route.params.fromAmount ?? "",
|
|
30870
30877
|
depositAddress: route.transactionRequest.target,
|
|
30878
|
+
// Squid Scan indexes the Canton tx by the orderHash
|
|
30871
30879
|
statusTrackingId: orderHash,
|
|
30872
30880
|
memo: orderHash,
|
|
30873
30881
|
});
|
|
@@ -33048,9 +33056,12 @@ const useSwapStatusQuery = ({ transaction, retry = 25, refetchOnWindowFocus = "a
|
|
|
33048
33056
|
// Statuses that indicate the source deposit has been received and the swap is
|
|
33049
33057
|
// now progressing — the point at which it becomes a history-backed transaction.
|
|
33050
33058
|
const sourceReceivedStatuses = [
|
|
33059
|
+
// Chainflip
|
|
33051
33060
|
"DEPOSIT_RECEIVED",
|
|
33052
33061
|
"BROADCAST_REQUESTED",
|
|
33053
33062
|
"COMPLETE",
|
|
33063
|
+
// Canton (Squid Intents)
|
|
33064
|
+
"awaiting",
|
|
33054
33065
|
];
|
|
33055
33066
|
/**
|
|
33056
33067
|
* Tracks a generated deposit address before it becomes a persisted swap history item.
|
|
@@ -33088,7 +33099,7 @@ const useDepositTransactionStatus = ({ transaction, route, retry = 25, refetchOn
|
|
|
33088
33099
|
fromAddress: transaction.fromAddress,
|
|
33089
33100
|
transactionId: txLocalId,
|
|
33090
33101
|
transactionIdForStatus: transaction.transactionIdForStatus,
|
|
33091
|
-
quoteId:
|
|
33102
|
+
quoteId: transaction.quoteId ?? "",
|
|
33092
33103
|
status: exports.TransactionStatus.ONGOING,
|
|
33093
33104
|
sourceStatus: exports.TransactionStatus.SUCCESS,
|
|
33094
33105
|
timestamp: Date.now(),
|
|
@@ -37904,4 +37915,4 @@ exports.useXrplTrustLine = useXrplTrustLine;
|
|
|
37904
37915
|
exports.waitForReceiptWithRetry = waitForReceiptWithRetry;
|
|
37905
37916
|
exports.walletIconBaseUrl = walletIconBaseUrl;
|
|
37906
37917
|
exports.walletSupportsChainType = walletSupportsChainType;
|
|
37907
|
-
//# sourceMappingURL=index-
|
|
37918
|
+
//# sourceMappingURL=index-BOyZL5gB.js.map
|