@talismn/chaindata-provider 0.8.0 → 0.8.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/declarations/src/ChaindataProvider.d.ts +90 -17
- package/dist/declarations/src/TalismanChaindataDatabase.d.ts +9 -0
- package/dist/declarations/src/constants.d.ts +13 -14
- package/dist/declarations/src/index.d.ts +5 -3
- package/dist/declarations/src/init/chains.d.ts +243 -0
- package/dist/declarations/src/init/evm-networks.d.ts +61 -0
- package/dist/declarations/src/init/index.d.ts +5 -0
- package/dist/declarations/src/init/mini-metadatas.d.ts +21 -0
- package/dist/declarations/src/init/tokens.d.ts +103 -0
- package/dist/declarations/src/log.d.ts +2 -0
- package/dist/declarations/src/net.d.ts +8 -0
- package/dist/declarations/src/types/Chain.d.ts +29 -1
- package/dist/declarations/src/types/ChaindataProviderInterface.d.ts +42 -0
- package/dist/declarations/src/types/EvmNetwork.d.ts +11 -1
- package/dist/declarations/src/types/Token/EvmErc20Token.d.ts +15 -0
- package/dist/declarations/src/types/Token/EvmNativeToken.d.ts +10 -0
- package/dist/declarations/src/types/Token/EvmUniswapV2Token.d.ts +22 -0
- package/dist/declarations/src/types/Token/SubstrateAssetsToken.d.ts +12 -0
- package/dist/declarations/src/types/Token/SubstrateEquilibriumToken.d.ts +11 -0
- package/dist/declarations/src/types/Token/SubstrateForeignAssetsToken.d.ts +12 -0
- package/dist/declarations/src/types/Token/SubstrateNativeToken.d.ts +13 -0
- package/dist/declarations/src/types/Token/SubstratePsp22Token.d.ts +11 -0
- package/dist/declarations/src/types/Token/SubstrateTokensToken.d.ts +11 -0
- package/dist/declarations/src/types/Token/index.d.ts +26 -0
- package/dist/declarations/src/types/Token/types.d.ts +27 -0
- package/dist/declarations/src/types/index.d.ts +1 -0
- package/dist/declarations/src/upgrades/2024-01-25-upgradeAddIsDefaultToExistingChains.d.ts +2 -0
- package/dist/declarations/src/upgrades/2024-01-25-upgradeRemoveSymbolFromNativeTokenId.d.ts +2 -0
- package/dist/declarations/src/upgrades/index.d.ts +1 -0
- package/dist/declarations/src/util.d.ts +27 -0
- package/dist/net-BE0MfrDv.cjs.dev.js +89 -0
- package/dist/net-BE0MfrDv.cjs.prod.js +89 -0
- package/dist/net-il4EYhJN.esm.js +55 -0
- package/dist/talismn-chaindata-provider.cjs.dev.js +893 -57
- package/dist/talismn-chaindata-provider.cjs.prod.js +893 -57
- package/dist/talismn-chaindata-provider.esm.js +842 -31
- package/init/chains/dist/talismn-chaindata-provider-init-chains.cjs.d.ts +1 -0
- package/init/chains/dist/talismn-chaindata-provider-init-chains.cjs.dev.js +934 -0
- package/init/chains/dist/talismn-chaindata-provider-init-chains.cjs.js +7 -0
- package/init/chains/dist/talismn-chaindata-provider-init-chains.cjs.prod.js +934 -0
- package/init/chains/dist/talismn-chaindata-provider-init-chains.esm.js +932 -0
- package/init/chains/package.json +4 -0
- package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.cjs.d.ts +1 -0
- package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.cjs.dev.js +69 -0
- package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.cjs.js +7 -0
- package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.cjs.prod.js +69 -0
- package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.esm.js +67 -0
- package/init/evm-networks/package.json +4 -0
- package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.cjs.d.ts +1 -0
- package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.cjs.dev.js +311 -0
- package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.cjs.js +7 -0
- package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.cjs.prod.js +311 -0
- package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.esm.js +309 -0
- package/init/mini-metadatas/package.json +4 -0
- package/init/tokens/dist/talismn-chaindata-provider-init-tokens.cjs.d.ts +1 -0
- package/init/tokens/dist/talismn-chaindata-provider-init-tokens.cjs.dev.js +406 -0
- package/init/tokens/dist/talismn-chaindata-provider-init-tokens.cjs.js +7 -0
- package/init/tokens/dist/talismn-chaindata-provider-init-tokens.cjs.prod.js +406 -0
- package/init/tokens/dist/talismn-chaindata-provider-init-tokens.esm.js +404 -0
- package/init/tokens/package.json +4 -0
- package/net/dist/talismn-chaindata-provider-net.cjs.d.ts +1 -0
- package/net/dist/talismn-chaindata-provider-net.cjs.dev.js +14 -0
- package/net/dist/talismn-chaindata-provider-net.cjs.js +7 -0
- package/net/dist/talismn-chaindata-provider-net.cjs.prod.js +14 -0
- package/net/dist/talismn-chaindata-provider-net.esm.js +1 -0
- package/net/package.json +4 -0
- package/package.json +26 -13
- package/CHANGELOG.md +0 -115
- package/dist/declarations/src/helpers.d.ts +0 -3
- package/dist/declarations/src/plugins.d.ts +0 -17
- package/dist/declarations/src/types/Token.d.ts +0 -58
- package/plugins/dist/talismn-chaindata-provider-plugins.cjs.d.ts +0 -1
- package/plugins/dist/talismn-chaindata-provider-plugins.cjs.dev.js +0 -2
- package/plugins/dist/talismn-chaindata-provider-plugins.cjs.js +0 -7
- package/plugins/dist/talismn-chaindata-provider-plugins.cjs.prod.js +0 -2
- package/plugins/dist/talismn-chaindata-provider-plugins.esm.js +0 -1
- package/plugins/package.json +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../dist/declarations/src/init/evm-networks";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const evmNetworks = [{
|
|
4
|
+
id: "1",
|
|
5
|
+
isTestnet: false,
|
|
6
|
+
sortIndex: 355,
|
|
7
|
+
name: "Ethereum Mainnet",
|
|
8
|
+
themeColor: "#62688f",
|
|
9
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/chains/1.svg",
|
|
10
|
+
nativeToken: null,
|
|
11
|
+
tokens: [],
|
|
12
|
+
explorerUrl: "https://etherscan.io",
|
|
13
|
+
rpcs: [{
|
|
14
|
+
url: "https://mempool.merkle.io/rpc/eth/pk_mbs_1412a7392bd47753ca2b4bb3d123f6a1"
|
|
15
|
+
}, {
|
|
16
|
+
url: "https://rpc.ankr.com/eth"
|
|
17
|
+
}, {
|
|
18
|
+
url: "https://ethereum-rpc.publicnode.com"
|
|
19
|
+
}, {
|
|
20
|
+
url: "https://eth.merkle.io"
|
|
21
|
+
}, {
|
|
22
|
+
url: "https://ethereum.rpc.subquery.network/public"
|
|
23
|
+
}, {
|
|
24
|
+
url: "https://eth.llamarpc.com"
|
|
25
|
+
}],
|
|
26
|
+
substrateChain: null,
|
|
27
|
+
feeType: "eip-1559",
|
|
28
|
+
erc20aggregator: "0x2e556284556ecEe5754d201bBB6E2cb47fB95DFd",
|
|
29
|
+
balancesConfig: [{
|
|
30
|
+
moduleType: "evm-native",
|
|
31
|
+
moduleConfig: {
|
|
32
|
+
coingeckoId: "ethereum",
|
|
33
|
+
dcentName: "ETHEREUM",
|
|
34
|
+
symbol: "ETH",
|
|
35
|
+
decimals: 18,
|
|
36
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/eth.svg"
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
moduleType: "evm-erc20",
|
|
40
|
+
moduleConfig: {
|
|
41
|
+
tokens: [{
|
|
42
|
+
symbol: "USDC",
|
|
43
|
+
contractAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
44
|
+
coingeckoId: "usd-coin",
|
|
45
|
+
isDefault: true,
|
|
46
|
+
decimals: 6,
|
|
47
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/usdc.svg"
|
|
48
|
+
}, {
|
|
49
|
+
symbol: "DAI",
|
|
50
|
+
contractAddress: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
51
|
+
coingeckoId: "dai",
|
|
52
|
+
isDefault: true,
|
|
53
|
+
decimals: 18,
|
|
54
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/coingecko/dai.webp"
|
|
55
|
+
}]
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
moduleType: "evm-uniswapv2",
|
|
59
|
+
moduleConfig: {
|
|
60
|
+
pools: [],
|
|
61
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/unknown.svg"
|
|
62
|
+
}
|
|
63
|
+
}],
|
|
64
|
+
balancesMetadata: [],
|
|
65
|
+
isDefault: true,
|
|
66
|
+
forceScan: false
|
|
67
|
+
}];
|
|
68
|
+
|
|
69
|
+
exports.evmNetworks = evmNetworks;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const evmNetworks = [{
|
|
4
|
+
id: "1",
|
|
5
|
+
isTestnet: false,
|
|
6
|
+
sortIndex: 355,
|
|
7
|
+
name: "Ethereum Mainnet",
|
|
8
|
+
themeColor: "#62688f",
|
|
9
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/chains/1.svg",
|
|
10
|
+
nativeToken: null,
|
|
11
|
+
tokens: [],
|
|
12
|
+
explorerUrl: "https://etherscan.io",
|
|
13
|
+
rpcs: [{
|
|
14
|
+
url: "https://mempool.merkle.io/rpc/eth/pk_mbs_1412a7392bd47753ca2b4bb3d123f6a1"
|
|
15
|
+
}, {
|
|
16
|
+
url: "https://rpc.ankr.com/eth"
|
|
17
|
+
}, {
|
|
18
|
+
url: "https://ethereum-rpc.publicnode.com"
|
|
19
|
+
}, {
|
|
20
|
+
url: "https://eth.merkle.io"
|
|
21
|
+
}, {
|
|
22
|
+
url: "https://ethereum.rpc.subquery.network/public"
|
|
23
|
+
}, {
|
|
24
|
+
url: "https://eth.llamarpc.com"
|
|
25
|
+
}],
|
|
26
|
+
substrateChain: null,
|
|
27
|
+
feeType: "eip-1559",
|
|
28
|
+
erc20aggregator: "0x2e556284556ecEe5754d201bBB6E2cb47fB95DFd",
|
|
29
|
+
balancesConfig: [{
|
|
30
|
+
moduleType: "evm-native",
|
|
31
|
+
moduleConfig: {
|
|
32
|
+
coingeckoId: "ethereum",
|
|
33
|
+
dcentName: "ETHEREUM",
|
|
34
|
+
symbol: "ETH",
|
|
35
|
+
decimals: 18,
|
|
36
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/eth.svg"
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
moduleType: "evm-erc20",
|
|
40
|
+
moduleConfig: {
|
|
41
|
+
tokens: [{
|
|
42
|
+
symbol: "USDC",
|
|
43
|
+
contractAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
44
|
+
coingeckoId: "usd-coin",
|
|
45
|
+
isDefault: true,
|
|
46
|
+
decimals: 6,
|
|
47
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/usdc.svg"
|
|
48
|
+
}, {
|
|
49
|
+
symbol: "DAI",
|
|
50
|
+
contractAddress: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
51
|
+
coingeckoId: "dai",
|
|
52
|
+
isDefault: true,
|
|
53
|
+
decimals: 18,
|
|
54
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/coingecko/dai.webp"
|
|
55
|
+
}]
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
moduleType: "evm-uniswapv2",
|
|
59
|
+
moduleConfig: {
|
|
60
|
+
pools: [],
|
|
61
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/unknown.svg"
|
|
62
|
+
}
|
|
63
|
+
}],
|
|
64
|
+
balancesMetadata: [],
|
|
65
|
+
isDefault: true,
|
|
66
|
+
forceScan: false
|
|
67
|
+
}];
|
|
68
|
+
|
|
69
|
+
exports.evmNetworks = evmNetworks;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const evmNetworks = [{
|
|
2
|
+
id: "1",
|
|
3
|
+
isTestnet: false,
|
|
4
|
+
sortIndex: 355,
|
|
5
|
+
name: "Ethereum Mainnet",
|
|
6
|
+
themeColor: "#62688f",
|
|
7
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/chains/1.svg",
|
|
8
|
+
nativeToken: null,
|
|
9
|
+
tokens: [],
|
|
10
|
+
explorerUrl: "https://etherscan.io",
|
|
11
|
+
rpcs: [{
|
|
12
|
+
url: "https://mempool.merkle.io/rpc/eth/pk_mbs_1412a7392bd47753ca2b4bb3d123f6a1"
|
|
13
|
+
}, {
|
|
14
|
+
url: "https://rpc.ankr.com/eth"
|
|
15
|
+
}, {
|
|
16
|
+
url: "https://ethereum-rpc.publicnode.com"
|
|
17
|
+
}, {
|
|
18
|
+
url: "https://eth.merkle.io"
|
|
19
|
+
}, {
|
|
20
|
+
url: "https://ethereum.rpc.subquery.network/public"
|
|
21
|
+
}, {
|
|
22
|
+
url: "https://eth.llamarpc.com"
|
|
23
|
+
}],
|
|
24
|
+
substrateChain: null,
|
|
25
|
+
feeType: "eip-1559",
|
|
26
|
+
erc20aggregator: "0x2e556284556ecEe5754d201bBB6E2cb47fB95DFd",
|
|
27
|
+
balancesConfig: [{
|
|
28
|
+
moduleType: "evm-native",
|
|
29
|
+
moduleConfig: {
|
|
30
|
+
coingeckoId: "ethereum",
|
|
31
|
+
dcentName: "ETHEREUM",
|
|
32
|
+
symbol: "ETH",
|
|
33
|
+
decimals: 18,
|
|
34
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/eth.svg"
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
moduleType: "evm-erc20",
|
|
38
|
+
moduleConfig: {
|
|
39
|
+
tokens: [{
|
|
40
|
+
symbol: "USDC",
|
|
41
|
+
contractAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
42
|
+
coingeckoId: "usd-coin",
|
|
43
|
+
isDefault: true,
|
|
44
|
+
decimals: 6,
|
|
45
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/usdc.svg"
|
|
46
|
+
}, {
|
|
47
|
+
symbol: "DAI",
|
|
48
|
+
contractAddress: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
49
|
+
coingeckoId: "dai",
|
|
50
|
+
isDefault: true,
|
|
51
|
+
decimals: 18,
|
|
52
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/coingecko/dai.webp"
|
|
53
|
+
}]
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
moduleType: "evm-uniswapv2",
|
|
57
|
+
moduleConfig: {
|
|
58
|
+
pools: [],
|
|
59
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/unknown.svg"
|
|
60
|
+
}
|
|
61
|
+
}],
|
|
62
|
+
balancesMetadata: [],
|
|
63
|
+
isDefault: true,
|
|
64
|
+
forceScan: false
|
|
65
|
+
}];
|
|
66
|
+
|
|
67
|
+
export { evmNetworks };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../dist/declarations/src/init/mini-metadatas";
|