@0xsquid/react-hooks 9.0.0-beta-nodev24.0 → 9.0.0
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/constants.d.ts +1 -0
- package/dist/core/wallets.d.ts +1 -1
- package/dist/{index-BlAWmCDu.js → index-BbLFIIzM.js} +12 -11
- package/dist/index-BbLFIIzM.js.map +1 -0
- package/dist/{index-lvZT1hVo.js → index-DnLb20V8.js} +12 -11
- package/dist/index-DnLb20V8.js.map +1 -0
- package/dist/{index.es-hfCMk9rm.js → index.es-CmB_yJCF.js} +2 -2
- package/dist/{index.es-hfCMk9rm.js.map → index.es-CmB_yJCF.js.map} +1 -1
- package/dist/{index.es-C2hTEGoR.js → index.es-DN5whlOO.js} +2 -2
- package/dist/{index.es-C2hTEGoR.js.map → index.es-DN5whlOO.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{secretService-C3-RQz_Q.js → secretService-AQfnpZHo.js} +2 -2
- package/dist/{secretService-C3-RQz_Q.js.map → secretService-AQfnpZHo.js.map} +1 -1
- package/dist/{secretService-CqZdXZDv.js → secretService-CHz5vw6s.js} +2 -2
- package/dist/{secretService-CqZdXZDv.js.map → secretService-CHz5vw6s.js.map} +1 -1
- package/dist/server.esm.js.map +1 -1
- package/dist/server.js.map +1 -1
- package/dist/services/internal/assetsService.d.ts +2 -1
- package/dist/{stellarService.client-Dwpk6ir6.js → stellarService.client-1ku2cXV6.js} +2 -2
- package/dist/{stellarService.client-Dwpk6ir6.js.map → stellarService.client-1ku2cXV6.js.map} +1 -1
- package/dist/{stellarService.client-C-9OeI3W.js → stellarService.client-Bre_DUVj.js} +2 -2
- package/dist/{stellarService.client-C-9OeI3W.js.map → stellarService.client-Bre_DUVj.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BlAWmCDu.js.map +0 -1
- package/dist/index-lvZT1hVo.js.map +0 -1
|
@@ -66,6 +66,7 @@ const WALLETCONNECT_WALLET_IDS = {
|
|
|
66
66
|
girin: "994824d1e0b935f48ec3570c9d51fe5af9bbd9246b6f57210906f8b853ad2196",
|
|
67
67
|
bifrost: "37a686ab6223cd42e2886ed6e5477fce100a4fb565dcd57ed4f81f7c12e93053",
|
|
68
68
|
};
|
|
69
|
+
const assetsBaseUrl = "https://assets.squidrouter.com";
|
|
69
70
|
const DEFAULT_LOCALE = "en-US";
|
|
70
71
|
const SQUID_METADATA = {
|
|
71
72
|
name: "Squid",
|
|
@@ -20673,7 +20674,7 @@ exports.WindowWalletFlag = void 0;
|
|
|
20673
20674
|
WindowWalletFlag["XBull"] = "xBullSDK";
|
|
20674
20675
|
})(exports.WindowWalletFlag || (exports.WindowWalletFlag = {}));
|
|
20675
20676
|
|
|
20676
|
-
const walletIconBaseUrl =
|
|
20677
|
+
const walletIconBaseUrl = `${assetsBaseUrl}/images/webp128/wallets`;
|
|
20677
20678
|
/**
|
|
20678
20679
|
* Dynamically accesses a nested property of an object based on a dot-separated string path.
|
|
20679
20680
|
* Returns the value of the property if found, otherwise undefined.
|
|
@@ -23197,7 +23198,6 @@ const calculateTotal24hChange = (tokensWithBalance, totalUSDAmount) => {
|
|
|
23197
23198
|
return weightedChangeSum;
|
|
23198
23199
|
};
|
|
23199
23200
|
|
|
23200
|
-
const assetsBaseUrl = "https://raw.githubusercontent.com/0xsquid/assets/main";
|
|
23201
23201
|
const shareSubgraphId = (token1, token2) => {
|
|
23202
23202
|
return Boolean(token1?.subGraphIds?.some((sgi) => !!token2?.subGraphIds?.includes(sgi)) ||
|
|
23203
23203
|
token2?.subGraphIds?.some((sgi) => !!token1?.subGraphIds?.includes(sgi)));
|
|
@@ -23661,7 +23661,7 @@ const filterViewableTokens = (tokens, config, direction) => {
|
|
|
23661
23661
|
};
|
|
23662
23662
|
const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
|
|
23663
23663
|
const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
|
|
23664
|
-
const { fetchAllSecretBalances } = await Promise.resolve().then(function () { return require('./secretService-
|
|
23664
|
+
const { fetchAllSecretBalances } = await Promise.resolve().then(function () { return require('./secretService-AQfnpZHo.js'); });
|
|
23665
23665
|
return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
|
|
23666
23666
|
};
|
|
23667
23667
|
function getTokenAssetsKey(token) {
|
|
@@ -25205,6 +25205,7 @@ const minAddressLength = 7;
|
|
|
25205
25205
|
const fuseSearchOptions = {
|
|
25206
25206
|
isCaseSensitive: false,
|
|
25207
25207
|
threshold: 0.1,
|
|
25208
|
+
distance: 1000,
|
|
25208
25209
|
findAllMatches: false,
|
|
25209
25210
|
includeMatches: true,
|
|
25210
25211
|
keys: [
|
|
@@ -28153,7 +28154,7 @@ function useCantonWallets() {
|
|
|
28153
28154
|
...formatCantonWallet({
|
|
28154
28155
|
connectorId: "canton-loop",
|
|
28155
28156
|
name: "Loop",
|
|
28156
|
-
icon:
|
|
28157
|
+
icon: `${assetsBaseUrl}/images/webp128/wallets/canton-loop.webp`,
|
|
28157
28158
|
connector: loopCantonConnector,
|
|
28158
28159
|
}),
|
|
28159
28160
|
links: { website: "https://cantonloop.com" },
|
|
@@ -28489,7 +28490,7 @@ function useStellarWallets() {
|
|
|
28489
28490
|
try {
|
|
28490
28491
|
const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
|
|
28491
28492
|
const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module.mjs');
|
|
28492
|
-
const { formatStellarWallet } = await Promise.resolve().then(function () { return require('./stellarService.client-
|
|
28493
|
+
const { formatStellarWallet } = await Promise.resolve().then(function () { return require('./stellarService.client-1ku2cXV6.js'); });
|
|
28493
28494
|
const modules = [...initializeAllModules(), new LedgerModule()];
|
|
28494
28495
|
const promises = modules.map(async (module) => {
|
|
28495
28496
|
const isAvailable = await module.isAvailable();
|
|
@@ -31945,7 +31946,7 @@ function hederaWalletConnect(parameters) {
|
|
|
31945
31946
|
const optionalChains = config.chains.map((x) => x.id);
|
|
31946
31947
|
if (!optionalChains.length)
|
|
31947
31948
|
return;
|
|
31948
|
-
const { EthereumProvider } = await Promise.resolve().then(function () { return require('./index.es-
|
|
31949
|
+
const { EthereumProvider } = await Promise.resolve().then(function () { return require('./index.es-DN5whlOO.js'); });
|
|
31949
31950
|
const rawProvider = await EthereumProvider.init({
|
|
31950
31951
|
...restParameters,
|
|
31951
31952
|
disableProviderPing: true,
|
|
@@ -36126,8 +36127,8 @@ const useDepositTransactionStatus = ({ transaction, route, enabled = true, onRec
|
|
|
36126
36127
|
return { transactionStatusQuery };
|
|
36127
36128
|
};
|
|
36128
36129
|
|
|
36129
|
-
const DEFAULT_PROVIDER_IMAGE_URL =
|
|
36130
|
-
const AXELAR_PROVIDER_IMAGE_URL =
|
|
36130
|
+
const DEFAULT_PROVIDER_IMAGE_URL = `${assetsBaseUrl}/images/webp128/providers/squid.webp`;
|
|
36131
|
+
const AXELAR_PROVIDER_IMAGE_URL = `${assetsBaseUrl}/images/webp128/providers/axelar.webp`;
|
|
36131
36132
|
const useEstimate = (squidRoute) => {
|
|
36132
36133
|
const collectFees = useConfigStore((state) => state.config.collectFees);
|
|
36133
36134
|
const { tokens } = useSquidTokens();
|
|
@@ -40271,11 +40272,11 @@ const useSwapTransactionStatus = ({ transaction, enabled = true, emitEvents = tr
|
|
|
40271
40272
|
};
|
|
40272
40273
|
|
|
40273
40274
|
const zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
40274
|
-
const avatarImagesBaseUrl =
|
|
40275
|
+
const avatarImagesBaseUrl = `${assetsBaseUrl}/squid-brand-assets/pfps/webp`;
|
|
40275
40276
|
const TOTAL_AVATARS = 60;
|
|
40276
40277
|
const avatarImages = Array.from({
|
|
40277
40278
|
length: TOTAL_AVATARS,
|
|
40278
|
-
}).map((_, i) => `${avatarImagesBaseUrl}/pfp${i + 1}.
|
|
40279
|
+
}).map((_, i) => `${avatarImagesBaseUrl}/pfp${i + 1}.webp`);
|
|
40279
40280
|
/**
|
|
40280
40281
|
* Simple hash function to create a deterministic index from a given string.
|
|
40281
40282
|
* @param {string} str - The input string to hash.
|
|
@@ -41077,4 +41078,4 @@ exports.useXrplTrustLine = useXrplTrustLine;
|
|
|
41077
41078
|
exports.waitForReceiptWithRetry = waitForReceiptWithRetry;
|
|
41078
41079
|
exports.walletIconBaseUrl = walletIconBaseUrl;
|
|
41079
41080
|
exports.walletSupportsChainType = walletSupportsChainType;
|
|
41080
|
-
//# sourceMappingURL=index-
|
|
41081
|
+
//# sourceMappingURL=index-DnLb20V8.js.map
|