@talismn/chaindata-provider 0.8.0 → 0.8.2

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.
Files changed (77) hide show
  1. package/dist/declarations/src/ChaindataProvider.d.ts +90 -17
  2. package/dist/declarations/src/TalismanChaindataDatabase.d.ts +9 -0
  3. package/dist/declarations/src/constants.d.ts +13 -14
  4. package/dist/declarations/src/index.d.ts +5 -3
  5. package/dist/declarations/src/init/chains.d.ts +243 -0
  6. package/dist/declarations/src/init/evm-networks.d.ts +61 -0
  7. package/dist/declarations/src/init/index.d.ts +5 -0
  8. package/dist/declarations/src/init/mini-metadatas.d.ts +21 -0
  9. package/dist/declarations/src/init/tokens.d.ts +103 -0
  10. package/dist/declarations/src/log.d.ts +2 -0
  11. package/dist/declarations/src/net.d.ts +8 -0
  12. package/dist/declarations/src/types/Chain.d.ts +29 -1
  13. package/dist/declarations/src/types/ChaindataProviderInterface.d.ts +42 -0
  14. package/dist/declarations/src/types/EvmNetwork.d.ts +11 -1
  15. package/dist/declarations/src/types/Token/EvmErc20Token.d.ts +15 -0
  16. package/dist/declarations/src/types/Token/EvmNativeToken.d.ts +10 -0
  17. package/dist/declarations/src/types/Token/EvmUniswapV2Token.d.ts +22 -0
  18. package/dist/declarations/src/types/Token/SubstrateAssetsToken.d.ts +12 -0
  19. package/dist/declarations/src/types/Token/SubstrateEquilibriumToken.d.ts +11 -0
  20. package/dist/declarations/src/types/Token/SubstrateForeignAssetsToken.d.ts +12 -0
  21. package/dist/declarations/src/types/Token/SubstrateNativeToken.d.ts +13 -0
  22. package/dist/declarations/src/types/Token/SubstratePsp22Token.d.ts +11 -0
  23. package/dist/declarations/src/types/Token/SubstrateTokensToken.d.ts +11 -0
  24. package/dist/declarations/src/types/Token/index.d.ts +26 -0
  25. package/dist/declarations/src/types/Token/types.d.ts +27 -0
  26. package/dist/declarations/src/types/index.d.ts +1 -0
  27. package/dist/declarations/src/upgrades/2024-01-25-upgradeAddIsDefaultToExistingChains.d.ts +2 -0
  28. package/dist/declarations/src/upgrades/2024-01-25-upgradeRemoveSymbolFromNativeTokenId.d.ts +2 -0
  29. package/dist/declarations/src/upgrades/index.d.ts +1 -0
  30. package/dist/declarations/src/util.d.ts +27 -0
  31. package/dist/net-BE0MfrDv.cjs.dev.js +89 -0
  32. package/dist/net-BE0MfrDv.cjs.prod.js +89 -0
  33. package/dist/net-il4EYhJN.esm.js +55 -0
  34. package/dist/talismn-chaindata-provider.cjs.dev.js +893 -57
  35. package/dist/talismn-chaindata-provider.cjs.prod.js +893 -57
  36. package/dist/talismn-chaindata-provider.esm.js +842 -31
  37. package/init/chains/dist/talismn-chaindata-provider-init-chains.cjs.d.ts +1 -0
  38. package/init/chains/dist/talismn-chaindata-provider-init-chains.cjs.dev.js +910 -0
  39. package/init/chains/dist/talismn-chaindata-provider-init-chains.cjs.js +7 -0
  40. package/init/chains/dist/talismn-chaindata-provider-init-chains.cjs.prod.js +910 -0
  41. package/init/chains/dist/talismn-chaindata-provider-init-chains.esm.js +908 -0
  42. package/init/chains/package.json +4 -0
  43. package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.cjs.d.ts +1 -0
  44. package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.cjs.dev.js +69 -0
  45. package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.cjs.js +7 -0
  46. package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.cjs.prod.js +69 -0
  47. package/init/evm-networks/dist/talismn-chaindata-provider-init-evm-networks.esm.js +67 -0
  48. package/init/evm-networks/package.json +4 -0
  49. package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.cjs.d.ts +1 -0
  50. package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.cjs.dev.js +311 -0
  51. package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.cjs.js +7 -0
  52. package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.cjs.prod.js +311 -0
  53. package/init/mini-metadatas/dist/talismn-chaindata-provider-init-mini-metadatas.esm.js +309 -0
  54. package/init/mini-metadatas/package.json +4 -0
  55. package/init/tokens/dist/talismn-chaindata-provider-init-tokens.cjs.d.ts +1 -0
  56. package/init/tokens/dist/talismn-chaindata-provider-init-tokens.cjs.dev.js +406 -0
  57. package/init/tokens/dist/talismn-chaindata-provider-init-tokens.cjs.js +7 -0
  58. package/init/tokens/dist/talismn-chaindata-provider-init-tokens.cjs.prod.js +406 -0
  59. package/init/tokens/dist/talismn-chaindata-provider-init-tokens.esm.js +404 -0
  60. package/init/tokens/package.json +4 -0
  61. package/net/dist/talismn-chaindata-provider-net.cjs.d.ts +1 -0
  62. package/net/dist/talismn-chaindata-provider-net.cjs.dev.js +14 -0
  63. package/net/dist/talismn-chaindata-provider-net.cjs.js +7 -0
  64. package/net/dist/talismn-chaindata-provider-net.cjs.prod.js +14 -0
  65. package/net/dist/talismn-chaindata-provider-net.esm.js +1 -0
  66. package/net/package.json +4 -0
  67. package/package.json +26 -13
  68. package/CHANGELOG.md +0 -115
  69. package/dist/declarations/src/helpers.d.ts +0 -3
  70. package/dist/declarations/src/plugins.d.ts +0 -17
  71. package/dist/declarations/src/types/Token.d.ts +0 -58
  72. package/plugins/dist/talismn-chaindata-provider-plugins.cjs.d.ts +0 -1
  73. package/plugins/dist/talismn-chaindata-provider-plugins.cjs.dev.js +0 -2
  74. package/plugins/dist/talismn-chaindata-provider-plugins.cjs.js +0 -7
  75. package/plugins/dist/talismn-chaindata-provider-plugins.cjs.prod.js +0 -2
  76. package/plugins/dist/talismn-chaindata-provider-plugins.esm.js +0 -1
  77. 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,4 @@
1
+ {
2
+ "main": "dist/talismn-chaindata-provider-init-tokens.cjs.js",
3
+ "module": "dist/talismn-chaindata-provider-init-tokens.esm.js"
4
+ }
@@ -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,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./talismn-chaindata-provider-net.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./talismn-chaindata-provider-net.cjs.dev.js");
7
+ }
@@ -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';
@@ -0,0 +1,4 @@
1
+ {
2
+ "main": "dist/talismn-chaindata-provider-net.cjs.js",
3
+ "module": "dist/talismn-chaindata-provider-net.esm.js"
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/chaindata-provider",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
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
- "/plugins"
19
+ "/init",
20
+ "/net"
20
21
  ],
21
22
  "engines": {
22
23
  "node": ">=18"
23
24
  },
24
- "scripts": {
25
- "test": "jest",
26
- "lint": "eslint src --max-warnings 0",
27
- "clean": "rm -rf dist && rm -rf .turbo rm -rf node_modules"
25
+ "dependencies": {
26
+ "anylogger": "^1.0.11",
27
+ "dexie": "^4.0.9",
28
+ "rxjs": "^7.8.1"
28
29
  },
29
30
  "devDependencies": {
30
- "@talismn/eslint-config": "0.0.3",
31
- "@talismn/tsconfig": "0.0.2",
32
- "@types/jest": "^27.5.1",
33
- "eslint": "^8.52.0",
31
+ "@types/jest": "^29.5.14",
32
+ "eslint": "^8.57.1",
34
33
  "jest": "^29.7.0",
35
- "ts-jest": "^29.1.1",
36
- "typescript": "^5.2.2"
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
- "plugins.ts"
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,115 +0,0 @@
1
- # @talismn/chaindata-provider
2
-
3
- ## 0.8.0
4
-
5
- ### Patch Changes
6
-
7
- - 03939d5: fix: added githubUnknownChainLogoUrl
8
- - ade2908: feat: added chainType to `Chain` type definition
9
- - c4d5967: bump typescript version
10
- - 620b7eb: Dependency updates
11
- - 5aadf99: feat: native token balances on custom networks
12
- - 4cace80: add: dcentName property on tokens
13
-
14
- ## 0.7.0
15
-
16
- ### Minor Changes
17
-
18
- - b920ab98: Added GPL licence
19
-
20
- ### Patch Changes
21
-
22
- - 3c1a8b10: Dependency updates
23
-
24
- ## 0.6.0
25
-
26
- ## 0.5.0
27
-
28
- ### Minor Changes
29
-
30
- - 1a2fdc73: feat: add isUnknownFeeToken on Chain
31
-
32
- ## 0.4.4
33
-
34
- ### Patch Changes
35
-
36
- - f7aca48b: eslint rules
37
- - 48f0222e: fix: removed some explicit `any`s
38
- - 01bf239b: fix: packages publishing with incorrect interdependency versions
39
-
40
- ## 0.4.3
41
-
42
- ### Patch Changes
43
-
44
- - 79f6ccf6: added latestMetadataQrUrl to chaindata chains
45
- - c24dc1fb: feat: added themeColor property to chains, evmNetworks, tokens
46
-
47
- ## 0.4.2
48
-
49
- ## 0.4.1
50
-
51
- ### Patch Changes
52
-
53
- - 8adc7f06: feat: switched build tool to preconstruct
54
-
55
- ## 0.2.1
56
-
57
- ### Patch Changes
58
-
59
- - 4aa691d: feat: new balance modules
60
-
61
- ## 0.2.0
62
-
63
- ## 0.1.10
64
-
65
- ### Patch Changes
66
-
67
- - fix: a variety of improvements from the wallet integration
68
-
69
- ## 0.1.9
70
-
71
- ### Patch Changes
72
-
73
- - 8ecb8214: fix: get token logo urls from chaindata-provider
74
-
75
- ## 0.1.8
76
-
77
- ## 0.1.7
78
-
79
- ## 0.1.6
80
-
81
- ### Patch Changes
82
-
83
- - ca50757: feat: implemented token fiat rates in @talismn/balances
84
-
85
- ## 0.1.5
86
-
87
- ### Patch Changes
88
-
89
- - d66c5bc: fix: evm native tokens
90
-
91
- ## 0.1.4
92
-
93
- ## 0.1.3
94
-
95
- ### Patch Changes
96
-
97
- - d5f69f7: fix: migrated orml token code into substrate orml module
98
-
99
- ## 0.1.2
100
-
101
- ### Patch Changes
102
-
103
- - 5af305c: switched build output from esm to commonjs for ecosystem compatibility
104
-
105
- ## 0.1.1
106
-
107
- ### Patch Changes
108
-
109
- - Fixed publish config
110
-
111
- ## 0.1.0
112
-
113
- ### Minor Changes
114
-
115
- - 43c1a3a: Initial release
@@ -1,3 +0,0 @@
1
- import { Chain, CustomChain, CustomEvmNetwork, EvmNetwork } from "@talismn/chaindata-provider";
2
- export declare const isCustomChain: (chain: Chain | CustomChain) => chain is CustomChain;
3
- export declare const isCustomEvmNetwork: (evmNetwork: EvmNetwork | CustomEvmNetwork) => evmNetwork is CustomEvmNetwork;
@@ -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
- }