@talismn/balances-react 0.0.0-pr2079-20250710050859 → 0.0.0-pr2091-20250715012835

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 { DotNetworkId, EthNetworkId, 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
4
  networks: ({
@@ -54,6 +54,7 @@ export declare const useChaindata: () => {
54
54
  palletId?: string | undefined;
55
55
  } | undefined;
56
56
  "substrate-foreignassets"?: undefined;
57
+ "substrate-hydration"?: undefined;
57
58
  } | undefined;
58
59
  } | {
59
60
  id: string;
@@ -90,8 +91,7 @@ export declare const useChaindata: () => {
90
91
  "evm-erc20"?: undefined;
91
92
  "evm-uniswapv2"?: undefined;
92
93
  } | undefined;
93
- })[];
94
- networksById: Record<string, {
94
+ } | {
95
95
  id: string;
96
96
  name: string;
97
97
  nativeTokenId: string;
@@ -104,379 +104,109 @@ export declare const useChaindata: () => {
104
104
  logo?: string | undefined;
105
105
  };
106
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;
107
+ platform: "solana";
114
108
  rpcs: string[];
115
- topology: {
116
- type: "standalone";
117
- } | {
118
- type: "relay";
119
- } | {
120
- type: "parachain";
121
- relayId: string;
122
- paraId: number;
123
- };
124
109
  isTestnet?: boolean | undefined;
125
110
  isDefault?: boolean | undefined;
126
111
  forceScan?: boolean | undefined;
127
112
  logo?: string | undefined;
128
113
  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;
114
+ genesisHash?: string | undefined;
137
115
  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;
116
+ "sol-native"?: undefined;
147
117
  } | undefined;
118
+ })[];
119
+ tokens: ({
120
+ id: string;
121
+ networkId: string;
122
+ decimals: number;
123
+ symbol: string;
124
+ type: "evm-erc20";
125
+ platform: "ethereum";
126
+ contractAddress: `0x${string}`;
127
+ isDefault?: boolean | undefined;
128
+ name?: string | undefined;
129
+ logo?: string | undefined;
130
+ coingeckoId?: string | undefined;
131
+ noDiscovery?: boolean | undefined;
132
+ mirrorOf?: string | undefined;
148
133
  } | {
149
134
  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[];
135
+ networkId: string;
136
+ decimals: number;
137
+ symbol: string;
138
+ type: "evm-native";
161
139
  platform: "ethereum";
162
- rpcs: string[];
163
- isTestnet?: boolean | undefined;
164
140
  isDefault?: boolean | undefined;
165
- forceScan?: boolean | undefined;
141
+ name?: string | undefined;
166
142
  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: {
143
+ coingeckoId?: string | undefined;
144
+ noDiscovery?: boolean | undefined;
145
+ mirrorOf?: string | undefined;
146
+ } | {
185
147
  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;
148
+ networkId: string;
149
+ decimals: number;
150
+ symbol: string;
151
+ type: "evm-uniswapv2";
152
+ platform: "ethereum";
153
+ contractAddress: `0x${string}`;
154
+ symbol0: string;
155
+ symbol1: string;
156
+ decimals0: number;
157
+ decimals1: number;
158
+ tokenAddress0: `0x${string}`;
159
+ tokenAddress1: `0x${string}`;
215
160
  isDefault?: boolean | undefined;
216
- forceScan?: boolean | undefined;
161
+ name?: string | undefined;
217
162
  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, {
163
+ coingeckoId?: string | undefined;
164
+ noDiscovery?: boolean | undefined;
165
+ mirrorOf?: string | undefined;
166
+ isCustom?: boolean | undefined;
167
+ coingeckoId0?: string | undefined;
168
+ coingeckoId1?: string | undefined;
169
+ } | {
240
170
  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}`;
171
+ networkId: string;
172
+ decimals: number;
173
+ symbol: string;
174
+ type: "substrate-assets";
253
175
  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;
176
+ assetId: string;
177
+ isSufficient: boolean;
178
+ existentialDeposit: string;
270
179
  isDefault?: boolean | undefined;
271
- forceScan?: boolean | undefined;
180
+ name?: string | undefined;
272
181
  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, {
182
+ coingeckoId?: string | undefined;
183
+ noDiscovery?: boolean | undefined;
184
+ mirrorOf?: string | undefined;
185
+ isFrozen?: boolean | undefined;
186
+ } | {
295
187
  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}`;
188
+ networkId: string;
189
+ decimals: number;
190
+ symbol: string;
191
+ type: "substrate-foreignassets";
308
192
  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;
193
+ onChainId: string;
194
+ isSufficient: boolean;
195
+ existentialDeposit: string;
325
196
  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
- }>;
421
- tokens: ({
422
- id: string;
423
- networkId: string;
424
- decimals: number;
425
- symbol: string;
426
- type: "evm-erc20";
427
- platform: "ethereum";
428
- contractAddress: `0x${string}`;
429
- isDefault?: boolean | undefined;
430
- name?: string | undefined;
431
- logo?: string | undefined;
432
- coingeckoId?: string | undefined;
433
- noDiscovery?: boolean | undefined;
434
- mirrorOf?: string | undefined;
435
- isCustom?: boolean | undefined;
436
- } | {
437
- id: string;
438
- networkId: string;
439
- decimals: number;
440
- symbol: string;
441
- type: "evm-native";
442
- platform: "ethereum";
443
- isDefault?: boolean | undefined;
444
- name?: string | undefined;
445
- logo?: string | undefined;
446
- coingeckoId?: string | undefined;
447
- noDiscovery?: boolean | undefined;
448
- mirrorOf?: string | undefined;
449
- } | {
450
- id: string;
451
- networkId: string;
452
- decimals: number;
453
- symbol: string;
454
- type: "evm-uniswapv2";
455
- platform: "ethereum";
456
- contractAddress: `0x${string}`;
457
- symbol0: string;
458
- symbol1: string;
459
- decimals0: number;
460
- decimals1: number;
461
- tokenAddress0: `0x${string}`;
462
- tokenAddress1: `0x${string}`;
463
- isDefault?: boolean | undefined;
464
- name?: string | undefined;
197
+ name?: string | undefined;
465
198
  logo?: string | undefined;
466
199
  coingeckoId?: string | undefined;
467
200
  noDiscovery?: boolean | undefined;
468
201
  mirrorOf?: string | undefined;
469
- isCustom?: boolean | undefined;
470
- coingeckoId0?: string | undefined;
471
- coingeckoId1?: string | undefined;
202
+ isFrozen?: boolean | undefined;
472
203
  } | {
473
204
  id: string;
474
205
  networkId: string;
475
206
  decimals: number;
476
207
  symbol: string;
477
- type: "substrate-assets";
208
+ type: "substrate-native";
478
209
  platform: "polkadot";
479
- assetId: string;
480
210
  existentialDeposit: string;
481
211
  isDefault?: boolean | undefined;
482
212
  name?: string | undefined;
@@ -484,30 +214,28 @@ export declare const useChaindata: () => {
484
214
  coingeckoId?: string | undefined;
485
215
  noDiscovery?: boolean | undefined;
486
216
  mirrorOf?: string | undefined;
487
- isFrozen?: boolean | undefined;
488
217
  } | {
489
218
  id: string;
490
219
  networkId: string;
491
220
  decimals: number;
492
221
  symbol: string;
493
- type: "substrate-foreignassets";
222
+ type: "substrate-psp22";
494
223
  platform: "polkadot";
495
- onChainId: string;
496
- existentialDeposit: string;
224
+ contractAddress: string;
497
225
  isDefault?: boolean | undefined;
498
226
  name?: string | undefined;
499
227
  logo?: string | undefined;
500
228
  coingeckoId?: string | undefined;
501
229
  noDiscovery?: boolean | undefined;
502
230
  mirrorOf?: string | undefined;
503
- isFrozen?: boolean | undefined;
504
231
  } | {
505
232
  id: string;
506
233
  networkId: string;
507
234
  decimals: number;
508
235
  symbol: string;
509
- type: "substrate-native";
236
+ type: "substrate-tokens";
510
237
  platform: "polkadot";
238
+ onChainId: string | number;
511
239
  existentialDeposit: string;
512
240
  isDefault?: boolean | undefined;
513
241
  name?: string | undefined;
@@ -520,9 +248,12 @@ export declare const useChaindata: () => {
520
248
  networkId: string;
521
249
  decimals: number;
522
250
  symbol: string;
523
- type: "substrate-psp22";
251
+ type: "substrate-hydration";
524
252
  platform: "polkadot";
525
- contractAddress: string;
253
+ onChainId: number;
254
+ assetType: "Token" | "Erc20" | "External";
255
+ isSufficient: boolean;
256
+ existentialDeposit: string;
526
257
  isDefault?: boolean | undefined;
527
258
  name?: string | undefined;
528
259
  logo?: string | undefined;
@@ -534,10 +265,8 @@ export declare const useChaindata: () => {
534
265
  networkId: string;
535
266
  decimals: number;
536
267
  symbol: string;
537
- type: "substrate-tokens";
538
- platform: "polkadot";
539
- onChainId: string | number;
540
- existentialDeposit: string;
268
+ type: "sol-native";
269
+ platform: "solana";
541
270
  isDefault?: boolean | undefined;
542
271
  name?: string | undefined;
543
272
  logo?: string | undefined;
@@ -545,138 +274,8 @@ export declare const useChaindata: () => {
545
274
  noDiscovery?: boolean | undefined;
546
275
  mirrorOf?: string | undefined;
547
276
  })[];
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
- };
676
- };
677
- miniMetadatas: import("@talismn/balances").MiniMetadata[];
678
277
  };
679
- export declare const useChains: () => Record<string, {
278
+ export declare const useNetworks: () => ({
680
279
  id: string;
681
280
  name: string;
682
281
  nativeTokenId: string;
@@ -729,9 +328,9 @@ export declare const useChains: () => Record<string, {
729
328
  palletId?: string | undefined;
730
329
  } | undefined;
731
330
  "substrate-foreignassets"?: undefined;
331
+ "substrate-hydration"?: undefined;
732
332
  } | undefined;
733
- }>;
734
- export declare const useChainsByGenesisHash: () => Record<string, {
333
+ } | {
735
334
  id: string;
736
335
  name: string;
737
336
  nativeTokenId: string;
@@ -744,49 +343,109 @@ export declare const useChainsByGenesisHash: () => Record<string, {
744
343
  logo?: string | undefined;
745
344
  };
746
345
  blockExplorerUrls: string[];
747
- genesisHash: `0x${string}`;
748
- platform: "polkadot";
749
- chainName: string;
750
- specName: string;
751
- specVersion: number;
752
- account: "secp256k1" | "*25519";
753
- prefix: number;
346
+ platform: "ethereum";
754
347
  rpcs: string[];
755
- topology: {
756
- type: "standalone";
757
- } | {
758
- type: "relay";
759
- } | {
760
- type: "parachain";
761
- relayId: string;
762
- paraId: number;
763
- };
764
348
  isTestnet?: boolean | undefined;
765
349
  isDefault?: boolean | undefined;
766
350
  forceScan?: boolean | undefined;
767
351
  logo?: string | undefined;
768
352
  themeColor?: string | undefined;
769
- chainspecQrUrl?: string | undefined;
770
- latestMetadataQrUrl?: string | undefined;
771
- oldPrefix?: number | undefined;
772
- registryTypes?: any;
773
- signedExtensions?: any;
774
- hasCheckMetadataHash?: boolean | undefined;
775
- hasExtrinsicSignatureTypePrefix?: boolean | undefined;
776
- isUnknownFeeToken?: boolean | undefined;
353
+ substrateChainId?: string | undefined;
354
+ preserveGasEstimate?: boolean | undefined;
355
+ feeType?: "legacy" | "eip-1559" | undefined;
356
+ l2FeeType?: {
357
+ type: "op-stack";
358
+ } | {
359
+ type: "scroll";
360
+ l1GasPriceOracle: `0x${string}`;
361
+ } | undefined;
362
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
777
363
  balancesConfig?: {
778
- "substrate-native"?: {
779
- disable?: boolean | undefined;
780
- } | undefined;
781
- "substrate-assets"?: undefined;
782
- "substrate-psp22"?: undefined;
783
- "substrate-tokens"?: {
784
- palletId?: string | undefined;
785
- } | undefined;
786
- "substrate-foreignassets"?: undefined;
364
+ "evm-native"?: undefined;
365
+ "evm-erc20"?: undefined;
366
+ "evm-uniswapv2"?: undefined;
787
367
  } | undefined;
788
- }>;
789
- export declare const useEvmNetworks: () => Record<string, {
368
+ } | {
369
+ id: string;
370
+ name: string;
371
+ nativeTokenId: string;
372
+ nativeCurrency: {
373
+ decimals: number;
374
+ symbol: string;
375
+ name: string;
376
+ coingeckoId?: string | undefined;
377
+ mirrorOf?: string | undefined;
378
+ logo?: string | undefined;
379
+ };
380
+ blockExplorerUrls: string[];
381
+ platform: "solana";
382
+ rpcs: string[];
383
+ isTestnet?: boolean | undefined;
384
+ isDefault?: boolean | undefined;
385
+ forceScan?: boolean | undefined;
386
+ logo?: string | undefined;
387
+ themeColor?: string | undefined;
388
+ genesisHash?: string | undefined;
389
+ balancesConfig?: {
390
+ "sol-native"?: undefined;
391
+ } | undefined;
392
+ })[];
393
+ export declare const useNetworksById: () => import("lodash").Dictionary<{
394
+ id: string;
395
+ name: string;
396
+ nativeTokenId: string;
397
+ nativeCurrency: {
398
+ decimals: number;
399
+ symbol: string;
400
+ name: string;
401
+ coingeckoId?: string | undefined;
402
+ mirrorOf?: string | undefined;
403
+ logo?: string | undefined;
404
+ };
405
+ blockExplorerUrls: string[];
406
+ genesisHash: `0x${string}`;
407
+ platform: "polkadot";
408
+ chainName: string;
409
+ specName: string;
410
+ specVersion: number;
411
+ account: "secp256k1" | "*25519";
412
+ prefix: number;
413
+ rpcs: string[];
414
+ topology: {
415
+ type: "standalone";
416
+ } | {
417
+ type: "relay";
418
+ } | {
419
+ type: "parachain";
420
+ relayId: string;
421
+ paraId: number;
422
+ };
423
+ isTestnet?: boolean | undefined;
424
+ isDefault?: boolean | undefined;
425
+ forceScan?: boolean | undefined;
426
+ logo?: string | undefined;
427
+ themeColor?: string | undefined;
428
+ chainspecQrUrl?: string | undefined;
429
+ latestMetadataQrUrl?: string | undefined;
430
+ oldPrefix?: number | undefined;
431
+ registryTypes?: any;
432
+ signedExtensions?: any;
433
+ hasCheckMetadataHash?: boolean | undefined;
434
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
435
+ isUnknownFeeToken?: boolean | undefined;
436
+ balancesConfig?: {
437
+ "substrate-native"?: {
438
+ disable?: boolean | undefined;
439
+ } | undefined;
440
+ "substrate-assets"?: undefined;
441
+ "substrate-psp22"?: undefined;
442
+ "substrate-tokens"?: {
443
+ palletId?: string | undefined;
444
+ } | undefined;
445
+ "substrate-foreignassets"?: undefined;
446
+ "substrate-hydration"?: undefined;
447
+ } | undefined;
448
+ } | {
790
449
  id: string;
791
450
  name: string;
792
451
  nativeTokenId: string;
@@ -821,138 +480,122 @@ export declare const useEvmNetworks: () => Record<string, {
821
480
  "evm-erc20"?: undefined;
822
481
  "evm-uniswapv2"?: undefined;
823
482
  } | undefined;
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;
483
+ } | {
484
+ id: string;
485
+ name: string;
486
+ nativeTokenId: string;
487
+ nativeCurrency: {
844
488
  decimals: number;
845
489
  symbol: string;
846
- type: "evm-native";
847
- platform: "ethereum";
848
- isDefault?: boolean | undefined;
849
- name?: string | undefined;
850
- logo?: string | undefined;
490
+ name: string;
851
491
  coingeckoId?: string | undefined;
852
- noDiscovery?: boolean | undefined;
853
492
  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
493
  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;
494
+ };
495
+ blockExplorerUrls: string[];
496
+ platform: "solana";
497
+ rpcs: string[];
498
+ isTestnet?: boolean | undefined;
499
+ isDefault?: boolean | undefined;
500
+ forceScan?: boolean | undefined;
501
+ logo?: string | undefined;
502
+ themeColor?: string | undefined;
503
+ genesisHash?: string | undefined;
504
+ balancesConfig?: {
505
+ "sol-native"?: undefined;
506
+ } | undefined;
507
+ }>;
508
+ export declare const useNetwork: (networkId?: NetworkId) => {
509
+ id: string;
510
+ name: string;
511
+ nativeTokenId: string;
512
+ nativeCurrency: {
880
513
  decimals: number;
881
514
  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;
515
+ name: string;
889
516
  coingeckoId?: string | undefined;
890
- noDiscovery?: boolean | undefined;
891
517
  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
518
  logo?: string | undefined;
905
- coingeckoId?: string | undefined;
906
- noDiscovery?: boolean | undefined;
907
- mirrorOf?: string | undefined;
908
- isFrozen?: boolean | undefined;
519
+ };
520
+ blockExplorerUrls: string[];
521
+ genesisHash: `0x${string}`;
522
+ platform: "polkadot";
523
+ chainName: string;
524
+ specName: string;
525
+ specVersion: number;
526
+ account: "secp256k1" | "*25519";
527
+ prefix: number;
528
+ rpcs: string[];
529
+ topology: {
530
+ type: "standalone";
909
531
  } | {
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;
532
+ type: "relay";
923
533
  } | {
924
- id: string;
925
- networkId: string;
534
+ type: "parachain";
535
+ relayId: string;
536
+ paraId: number;
537
+ };
538
+ isTestnet?: boolean | undefined;
539
+ isDefault?: boolean | undefined;
540
+ forceScan?: boolean | undefined;
541
+ logo?: string | undefined;
542
+ themeColor?: string | undefined;
543
+ chainspecQrUrl?: string | undefined;
544
+ latestMetadataQrUrl?: string | undefined;
545
+ oldPrefix?: number | undefined;
546
+ registryTypes?: any;
547
+ signedExtensions?: any;
548
+ hasCheckMetadataHash?: boolean | undefined;
549
+ hasExtrinsicSignatureTypePrefix?: boolean | undefined;
550
+ isUnknownFeeToken?: boolean | undefined;
551
+ balancesConfig?: {
552
+ "substrate-native"?: {
553
+ disable?: boolean | undefined;
554
+ } | undefined;
555
+ "substrate-assets"?: undefined;
556
+ "substrate-psp22"?: undefined;
557
+ "substrate-tokens"?: {
558
+ palletId?: string | undefined;
559
+ } | undefined;
560
+ "substrate-foreignassets"?: undefined;
561
+ "substrate-hydration"?: undefined;
562
+ } | undefined;
563
+ } | {
564
+ id: string;
565
+ name: string;
566
+ nativeTokenId: string;
567
+ nativeCurrency: {
926
568
  decimals: number;
927
569
  symbol: string;
928
- type: "substrate-psp22";
929
- platform: "polkadot";
930
- contractAddress: string;
931
- isDefault?: boolean | undefined;
932
- name?: string | undefined;
933
- logo?: string | undefined;
570
+ name: string;
934
571
  coingeckoId?: string | undefined;
935
- noDiscovery?: boolean | undefined;
936
572
  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
573
  logo?: string | undefined;
949
- coingeckoId?: string | undefined;
950
- noDiscovery?: boolean | undefined;
951
- mirrorOf?: string | undefined;
952
574
  };
953
- };
954
- export declare const useMiniMetadatas: () => import("@talismn/balances").MiniMetadata[];
955
- export declare const useChain: (chainId?: DotNetworkId) => {
575
+ blockExplorerUrls: string[];
576
+ platform: "ethereum";
577
+ rpcs: string[];
578
+ isTestnet?: boolean | undefined;
579
+ isDefault?: boolean | undefined;
580
+ forceScan?: boolean | undefined;
581
+ logo?: string | undefined;
582
+ themeColor?: string | undefined;
583
+ substrateChainId?: string | undefined;
584
+ preserveGasEstimate?: boolean | undefined;
585
+ feeType?: "legacy" | "eip-1559" | undefined;
586
+ l2FeeType?: {
587
+ type: "op-stack";
588
+ } | {
589
+ type: "scroll";
590
+ l1GasPriceOracle: `0x${string}`;
591
+ } | undefined;
592
+ contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
593
+ balancesConfig?: {
594
+ "evm-native"?: undefined;
595
+ "evm-erc20"?: undefined;
596
+ "evm-uniswapv2"?: undefined;
597
+ } | undefined;
598
+ } | {
956
599
  id: string;
957
600
  name: string;
958
601
  nativeTokenId: string;
@@ -965,84 +608,334 @@ export declare const useChain: (chainId?: DotNetworkId) => {
965
608
  logo?: string | undefined;
966
609
  };
967
610
  blockExplorerUrls: string[];
968
- genesisHash: `0x${string}`;
611
+ platform: "solana";
612
+ rpcs: string[];
613
+ isTestnet?: boolean | undefined;
614
+ isDefault?: boolean | undefined;
615
+ forceScan?: boolean | undefined;
616
+ logo?: string | undefined;
617
+ themeColor?: string | undefined;
618
+ genesisHash?: string | undefined;
619
+ balancesConfig?: {
620
+ "sol-native"?: undefined;
621
+ } | undefined;
622
+ };
623
+ export declare const useTokens: () => ({
624
+ id: string;
625
+ networkId: string;
626
+ decimals: number;
627
+ symbol: string;
628
+ type: "evm-erc20";
629
+ platform: "ethereum";
630
+ contractAddress: `0x${string}`;
631
+ isDefault?: boolean | undefined;
632
+ name?: string | undefined;
633
+ logo?: string | undefined;
634
+ coingeckoId?: string | undefined;
635
+ noDiscovery?: boolean | undefined;
636
+ mirrorOf?: string | undefined;
637
+ } | {
638
+ id: string;
639
+ networkId: string;
640
+ decimals: number;
641
+ symbol: string;
642
+ type: "evm-native";
643
+ platform: "ethereum";
644
+ isDefault?: boolean | undefined;
645
+ name?: string | undefined;
646
+ logo?: string | undefined;
647
+ coingeckoId?: string | undefined;
648
+ noDiscovery?: boolean | undefined;
649
+ mirrorOf?: string | undefined;
650
+ } | {
651
+ id: string;
652
+ networkId: string;
653
+ decimals: number;
654
+ symbol: string;
655
+ type: "evm-uniswapv2";
656
+ platform: "ethereum";
657
+ contractAddress: `0x${string}`;
658
+ symbol0: string;
659
+ symbol1: string;
660
+ decimals0: number;
661
+ decimals1: number;
662
+ tokenAddress0: `0x${string}`;
663
+ tokenAddress1: `0x${string}`;
664
+ isDefault?: boolean | undefined;
665
+ name?: string | undefined;
666
+ logo?: string | undefined;
667
+ coingeckoId?: string | undefined;
668
+ noDiscovery?: boolean | undefined;
669
+ mirrorOf?: string | undefined;
670
+ isCustom?: boolean | undefined;
671
+ coingeckoId0?: string | undefined;
672
+ coingeckoId1?: string | undefined;
673
+ } | {
674
+ id: string;
675
+ networkId: string;
676
+ decimals: number;
677
+ symbol: string;
678
+ type: "substrate-assets";
679
+ platform: "polkadot";
680
+ assetId: string;
681
+ isSufficient: boolean;
682
+ existentialDeposit: string;
683
+ isDefault?: boolean | undefined;
684
+ name?: string | undefined;
685
+ logo?: string | undefined;
686
+ coingeckoId?: string | undefined;
687
+ noDiscovery?: boolean | undefined;
688
+ mirrorOf?: string | undefined;
689
+ isFrozen?: boolean | undefined;
690
+ } | {
691
+ id: string;
692
+ networkId: string;
693
+ decimals: number;
694
+ symbol: string;
695
+ type: "substrate-foreignassets";
696
+ platform: "polkadot";
697
+ onChainId: string;
698
+ isSufficient: boolean;
699
+ existentialDeposit: 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
+ isFrozen?: boolean | undefined;
707
+ } | {
708
+ id: string;
709
+ networkId: string;
710
+ decimals: number;
711
+ symbol: string;
712
+ type: "substrate-native";
713
+ platform: "polkadot";
714
+ existentialDeposit: string;
715
+ isDefault?: boolean | undefined;
716
+ name?: string | undefined;
717
+ logo?: string | undefined;
718
+ coingeckoId?: string | undefined;
719
+ noDiscovery?: boolean | undefined;
720
+ mirrorOf?: string | undefined;
721
+ } | {
722
+ id: string;
723
+ networkId: string;
724
+ decimals: number;
725
+ symbol: string;
726
+ type: "substrate-psp22";
727
+ platform: "polkadot";
728
+ contractAddress: string;
729
+ isDefault?: boolean | undefined;
730
+ name?: string | undefined;
731
+ logo?: string | undefined;
732
+ coingeckoId?: string | undefined;
733
+ noDiscovery?: boolean | undefined;
734
+ mirrorOf?: string | undefined;
735
+ } | {
736
+ id: string;
737
+ networkId: string;
738
+ decimals: number;
739
+ symbol: string;
740
+ type: "substrate-tokens";
741
+ platform: "polkadot";
742
+ onChainId: string | number;
743
+ existentialDeposit: string;
744
+ isDefault?: boolean | undefined;
745
+ name?: string | undefined;
746
+ logo?: string | undefined;
747
+ coingeckoId?: string | undefined;
748
+ noDiscovery?: boolean | undefined;
749
+ mirrorOf?: string | undefined;
750
+ } | {
751
+ id: string;
752
+ networkId: string;
753
+ decimals: number;
754
+ symbol: string;
755
+ type: "substrate-hydration";
969
756
  platform: "polkadot";
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;
757
+ onChainId: number;
758
+ assetType: "Token" | "Erc20" | "External";
759
+ isSufficient: boolean;
760
+ existentialDeposit: string;
986
761
  isDefault?: boolean | undefined;
987
- forceScan?: boolean | undefined;
762
+ name?: string | undefined;
988
763
  logo?: string | undefined;
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) => {
764
+ coingeckoId?: string | undefined;
765
+ noDiscovery?: boolean | undefined;
766
+ mirrorOf?: string | undefined;
767
+ } | {
1011
768
  id: string;
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[];
769
+ networkId: string;
770
+ decimals: number;
771
+ symbol: string;
772
+ type: "sol-native";
773
+ platform: "solana";
774
+ isDefault?: boolean | undefined;
775
+ name?: string | undefined;
776
+ logo?: string | undefined;
777
+ coingeckoId?: string | undefined;
778
+ noDiscovery?: boolean | undefined;
779
+ mirrorOf?: string | undefined;
780
+ })[];
781
+ export declare const useTokensById: () => import("lodash").Dictionary<{
782
+ id: string;
783
+ networkId: string;
784
+ decimals: number;
785
+ symbol: string;
786
+ type: "evm-erc20";
1023
787
  platform: "ethereum";
1024
- rpcs: string[];
1025
- isTestnet?: boolean | undefined;
788
+ contractAddress: `0x${string}`;
1026
789
  isDefault?: boolean | undefined;
1027
- forceScan?: boolean | undefined;
790
+ name?: string | undefined;
1028
791
  logo?: string | undefined;
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
- };
792
+ coingeckoId?: string | undefined;
793
+ noDiscovery?: boolean | undefined;
794
+ mirrorOf?: string | undefined;
795
+ } | {
796
+ id: string;
797
+ networkId: string;
798
+ decimals: number;
799
+ symbol: string;
800
+ type: "evm-native";
801
+ platform: "ethereum";
802
+ isDefault?: boolean | undefined;
803
+ name?: string | undefined;
804
+ logo?: string | undefined;
805
+ coingeckoId?: string | undefined;
806
+ noDiscovery?: boolean | undefined;
807
+ mirrorOf?: string | undefined;
808
+ } | {
809
+ id: string;
810
+ networkId: string;
811
+ decimals: number;
812
+ symbol: string;
813
+ type: "evm-uniswapv2";
814
+ platform: "ethereum";
815
+ contractAddress: `0x${string}`;
816
+ symbol0: string;
817
+ symbol1: string;
818
+ decimals0: number;
819
+ decimals1: number;
820
+ tokenAddress0: `0x${string}`;
821
+ tokenAddress1: `0x${string}`;
822
+ isDefault?: boolean | undefined;
823
+ name?: string | undefined;
824
+ logo?: string | undefined;
825
+ coingeckoId?: string | undefined;
826
+ noDiscovery?: boolean | undefined;
827
+ mirrorOf?: string | undefined;
828
+ isCustom?: boolean | undefined;
829
+ coingeckoId0?: string | undefined;
830
+ coingeckoId1?: string | undefined;
831
+ } | {
832
+ id: string;
833
+ networkId: string;
834
+ decimals: number;
835
+ symbol: string;
836
+ type: "substrate-assets";
837
+ platform: "polkadot";
838
+ assetId: string;
839
+ isSufficient: boolean;
840
+ existentialDeposit: string;
841
+ isDefault?: boolean | undefined;
842
+ name?: string | undefined;
843
+ logo?: string | undefined;
844
+ coingeckoId?: string | undefined;
845
+ noDiscovery?: boolean | undefined;
846
+ mirrorOf?: string | undefined;
847
+ isFrozen?: boolean | undefined;
848
+ } | {
849
+ id: string;
850
+ networkId: string;
851
+ decimals: number;
852
+ symbol: string;
853
+ type: "substrate-foreignassets";
854
+ platform: "polkadot";
855
+ onChainId: string;
856
+ isSufficient: boolean;
857
+ existentialDeposit: string;
858
+ isDefault?: boolean | undefined;
859
+ name?: string | undefined;
860
+ logo?: string | undefined;
861
+ coingeckoId?: string | undefined;
862
+ noDiscovery?: boolean | undefined;
863
+ mirrorOf?: string | undefined;
864
+ isFrozen?: boolean | undefined;
865
+ } | {
866
+ id: string;
867
+ networkId: string;
868
+ decimals: number;
869
+ symbol: string;
870
+ type: "substrate-native";
871
+ platform: "polkadot";
872
+ existentialDeposit: string;
873
+ isDefault?: boolean | undefined;
874
+ name?: string | undefined;
875
+ logo?: string | undefined;
876
+ coingeckoId?: string | undefined;
877
+ noDiscovery?: boolean | undefined;
878
+ mirrorOf?: string | undefined;
879
+ } | {
880
+ id: string;
881
+ networkId: string;
882
+ decimals: number;
883
+ symbol: string;
884
+ type: "substrate-psp22";
885
+ platform: "polkadot";
886
+ contractAddress: string;
887
+ isDefault?: boolean | undefined;
888
+ name?: string | undefined;
889
+ logo?: string | undefined;
890
+ coingeckoId?: string | undefined;
891
+ noDiscovery?: boolean | undefined;
892
+ mirrorOf?: string | undefined;
893
+ } | {
894
+ id: string;
895
+ networkId: string;
896
+ decimals: number;
897
+ symbol: string;
898
+ type: "substrate-tokens";
899
+ platform: "polkadot";
900
+ onChainId: string | number;
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
+ } | {
909
+ id: string;
910
+ networkId: string;
911
+ decimals: number;
912
+ symbol: string;
913
+ type: "substrate-hydration";
914
+ platform: "polkadot";
915
+ onChainId: number;
916
+ assetType: "Token" | "Erc20" | "External";
917
+ isSufficient: boolean;
918
+ existentialDeposit: string;
919
+ isDefault?: boolean | undefined;
920
+ name?: string | undefined;
921
+ logo?: string | undefined;
922
+ coingeckoId?: string | undefined;
923
+ noDiscovery?: boolean | undefined;
924
+ mirrorOf?: string | undefined;
925
+ } | {
926
+ id: string;
927
+ networkId: string;
928
+ decimals: number;
929
+ symbol: string;
930
+ type: "sol-native";
931
+ platform: "solana";
932
+ isDefault?: boolean | undefined;
933
+ name?: string | undefined;
934
+ logo?: string | undefined;
935
+ coingeckoId?: string | undefined;
936
+ noDiscovery?: boolean | undefined;
937
+ mirrorOf?: string | undefined;
938
+ }>;
1046
939
  export declare const useToken: (tokenId?: TokenId) => {
1047
940
  id: string;
1048
941
  networkId: string;
@@ -1057,7 +950,6 @@ export declare const useToken: (tokenId?: TokenId) => {
1057
950
  coingeckoId?: string | undefined;
1058
951
  noDiscovery?: boolean | undefined;
1059
952
  mirrorOf?: string | undefined;
1060
- isCustom?: boolean | undefined;
1061
953
  } | {
1062
954
  id: string;
1063
955
  networkId: string;
@@ -1102,6 +994,7 @@ export declare const useToken: (tokenId?: TokenId) => {
1102
994
  type: "substrate-assets";
1103
995
  platform: "polkadot";
1104
996
  assetId: string;
997
+ isSufficient: boolean;
1105
998
  existentialDeposit: string;
1106
999
  isDefault?: boolean | undefined;
1107
1000
  name?: string | undefined;
@@ -1118,6 +1011,7 @@ export declare const useToken: (tokenId?: TokenId) => {
1118
1011
  type: "substrate-foreignassets";
1119
1012
  platform: "polkadot";
1120
1013
  onChainId: string;
1014
+ isSufficient: boolean;
1121
1015
  existentialDeposit: string;
1122
1016
  isDefault?: boolean | undefined;
1123
1017
  name?: string | undefined;
@@ -1169,4 +1063,34 @@ export declare const useToken: (tokenId?: TokenId) => {
1169
1063
  coingeckoId?: string | undefined;
1170
1064
  noDiscovery?: boolean | undefined;
1171
1065
  mirrorOf?: string | undefined;
1066
+ } | {
1067
+ id: string;
1068
+ networkId: string;
1069
+ decimals: number;
1070
+ symbol: string;
1071
+ type: "substrate-hydration";
1072
+ platform: "polkadot";
1073
+ onChainId: number;
1074
+ assetType: "Token" | "Erc20" | "External";
1075
+ isSufficient: boolean;
1076
+ existentialDeposit: string;
1077
+ isDefault?: boolean | undefined;
1078
+ name?: string | undefined;
1079
+ logo?: string | undefined;
1080
+ coingeckoId?: string | undefined;
1081
+ noDiscovery?: boolean | undefined;
1082
+ mirrorOf?: string | undefined;
1083
+ } | {
1084
+ id: string;
1085
+ networkId: string;
1086
+ decimals: number;
1087
+ symbol: string;
1088
+ type: "sol-native";
1089
+ platform: "solana";
1090
+ isDefault?: boolean | undefined;
1091
+ name?: string | undefined;
1092
+ logo?: string | undefined;
1093
+ coingeckoId?: string | undefined;
1094
+ noDiscovery?: boolean | undefined;
1095
+ mirrorOf?: string | undefined;
1172
1096
  };