@talismn/balances-react 0.9.11 → 1.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.
@@ -1,24 +1,948 @@
1
- import { ChainId, EvmNetworkId, TokenId } from "@talismn/chaindata-provider";
1
+ import { NetworkId, TokenId } from "@talismn/chaindata-provider";
2
2
  export declare const useChaindataProvider: () => import("@talismn/chaindata-provider").ChaindataProvider;
3
3
  export declare const useChaindata: () => {
4
- chains: (import("@talismn/chaindata-provider").Chain | import("@talismn/chaindata-provider").CustomChain)[];
5
- chainsById: Record<string, import("@talismn/chaindata-provider").Chain | import("@talismn/chaindata-provider").CustomChain>;
6
- chainsByGenesisHash: Record<string, import("@talismn/chaindata-provider").Chain | import("@talismn/chaindata-provider").CustomChain>;
7
- evmNetworks: (import("@talismn/chaindata-provider").EvmNetwork | import("@talismn/chaindata-provider").CustomEvmNetwork)[];
8
- evmNetworksById: Record<string, import("@talismn/chaindata-provider").EvmNetwork | import("@talismn/chaindata-provider").CustomEvmNetwork>;
9
- tokens: import("@talismn/chaindata-provider").Token[];
10
- tokensById: {
11
- [k: string]: import("@talismn/chaindata-provider").Token;
12
- };
13
- miniMetadatas: import("@talismn/balances").MiniMetadata[];
4
+ networks: ({
5
+ id: string;
6
+ name: string;
7
+ nativeTokenId: string;
8
+ nativeCurrency: {
9
+ decimals: number;
10
+ symbol: string;
11
+ name: string;
12
+ coingeckoId?: string | undefined;
13
+ mirrorOf?: string | undefined;
14
+ logo?: string | undefined;
15
+ };
16
+ blockExplorerUrls: string[];
17
+ genesisHash: `0x${string}`;
18
+ platform: "polkadot";
19
+ chainName: string;
20
+ specName: string;
21
+ specVersion: number;
22
+ account: "secp256k1" | "*25519";
23
+ prefix: number;
24
+ rpcs: string[];
25
+ topology: {
26
+ type: "standalone";
27
+ } | {
28
+ type: "relay";
29
+ } | {
30
+ type: "parachain";
31
+ relayId: string;
32
+ paraId: number;
33
+ };
34
+ isTestnet?: boolean | undefined;
35
+ isDefault?: boolean | undefined;
36
+ forceScan?: boolean | undefined;
37
+ logo?: string | undefined;
38
+ themeColor?: string | undefined;
39
+ chainspecQrUrl?: string | undefined;
40
+ latestMetadataQrUrl?: string | undefined;
41
+ oldPrefix?: number | undefined;
42
+ registryTypes?: any;
43
+ signedExtensions?: any;
44
+ hasCheckMetadataHash?: boolean | undefined;
45
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
46
+ isUnknownFeeToken?: boolean | undefined;
47
+ balancesConfig?: {
48
+ "substrate-native"?: {
49
+ disable?: boolean | undefined;
50
+ } | undefined;
51
+ "substrate-assets"?: undefined;
52
+ "substrate-psp22"?: undefined;
53
+ "substrate-tokens"?: {
54
+ palletId?: string | undefined;
55
+ } | undefined;
56
+ "substrate-foreignassets"?: undefined;
57
+ "substrate-hydration"?: undefined;
58
+ } | undefined;
59
+ } | {
60
+ id: string;
61
+ name: string;
62
+ nativeTokenId: string;
63
+ nativeCurrency: {
64
+ decimals: number;
65
+ symbol: string;
66
+ name: string;
67
+ coingeckoId?: string | undefined;
68
+ mirrorOf?: string | undefined;
69
+ logo?: string | undefined;
70
+ };
71
+ blockExplorerUrls: string[];
72
+ platform: "ethereum";
73
+ rpcs: string[];
74
+ isTestnet?: boolean | undefined;
75
+ isDefault?: boolean | undefined;
76
+ forceScan?: boolean | undefined;
77
+ logo?: string | undefined;
78
+ themeColor?: string | undefined;
79
+ substrateChainId?: string | undefined;
80
+ preserveGasEstimate?: boolean | undefined;
81
+ feeType?: "legacy" | "eip-1559" | undefined;
82
+ l2FeeType?: {
83
+ type: "op-stack";
84
+ } | {
85
+ type: "scroll";
86
+ l1GasPriceOracle: `0x${string}`;
87
+ } | undefined;
88
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
89
+ balancesConfig?: {
90
+ "evm-native"?: undefined;
91
+ "evm-erc20"?: undefined;
92
+ "evm-uniswapv2"?: undefined;
93
+ } | undefined;
94
+ })[];
95
+ tokens: ({
96
+ id: string;
97
+ networkId: string;
98
+ decimals: number;
99
+ symbol: string;
100
+ type: "evm-erc20";
101
+ platform: "ethereum";
102
+ contractAddress: `0x${string}`;
103
+ isDefault?: boolean | undefined;
104
+ name?: string | undefined;
105
+ logo?: string | undefined;
106
+ coingeckoId?: string | undefined;
107
+ noDiscovery?: boolean | undefined;
108
+ mirrorOf?: string | undefined;
109
+ } | {
110
+ id: string;
111
+ networkId: string;
112
+ decimals: number;
113
+ symbol: string;
114
+ type: "evm-native";
115
+ platform: "ethereum";
116
+ isDefault?: boolean | undefined;
117
+ name?: string | undefined;
118
+ logo?: string | undefined;
119
+ coingeckoId?: string | undefined;
120
+ noDiscovery?: boolean | undefined;
121
+ mirrorOf?: string | undefined;
122
+ } | {
123
+ id: string;
124
+ networkId: string;
125
+ decimals: number;
126
+ symbol: string;
127
+ type: "evm-uniswapv2";
128
+ platform: "ethereum";
129
+ contractAddress: `0x${string}`;
130
+ symbol0: string;
131
+ symbol1: string;
132
+ decimals0: number;
133
+ decimals1: number;
134
+ tokenAddress0: `0x${string}`;
135
+ tokenAddress1: `0x${string}`;
136
+ isDefault?: boolean | undefined;
137
+ name?: string | undefined;
138
+ logo?: string | undefined;
139
+ coingeckoId?: string | undefined;
140
+ noDiscovery?: boolean | undefined;
141
+ mirrorOf?: string | undefined;
142
+ isCustom?: boolean | undefined;
143
+ coingeckoId0?: string | undefined;
144
+ coingeckoId1?: string | undefined;
145
+ } | {
146
+ id: string;
147
+ networkId: string;
148
+ decimals: number;
149
+ symbol: string;
150
+ type: "substrate-assets";
151
+ platform: "polkadot";
152
+ assetId: string;
153
+ isSufficient: boolean;
154
+ existentialDeposit: string;
155
+ isDefault?: boolean | undefined;
156
+ name?: string | undefined;
157
+ logo?: string | undefined;
158
+ coingeckoId?: string | undefined;
159
+ noDiscovery?: boolean | undefined;
160
+ mirrorOf?: string | undefined;
161
+ isFrozen?: boolean | undefined;
162
+ } | {
163
+ id: string;
164
+ networkId: string;
165
+ decimals: number;
166
+ symbol: string;
167
+ type: "substrate-foreignassets";
168
+ platform: "polkadot";
169
+ onChainId: string;
170
+ isSufficient: boolean;
171
+ existentialDeposit: string;
172
+ isDefault?: boolean | undefined;
173
+ name?: string | undefined;
174
+ logo?: string | undefined;
175
+ coingeckoId?: string | undefined;
176
+ noDiscovery?: boolean | undefined;
177
+ mirrorOf?: string | undefined;
178
+ isFrozen?: boolean | undefined;
179
+ } | {
180
+ id: string;
181
+ networkId: string;
182
+ decimals: number;
183
+ symbol: string;
184
+ type: "substrate-native";
185
+ platform: "polkadot";
186
+ existentialDeposit: string;
187
+ isDefault?: boolean | undefined;
188
+ name?: string | undefined;
189
+ logo?: string | undefined;
190
+ coingeckoId?: string | undefined;
191
+ noDiscovery?: boolean | undefined;
192
+ mirrorOf?: string | undefined;
193
+ } | {
194
+ id: string;
195
+ networkId: string;
196
+ decimals: number;
197
+ symbol: string;
198
+ type: "substrate-psp22";
199
+ platform: "polkadot";
200
+ contractAddress: string;
201
+ isDefault?: boolean | undefined;
202
+ name?: string | undefined;
203
+ logo?: string | undefined;
204
+ coingeckoId?: string | undefined;
205
+ noDiscovery?: boolean | undefined;
206
+ mirrorOf?: string | undefined;
207
+ } | {
208
+ id: string;
209
+ networkId: string;
210
+ decimals: number;
211
+ symbol: string;
212
+ type: "substrate-tokens";
213
+ platform: "polkadot";
214
+ onChainId: string | number;
215
+ existentialDeposit: string;
216
+ isDefault?: boolean | undefined;
217
+ name?: string | undefined;
218
+ logo?: string | undefined;
219
+ coingeckoId?: string | undefined;
220
+ noDiscovery?: boolean | undefined;
221
+ mirrorOf?: string | undefined;
222
+ } | {
223
+ id: string;
224
+ networkId: string;
225
+ decimals: number;
226
+ symbol: string;
227
+ type: "substrate-hydration";
228
+ platform: "polkadot";
229
+ onChainId: number;
230
+ assetType: "Token" | "Erc20" | "External";
231
+ isSufficient: boolean;
232
+ existentialDeposit: string;
233
+ isDefault?: boolean | undefined;
234
+ name?: string | undefined;
235
+ logo?: string | undefined;
236
+ coingeckoId?: string | undefined;
237
+ noDiscovery?: boolean | undefined;
238
+ mirrorOf?: string | undefined;
239
+ })[];
14
240
  };
15
- export declare const useChains: () => Record<string, import("@talismn/chaindata-provider").Chain | import("@talismn/chaindata-provider").CustomChain>;
16
- export declare const useChainsByGenesisHash: () => Record<string, import("@talismn/chaindata-provider").Chain | import("@talismn/chaindata-provider").CustomChain>;
17
- export declare const useEvmNetworks: () => Record<string, import("@talismn/chaindata-provider").EvmNetwork | import("@talismn/chaindata-provider").CustomEvmNetwork>;
18
- export declare const useTokens: () => {
19
- [k: string]: import("@talismn/chaindata-provider").Token;
241
+ export declare const useNetworks: () => ({
242
+ id: string;
243
+ name: string;
244
+ nativeTokenId: string;
245
+ nativeCurrency: {
246
+ decimals: number;
247
+ symbol: string;
248
+ name: string;
249
+ coingeckoId?: string | undefined;
250
+ mirrorOf?: string | undefined;
251
+ logo?: string | undefined;
252
+ };
253
+ blockExplorerUrls: string[];
254
+ genesisHash: `0x${string}`;
255
+ platform: "polkadot";
256
+ chainName: string;
257
+ specName: string;
258
+ specVersion: number;
259
+ account: "secp256k1" | "*25519";
260
+ prefix: number;
261
+ rpcs: string[];
262
+ topology: {
263
+ type: "standalone";
264
+ } | {
265
+ type: "relay";
266
+ } | {
267
+ type: "parachain";
268
+ relayId: string;
269
+ paraId: number;
270
+ };
271
+ isTestnet?: boolean | undefined;
272
+ isDefault?: boolean | undefined;
273
+ forceScan?: boolean | undefined;
274
+ logo?: string | undefined;
275
+ themeColor?: string | undefined;
276
+ chainspecQrUrl?: string | undefined;
277
+ latestMetadataQrUrl?: string | undefined;
278
+ oldPrefix?: number | undefined;
279
+ registryTypes?: any;
280
+ signedExtensions?: any;
281
+ hasCheckMetadataHash?: boolean | undefined;
282
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
283
+ isUnknownFeeToken?: boolean | undefined;
284
+ balancesConfig?: {
285
+ "substrate-native"?: {
286
+ disable?: boolean | undefined;
287
+ } | undefined;
288
+ "substrate-assets"?: undefined;
289
+ "substrate-psp22"?: undefined;
290
+ "substrate-tokens"?: {
291
+ palletId?: string | undefined;
292
+ } | undefined;
293
+ "substrate-foreignassets"?: undefined;
294
+ "substrate-hydration"?: undefined;
295
+ } | undefined;
296
+ } | {
297
+ id: string;
298
+ name: string;
299
+ nativeTokenId: string;
300
+ nativeCurrency: {
301
+ decimals: number;
302
+ symbol: string;
303
+ name: string;
304
+ coingeckoId?: string | undefined;
305
+ mirrorOf?: string | undefined;
306
+ logo?: string | undefined;
307
+ };
308
+ blockExplorerUrls: string[];
309
+ platform: "ethereum";
310
+ rpcs: string[];
311
+ isTestnet?: boolean | undefined;
312
+ isDefault?: boolean | undefined;
313
+ forceScan?: boolean | undefined;
314
+ logo?: string | undefined;
315
+ themeColor?: string | undefined;
316
+ substrateChainId?: string | undefined;
317
+ preserveGasEstimate?: boolean | undefined;
318
+ feeType?: "legacy" | "eip-1559" | undefined;
319
+ l2FeeType?: {
320
+ type: "op-stack";
321
+ } | {
322
+ type: "scroll";
323
+ l1GasPriceOracle: `0x${string}`;
324
+ } | undefined;
325
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
326
+ balancesConfig?: {
327
+ "evm-native"?: undefined;
328
+ "evm-erc20"?: undefined;
329
+ "evm-uniswapv2"?: undefined;
330
+ } | undefined;
331
+ })[];
332
+ export declare const useNetworksById: () => import("lodash").Dictionary<{
333
+ id: string;
334
+ name: string;
335
+ nativeTokenId: string;
336
+ nativeCurrency: {
337
+ decimals: number;
338
+ symbol: string;
339
+ name: string;
340
+ coingeckoId?: string | undefined;
341
+ mirrorOf?: string | undefined;
342
+ logo?: string | undefined;
343
+ };
344
+ blockExplorerUrls: string[];
345
+ genesisHash: `0x${string}`;
346
+ platform: "polkadot";
347
+ chainName: string;
348
+ specName: string;
349
+ specVersion: number;
350
+ account: "secp256k1" | "*25519";
351
+ prefix: number;
352
+ rpcs: string[];
353
+ topology: {
354
+ type: "standalone";
355
+ } | {
356
+ type: "relay";
357
+ } | {
358
+ type: "parachain";
359
+ relayId: string;
360
+ paraId: number;
361
+ };
362
+ isTestnet?: boolean | undefined;
363
+ isDefault?: boolean | undefined;
364
+ forceScan?: boolean | undefined;
365
+ logo?: string | undefined;
366
+ themeColor?: string | undefined;
367
+ chainspecQrUrl?: string | undefined;
368
+ latestMetadataQrUrl?: string | undefined;
369
+ oldPrefix?: number | undefined;
370
+ registryTypes?: any;
371
+ signedExtensions?: any;
372
+ hasCheckMetadataHash?: boolean | undefined;
373
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
374
+ isUnknownFeeToken?: boolean | undefined;
375
+ balancesConfig?: {
376
+ "substrate-native"?: {
377
+ disable?: boolean | undefined;
378
+ } | undefined;
379
+ "substrate-assets"?: undefined;
380
+ "substrate-psp22"?: undefined;
381
+ "substrate-tokens"?: {
382
+ palletId?: string | undefined;
383
+ } | undefined;
384
+ "substrate-foreignassets"?: undefined;
385
+ "substrate-hydration"?: undefined;
386
+ } | undefined;
387
+ } | {
388
+ id: string;
389
+ name: string;
390
+ nativeTokenId: string;
391
+ nativeCurrency: {
392
+ decimals: number;
393
+ symbol: string;
394
+ name: string;
395
+ coingeckoId?: string | undefined;
396
+ mirrorOf?: string | undefined;
397
+ logo?: string | undefined;
398
+ };
399
+ blockExplorerUrls: string[];
400
+ platform: "ethereum";
401
+ rpcs: string[];
402
+ isTestnet?: boolean | undefined;
403
+ isDefault?: boolean | undefined;
404
+ forceScan?: boolean | undefined;
405
+ logo?: string | undefined;
406
+ themeColor?: string | undefined;
407
+ substrateChainId?: string | undefined;
408
+ preserveGasEstimate?: boolean | undefined;
409
+ feeType?: "legacy" | "eip-1559" | undefined;
410
+ l2FeeType?: {
411
+ type: "op-stack";
412
+ } | {
413
+ type: "scroll";
414
+ l1GasPriceOracle: `0x${string}`;
415
+ } | undefined;
416
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
417
+ balancesConfig?: {
418
+ "evm-native"?: undefined;
419
+ "evm-erc20"?: undefined;
420
+ "evm-uniswapv2"?: undefined;
421
+ } | undefined;
422
+ }>;
423
+ export declare const useNetwork: (networkId?: NetworkId) => {
424
+ id: string;
425
+ name: string;
426
+ nativeTokenId: string;
427
+ nativeCurrency: {
428
+ decimals: number;
429
+ symbol: string;
430
+ name: string;
431
+ coingeckoId?: string | undefined;
432
+ mirrorOf?: string | undefined;
433
+ logo?: string | undefined;
434
+ };
435
+ blockExplorerUrls: string[];
436
+ genesisHash: `0x${string}`;
437
+ platform: "polkadot";
438
+ chainName: string;
439
+ specName: string;
440
+ specVersion: number;
441
+ account: "secp256k1" | "*25519";
442
+ prefix: number;
443
+ rpcs: string[];
444
+ topology: {
445
+ type: "standalone";
446
+ } | {
447
+ type: "relay";
448
+ } | {
449
+ type: "parachain";
450
+ relayId: string;
451
+ paraId: number;
452
+ };
453
+ isTestnet?: boolean | undefined;
454
+ isDefault?: boolean | undefined;
455
+ forceScan?: boolean | undefined;
456
+ logo?: string | undefined;
457
+ themeColor?: string | undefined;
458
+ chainspecQrUrl?: string | undefined;
459
+ latestMetadataQrUrl?: string | undefined;
460
+ oldPrefix?: number | undefined;
461
+ registryTypes?: any;
462
+ signedExtensions?: any;
463
+ hasCheckMetadataHash?: boolean | undefined;
464
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
465
+ isUnknownFeeToken?: boolean | undefined;
466
+ balancesConfig?: {
467
+ "substrate-native"?: {
468
+ disable?: boolean | undefined;
469
+ } | undefined;
470
+ "substrate-assets"?: undefined;
471
+ "substrate-psp22"?: undefined;
472
+ "substrate-tokens"?: {
473
+ palletId?: string | undefined;
474
+ } | undefined;
475
+ "substrate-foreignassets"?: undefined;
476
+ "substrate-hydration"?: undefined;
477
+ } | undefined;
478
+ } | {
479
+ id: string;
480
+ name: string;
481
+ nativeTokenId: string;
482
+ nativeCurrency: {
483
+ decimals: number;
484
+ symbol: string;
485
+ name: string;
486
+ coingeckoId?: string | undefined;
487
+ mirrorOf?: string | undefined;
488
+ logo?: string | undefined;
489
+ };
490
+ blockExplorerUrls: string[];
491
+ platform: "ethereum";
492
+ rpcs: string[];
493
+ isTestnet?: boolean | undefined;
494
+ isDefault?: boolean | undefined;
495
+ forceScan?: boolean | undefined;
496
+ logo?: string | undefined;
497
+ themeColor?: string | undefined;
498
+ substrateChainId?: string | undefined;
499
+ preserveGasEstimate?: boolean | undefined;
500
+ feeType?: "legacy" | "eip-1559" | undefined;
501
+ l2FeeType?: {
502
+ type: "op-stack";
503
+ } | {
504
+ type: "scroll";
505
+ l1GasPriceOracle: `0x${string}`;
506
+ } | undefined;
507
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
508
+ balancesConfig?: {
509
+ "evm-native"?: undefined;
510
+ "evm-erc20"?: undefined;
511
+ "evm-uniswapv2"?: undefined;
512
+ } | undefined;
513
+ };
514
+ export declare const useTokens: () => ({
515
+ id: string;
516
+ networkId: string;
517
+ decimals: number;
518
+ symbol: string;
519
+ type: "evm-erc20";
520
+ platform: "ethereum";
521
+ contractAddress: `0x${string}`;
522
+ isDefault?: boolean | undefined;
523
+ name?: string | undefined;
524
+ logo?: string | undefined;
525
+ coingeckoId?: string | undefined;
526
+ noDiscovery?: boolean | undefined;
527
+ mirrorOf?: string | undefined;
528
+ } | {
529
+ id: string;
530
+ networkId: string;
531
+ decimals: number;
532
+ symbol: string;
533
+ type: "evm-native";
534
+ platform: "ethereum";
535
+ isDefault?: boolean | undefined;
536
+ name?: string | undefined;
537
+ logo?: string | undefined;
538
+ coingeckoId?: string | undefined;
539
+ noDiscovery?: boolean | undefined;
540
+ mirrorOf?: string | undefined;
541
+ } | {
542
+ id: string;
543
+ networkId: string;
544
+ decimals: number;
545
+ symbol: string;
546
+ type: "evm-uniswapv2";
547
+ platform: "ethereum";
548
+ contractAddress: `0x${string}`;
549
+ symbol0: string;
550
+ symbol1: string;
551
+ decimals0: number;
552
+ decimals1: number;
553
+ tokenAddress0: `0x${string}`;
554
+ tokenAddress1: `0x${string}`;
555
+ isDefault?: boolean | undefined;
556
+ name?: string | undefined;
557
+ logo?: string | undefined;
558
+ coingeckoId?: string | undefined;
559
+ noDiscovery?: boolean | undefined;
560
+ mirrorOf?: string | undefined;
561
+ isCustom?: boolean | undefined;
562
+ coingeckoId0?: string | undefined;
563
+ coingeckoId1?: string | undefined;
564
+ } | {
565
+ id: string;
566
+ networkId: string;
567
+ decimals: number;
568
+ symbol: string;
569
+ type: "substrate-assets";
570
+ platform: "polkadot";
571
+ assetId: string;
572
+ isSufficient: boolean;
573
+ existentialDeposit: string;
574
+ isDefault?: boolean | undefined;
575
+ name?: string | undefined;
576
+ logo?: string | undefined;
577
+ coingeckoId?: string | undefined;
578
+ noDiscovery?: boolean | undefined;
579
+ mirrorOf?: string | undefined;
580
+ isFrozen?: boolean | undefined;
581
+ } | {
582
+ id: string;
583
+ networkId: string;
584
+ decimals: number;
585
+ symbol: string;
586
+ type: "substrate-foreignassets";
587
+ platform: "polkadot";
588
+ onChainId: string;
589
+ isSufficient: boolean;
590
+ existentialDeposit: string;
591
+ isDefault?: boolean | undefined;
592
+ name?: string | undefined;
593
+ logo?: string | undefined;
594
+ coingeckoId?: string | undefined;
595
+ noDiscovery?: boolean | undefined;
596
+ mirrorOf?: string | undefined;
597
+ isFrozen?: boolean | undefined;
598
+ } | {
599
+ id: string;
600
+ networkId: string;
601
+ decimals: number;
602
+ symbol: string;
603
+ type: "substrate-native";
604
+ platform: "polkadot";
605
+ existentialDeposit: string;
606
+ isDefault?: boolean | undefined;
607
+ name?: string | undefined;
608
+ logo?: string | undefined;
609
+ coingeckoId?: string | undefined;
610
+ noDiscovery?: boolean | undefined;
611
+ mirrorOf?: string | undefined;
612
+ } | {
613
+ id: string;
614
+ networkId: string;
615
+ decimals: number;
616
+ symbol: string;
617
+ type: "substrate-psp22";
618
+ platform: "polkadot";
619
+ contractAddress: string;
620
+ isDefault?: boolean | undefined;
621
+ name?: string | undefined;
622
+ logo?: string | undefined;
623
+ coingeckoId?: string | undefined;
624
+ noDiscovery?: boolean | undefined;
625
+ mirrorOf?: string | undefined;
626
+ } | {
627
+ id: string;
628
+ networkId: string;
629
+ decimals: number;
630
+ symbol: string;
631
+ type: "substrate-tokens";
632
+ platform: "polkadot";
633
+ onChainId: string | number;
634
+ existentialDeposit: string;
635
+ isDefault?: boolean | undefined;
636
+ name?: string | undefined;
637
+ logo?: string | undefined;
638
+ coingeckoId?: string | undefined;
639
+ noDiscovery?: boolean | undefined;
640
+ mirrorOf?: string | undefined;
641
+ } | {
642
+ id: string;
643
+ networkId: string;
644
+ decimals: number;
645
+ symbol: string;
646
+ type: "substrate-hydration";
647
+ platform: "polkadot";
648
+ onChainId: number;
649
+ assetType: "Token" | "Erc20" | "External";
650
+ isSufficient: boolean;
651
+ existentialDeposit: string;
652
+ isDefault?: boolean | undefined;
653
+ name?: string | undefined;
654
+ logo?: string | undefined;
655
+ coingeckoId?: string | undefined;
656
+ noDiscovery?: boolean | undefined;
657
+ mirrorOf?: string | undefined;
658
+ })[];
659
+ export declare const useTokensById: () => import("lodash").Dictionary<{
660
+ id: string;
661
+ networkId: string;
662
+ decimals: number;
663
+ symbol: string;
664
+ type: "evm-erc20";
665
+ platform: "ethereum";
666
+ contractAddress: `0x${string}`;
667
+ isDefault?: boolean | undefined;
668
+ name?: string | undefined;
669
+ logo?: string | undefined;
670
+ coingeckoId?: string | undefined;
671
+ noDiscovery?: boolean | undefined;
672
+ mirrorOf?: string | undefined;
673
+ } | {
674
+ id: string;
675
+ networkId: string;
676
+ decimals: number;
677
+ symbol: string;
678
+ type: "evm-native";
679
+ platform: "ethereum";
680
+ isDefault?: boolean | undefined;
681
+ name?: string | undefined;
682
+ logo?: string | undefined;
683
+ coingeckoId?: string | undefined;
684
+ noDiscovery?: boolean | undefined;
685
+ mirrorOf?: string | undefined;
686
+ } | {
687
+ id: string;
688
+ networkId: string;
689
+ decimals: number;
690
+ symbol: string;
691
+ type: "evm-uniswapv2";
692
+ platform: "ethereum";
693
+ contractAddress: `0x${string}`;
694
+ symbol0: string;
695
+ symbol1: string;
696
+ decimals0: number;
697
+ decimals1: number;
698
+ tokenAddress0: `0x${string}`;
699
+ tokenAddress1: `0x${string}`;
700
+ isDefault?: boolean | undefined;
701
+ name?: string | undefined;
702
+ logo?: string | undefined;
703
+ coingeckoId?: string | undefined;
704
+ noDiscovery?: boolean | undefined;
705
+ mirrorOf?: string | undefined;
706
+ isCustom?: boolean | undefined;
707
+ coingeckoId0?: string | undefined;
708
+ coingeckoId1?: string | undefined;
709
+ } | {
710
+ id: string;
711
+ networkId: string;
712
+ decimals: number;
713
+ symbol: string;
714
+ type: "substrate-assets";
715
+ platform: "polkadot";
716
+ assetId: string;
717
+ isSufficient: boolean;
718
+ existentialDeposit: string;
719
+ isDefault?: boolean | undefined;
720
+ name?: string | undefined;
721
+ logo?: string | undefined;
722
+ coingeckoId?: string | undefined;
723
+ noDiscovery?: boolean | undefined;
724
+ mirrorOf?: string | undefined;
725
+ isFrozen?: boolean | undefined;
726
+ } | {
727
+ id: string;
728
+ networkId: string;
729
+ decimals: number;
730
+ symbol: string;
731
+ type: "substrate-foreignassets";
732
+ platform: "polkadot";
733
+ onChainId: string;
734
+ isSufficient: boolean;
735
+ existentialDeposit: string;
736
+ isDefault?: boolean | undefined;
737
+ name?: string | undefined;
738
+ logo?: string | undefined;
739
+ coingeckoId?: string | undefined;
740
+ noDiscovery?: boolean | undefined;
741
+ mirrorOf?: string | undefined;
742
+ isFrozen?: boolean | undefined;
743
+ } | {
744
+ id: string;
745
+ networkId: string;
746
+ decimals: number;
747
+ symbol: string;
748
+ type: "substrate-native";
749
+ platform: "polkadot";
750
+ existentialDeposit: string;
751
+ isDefault?: boolean | undefined;
752
+ name?: string | undefined;
753
+ logo?: string | undefined;
754
+ coingeckoId?: string | undefined;
755
+ noDiscovery?: boolean | undefined;
756
+ mirrorOf?: string | undefined;
757
+ } | {
758
+ id: string;
759
+ networkId: string;
760
+ decimals: number;
761
+ symbol: string;
762
+ type: "substrate-psp22";
763
+ platform: "polkadot";
764
+ contractAddress: string;
765
+ isDefault?: boolean | undefined;
766
+ name?: string | undefined;
767
+ logo?: string | undefined;
768
+ coingeckoId?: string | undefined;
769
+ noDiscovery?: boolean | undefined;
770
+ mirrorOf?: string | undefined;
771
+ } | {
772
+ id: string;
773
+ networkId: string;
774
+ decimals: number;
775
+ symbol: string;
776
+ type: "substrate-tokens";
777
+ platform: "polkadot";
778
+ onChainId: string | number;
779
+ existentialDeposit: string;
780
+ isDefault?: boolean | undefined;
781
+ name?: string | undefined;
782
+ logo?: string | undefined;
783
+ coingeckoId?: string | undefined;
784
+ noDiscovery?: boolean | undefined;
785
+ mirrorOf?: string | undefined;
786
+ } | {
787
+ id: string;
788
+ networkId: string;
789
+ decimals: number;
790
+ symbol: string;
791
+ type: "substrate-hydration";
792
+ platform: "polkadot";
793
+ onChainId: number;
794
+ assetType: "Token" | "Erc20" | "External";
795
+ isSufficient: boolean;
796
+ existentialDeposit: string;
797
+ isDefault?: boolean | undefined;
798
+ name?: string | undefined;
799
+ logo?: string | undefined;
800
+ coingeckoId?: string | undefined;
801
+ noDiscovery?: boolean | undefined;
802
+ mirrorOf?: string | undefined;
803
+ }>;
804
+ export declare const useToken: (tokenId?: TokenId) => {
805
+ id: string;
806
+ networkId: string;
807
+ decimals: number;
808
+ symbol: string;
809
+ type: "evm-erc20";
810
+ platform: "ethereum";
811
+ contractAddress: `0x${string}`;
812
+ isDefault?: boolean | undefined;
813
+ name?: string | undefined;
814
+ logo?: string | undefined;
815
+ coingeckoId?: string | undefined;
816
+ noDiscovery?: boolean | undefined;
817
+ mirrorOf?: string | undefined;
818
+ } | {
819
+ id: string;
820
+ networkId: string;
821
+ decimals: number;
822
+ symbol: string;
823
+ type: "evm-native";
824
+ platform: "ethereum";
825
+ isDefault?: boolean | undefined;
826
+ name?: string | undefined;
827
+ logo?: string | undefined;
828
+ coingeckoId?: string | undefined;
829
+ noDiscovery?: boolean | undefined;
830
+ mirrorOf?: string | undefined;
831
+ } | {
832
+ id: string;
833
+ networkId: string;
834
+ decimals: number;
835
+ symbol: string;
836
+ type: "evm-uniswapv2";
837
+ platform: "ethereum";
838
+ contractAddress: `0x${string}`;
839
+ symbol0: string;
840
+ symbol1: string;
841
+ decimals0: number;
842
+ decimals1: number;
843
+ tokenAddress0: `0x${string}`;
844
+ tokenAddress1: `0x${string}`;
845
+ isDefault?: boolean | undefined;
846
+ name?: string | undefined;
847
+ logo?: string | undefined;
848
+ coingeckoId?: string | undefined;
849
+ noDiscovery?: boolean | undefined;
850
+ mirrorOf?: string | undefined;
851
+ isCustom?: boolean | undefined;
852
+ coingeckoId0?: string | undefined;
853
+ coingeckoId1?: string | undefined;
854
+ } | {
855
+ id: string;
856
+ networkId: string;
857
+ decimals: number;
858
+ symbol: string;
859
+ type: "substrate-assets";
860
+ platform: "polkadot";
861
+ assetId: string;
862
+ isSufficient: boolean;
863
+ existentialDeposit: string;
864
+ isDefault?: boolean | undefined;
865
+ name?: string | undefined;
866
+ logo?: string | undefined;
867
+ coingeckoId?: string | undefined;
868
+ noDiscovery?: boolean | undefined;
869
+ mirrorOf?: string | undefined;
870
+ isFrozen?: boolean | undefined;
871
+ } | {
872
+ id: string;
873
+ networkId: string;
874
+ decimals: number;
875
+ symbol: string;
876
+ type: "substrate-foreignassets";
877
+ platform: "polkadot";
878
+ onChainId: string;
879
+ isSufficient: boolean;
880
+ existentialDeposit: string;
881
+ isDefault?: boolean | undefined;
882
+ name?: string | undefined;
883
+ logo?: string | undefined;
884
+ coingeckoId?: string | undefined;
885
+ noDiscovery?: boolean | undefined;
886
+ mirrorOf?: string | undefined;
887
+ isFrozen?: boolean | undefined;
888
+ } | {
889
+ id: string;
890
+ networkId: string;
891
+ decimals: number;
892
+ symbol: string;
893
+ type: "substrate-native";
894
+ platform: "polkadot";
895
+ existentialDeposit: string;
896
+ isDefault?: boolean | undefined;
897
+ name?: string | undefined;
898
+ logo?: string | undefined;
899
+ coingeckoId?: string | undefined;
900
+ noDiscovery?: boolean | undefined;
901
+ mirrorOf?: string | undefined;
902
+ } | {
903
+ id: string;
904
+ networkId: string;
905
+ decimals: number;
906
+ symbol: string;
907
+ type: "substrate-psp22";
908
+ platform: "polkadot";
909
+ contractAddress: string;
910
+ isDefault?: boolean | undefined;
911
+ name?: string | undefined;
912
+ logo?: string | undefined;
913
+ coingeckoId?: string | undefined;
914
+ noDiscovery?: boolean | undefined;
915
+ mirrorOf?: string | undefined;
916
+ } | {
917
+ id: string;
918
+ networkId: string;
919
+ decimals: number;
920
+ symbol: string;
921
+ type: "substrate-tokens";
922
+ platform: "polkadot";
923
+ onChainId: string | number;
924
+ existentialDeposit: string;
925
+ isDefault?: boolean | undefined;
926
+ name?: string | undefined;
927
+ logo?: string | undefined;
928
+ coingeckoId?: string | undefined;
929
+ noDiscovery?: boolean | undefined;
930
+ mirrorOf?: string | undefined;
931
+ } | {
932
+ id: string;
933
+ networkId: string;
934
+ decimals: number;
935
+ symbol: string;
936
+ type: "substrate-hydration";
937
+ platform: "polkadot";
938
+ onChainId: number;
939
+ assetType: "Token" | "Erc20" | "External";
940
+ isSufficient: boolean;
941
+ existentialDeposit: string;
942
+ isDefault?: boolean | undefined;
943
+ name?: string | undefined;
944
+ logo?: string | undefined;
945
+ coingeckoId?: string | undefined;
946
+ noDiscovery?: boolean | undefined;
947
+ mirrorOf?: string | undefined;
20
948
  };
21
- export declare const useMiniMetadatas: () => import("@talismn/balances").MiniMetadata[];
22
- export declare const useChain: (chainId?: ChainId) => import("@talismn/chaindata-provider").Chain | import("@talismn/chaindata-provider").CustomChain;
23
- export declare const useEvmNetwork: (evmNetworkId?: EvmNetworkId) => import("@talismn/chaindata-provider").EvmNetwork | import("@talismn/chaindata-provider").CustomEvmNetwork;
24
- export declare const useToken: (tokenId?: TokenId) => import("@talismn/chaindata-provider").Token;