@talismn/balances-react 0.0.0-pr2111-20250723030956 → 0.0.0-pr2111-20250723033812

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 { NetworkId, NetworkList, TokenId, TokenList } from "@talismn/chaindata-provider";
2
2
  export declare const useChaindataProvider: () => import("@talismn/chaindata-provider").ChaindataProvider;
3
3
  export declare const useChaindata: () => {
4
4
  networks: ({
@@ -329,97 +329,7 @@ export declare const useNetworks: () => ({
329
329
  "evm-uniswapv2"?: undefined;
330
330
  } | undefined;
331
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
- }>;
332
+ export declare const useNetworksById: () => NetworkList;
423
333
  export declare const useNetwork: (networkId?: NetworkId) => {
424
334
  id: string;
425
335
  name: string;
@@ -656,151 +566,7 @@ export declare const useTokens: () => ({
656
566
  noDiscovery?: boolean | undefined;
657
567
  mirrorOf?: string | undefined;
658
568
  })[];
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
- }>;
569
+ export declare const useTokensById: () => TokenList;
804
570
  export declare const useToken: (tokenId?: TokenId) => {
805
571
  id: string;
806
572
  networkId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/balances-react",
3
- "version": "0.0.0-pr2111-20250723030956",
3
+ "version": "0.0.0-pr2111-20250723033812",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -31,11 +31,11 @@
31
31
  "react-use": "^17.5.1",
32
32
  "rxjs": "^7.8.1",
33
33
  "@talismn/chain-connector": "1.0.0",
34
- "@talismn/balances": "0.0.0-pr2111-20250723030956",
34
+ "@talismn/balances": "0.0.0-pr2111-20250723033812",
35
+ "@talismn/chain-connector-evm": "1.0.0",
35
36
  "@talismn/chaindata-provider": "1.0.0",
36
37
  "@talismn/connection-meta": "0.2.18",
37
38
  "@talismn/scale": "0.2.0",
38
- "@talismn/chain-connector-evm": "1.0.0",
39
39
  "@talismn/token-rates": "3.0.0",
40
40
  "@talismn/util": "0.5.0"
41
41
  },