@talismn/balances-react 0.0.0-pr2075-20250710142256 → 0.0.0-pr2076-20250703120513

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,4 +1,4 @@
1
- import { NetworkId, TokenId } from "@talismn/chaindata-provider";
1
+ import { DotNetworkId, EthNetworkId, TokenId } from "@talismn/chaindata-provider";
2
2
  export declare const useChaindataProvider: () => import("@talismn/chaindata-provider").ChaindataProvider;
3
3
  export declare const useChaindata: () => {
4
4
  networks: ({
@@ -54,7 +54,6 @@ export declare const useChaindata: () => {
54
54
  palletId?: string | undefined;
55
55
  } | undefined;
56
56
  "substrate-foreignassets"?: undefined;
57
- "substrate-hydration"?: undefined;
58
57
  } | undefined;
59
58
  } | {
60
59
  id: string;
@@ -92,6 +91,333 @@ export declare const useChaindata: () => {
92
91
  "evm-uniswapv2"?: undefined;
93
92
  } | undefined;
94
93
  })[];
94
+ networksById: Record<string, {
95
+ id: string;
96
+ name: string;
97
+ nativeTokenId: string;
98
+ nativeCurrency: {
99
+ decimals: number;
100
+ symbol: string;
101
+ name: string;
102
+ coingeckoId?: string | undefined;
103
+ mirrorOf?: string | undefined;
104
+ logo?: string | undefined;
105
+ };
106
+ blockExplorerUrls: string[];
107
+ genesisHash: `0x${string}`;
108
+ platform: "polkadot";
109
+ chainName: string;
110
+ specName: string;
111
+ specVersion: number;
112
+ account: "secp256k1" | "*25519";
113
+ prefix: number;
114
+ rpcs: string[];
115
+ topology: {
116
+ type: "standalone";
117
+ } | {
118
+ type: "relay";
119
+ } | {
120
+ type: "parachain";
121
+ relayId: string;
122
+ paraId: number;
123
+ };
124
+ isTestnet?: boolean | undefined;
125
+ isDefault?: boolean | undefined;
126
+ forceScan?: boolean | undefined;
127
+ logo?: string | undefined;
128
+ themeColor?: string | undefined;
129
+ chainspecQrUrl?: string | undefined;
130
+ latestMetadataQrUrl?: string | undefined;
131
+ oldPrefix?: number | undefined;
132
+ registryTypes?: any;
133
+ signedExtensions?: any;
134
+ hasCheckMetadataHash?: boolean | undefined;
135
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
136
+ isUnknownFeeToken?: boolean | undefined;
137
+ balancesConfig?: {
138
+ "substrate-native"?: {
139
+ disable?: boolean | undefined;
140
+ } | undefined;
141
+ "substrate-assets"?: undefined;
142
+ "substrate-psp22"?: undefined;
143
+ "substrate-tokens"?: {
144
+ palletId?: string | undefined;
145
+ } | undefined;
146
+ "substrate-foreignassets"?: undefined;
147
+ } | undefined;
148
+ } | {
149
+ id: string;
150
+ name: string;
151
+ nativeTokenId: string;
152
+ nativeCurrency: {
153
+ decimals: number;
154
+ symbol: string;
155
+ name: string;
156
+ coingeckoId?: string | undefined;
157
+ mirrorOf?: string | undefined;
158
+ logo?: string | undefined;
159
+ };
160
+ blockExplorerUrls: string[];
161
+ platform: "ethereum";
162
+ rpcs: string[];
163
+ isTestnet?: boolean | undefined;
164
+ isDefault?: boolean | undefined;
165
+ forceScan?: boolean | undefined;
166
+ logo?: string | undefined;
167
+ themeColor?: string | undefined;
168
+ substrateChainId?: string | undefined;
169
+ preserveGasEstimate?: boolean | undefined;
170
+ feeType?: "legacy" | "eip-1559" | undefined;
171
+ l2FeeType?: {
172
+ type: "op-stack";
173
+ } | {
174
+ type: "scroll";
175
+ l1GasPriceOracle: `0x${string}`;
176
+ } | undefined;
177
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
178
+ balancesConfig?: {
179
+ "evm-native"?: undefined;
180
+ "evm-erc20"?: undefined;
181
+ "evm-uniswapv2"?: undefined;
182
+ } | undefined;
183
+ }>;
184
+ chains: {
185
+ id: string;
186
+ name: string;
187
+ nativeTokenId: string;
188
+ nativeCurrency: {
189
+ decimals: number;
190
+ symbol: string;
191
+ name: string;
192
+ coingeckoId?: string | undefined;
193
+ mirrorOf?: string | undefined;
194
+ logo?: string | undefined;
195
+ };
196
+ blockExplorerUrls: string[];
197
+ genesisHash: `0x${string}`;
198
+ platform: "polkadot";
199
+ chainName: string;
200
+ specName: string;
201
+ specVersion: number;
202
+ account: "secp256k1" | "*25519";
203
+ prefix: number;
204
+ rpcs: string[];
205
+ topology: {
206
+ type: "standalone";
207
+ } | {
208
+ type: "relay";
209
+ } | {
210
+ type: "parachain";
211
+ relayId: string;
212
+ paraId: number;
213
+ };
214
+ isTestnet?: boolean | undefined;
215
+ isDefault?: boolean | undefined;
216
+ forceScan?: boolean | undefined;
217
+ logo?: string | undefined;
218
+ themeColor?: string | undefined;
219
+ chainspecQrUrl?: string | undefined;
220
+ latestMetadataQrUrl?: string | undefined;
221
+ oldPrefix?: number | undefined;
222
+ registryTypes?: any;
223
+ signedExtensions?: any;
224
+ hasCheckMetadataHash?: boolean | undefined;
225
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
226
+ isUnknownFeeToken?: boolean | undefined;
227
+ balancesConfig?: {
228
+ "substrate-native"?: {
229
+ disable?: boolean | undefined;
230
+ } | undefined;
231
+ "substrate-assets"?: undefined;
232
+ "substrate-psp22"?: undefined;
233
+ "substrate-tokens"?: {
234
+ palletId?: string | undefined;
235
+ } | undefined;
236
+ "substrate-foreignassets"?: undefined;
237
+ } | undefined;
238
+ }[];
239
+ chainsById: Record<string, {
240
+ id: string;
241
+ name: string;
242
+ nativeTokenId: string;
243
+ nativeCurrency: {
244
+ decimals: number;
245
+ symbol: string;
246
+ name: string;
247
+ coingeckoId?: string | undefined;
248
+ mirrorOf?: string | undefined;
249
+ logo?: string | undefined;
250
+ };
251
+ blockExplorerUrls: string[];
252
+ genesisHash: `0x${string}`;
253
+ platform: "polkadot";
254
+ chainName: string;
255
+ specName: string;
256
+ specVersion: number;
257
+ account: "secp256k1" | "*25519";
258
+ prefix: number;
259
+ rpcs: string[];
260
+ topology: {
261
+ type: "standalone";
262
+ } | {
263
+ type: "relay";
264
+ } | {
265
+ type: "parachain";
266
+ relayId: string;
267
+ paraId: number;
268
+ };
269
+ isTestnet?: boolean | undefined;
270
+ isDefault?: boolean | undefined;
271
+ forceScan?: boolean | undefined;
272
+ logo?: string | undefined;
273
+ themeColor?: string | undefined;
274
+ chainspecQrUrl?: string | undefined;
275
+ latestMetadataQrUrl?: string | undefined;
276
+ oldPrefix?: number | undefined;
277
+ registryTypes?: any;
278
+ signedExtensions?: any;
279
+ hasCheckMetadataHash?: boolean | undefined;
280
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
281
+ isUnknownFeeToken?: boolean | undefined;
282
+ balancesConfig?: {
283
+ "substrate-native"?: {
284
+ disable?: boolean | undefined;
285
+ } | undefined;
286
+ "substrate-assets"?: undefined;
287
+ "substrate-psp22"?: undefined;
288
+ "substrate-tokens"?: {
289
+ palletId?: string | undefined;
290
+ } | undefined;
291
+ "substrate-foreignassets"?: undefined;
292
+ } | undefined;
293
+ }>;
294
+ chainsByGenesisHash: Record<string, {
295
+ id: string;
296
+ name: string;
297
+ nativeTokenId: string;
298
+ nativeCurrency: {
299
+ decimals: number;
300
+ symbol: string;
301
+ name: string;
302
+ coingeckoId?: string | undefined;
303
+ mirrorOf?: string | undefined;
304
+ logo?: string | undefined;
305
+ };
306
+ blockExplorerUrls: string[];
307
+ genesisHash: `0x${string}`;
308
+ platform: "polkadot";
309
+ chainName: string;
310
+ specName: string;
311
+ specVersion: number;
312
+ account: "secp256k1" | "*25519";
313
+ prefix: number;
314
+ rpcs: string[];
315
+ topology: {
316
+ type: "standalone";
317
+ } | {
318
+ type: "relay";
319
+ } | {
320
+ type: "parachain";
321
+ relayId: string;
322
+ paraId: number;
323
+ };
324
+ isTestnet?: boolean | undefined;
325
+ isDefault?: boolean | undefined;
326
+ forceScan?: boolean | undefined;
327
+ logo?: string | undefined;
328
+ themeColor?: string | undefined;
329
+ chainspecQrUrl?: string | undefined;
330
+ latestMetadataQrUrl?: string | undefined;
331
+ oldPrefix?: number | undefined;
332
+ registryTypes?: any;
333
+ signedExtensions?: any;
334
+ hasCheckMetadataHash?: boolean | undefined;
335
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
336
+ isUnknownFeeToken?: boolean | undefined;
337
+ balancesConfig?: {
338
+ "substrate-native"?: {
339
+ disable?: boolean | undefined;
340
+ } | undefined;
341
+ "substrate-assets"?: undefined;
342
+ "substrate-psp22"?: undefined;
343
+ "substrate-tokens"?: {
344
+ palletId?: string | undefined;
345
+ } | undefined;
346
+ "substrate-foreignassets"?: undefined;
347
+ } | undefined;
348
+ }>;
349
+ evmNetworks: {
350
+ id: string;
351
+ name: string;
352
+ nativeTokenId: string;
353
+ nativeCurrency: {
354
+ decimals: number;
355
+ symbol: string;
356
+ name: string;
357
+ coingeckoId?: string | undefined;
358
+ mirrorOf?: string | undefined;
359
+ logo?: string | undefined;
360
+ };
361
+ blockExplorerUrls: string[];
362
+ platform: "ethereum";
363
+ rpcs: string[];
364
+ isTestnet?: boolean | undefined;
365
+ isDefault?: boolean | undefined;
366
+ forceScan?: boolean | undefined;
367
+ logo?: string | undefined;
368
+ themeColor?: string | undefined;
369
+ substrateChainId?: string | undefined;
370
+ preserveGasEstimate?: boolean | undefined;
371
+ feeType?: "legacy" | "eip-1559" | undefined;
372
+ l2FeeType?: {
373
+ type: "op-stack";
374
+ } | {
375
+ type: "scroll";
376
+ l1GasPriceOracle: `0x${string}`;
377
+ } | undefined;
378
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
379
+ balancesConfig?: {
380
+ "evm-native"?: undefined;
381
+ "evm-erc20"?: undefined;
382
+ "evm-uniswapv2"?: undefined;
383
+ } | undefined;
384
+ }[];
385
+ evmNetworksById: Record<string, {
386
+ id: string;
387
+ name: string;
388
+ nativeTokenId: string;
389
+ nativeCurrency: {
390
+ decimals: number;
391
+ symbol: string;
392
+ name: string;
393
+ coingeckoId?: string | undefined;
394
+ mirrorOf?: string | undefined;
395
+ logo?: string | undefined;
396
+ };
397
+ blockExplorerUrls: string[];
398
+ platform: "ethereum";
399
+ rpcs: string[];
400
+ isTestnet?: boolean | undefined;
401
+ isDefault?: boolean | undefined;
402
+ forceScan?: boolean | undefined;
403
+ logo?: string | undefined;
404
+ themeColor?: string | undefined;
405
+ substrateChainId?: string | undefined;
406
+ preserveGasEstimate?: boolean | undefined;
407
+ feeType?: "legacy" | "eip-1559" | undefined;
408
+ l2FeeType?: {
409
+ type: "op-stack";
410
+ } | {
411
+ type: "scroll";
412
+ l1GasPriceOracle: `0x${string}`;
413
+ } | undefined;
414
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
415
+ balancesConfig?: {
416
+ "evm-native"?: undefined;
417
+ "evm-erc20"?: undefined;
418
+ "evm-uniswapv2"?: undefined;
419
+ } | undefined;
420
+ }>;
95
421
  tokens: ({
96
422
  id: string;
97
423
  networkId: string;
@@ -106,6 +432,7 @@ export declare const useChaindata: () => {
106
432
  coingeckoId?: string | undefined;
107
433
  noDiscovery?: boolean | undefined;
108
434
  mirrorOf?: string | undefined;
435
+ isCustom?: boolean | undefined;
109
436
  } | {
110
437
  id: string;
111
438
  networkId: string;
@@ -150,7 +477,6 @@ export declare const useChaindata: () => {
150
477
  type: "substrate-assets";
151
478
  platform: "polkadot";
152
479
  assetId: string;
153
- isSufficient: boolean;
154
480
  existentialDeposit: string;
155
481
  isDefault?: boolean | undefined;
156
482
  name?: string | undefined;
@@ -167,7 +493,6 @@ export declare const useChaindata: () => {
167
493
  type: "substrate-foreignassets";
168
494
  platform: "polkadot";
169
495
  onChainId: string;
170
- isSufficient: boolean;
171
496
  existentialDeposit: string;
172
497
  isDefault?: boolean | undefined;
173
498
  name?: string | undefined;
@@ -219,117 +544,139 @@ export declare const useChaindata: () => {
219
544
  coingeckoId?: string | undefined;
220
545
  noDiscovery?: boolean | undefined;
221
546
  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
547
  })[];
240
- };
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;
548
+ tokensById: {
549
+ [k: string]: {
550
+ id: string;
551
+ networkId: string;
552
+ decimals: number;
553
+ symbol: string;
554
+ type: "evm-erc20";
555
+ platform: "ethereum";
556
+ contractAddress: `0x${string}`;
557
+ isDefault?: boolean | undefined;
558
+ name?: string | undefined;
559
+ logo?: string | undefined;
560
+ coingeckoId?: string | undefined;
561
+ noDiscovery?: boolean | undefined;
562
+ mirrorOf?: string | undefined;
563
+ isCustom?: boolean | undefined;
564
+ } | {
565
+ id: string;
566
+ networkId: string;
567
+ decimals: number;
568
+ symbol: string;
569
+ type: "evm-native";
570
+ platform: "ethereum";
571
+ isDefault?: boolean | undefined;
572
+ name?: string | undefined;
573
+ logo?: string | undefined;
574
+ coingeckoId?: string | undefined;
575
+ noDiscovery?: boolean | undefined;
576
+ mirrorOf?: string | undefined;
577
+ } | {
578
+ id: string;
579
+ networkId: string;
580
+ decimals: number;
581
+ symbol: string;
582
+ type: "evm-uniswapv2";
583
+ platform: "ethereum";
584
+ contractAddress: `0x${string}`;
585
+ symbol0: string;
586
+ symbol1: string;
587
+ decimals0: number;
588
+ decimals1: number;
589
+ tokenAddress0: `0x${string}`;
590
+ tokenAddress1: `0x${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
+ isCustom?: boolean | undefined;
598
+ coingeckoId0?: string | undefined;
599
+ coingeckoId1?: string | undefined;
600
+ } | {
601
+ id: string;
602
+ networkId: string;
603
+ decimals: number;
604
+ symbol: string;
605
+ type: "substrate-assets";
606
+ platform: "polkadot";
607
+ assetId: string;
608
+ existentialDeposit: string;
609
+ isDefault?: boolean | undefined;
610
+ name?: string | undefined;
611
+ logo?: string | undefined;
612
+ coingeckoId?: string | undefined;
613
+ noDiscovery?: boolean | undefined;
614
+ mirrorOf?: string | undefined;
615
+ isFrozen?: boolean | undefined;
616
+ } | {
617
+ id: string;
618
+ networkId: string;
619
+ decimals: number;
620
+ symbol: string;
621
+ type: "substrate-foreignassets";
622
+ platform: "polkadot";
623
+ onChainId: string;
624
+ existentialDeposit: string;
625
+ isDefault?: boolean | undefined;
626
+ name?: string | undefined;
627
+ logo?: string | undefined;
628
+ coingeckoId?: string | undefined;
629
+ noDiscovery?: boolean | undefined;
630
+ mirrorOf?: string | undefined;
631
+ isFrozen?: boolean | undefined;
632
+ } | {
633
+ id: string;
634
+ networkId: string;
635
+ decimals: number;
636
+ symbol: string;
637
+ type: "substrate-native";
638
+ platform: "polkadot";
639
+ existentialDeposit: string;
640
+ isDefault?: boolean | undefined;
641
+ name?: string | undefined;
642
+ logo?: string | undefined;
643
+ coingeckoId?: string | undefined;
644
+ noDiscovery?: boolean | undefined;
645
+ mirrorOf?: string | undefined;
646
+ } | {
647
+ id: string;
648
+ networkId: string;
649
+ decimals: number;
650
+ symbol: string;
651
+ type: "substrate-psp22";
652
+ platform: "polkadot";
653
+ contractAddress: string;
654
+ isDefault?: boolean | undefined;
655
+ name?: string | undefined;
656
+ logo?: string | undefined;
657
+ coingeckoId?: string | undefined;
658
+ noDiscovery?: boolean | undefined;
659
+ mirrorOf?: string | undefined;
660
+ } | {
661
+ id: string;
662
+ networkId: string;
663
+ decimals: number;
664
+ symbol: string;
665
+ type: "substrate-tokens";
666
+ platform: "polkadot";
667
+ onChainId: string | number;
668
+ existentialDeposit: string;
669
+ isDefault?: boolean | undefined;
670
+ name?: string | undefined;
671
+ logo?: string | undefined;
672
+ coingeckoId?: string | undefined;
673
+ noDiscovery?: boolean | undefined;
674
+ mirrorOf?: string | undefined;
675
+ };
307
676
  };
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<{
677
+ miniMetadatas: import("@talismn/balances").MiniMetadata[];
678
+ };
679
+ export declare const useChains: () => Record<string, {
333
680
  id: string;
334
681
  name: string;
335
682
  nativeTokenId: string;
@@ -365,62 +712,26 @@ export declare const useNetworksById: () => import("lodash").Dictionary<{
365
712
  logo?: string | undefined;
366
713
  themeColor?: string | undefined;
367
714
  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;
715
+ latestMetadataQrUrl?: string | undefined;
716
+ oldPrefix?: number | undefined;
717
+ registryTypes?: any;
718
+ signedExtensions?: any;
719
+ hasCheckMetadataHash?: boolean | undefined;
720
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
721
+ isUnknownFeeToken?: boolean | undefined;
417
722
  balancesConfig?: {
418
- "evm-native"?: undefined;
419
- "evm-erc20"?: undefined;
420
- "evm-uniswapv2"?: undefined;
723
+ "substrate-native"?: {
724
+ disable?: boolean | undefined;
725
+ } | undefined;
726
+ "substrate-assets"?: undefined;
727
+ "substrate-psp22"?: undefined;
728
+ "substrate-tokens"?: {
729
+ palletId?: string | undefined;
730
+ } | undefined;
731
+ "substrate-foreignassets"?: undefined;
421
732
  } | undefined;
422
733
  }>;
423
- export declare const useNetwork: (networkId?: NetworkId) => {
734
+ export declare const useChainsByGenesisHash: () => Record<string, {
424
735
  id: string;
425
736
  name: string;
426
737
  nativeTokenId: string;
@@ -473,9 +784,9 @@ export declare const useNetwork: (networkId?: NetworkId) => {
473
784
  palletId?: string | undefined;
474
785
  } | undefined;
475
786
  "substrate-foreignassets"?: undefined;
476
- "substrate-hydration"?: undefined;
477
787
  } | undefined;
478
- } | {
788
+ }>;
789
+ export declare const useEvmNetworks: () => Record<string, {
479
790
  id: string;
480
791
  name: string;
481
792
  nativeTokenId: string;
@@ -510,297 +821,228 @@ export declare const useNetwork: (networkId?: NetworkId) => {
510
821
  "evm-erc20"?: undefined;
511
822
  "evm-uniswapv2"?: undefined;
512
823
  } | 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
- } | {
824
+ }>;
825
+ export declare const useTokens: () => {
826
+ [k: string]: {
827
+ id: string;
828
+ networkId: string;
829
+ decimals: number;
830
+ symbol: string;
831
+ type: "evm-erc20";
832
+ platform: "ethereum";
833
+ contractAddress: `0x${string}`;
834
+ isDefault?: boolean | undefined;
835
+ name?: string | undefined;
836
+ logo?: string | undefined;
837
+ coingeckoId?: string | undefined;
838
+ noDiscovery?: boolean | undefined;
839
+ mirrorOf?: string | undefined;
840
+ isCustom?: boolean | undefined;
841
+ } | {
842
+ id: string;
843
+ networkId: string;
844
+ decimals: number;
845
+ symbol: string;
846
+ type: "evm-native";
847
+ platform: "ethereum";
848
+ isDefault?: boolean | undefined;
849
+ name?: string | undefined;
850
+ logo?: string | undefined;
851
+ coingeckoId?: string | undefined;
852
+ noDiscovery?: boolean | undefined;
853
+ mirrorOf?: string | undefined;
854
+ } | {
855
+ id: string;
856
+ networkId: string;
857
+ decimals: number;
858
+ symbol: string;
859
+ type: "evm-uniswapv2";
860
+ platform: "ethereum";
861
+ contractAddress: `0x${string}`;
862
+ symbol0: string;
863
+ symbol1: string;
864
+ decimals0: number;
865
+ decimals1: number;
866
+ tokenAddress0: `0x${string}`;
867
+ tokenAddress1: `0x${string}`;
868
+ isDefault?: boolean | undefined;
869
+ name?: string | undefined;
870
+ logo?: string | undefined;
871
+ coingeckoId?: string | undefined;
872
+ noDiscovery?: boolean | undefined;
873
+ mirrorOf?: string | undefined;
874
+ isCustom?: boolean | undefined;
875
+ coingeckoId0?: string | undefined;
876
+ coingeckoId1?: string | undefined;
877
+ } | {
878
+ id: string;
879
+ networkId: string;
880
+ decimals: number;
881
+ symbol: string;
882
+ type: "substrate-assets";
883
+ platform: "polkadot";
884
+ assetId: string;
885
+ existentialDeposit: string;
886
+ isDefault?: boolean | undefined;
887
+ name?: string | undefined;
888
+ logo?: string | undefined;
889
+ coingeckoId?: string | undefined;
890
+ noDiscovery?: boolean | undefined;
891
+ mirrorOf?: string | undefined;
892
+ isFrozen?: boolean | undefined;
893
+ } | {
894
+ id: string;
895
+ networkId: string;
896
+ decimals: number;
897
+ symbol: string;
898
+ type: "substrate-foreignassets";
899
+ platform: "polkadot";
900
+ onChainId: string;
901
+ existentialDeposit: string;
902
+ isDefault?: boolean | undefined;
903
+ name?: string | undefined;
904
+ logo?: string | undefined;
905
+ coingeckoId?: string | undefined;
906
+ noDiscovery?: boolean | undefined;
907
+ mirrorOf?: string | undefined;
908
+ isFrozen?: boolean | undefined;
909
+ } | {
910
+ id: string;
911
+ networkId: string;
912
+ decimals: number;
913
+ symbol: string;
914
+ type: "substrate-native";
915
+ platform: "polkadot";
916
+ existentialDeposit: string;
917
+ isDefault?: boolean | undefined;
918
+ name?: string | undefined;
919
+ logo?: string | undefined;
920
+ coingeckoId?: string | undefined;
921
+ noDiscovery?: boolean | undefined;
922
+ mirrorOf?: string | undefined;
923
+ } | {
924
+ id: string;
925
+ networkId: string;
926
+ decimals: number;
927
+ symbol: string;
928
+ type: "substrate-psp22";
929
+ platform: "polkadot";
930
+ contractAddress: string;
931
+ isDefault?: boolean | undefined;
932
+ name?: string | undefined;
933
+ logo?: string | undefined;
934
+ coingeckoId?: string | undefined;
935
+ noDiscovery?: boolean | undefined;
936
+ mirrorOf?: string | undefined;
937
+ } | {
938
+ id: string;
939
+ networkId: string;
940
+ decimals: number;
941
+ symbol: string;
942
+ type: "substrate-tokens";
943
+ platform: "polkadot";
944
+ onChainId: string | number;
945
+ existentialDeposit: string;
946
+ isDefault?: boolean | undefined;
947
+ name?: string | undefined;
948
+ logo?: string | undefined;
949
+ coingeckoId?: string | undefined;
950
+ noDiscovery?: boolean | undefined;
951
+ mirrorOf?: string | undefined;
952
+ };
953
+ };
954
+ export declare const useMiniMetadatas: () => import("@talismn/balances").MiniMetadata[];
955
+ export declare const useChain: (chainId?: DotNetworkId) => {
642
956
  id: string;
643
- networkId: string;
644
- decimals: number;
645
- symbol: string;
646
- type: "substrate-hydration";
957
+ name: string;
958
+ nativeTokenId: string;
959
+ nativeCurrency: {
960
+ decimals: number;
961
+ symbol: string;
962
+ name: string;
963
+ coingeckoId?: string | undefined;
964
+ mirrorOf?: string | undefined;
965
+ logo?: string | undefined;
966
+ };
967
+ blockExplorerUrls: string[];
968
+ genesisHash: `0x${string}`;
647
969
  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";
970
+ chainName: string;
971
+ specName: string;
972
+ specVersion: number;
973
+ account: "secp256k1" | "*25519";
974
+ prefix: number;
975
+ rpcs: string[];
976
+ topology: {
977
+ type: "standalone";
978
+ } | {
979
+ type: "relay";
980
+ } | {
981
+ type: "parachain";
982
+ relayId: string;
983
+ paraId: number;
984
+ };
985
+ isTestnet?: boolean | undefined;
680
986
  isDefault?: boolean | undefined;
681
- name?: string | undefined;
987
+ forceScan?: boolean | undefined;
682
988
  logo?: string | undefined;
683
- coingeckoId?: string | undefined;
684
- noDiscovery?: boolean | undefined;
685
- mirrorOf?: string | undefined;
686
- } | {
989
+ themeColor?: string | undefined;
990
+ chainspecQrUrl?: string | undefined;
991
+ latestMetadataQrUrl?: string | undefined;
992
+ oldPrefix?: number | undefined;
993
+ registryTypes?: any;
994
+ signedExtensions?: any;
995
+ hasCheckMetadataHash?: boolean | undefined;
996
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
997
+ isUnknownFeeToken?: boolean | undefined;
998
+ balancesConfig?: {
999
+ "substrate-native"?: {
1000
+ disable?: boolean | undefined;
1001
+ } | undefined;
1002
+ "substrate-assets"?: undefined;
1003
+ "substrate-psp22"?: undefined;
1004
+ "substrate-tokens"?: {
1005
+ palletId?: string | undefined;
1006
+ } | undefined;
1007
+ "substrate-foreignassets"?: undefined;
1008
+ } | undefined;
1009
+ };
1010
+ export declare const useEvmNetwork: (evmNetworkId?: EthNetworkId) => {
687
1011
  id: string;
688
- networkId: string;
689
- decimals: number;
690
- symbol: string;
691
- type: "evm-uniswapv2";
1012
+ name: string;
1013
+ nativeTokenId: string;
1014
+ nativeCurrency: {
1015
+ decimals: number;
1016
+ symbol: string;
1017
+ name: string;
1018
+ coingeckoId?: string | undefined;
1019
+ mirrorOf?: string | undefined;
1020
+ logo?: string | undefined;
1021
+ };
1022
+ blockExplorerUrls: string[];
692
1023
  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;
1024
+ rpcs: string[];
1025
+ isTestnet?: boolean | undefined;
797
1026
  isDefault?: boolean | undefined;
798
- name?: string | undefined;
1027
+ forceScan?: boolean | undefined;
799
1028
  logo?: string | undefined;
800
- coingeckoId?: string | undefined;
801
- noDiscovery?: boolean | undefined;
802
- mirrorOf?: string | undefined;
803
- }>;
1029
+ themeColor?: string | undefined;
1030
+ substrateChainId?: string | undefined;
1031
+ preserveGasEstimate?: boolean | undefined;
1032
+ feeType?: "legacy" | "eip-1559" | undefined;
1033
+ l2FeeType?: {
1034
+ type: "op-stack";
1035
+ } | {
1036
+ type: "scroll";
1037
+ l1GasPriceOracle: `0x${string}`;
1038
+ } | undefined;
1039
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
1040
+ balancesConfig?: {
1041
+ "evm-native"?: undefined;
1042
+ "evm-erc20"?: undefined;
1043
+ "evm-uniswapv2"?: undefined;
1044
+ } | undefined;
1045
+ };
804
1046
  export declare const useToken: (tokenId?: TokenId) => {
805
1047
  id: string;
806
1048
  networkId: string;
@@ -815,6 +1057,7 @@ export declare const useToken: (tokenId?: TokenId) => {
815
1057
  coingeckoId?: string | undefined;
816
1058
  noDiscovery?: boolean | undefined;
817
1059
  mirrorOf?: string | undefined;
1060
+ isCustom?: boolean | undefined;
818
1061
  } | {
819
1062
  id: string;
820
1063
  networkId: string;
@@ -859,7 +1102,6 @@ export declare const useToken: (tokenId?: TokenId) => {
859
1102
  type: "substrate-assets";
860
1103
  platform: "polkadot";
861
1104
  assetId: string;
862
- isSufficient: boolean;
863
1105
  existentialDeposit: string;
864
1106
  isDefault?: boolean | undefined;
865
1107
  name?: string | undefined;
@@ -876,7 +1118,6 @@ export declare const useToken: (tokenId?: TokenId) => {
876
1118
  type: "substrate-foreignassets";
877
1119
  platform: "polkadot";
878
1120
  onChainId: string;
879
- isSufficient: boolean;
880
1121
  existentialDeposit: string;
881
1122
  isDefault?: boolean | undefined;
882
1123
  name?: string | undefined;
@@ -928,21 +1169,4 @@ export declare const useToken: (tokenId?: TokenId) => {
928
1169
  coingeckoId?: string | undefined;
929
1170
  noDiscovery?: boolean | undefined;
930
1171
  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;
948
1172
  };