@talismn/balances 0.0.0-pr2075-20250707143634 → 0.0.0-pr2075-20250707152840
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.
@@ -1717,15 +1717,7 @@ const fetchTokens$8 = async ({
|
|
1717
1717
|
name,
|
1718
1718
|
decimals,
|
1719
1719
|
symbol
|
1720
|
-
} = await
|
1721
|
-
delay: 1000,
|
1722
|
-
// should help with rate limiting
|
1723
|
-
retryCount: 1,
|
1724
|
-
shouldRetry: err => {
|
1725
|
-
const msg = err.error.shortMessage;
|
1726
|
-
return !msg.includes("returned no data") && !msg.includes("is out of bounds") && !msg.includes("reverted");
|
1727
|
-
}
|
1728
|
-
});
|
1720
|
+
} = await getErc20ContractData$1(client, tokenConfig.contractAddress);
|
1729
1721
|
cache[tokenId] = {
|
1730
1722
|
id: tokenId,
|
1731
1723
|
symbol,
|
@@ -1717,15 +1717,7 @@ const fetchTokens$8 = async ({
|
|
1717
1717
|
name,
|
1718
1718
|
decimals,
|
1719
1719
|
symbol
|
1720
|
-
} = await
|
1721
|
-
delay: 1000,
|
1722
|
-
// should help with rate limiting
|
1723
|
-
retryCount: 1,
|
1724
|
-
shouldRetry: err => {
|
1725
|
-
const msg = err.error.shortMessage;
|
1726
|
-
return !msg.includes("returned no data") && !msg.includes("is out of bounds") && !msg.includes("reverted");
|
1727
|
-
}
|
1728
|
-
});
|
1720
|
+
} = await getErc20ContractData$1(client, tokenConfig.contractAddress);
|
1729
1721
|
cache[tokenId] = {
|
1730
1722
|
id: tokenId,
|
1731
1723
|
symbol,
|
@@ -8,7 +8,7 @@ import BigNumber from 'bignumber.js';
|
|
8
8
|
import { u8aToHex, assert, stringCamelCase, u8aConcatStrict, u8aToString, hexToNumber, arrayChunk, hexToU8a } from '@polkadot/util';
|
9
9
|
import { xxhashAsU8a } from '@polkadot/util-crypto';
|
10
10
|
import pako from 'pako';
|
11
|
-
import { parseAbi, erc20Abi, getContract, ContractFunctionExecutionError, hexToString, erc20Abi_bytes32,
|
11
|
+
import { parseAbi, erc20Abi, getContract, ContractFunctionExecutionError, hexToString, erc20Abi_bytes32, encodeFunctionData, isHex, hexToBigInt, withRetry } from 'viem';
|
12
12
|
import { assign, omit, isEqual, fromPairs, toPairs, keys, keyBy, uniq, values, groupBy as groupBy$1 } from 'lodash';
|
13
13
|
import z from 'zod/v4';
|
14
14
|
import { Observable, distinctUntilChanged, of, timer, switchMap, from, firstValueFrom, scan, share, map, switchAll, combineLatest, mergeMap, toArray, interval, startWith, exhaustMap, BehaviorSubject, debounceTime, takeUntil, withLatestFrom, concatMap } from 'rxjs';
|
@@ -1704,15 +1704,7 @@ const fetchTokens$8 = async ({
|
|
1704
1704
|
name,
|
1705
1705
|
decimals,
|
1706
1706
|
symbol
|
1707
|
-
} = await
|
1708
|
-
delay: 1000,
|
1709
|
-
// should help with rate limiting
|
1710
|
-
retryCount: 1,
|
1711
|
-
shouldRetry: err => {
|
1712
|
-
const msg = err.error.shortMessage;
|
1713
|
-
return !msg.includes("returned no data") && !msg.includes("is out of bounds") && !msg.includes("reverted");
|
1714
|
-
}
|
1715
|
-
});
|
1707
|
+
} = await getErc20ContractData$1(client, tokenConfig.contractAddress);
|
1716
1708
|
cache[tokenId] = {
|
1717
1709
|
id: tokenId,
|
1718
1710
|
symbol,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@talismn/balances",
|
3
|
-
"version": "0.0.0-pr2075-
|
3
|
+
"version": "0.0.0-pr2075-20250707152840",
|
4
4
|
"author": "Talisman",
|
5
5
|
"homepage": "https://talisman.xyz",
|
6
6
|
"license": "GPL-3.0-or-later",
|
@@ -35,13 +35,13 @@
|
|
35
35
|
"scale-ts": "^1.6.1",
|
36
36
|
"viem": "^2.27.3",
|
37
37
|
"zod": "^3.25.62",
|
38
|
-
"@talismn/chain-connector
|
39
|
-
"@talismn/chain-connector": "0.0.0-pr2075-
|
40
|
-
"@talismn/chaindata-provider": "0.0.0-pr2075-
|
41
|
-
"@talismn/sapi": "0.0.0-pr2075-
|
42
|
-
"@talismn/scale": "0.0.0-pr2075-
|
43
|
-
"@talismn/token-rates": "0.0.0-pr2075-
|
44
|
-
"@talismn/util": "0.0.0-pr2075-
|
38
|
+
"@talismn/chain-connector": "0.0.0-pr2075-20250707152840",
|
39
|
+
"@talismn/chain-connector-evm": "0.0.0-pr2075-20250707152840",
|
40
|
+
"@talismn/chaindata-provider": "0.0.0-pr2075-20250707152840",
|
41
|
+
"@talismn/sapi": "0.0.0-pr2075-20250707152840",
|
42
|
+
"@talismn/scale": "0.0.0-pr2075-20250707152840",
|
43
|
+
"@talismn/token-rates": "0.0.0-pr2075-20250707152840",
|
44
|
+
"@talismn/util": "0.0.0-pr2075-20250707152840"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@polkadot/api-contract": "16.1.2",
|