@talismn/chaindata-provider 0.7.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 +26 -0
- package/dist/declarations/src/index.d.ts +5 -2
- 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 +42 -5
- package/dist/declarations/src/types/ChaindataProviderInterface.d.ts +42 -0
- package/dist/declarations/src/types/EvmNetwork.d.ts +17 -4
- 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 +912 -23
- package/dist/talismn-chaindata-provider.cjs.prod.js +912 -23
- package/dist/talismn-chaindata-provider.esm.js +858 -12
- 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 +27 -14
- package/CHANGELOG.md +0 -104
- package/dist/declarations/src/github.d.ts +0 -11
- package/dist/declarations/src/plugins.d.ts +0 -17
- package/dist/declarations/src/types/Token.d.ts +0 -48
- 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,404 @@
|
|
|
1
|
+
const tokens = [{
|
|
2
|
+
id: "kusama-asset-hub-substrate-assets-16-aris",
|
|
3
|
+
type: "substrate-assets",
|
|
4
|
+
isTestnet: false,
|
|
5
|
+
isDefault: true,
|
|
6
|
+
symbol: "ARIS",
|
|
7
|
+
decimals: 8,
|
|
8
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/aris.svg",
|
|
9
|
+
existentialDeposit: "10000000",
|
|
10
|
+
assetId: "16",
|
|
11
|
+
isFrozen: false,
|
|
12
|
+
chain: {
|
|
13
|
+
id: "kusama-asset-hub"
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
id: "kusama-asset-hub-substrate-assets-1984-usdt",
|
|
17
|
+
type: "substrate-assets",
|
|
18
|
+
isTestnet: false,
|
|
19
|
+
isDefault: true,
|
|
20
|
+
symbol: "USDT",
|
|
21
|
+
decimals: 6,
|
|
22
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/usdt.svg",
|
|
23
|
+
existentialDeposit: "100",
|
|
24
|
+
assetId: "1984",
|
|
25
|
+
isFrozen: false,
|
|
26
|
+
chain: {
|
|
27
|
+
id: "kusama-asset-hub"
|
|
28
|
+
},
|
|
29
|
+
coingeckoId: "tether"
|
|
30
|
+
}, {
|
|
31
|
+
id: "kusama-asset-hub-substrate-assets-50000002-dusd",
|
|
32
|
+
type: "substrate-assets",
|
|
33
|
+
isTestnet: false,
|
|
34
|
+
isDefault: true,
|
|
35
|
+
symbol: "dUSD",
|
|
36
|
+
decimals: 6,
|
|
37
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/dusd.webp",
|
|
38
|
+
existentialDeposit: "1",
|
|
39
|
+
assetId: "50000002",
|
|
40
|
+
isFrozen: false,
|
|
41
|
+
chain: {
|
|
42
|
+
id: "kusama-asset-hub"
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
id: "kusama-asset-hub-substrate-assets-8-rmrk",
|
|
46
|
+
type: "substrate-assets",
|
|
47
|
+
isTestnet: false,
|
|
48
|
+
isDefault: true,
|
|
49
|
+
symbol: "RMRK",
|
|
50
|
+
decimals: 10,
|
|
51
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/rmrk.svg",
|
|
52
|
+
existentialDeposit: "10000",
|
|
53
|
+
assetId: "8",
|
|
54
|
+
isFrozen: false,
|
|
55
|
+
chain: {
|
|
56
|
+
id: "kusama-asset-hub"
|
|
57
|
+
},
|
|
58
|
+
coingeckoId: "rmrk"
|
|
59
|
+
}, {
|
|
60
|
+
id: "kusama-asset-hub-substrate-native",
|
|
61
|
+
type: "substrate-native",
|
|
62
|
+
isTestnet: false,
|
|
63
|
+
isDefault: true,
|
|
64
|
+
symbol: "KSM",
|
|
65
|
+
decimals: 12,
|
|
66
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/ksm.svg",
|
|
67
|
+
existentialDeposit: "3333333",
|
|
68
|
+
chain: {
|
|
69
|
+
id: "kusama-asset-hub"
|
|
70
|
+
},
|
|
71
|
+
coingeckoId: "kusama"
|
|
72
|
+
}, {
|
|
73
|
+
id: "kusama-bridge-hub-substrate-native",
|
|
74
|
+
type: "substrate-native",
|
|
75
|
+
isTestnet: false,
|
|
76
|
+
isDefault: true,
|
|
77
|
+
symbol: "KSM",
|
|
78
|
+
decimals: 12,
|
|
79
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/chains/kusama-bridge-hub.svg",
|
|
80
|
+
existentialDeposit: "33333333",
|
|
81
|
+
chain: {
|
|
82
|
+
id: "kusama-bridge-hub"
|
|
83
|
+
},
|
|
84
|
+
coingeckoId: "kusama"
|
|
85
|
+
}, {
|
|
86
|
+
id: "kusama-substrate-native",
|
|
87
|
+
type: "substrate-native",
|
|
88
|
+
isTestnet: false,
|
|
89
|
+
isDefault: true,
|
|
90
|
+
symbol: "KSM",
|
|
91
|
+
decimals: 12,
|
|
92
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/ksm.svg",
|
|
93
|
+
existentialDeposit: "333333333",
|
|
94
|
+
chain: {
|
|
95
|
+
id: "kusama"
|
|
96
|
+
},
|
|
97
|
+
coingeckoId: "kusama"
|
|
98
|
+
}, {
|
|
99
|
+
id: "polkadot-asset-hub-substrate-assets-1337-usdc",
|
|
100
|
+
type: "substrate-assets",
|
|
101
|
+
isTestnet: false,
|
|
102
|
+
isDefault: true,
|
|
103
|
+
symbol: "USDC",
|
|
104
|
+
decimals: 6,
|
|
105
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/usdc.svg",
|
|
106
|
+
existentialDeposit: "10000",
|
|
107
|
+
assetId: "1337",
|
|
108
|
+
isFrozen: false,
|
|
109
|
+
chain: {
|
|
110
|
+
id: "polkadot-asset-hub"
|
|
111
|
+
},
|
|
112
|
+
coingeckoId: "usd-coin"
|
|
113
|
+
}, {
|
|
114
|
+
id: "polkadot-asset-hub-substrate-assets-17-wifd",
|
|
115
|
+
type: "substrate-assets",
|
|
116
|
+
isTestnet: false,
|
|
117
|
+
isDefault: true,
|
|
118
|
+
symbol: "WIFD",
|
|
119
|
+
decimals: 10,
|
|
120
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/wifd.svg",
|
|
121
|
+
existentialDeposit: "1",
|
|
122
|
+
assetId: "17",
|
|
123
|
+
isFrozen: false,
|
|
124
|
+
chain: {
|
|
125
|
+
id: "polkadot-asset-hub"
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
id: "polkadot-asset-hub-substrate-assets-18-dota",
|
|
129
|
+
type: "substrate-assets",
|
|
130
|
+
isTestnet: false,
|
|
131
|
+
isDefault: true,
|
|
132
|
+
symbol: "DOTA",
|
|
133
|
+
decimals: 4,
|
|
134
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/dota.svg",
|
|
135
|
+
existentialDeposit: "1",
|
|
136
|
+
assetId: "18",
|
|
137
|
+
isFrozen: false,
|
|
138
|
+
chain: {
|
|
139
|
+
id: "polkadot-asset-hub"
|
|
140
|
+
}
|
|
141
|
+
}, {
|
|
142
|
+
id: "polkadot-asset-hub-substrate-assets-1984-usdt",
|
|
143
|
+
type: "substrate-assets",
|
|
144
|
+
isTestnet: false,
|
|
145
|
+
isDefault: true,
|
|
146
|
+
symbol: "USDT",
|
|
147
|
+
decimals: 6,
|
|
148
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/usdt.svg",
|
|
149
|
+
existentialDeposit: "10000",
|
|
150
|
+
assetId: "1984",
|
|
151
|
+
isFrozen: false,
|
|
152
|
+
chain: {
|
|
153
|
+
id: "polkadot-asset-hub"
|
|
154
|
+
},
|
|
155
|
+
coingeckoId: "tether"
|
|
156
|
+
}, {
|
|
157
|
+
id: "polkadot-asset-hub-substrate-assets-23-pink",
|
|
158
|
+
type: "substrate-assets",
|
|
159
|
+
isTestnet: false,
|
|
160
|
+
isDefault: true,
|
|
161
|
+
symbol: "PINK",
|
|
162
|
+
decimals: 10,
|
|
163
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/pink.svg",
|
|
164
|
+
existentialDeposit: "1",
|
|
165
|
+
assetId: "23",
|
|
166
|
+
isFrozen: false,
|
|
167
|
+
chain: {
|
|
168
|
+
id: "polkadot-asset-hub"
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
id: "polkadot-asset-hub-substrate-assets-30-ded",
|
|
172
|
+
type: "substrate-assets",
|
|
173
|
+
isTestnet: false,
|
|
174
|
+
isDefault: true,
|
|
175
|
+
symbol: "DED",
|
|
176
|
+
decimals: 10,
|
|
177
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/ded.svg",
|
|
178
|
+
existentialDeposit: "1",
|
|
179
|
+
assetId: "30",
|
|
180
|
+
isFrozen: false,
|
|
181
|
+
chain: {
|
|
182
|
+
id: "polkadot-asset-hub"
|
|
183
|
+
},
|
|
184
|
+
coingeckoId: "dot-is-ded"
|
|
185
|
+
}, {
|
|
186
|
+
id: "polkadot-asset-hub-substrate-assets-31337-wud",
|
|
187
|
+
type: "substrate-assets",
|
|
188
|
+
isTestnet: false,
|
|
189
|
+
isDefault: true,
|
|
190
|
+
symbol: "WUD",
|
|
191
|
+
decimals: 10,
|
|
192
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/wud.webp",
|
|
193
|
+
existentialDeposit: "10000000",
|
|
194
|
+
assetId: "31337",
|
|
195
|
+
isFrozen: false,
|
|
196
|
+
chain: {
|
|
197
|
+
id: "polkadot-asset-hub"
|
|
198
|
+
},
|
|
199
|
+
coingeckoId: "gavun-wud"
|
|
200
|
+
}, {
|
|
201
|
+
id: "polkadot-asset-hub-substrate-assets-555-game",
|
|
202
|
+
type: "substrate-assets",
|
|
203
|
+
isTestnet: false,
|
|
204
|
+
isDefault: true,
|
|
205
|
+
symbol: "GAME",
|
|
206
|
+
decimals: 10,
|
|
207
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/game.svg",
|
|
208
|
+
existentialDeposit: "100000",
|
|
209
|
+
assetId: "555",
|
|
210
|
+
isFrozen: false,
|
|
211
|
+
chain: {
|
|
212
|
+
id: "polkadot-asset-hub"
|
|
213
|
+
}
|
|
214
|
+
}, {
|
|
215
|
+
id: "polkadot-asset-hub-substrate-assets-690-bork",
|
|
216
|
+
type: "substrate-assets",
|
|
217
|
+
isTestnet: false,
|
|
218
|
+
isDefault: true,
|
|
219
|
+
symbol: "BORK",
|
|
220
|
+
decimals: 10,
|
|
221
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/bork.svg",
|
|
222
|
+
existentialDeposit: "1",
|
|
223
|
+
assetId: "690",
|
|
224
|
+
isFrozen: false,
|
|
225
|
+
chain: {
|
|
226
|
+
id: "polkadot-asset-hub"
|
|
227
|
+
}
|
|
228
|
+
}, {
|
|
229
|
+
id: "polkadot-asset-hub-substrate-foreignassets-ajun",
|
|
230
|
+
type: "substrate-foreignassets",
|
|
231
|
+
isTestnet: false,
|
|
232
|
+
isDefault: true,
|
|
233
|
+
symbol: "AJUN",
|
|
234
|
+
decimals: 12,
|
|
235
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/ajun.svg",
|
|
236
|
+
existentialDeposit: "1000000000",
|
|
237
|
+
onChainId: '{"parents":1,"interior":{"type":"X1","value":{"type":"Parachain","value":2051}}}',
|
|
238
|
+
isFrozen: false,
|
|
239
|
+
chain: {
|
|
240
|
+
id: "polkadot-asset-hub"
|
|
241
|
+
},
|
|
242
|
+
coingeckoId: "ajuna-network-2"
|
|
243
|
+
}, {
|
|
244
|
+
id: "polkadot-asset-hub-substrate-foreignassets-bnc",
|
|
245
|
+
type: "substrate-foreignassets",
|
|
246
|
+
isTestnet: false,
|
|
247
|
+
isDefault: true,
|
|
248
|
+
symbol: "BNC",
|
|
249
|
+
decimals: 12,
|
|
250
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/bnc.svg",
|
|
251
|
+
existentialDeposit: "1",
|
|
252
|
+
onChainId: '{"parents":1,"interior":{"type":"X2","value":[{"type":"Parachain","value":2030},{"type":"GeneralKey","value":{"length":2,"data":"hex:0x0001000000000000000000000000000000000000000000000000000000000000"}}]}}',
|
|
253
|
+
isFrozen: false,
|
|
254
|
+
chain: {
|
|
255
|
+
id: "polkadot-asset-hub"
|
|
256
|
+
},
|
|
257
|
+
coingeckoId: "bifrost-native-coin"
|
|
258
|
+
}, {
|
|
259
|
+
id: "polkadot-asset-hub-substrate-foreignassets-eq",
|
|
260
|
+
type: "substrate-foreignassets",
|
|
261
|
+
isTestnet: false,
|
|
262
|
+
isDefault: true,
|
|
263
|
+
symbol: "EQ",
|
|
264
|
+
decimals: 9,
|
|
265
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/eq.svg",
|
|
266
|
+
existentialDeposit: "100000000000",
|
|
267
|
+
onChainId: '{"parents":1,"interior":{"type":"X1","value":{"type":"Parachain","value":2011}}}',
|
|
268
|
+
isFrozen: false,
|
|
269
|
+
chain: {
|
|
270
|
+
id: "polkadot-asset-hub"
|
|
271
|
+
},
|
|
272
|
+
coingeckoId: "equilibrium-token"
|
|
273
|
+
}, {
|
|
274
|
+
id: "polkadot-asset-hub-substrate-foreignassets-eqd",
|
|
275
|
+
type: "substrate-foreignassets",
|
|
276
|
+
isTestnet: false,
|
|
277
|
+
isDefault: true,
|
|
278
|
+
symbol: "EQD",
|
|
279
|
+
decimals: 9,
|
|
280
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/eqd.svg",
|
|
281
|
+
existentialDeposit: "1000000000",
|
|
282
|
+
onChainId: '{"parents":1,"interior":{"type":"X2","value":[{"type":"Parachain","value":2011},{"type":"GeneralKey","value":{"length":3,"data":"hex:0x6571640000000000000000000000000000000000000000000000000000000000"}}]}}',
|
|
283
|
+
isFrozen: false,
|
|
284
|
+
chain: {
|
|
285
|
+
id: "polkadot-asset-hub"
|
|
286
|
+
}
|
|
287
|
+
}, {
|
|
288
|
+
id: "polkadot-asset-hub-substrate-foreignassets-glmr",
|
|
289
|
+
type: "substrate-foreignassets",
|
|
290
|
+
isTestnet: false,
|
|
291
|
+
isDefault: true,
|
|
292
|
+
symbol: "GLMR",
|
|
293
|
+
decimals: 18,
|
|
294
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/glmr.svg",
|
|
295
|
+
existentialDeposit: "1",
|
|
296
|
+
onChainId: '{"parents":1,"interior":{"type":"X2","value":[{"type":"Parachain","value":2004},{"type":"PalletInstance","value":10}]}}',
|
|
297
|
+
isFrozen: false,
|
|
298
|
+
chain: {
|
|
299
|
+
id: "polkadot-asset-hub"
|
|
300
|
+
},
|
|
301
|
+
coingeckoId: "moonbeam"
|
|
302
|
+
}, {
|
|
303
|
+
id: "polkadot-asset-hub-substrate-foreignassets-hdx",
|
|
304
|
+
type: "substrate-foreignassets",
|
|
305
|
+
isTestnet: false,
|
|
306
|
+
isDefault: true,
|
|
307
|
+
symbol: "HDX",
|
|
308
|
+
decimals: 12,
|
|
309
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/hdx.svg",
|
|
310
|
+
existentialDeposit: "1",
|
|
311
|
+
onChainId: '{"parents":1,"interior":{"type":"X2","value":[{"type":"Parachain","value":2034},{"type":"GeneralIndex","value":"bigint:0"}]}}',
|
|
312
|
+
isFrozen: false,
|
|
313
|
+
chain: {
|
|
314
|
+
id: "polkadot-asset-hub"
|
|
315
|
+
},
|
|
316
|
+
coingeckoId: "hydradx"
|
|
317
|
+
}, {
|
|
318
|
+
id: "polkadot-asset-hub-substrate-foreignassets-ksm",
|
|
319
|
+
type: "substrate-foreignassets",
|
|
320
|
+
isTestnet: false,
|
|
321
|
+
isDefault: true,
|
|
322
|
+
symbol: "KSM",
|
|
323
|
+
decimals: 12,
|
|
324
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/ksm.svg",
|
|
325
|
+
existentialDeposit: "1000000000",
|
|
326
|
+
onChainId: '{"parents":2,"interior":{"type":"X1","value":{"type":"GlobalConsensus","value":{"type":"Kusama"}}}}',
|
|
327
|
+
isFrozen: false,
|
|
328
|
+
chain: {
|
|
329
|
+
id: "polkadot-asset-hub"
|
|
330
|
+
},
|
|
331
|
+
coingeckoId: "kusama"
|
|
332
|
+
}, {
|
|
333
|
+
id: "polkadot-asset-hub-substrate-foreignassets-myth",
|
|
334
|
+
type: "substrate-foreignassets",
|
|
335
|
+
isTestnet: false,
|
|
336
|
+
isDefault: true,
|
|
337
|
+
symbol: "MYTH",
|
|
338
|
+
decimals: 18,
|
|
339
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/myth.svg",
|
|
340
|
+
existentialDeposit: "10000000000000000",
|
|
341
|
+
onChainId: '{"parents":1,"interior":{"type":"X1","value":{"type":"Parachain","value":3369}}}',
|
|
342
|
+
isFrozen: false,
|
|
343
|
+
chain: {
|
|
344
|
+
id: "polkadot-asset-hub"
|
|
345
|
+
},
|
|
346
|
+
coingeckoId: "mythos"
|
|
347
|
+
}, {
|
|
348
|
+
id: "polkadot-asset-hub-substrate-foreignassets-vdot",
|
|
349
|
+
type: "substrate-foreignassets",
|
|
350
|
+
isTestnet: false,
|
|
351
|
+
isDefault: true,
|
|
352
|
+
symbol: "vDOT",
|
|
353
|
+
decimals: 10,
|
|
354
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/vdot.svg",
|
|
355
|
+
existentialDeposit: "1",
|
|
356
|
+
onChainId: '{"parents":1,"interior":{"type":"X2","value":[{"type":"Parachain","value":2030},{"type":"GeneralKey","value":{"length":2,"data":"hex:0x0900000000000000000000000000000000000000000000000000000000000000"}}]}}',
|
|
357
|
+
isFrozen: false,
|
|
358
|
+
chain: {
|
|
359
|
+
id: "polkadot-asset-hub"
|
|
360
|
+
},
|
|
361
|
+
coingeckoId: "voucher-dot"
|
|
362
|
+
}, {
|
|
363
|
+
id: "polkadot-asset-hub-substrate-native",
|
|
364
|
+
type: "substrate-native",
|
|
365
|
+
isTestnet: false,
|
|
366
|
+
isDefault: true,
|
|
367
|
+
symbol: "DOT",
|
|
368
|
+
decimals: 10,
|
|
369
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/dot.svg",
|
|
370
|
+
existentialDeposit: "100000000",
|
|
371
|
+
chain: {
|
|
372
|
+
id: "polkadot-asset-hub"
|
|
373
|
+
},
|
|
374
|
+
coingeckoId: "polkadot"
|
|
375
|
+
}, {
|
|
376
|
+
id: "polkadot-bridge-hub-substrate-native",
|
|
377
|
+
type: "substrate-native",
|
|
378
|
+
isTestnet: false,
|
|
379
|
+
isDefault: true,
|
|
380
|
+
symbol: "DOT",
|
|
381
|
+
decimals: 10,
|
|
382
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/chains/polkadot-bridge-hub.svg",
|
|
383
|
+
existentialDeposit: "1000000000",
|
|
384
|
+
chain: {
|
|
385
|
+
id: "polkadot-bridge-hub"
|
|
386
|
+
},
|
|
387
|
+
coingeckoId: "polkadot"
|
|
388
|
+
}, {
|
|
389
|
+
id: "polkadot-substrate-native",
|
|
390
|
+
type: "substrate-native",
|
|
391
|
+
isTestnet: false,
|
|
392
|
+
isDefault: true,
|
|
393
|
+
symbol: "DOT",
|
|
394
|
+
decimals: 10,
|
|
395
|
+
logo: "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/tokens/dot.svg",
|
|
396
|
+
existentialDeposit: "10000000000",
|
|
397
|
+
chain: {
|
|
398
|
+
id: "polkadot"
|
|
399
|
+
},
|
|
400
|
+
coingeckoId: "polkadot",
|
|
401
|
+
dcentName: "POLKADOT"
|
|
402
|
+
}];
|
|
403
|
+
|
|
404
|
+
export { tokens };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../dist/declarations/src/net";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var net_dist_talismnChaindataProviderNet = require('../../dist/net-BE0MfrDv.cjs.dev.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.availableTokenLogoFilenames = net_dist_talismnChaindataProviderNet.availableTokenLogoFilenames;
|
|
8
|
+
exports.fetchChain = net_dist_talismnChaindataProviderNet.fetchChain;
|
|
9
|
+
exports.fetchChains = net_dist_talismnChaindataProviderNet.fetchChains;
|
|
10
|
+
exports.fetchEvmNetwork = net_dist_talismnChaindataProviderNet.fetchEvmNetwork;
|
|
11
|
+
exports.fetchEvmNetworks = net_dist_talismnChaindataProviderNet.fetchEvmNetworks;
|
|
12
|
+
exports.fetchMiniMetadatas = net_dist_talismnChaindataProviderNet.fetchMiniMetadatas;
|
|
13
|
+
exports.fetchSubstrateToken = net_dist_talismnChaindataProviderNet.fetchSubstrateToken;
|
|
14
|
+
exports.fetchSubstrateTokens = net_dist_talismnChaindataProviderNet.fetchSubstrateTokens;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var net_dist_talismnChaindataProviderNet = require('../../dist/net-BE0MfrDv.cjs.prod.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.availableTokenLogoFilenames = net_dist_talismnChaindataProviderNet.availableTokenLogoFilenames;
|
|
8
|
+
exports.fetchChain = net_dist_talismnChaindataProviderNet.fetchChain;
|
|
9
|
+
exports.fetchChains = net_dist_talismnChaindataProviderNet.fetchChains;
|
|
10
|
+
exports.fetchEvmNetwork = net_dist_talismnChaindataProviderNet.fetchEvmNetwork;
|
|
11
|
+
exports.fetchEvmNetworks = net_dist_talismnChaindataProviderNet.fetchEvmNetworks;
|
|
12
|
+
exports.fetchMiniMetadatas = net_dist_talismnChaindataProviderNet.fetchMiniMetadatas;
|
|
13
|
+
exports.fetchSubstrateToken = net_dist_talismnChaindataProviderNet.fetchSubstrateToken;
|
|
14
|
+
exports.fetchSubstrateTokens = net_dist_talismnChaindataProviderNet.fetchSubstrateTokens;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { G as availableTokenLogoFilenames, f as fetchChain, c as fetchChains, b as fetchEvmNetwork, d as fetchEvmNetworks, F as fetchMiniMetadatas, a as fetchSubstrateToken, h as fetchSubstrateTokens } from '../../dist/net-il4EYhJN.esm.js';
|
package/net/package.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talismn/chaindata-provider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"author": "Talisman",
|
|
5
5
|
"homepage": "https://talisman.xyz",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -16,29 +16,36 @@
|
|
|
16
16
|
"module": "dist/talismn-chaindata-provider.esm.js",
|
|
17
17
|
"files": [
|
|
18
18
|
"/dist",
|
|
19
|
-
"/
|
|
19
|
+
"/init",
|
|
20
|
+
"/net"
|
|
20
21
|
],
|
|
21
22
|
"engines": {
|
|
22
23
|
"node": ">=18"
|
|
23
24
|
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"anylogger": "^1.0.11",
|
|
27
|
+
"dexie": "^4.0.9",
|
|
28
|
+
"rxjs": "^7.8.1"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"jest": "^
|
|
35
|
-
"ts-
|
|
36
|
-
"typescript": "^
|
|
31
|
+
"@types/jest": "^29.5.14",
|
|
32
|
+
"eslint": "^8.57.1",
|
|
33
|
+
"jest": "^29.7.0",
|
|
34
|
+
"prettier": "^3.3.3",
|
|
35
|
+
"ts-jest": "^29.2.5",
|
|
36
|
+
"ts-node": "^10.9.2",
|
|
37
|
+
"typescript": "^5.6.3",
|
|
38
|
+
"@talismn/eslint-config": "0.0.3",
|
|
39
|
+
"@talismn/tsconfig": "0.0.2"
|
|
37
40
|
},
|
|
38
41
|
"preconstruct": {
|
|
39
42
|
"entrypoints": [
|
|
40
43
|
"index.ts",
|
|
41
|
-
"
|
|
44
|
+
"init/chains.ts",
|
|
45
|
+
"init/evm-networks.ts",
|
|
46
|
+
"init/mini-metadatas.ts",
|
|
47
|
+
"init/tokens.ts",
|
|
48
|
+
"net.ts"
|
|
42
49
|
]
|
|
43
50
|
},
|
|
44
51
|
"eslintConfig": {
|
|
@@ -46,5 +53,11 @@
|
|
|
46
53
|
"extends": [
|
|
47
54
|
"@talismn/eslint-config/base"
|
|
48
55
|
]
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"test": "jest",
|
|
59
|
+
"lint": "eslint src --max-warnings 0",
|
|
60
|
+
"chore:generate-init-data": "ts-node scripts/generateInitData.ts",
|
|
61
|
+
"clean": "rm -rf dist init/*/dist net/dist .turbo node_modules"
|
|
49
62
|
}
|
|
50
63
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# @talismn/chaindata-provider
|
|
2
|
-
|
|
3
|
-
## 0.7.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- b920ab98: Added GPL licence
|
|
8
|
-
|
|
9
|
-
### Patch Changes
|
|
10
|
-
|
|
11
|
-
- 3c1a8b10: Dependency updates
|
|
12
|
-
|
|
13
|
-
## 0.6.0
|
|
14
|
-
|
|
15
|
-
## 0.5.0
|
|
16
|
-
|
|
17
|
-
### Minor Changes
|
|
18
|
-
|
|
19
|
-
- 1a2fdc73: feat: add isUnknownFeeToken on Chain
|
|
20
|
-
|
|
21
|
-
## 0.4.4
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- f7aca48b: eslint rules
|
|
26
|
-
- 48f0222e: fix: removed some explicit `any`s
|
|
27
|
-
- 01bf239b: fix: packages publishing with incorrect interdependency versions
|
|
28
|
-
|
|
29
|
-
## 0.4.3
|
|
30
|
-
|
|
31
|
-
### Patch Changes
|
|
32
|
-
|
|
33
|
-
- 79f6ccf6: added latestMetadataQrUrl to chaindata chains
|
|
34
|
-
- c24dc1fb: feat: added themeColor property to chains, evmNetworks, tokens
|
|
35
|
-
|
|
36
|
-
## 0.4.2
|
|
37
|
-
|
|
38
|
-
## 0.4.1
|
|
39
|
-
|
|
40
|
-
### Patch Changes
|
|
41
|
-
|
|
42
|
-
- 8adc7f06: feat: switched build tool to preconstruct
|
|
43
|
-
|
|
44
|
-
## 0.2.1
|
|
45
|
-
|
|
46
|
-
### Patch Changes
|
|
47
|
-
|
|
48
|
-
- 4aa691d: feat: new balance modules
|
|
49
|
-
|
|
50
|
-
## 0.2.0
|
|
51
|
-
|
|
52
|
-
## 0.1.10
|
|
53
|
-
|
|
54
|
-
### Patch Changes
|
|
55
|
-
|
|
56
|
-
- fix: a variety of improvements from the wallet integration
|
|
57
|
-
|
|
58
|
-
## 0.1.9
|
|
59
|
-
|
|
60
|
-
### Patch Changes
|
|
61
|
-
|
|
62
|
-
- 8ecb8214: fix: get token logo urls from chaindata-provider
|
|
63
|
-
|
|
64
|
-
## 0.1.8
|
|
65
|
-
|
|
66
|
-
## 0.1.7
|
|
67
|
-
|
|
68
|
-
## 0.1.6
|
|
69
|
-
|
|
70
|
-
### Patch Changes
|
|
71
|
-
|
|
72
|
-
- ca50757: feat: implemented token fiat rates in @talismn/balances
|
|
73
|
-
|
|
74
|
-
## 0.1.5
|
|
75
|
-
|
|
76
|
-
### Patch Changes
|
|
77
|
-
|
|
78
|
-
- d66c5bc: fix: evm native tokens
|
|
79
|
-
|
|
80
|
-
## 0.1.4
|
|
81
|
-
|
|
82
|
-
## 0.1.3
|
|
83
|
-
|
|
84
|
-
### Patch Changes
|
|
85
|
-
|
|
86
|
-
- d5f69f7: fix: migrated orml token code into substrate orml module
|
|
87
|
-
|
|
88
|
-
## 0.1.2
|
|
89
|
-
|
|
90
|
-
### Patch Changes
|
|
91
|
-
|
|
92
|
-
- 5af305c: switched build output from esm to commonjs for ecosystem compatibility
|
|
93
|
-
|
|
94
|
-
## 0.1.1
|
|
95
|
-
|
|
96
|
-
### Patch Changes
|
|
97
|
-
|
|
98
|
-
- Fixed publish config
|
|
99
|
-
|
|
100
|
-
## 0.1.0
|
|
101
|
-
|
|
102
|
-
### Minor Changes
|
|
103
|
-
|
|
104
|
-
- 43c1a3a: Initial release
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChainId, EvmNetworkId, TokenId } from "./types";
|
|
2
|
-
export declare const githubChaindataBranch = "v3";
|
|
3
|
-
export declare const githubChaindataBaseUrl: string;
|
|
4
|
-
export declare const githubChainsUrl: string;
|
|
5
|
-
export declare const githubTestnetChainsUrl: string;
|
|
6
|
-
export declare const githubEvmNetworksUrl: string;
|
|
7
|
-
export declare const githubTokensUrl: string;
|
|
8
|
-
export declare const githubChainLogoUrl: (chainId: ChainId) => string;
|
|
9
|
-
export declare const githubEvmNetworkLogoUrl: (networkId: EvmNetworkId) => string;
|
|
10
|
-
export declare const githubTokenLogoUrl: (tokenId: TokenId) => string;
|
|
11
|
-
export declare const githubUnknownTokenLogoUrl: string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `PluginTokenTypes` is a collection of plugin-provided token definitions.
|
|
3
|
-
*
|
|
4
|
-
* By hacking declaration merging (typescript magic) we can add variants to this type from within other modules.
|
|
5
|
-
*
|
|
6
|
-
* For more details on this process, see:
|
|
7
|
-
* - https://www.typescriptlang.org/docs/handbook/declaration-merging.html
|
|
8
|
-
* - https://stackoverflow.com/a/58261244/3926156
|
|
9
|
-
* - https://stackoverflow.com/a/56099769/3926156
|
|
10
|
-
* - https://stackoverflow.com/a/56516998/3926156
|
|
11
|
-
* - https://pqina.nl/blog/typescript-interface-merging-and-extending-modules/
|
|
12
|
-
*
|
|
13
|
-
* As a result, consumers of this api will have type information for the `Token` type
|
|
14
|
-
* based on the selection of plugins they are using in their app.
|
|
15
|
-
*/
|
|
16
|
-
export interface PluginTokenTypes {
|
|
17
|
-
}
|