@talismn/balances-react 1.0.9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,13 +46,14 @@ export declare const chaindataAtom: import("jotai").Atom<{
46
46
  "substrate-native"?: {
47
47
  disable?: boolean | undefined;
48
48
  } | undefined;
49
- "substrate-assets"?: undefined;
50
- "substrate-psp22"?: undefined;
49
+ "substrate-assets"?: Record<string, never> | undefined;
50
+ "substrate-psp22"?: Record<string, never> | undefined;
51
51
  "substrate-tokens"?: {
52
52
  palletId?: string | undefined;
53
53
  } | undefined;
54
- "substrate-foreignassets"?: undefined;
55
- "substrate-hydration"?: undefined;
54
+ "substrate-foreignassets"?: Record<string, never> | undefined;
55
+ "substrate-hydration"?: Record<string, never> | undefined;
56
+ "substrate-dtao"?: Record<string, never> | undefined;
56
57
  } | undefined;
57
58
  } | {
58
59
  id: string;
@@ -88,9 +89,9 @@ export declare const chaindataAtom: import("jotai").Atom<{
88
89
  Multicall3?: `0x${string}` | undefined;
89
90
  } | undefined;
90
91
  balancesConfig?: {
91
- "evm-native"?: undefined;
92
- "evm-erc20"?: undefined;
93
- "evm-uniswapv2"?: undefined;
92
+ "evm-native"?: Record<string, never> | undefined;
93
+ "evm-erc20"?: Record<string, never> | undefined;
94
+ "evm-uniswapv2"?: Record<string, never> | undefined;
94
95
  } | undefined;
95
96
  } | {
96
97
  id: string;
@@ -114,8 +115,8 @@ export declare const chaindataAtom: import("jotai").Atom<{
114
115
  logo?: string | undefined;
115
116
  themeColor?: string | undefined;
116
117
  balancesConfig?: {
117
- "sol-native"?: undefined;
118
- "sol-spl"?: undefined;
118
+ "sol-native"?: Record<string, never> | undefined;
119
+ "sol-spl"?: Record<string, never> | undefined;
119
120
  } | undefined;
120
121
  })[];
121
122
  tokens: ({
@@ -185,6 +186,23 @@ export declare const chaindataAtom: import("jotai").Atom<{
185
186
  noDiscovery?: boolean | undefined;
186
187
  mirrorOf?: string | undefined;
187
188
  isFrozen?: boolean | undefined;
189
+ } | {
190
+ id: string;
191
+ networkId: string;
192
+ decimals: number;
193
+ symbol: string;
194
+ type: "substrate-dtao";
195
+ platform: "polkadot";
196
+ netuid: number;
197
+ isTransferable: boolean;
198
+ isDefault?: boolean | undefined;
199
+ name?: string | undefined;
200
+ logo?: string | undefined;
201
+ coingeckoId?: string | undefined;
202
+ noDiscovery?: boolean | undefined;
203
+ mirrorOf?: string | undefined;
204
+ subnetName?: string | undefined;
205
+ hotkey?: string | undefined;
188
206
  } | {
189
207
  id: string;
190
208
  networkId: string;
@@ -338,13 +356,14 @@ export declare const chaindataAtom: import("jotai").Atom<{
338
356
  "substrate-native"?: {
339
357
  disable?: boolean | undefined;
340
358
  } | undefined;
341
- "substrate-assets"?: undefined;
342
- "substrate-psp22"?: undefined;
359
+ "substrate-assets"?: Record<string, never> | undefined;
360
+ "substrate-psp22"?: Record<string, never> | undefined;
343
361
  "substrate-tokens"?: {
344
362
  palletId?: string | undefined;
345
363
  } | undefined;
346
- "substrate-foreignassets"?: undefined;
347
- "substrate-hydration"?: undefined;
364
+ "substrate-foreignassets"?: Record<string, never> | undefined;
365
+ "substrate-hydration"?: Record<string, never> | undefined;
366
+ "substrate-dtao"?: Record<string, never> | undefined;
348
367
  } | undefined;
349
368
  } | {
350
369
  id: string;
@@ -380,9 +399,9 @@ export declare const chaindataAtom: import("jotai").Atom<{
380
399
  Multicall3?: `0x${string}` | undefined;
381
400
  } | undefined;
382
401
  balancesConfig?: {
383
- "evm-native"?: undefined;
384
- "evm-erc20"?: undefined;
385
- "evm-uniswapv2"?: undefined;
402
+ "evm-native"?: Record<string, never> | undefined;
403
+ "evm-erc20"?: Record<string, never> | undefined;
404
+ "evm-uniswapv2"?: Record<string, never> | undefined;
386
405
  } | undefined;
387
406
  } | {
388
407
  id: string;
@@ -406,8 +425,8 @@ export declare const chaindataAtom: import("jotai").Atom<{
406
425
  logo?: string | undefined;
407
426
  themeColor?: string | undefined;
408
427
  balancesConfig?: {
409
- "sol-native"?: undefined;
410
- "sol-spl"?: undefined;
428
+ "sol-native"?: Record<string, never> | undefined;
429
+ "sol-spl"?: Record<string, never> | undefined;
411
430
  } | undefined;
412
431
  })[];
413
432
  tokens: ({
@@ -477,6 +496,23 @@ export declare const chaindataAtom: import("jotai").Atom<{
477
496
  noDiscovery?: boolean | undefined;
478
497
  mirrorOf?: string | undefined;
479
498
  isFrozen?: boolean | undefined;
499
+ } | {
500
+ id: string;
501
+ networkId: string;
502
+ decimals: number;
503
+ symbol: string;
504
+ type: "substrate-dtao";
505
+ platform: "polkadot";
506
+ netuid: number;
507
+ isTransferable: boolean;
508
+ isDefault?: boolean | undefined;
509
+ name?: string | undefined;
510
+ logo?: string | undefined;
511
+ coingeckoId?: string | undefined;
512
+ noDiscovery?: boolean | undefined;
513
+ mirrorOf?: string | undefined;
514
+ subnetName?: string | undefined;
515
+ hotkey?: string | undefined;
480
516
  } | {
481
517
  id: string;
482
518
  networkId: string;
@@ -650,6 +686,23 @@ export declare const tokensAtom: import("jotai").Atom<Promise<({
650
686
  noDiscovery?: boolean | undefined;
651
687
  mirrorOf?: string | undefined;
652
688
  isFrozen?: boolean | undefined;
689
+ } | {
690
+ id: string;
691
+ networkId: string;
692
+ decimals: number;
693
+ symbol: string;
694
+ type: "substrate-dtao";
695
+ platform: "polkadot";
696
+ netuid: number;
697
+ isTransferable: boolean;
698
+ isDefault?: boolean | undefined;
699
+ name?: string | undefined;
700
+ logo?: string | undefined;
701
+ coingeckoId?: string | undefined;
702
+ noDiscovery?: boolean | undefined;
703
+ mirrorOf?: string | undefined;
704
+ subnetName?: string | undefined;
705
+ hotkey?: string | undefined;
653
706
  } | {
654
707
  id: string;
655
708
  networkId: string;
@@ -802,13 +855,14 @@ export declare const networksAtom: import("jotai").Atom<Promise<({
802
855
  "substrate-native"?: {
803
856
  disable?: boolean | undefined;
804
857
  } | undefined;
805
- "substrate-assets"?: undefined;
806
- "substrate-psp22"?: undefined;
858
+ "substrate-assets"?: Record<string, never> | undefined;
859
+ "substrate-psp22"?: Record<string, never> | undefined;
807
860
  "substrate-tokens"?: {
808
861
  palletId?: string | undefined;
809
862
  } | undefined;
810
- "substrate-foreignassets"?: undefined;
811
- "substrate-hydration"?: undefined;
863
+ "substrate-foreignassets"?: Record<string, never> | undefined;
864
+ "substrate-hydration"?: Record<string, never> | undefined;
865
+ "substrate-dtao"?: Record<string, never> | undefined;
812
866
  } | undefined;
813
867
  } | {
814
868
  id: string;
@@ -844,9 +898,9 @@ export declare const networksAtom: import("jotai").Atom<Promise<({
844
898
  Multicall3?: `0x${string}` | undefined;
845
899
  } | undefined;
846
900
  balancesConfig?: {
847
- "evm-native"?: undefined;
848
- "evm-erc20"?: undefined;
849
- "evm-uniswapv2"?: undefined;
901
+ "evm-native"?: Record<string, never> | undefined;
902
+ "evm-erc20"?: Record<string, never> | undefined;
903
+ "evm-uniswapv2"?: Record<string, never> | undefined;
850
904
  } | undefined;
851
905
  } | {
852
906
  id: string;
@@ -870,7 +924,7 @@ export declare const networksAtom: import("jotai").Atom<Promise<({
870
924
  logo?: string | undefined;
871
925
  themeColor?: string | undefined;
872
926
  balancesConfig?: {
873
- "sol-native"?: undefined;
874
- "sol-spl"?: undefined;
927
+ "sol-native"?: Record<string, never> | undefined;
928
+ "sol-spl"?: Record<string, never> | undefined;
875
929
  } | undefined;
876
930
  })[]>>;
@@ -48,13 +48,14 @@ export declare const useChaindata: () => {
48
48
  "substrate-native"?: {
49
49
  disable?: boolean | undefined;
50
50
  } | undefined;
51
- "substrate-assets"?: undefined;
52
- "substrate-psp22"?: undefined;
51
+ "substrate-assets"?: Record<string, never> | undefined;
52
+ "substrate-psp22"?: Record<string, never> | undefined;
53
53
  "substrate-tokens"?: {
54
54
  palletId?: string | undefined;
55
55
  } | undefined;
56
- "substrate-foreignassets"?: undefined;
57
- "substrate-hydration"?: undefined;
56
+ "substrate-foreignassets"?: Record<string, never> | undefined;
57
+ "substrate-hydration"?: Record<string, never> | undefined;
58
+ "substrate-dtao"?: Record<string, never> | undefined;
58
59
  } | undefined;
59
60
  } | {
60
61
  id: string;
@@ -90,9 +91,9 @@ export declare const useChaindata: () => {
90
91
  Multicall3?: `0x${string}` | undefined;
91
92
  } | undefined;
92
93
  balancesConfig?: {
93
- "evm-native"?: undefined;
94
- "evm-erc20"?: undefined;
95
- "evm-uniswapv2"?: undefined;
94
+ "evm-native"?: Record<string, never> | undefined;
95
+ "evm-erc20"?: Record<string, never> | undefined;
96
+ "evm-uniswapv2"?: Record<string, never> | undefined;
96
97
  } | undefined;
97
98
  } | {
98
99
  id: string;
@@ -116,8 +117,8 @@ export declare const useChaindata: () => {
116
117
  logo?: string | undefined;
117
118
  themeColor?: string | undefined;
118
119
  balancesConfig?: {
119
- "sol-native"?: undefined;
120
- "sol-spl"?: undefined;
120
+ "sol-native"?: Record<string, never> | undefined;
121
+ "sol-spl"?: Record<string, never> | undefined;
121
122
  } | undefined;
122
123
  })[];
123
124
  tokens: ({
@@ -187,6 +188,23 @@ export declare const useChaindata: () => {
187
188
  noDiscovery?: boolean | undefined;
188
189
  mirrorOf?: string | undefined;
189
190
  isFrozen?: boolean | undefined;
191
+ } | {
192
+ id: string;
193
+ networkId: string;
194
+ decimals: number;
195
+ symbol: string;
196
+ type: "substrate-dtao";
197
+ platform: "polkadot";
198
+ netuid: number;
199
+ isTransferable: boolean;
200
+ isDefault?: boolean | undefined;
201
+ name?: string | undefined;
202
+ logo?: string | undefined;
203
+ coingeckoId?: string | undefined;
204
+ noDiscovery?: boolean | undefined;
205
+ mirrorOf?: string | undefined;
206
+ subnetName?: string | undefined;
207
+ hotkey?: string | undefined;
190
208
  } | {
191
209
  id: string;
192
210
  networkId: string;
@@ -340,13 +358,14 @@ export declare const useNetworks: () => ({
340
358
  "substrate-native"?: {
341
359
  disable?: boolean | undefined;
342
360
  } | undefined;
343
- "substrate-assets"?: undefined;
344
- "substrate-psp22"?: undefined;
361
+ "substrate-assets"?: Record<string, never> | undefined;
362
+ "substrate-psp22"?: Record<string, never> | undefined;
345
363
  "substrate-tokens"?: {
346
364
  palletId?: string | undefined;
347
365
  } | undefined;
348
- "substrate-foreignassets"?: undefined;
349
- "substrate-hydration"?: undefined;
366
+ "substrate-foreignassets"?: Record<string, never> | undefined;
367
+ "substrate-hydration"?: Record<string, never> | undefined;
368
+ "substrate-dtao"?: Record<string, never> | undefined;
350
369
  } | undefined;
351
370
  } | {
352
371
  id: string;
@@ -382,9 +401,9 @@ export declare const useNetworks: () => ({
382
401
  Multicall3?: `0x${string}` | undefined;
383
402
  } | undefined;
384
403
  balancesConfig?: {
385
- "evm-native"?: undefined;
386
- "evm-erc20"?: undefined;
387
- "evm-uniswapv2"?: undefined;
404
+ "evm-native"?: Record<string, never> | undefined;
405
+ "evm-erc20"?: Record<string, never> | undefined;
406
+ "evm-uniswapv2"?: Record<string, never> | undefined;
388
407
  } | undefined;
389
408
  } | {
390
409
  id: string;
@@ -408,8 +427,8 @@ export declare const useNetworks: () => ({
408
427
  logo?: string | undefined;
409
428
  themeColor?: string | undefined;
410
429
  balancesConfig?: {
411
- "sol-native"?: undefined;
412
- "sol-spl"?: undefined;
430
+ "sol-native"?: Record<string, never> | undefined;
431
+ "sol-spl"?: Record<string, never> | undefined;
413
432
  } | undefined;
414
433
  })[];
415
434
  export declare const useNetworksById: () => import("lodash").Dictionary<{
@@ -459,13 +478,14 @@ export declare const useNetworksById: () => import("lodash").Dictionary<{
459
478
  "substrate-native"?: {
460
479
  disable?: boolean | undefined;
461
480
  } | undefined;
462
- "substrate-assets"?: undefined;
463
- "substrate-psp22"?: undefined;
481
+ "substrate-assets"?: Record<string, never> | undefined;
482
+ "substrate-psp22"?: Record<string, never> | undefined;
464
483
  "substrate-tokens"?: {
465
484
  palletId?: string | undefined;
466
485
  } | undefined;
467
- "substrate-foreignassets"?: undefined;
468
- "substrate-hydration"?: undefined;
486
+ "substrate-foreignassets"?: Record<string, never> | undefined;
487
+ "substrate-hydration"?: Record<string, never> | undefined;
488
+ "substrate-dtao"?: Record<string, never> | undefined;
469
489
  } | undefined;
470
490
  } | {
471
491
  id: string;
@@ -501,9 +521,9 @@ export declare const useNetworksById: () => import("lodash").Dictionary<{
501
521
  Multicall3?: `0x${string}` | undefined;
502
522
  } | undefined;
503
523
  balancesConfig?: {
504
- "evm-native"?: undefined;
505
- "evm-erc20"?: undefined;
506
- "evm-uniswapv2"?: undefined;
524
+ "evm-native"?: Record<string, never> | undefined;
525
+ "evm-erc20"?: Record<string, never> | undefined;
526
+ "evm-uniswapv2"?: Record<string, never> | undefined;
507
527
  } | undefined;
508
528
  } | {
509
529
  id: string;
@@ -527,8 +547,8 @@ export declare const useNetworksById: () => import("lodash").Dictionary<{
527
547
  logo?: string | undefined;
528
548
  themeColor?: string | undefined;
529
549
  balancesConfig?: {
530
- "sol-native"?: undefined;
531
- "sol-spl"?: undefined;
550
+ "sol-native"?: Record<string, never> | undefined;
551
+ "sol-spl"?: Record<string, never> | undefined;
532
552
  } | undefined;
533
553
  }>;
534
554
  export declare const useNetwork: (networkId?: NetworkId) => {
@@ -578,13 +598,14 @@ export declare const useNetwork: (networkId?: NetworkId) => {
578
598
  "substrate-native"?: {
579
599
  disable?: boolean | undefined;
580
600
  } | undefined;
581
- "substrate-assets"?: undefined;
582
- "substrate-psp22"?: undefined;
601
+ "substrate-assets"?: Record<string, never> | undefined;
602
+ "substrate-psp22"?: Record<string, never> | undefined;
583
603
  "substrate-tokens"?: {
584
604
  palletId?: string | undefined;
585
605
  } | undefined;
586
- "substrate-foreignassets"?: undefined;
587
- "substrate-hydration"?: undefined;
606
+ "substrate-foreignassets"?: Record<string, never> | undefined;
607
+ "substrate-hydration"?: Record<string, never> | undefined;
608
+ "substrate-dtao"?: Record<string, never> | undefined;
588
609
  } | undefined;
589
610
  } | {
590
611
  id: string;
@@ -620,9 +641,9 @@ export declare const useNetwork: (networkId?: NetworkId) => {
620
641
  Multicall3?: `0x${string}` | undefined;
621
642
  } | undefined;
622
643
  balancesConfig?: {
623
- "evm-native"?: undefined;
624
- "evm-erc20"?: undefined;
625
- "evm-uniswapv2"?: undefined;
644
+ "evm-native"?: Record<string, never> | undefined;
645
+ "evm-erc20"?: Record<string, never> | undefined;
646
+ "evm-uniswapv2"?: Record<string, never> | undefined;
626
647
  } | undefined;
627
648
  } | {
628
649
  id: string;
@@ -646,8 +667,8 @@ export declare const useNetwork: (networkId?: NetworkId) => {
646
667
  logo?: string | undefined;
647
668
  themeColor?: string | undefined;
648
669
  balancesConfig?: {
649
- "sol-native"?: undefined;
650
- "sol-spl"?: undefined;
670
+ "sol-native"?: Record<string, never> | undefined;
671
+ "sol-spl"?: Record<string, never> | undefined;
651
672
  } | undefined;
652
673
  };
653
674
  export declare const useTokens: () => ({
@@ -717,6 +738,23 @@ export declare const useTokens: () => ({
717
738
  noDiscovery?: boolean | undefined;
718
739
  mirrorOf?: string | undefined;
719
740
  isFrozen?: boolean | undefined;
741
+ } | {
742
+ id: string;
743
+ networkId: string;
744
+ decimals: number;
745
+ symbol: string;
746
+ type: "substrate-dtao";
747
+ platform: "polkadot";
748
+ netuid: number;
749
+ isTransferable: boolean;
750
+ isDefault?: boolean | undefined;
751
+ name?: string | undefined;
752
+ logo?: string | undefined;
753
+ coingeckoId?: string | undefined;
754
+ noDiscovery?: boolean | undefined;
755
+ mirrorOf?: string | undefined;
756
+ subnetName?: string | undefined;
757
+ hotkey?: string | undefined;
720
758
  } | {
721
759
  id: string;
722
760
  networkId: string;
@@ -889,6 +927,23 @@ export declare const useTokensById: () => import("lodash").Dictionary<{
889
927
  noDiscovery?: boolean | undefined;
890
928
  mirrorOf?: string | undefined;
891
929
  isFrozen?: boolean | undefined;
930
+ } | {
931
+ id: string;
932
+ networkId: string;
933
+ decimals: number;
934
+ symbol: string;
935
+ type: "substrate-dtao";
936
+ platform: "polkadot";
937
+ netuid: number;
938
+ isTransferable: boolean;
939
+ isDefault?: boolean | undefined;
940
+ name?: string | undefined;
941
+ logo?: string | undefined;
942
+ coingeckoId?: string | undefined;
943
+ noDiscovery?: boolean | undefined;
944
+ mirrorOf?: string | undefined;
945
+ subnetName?: string | undefined;
946
+ hotkey?: string | undefined;
892
947
  } | {
893
948
  id: string;
894
949
  networkId: string;
@@ -1061,6 +1116,23 @@ export declare const useToken: (tokenId?: TokenId) => {
1061
1116
  noDiscovery?: boolean | undefined;
1062
1117
  mirrorOf?: string | undefined;
1063
1118
  isFrozen?: boolean | undefined;
1119
+ } | {
1120
+ id: string;
1121
+ networkId: string;
1122
+ decimals: number;
1123
+ symbol: string;
1124
+ type: "substrate-dtao";
1125
+ platform: "polkadot";
1126
+ netuid: number;
1127
+ isTransferable: boolean;
1128
+ isDefault?: boolean | undefined;
1129
+ name?: string | undefined;
1130
+ logo?: string | undefined;
1131
+ coingeckoId?: string | undefined;
1132
+ noDiscovery?: boolean | undefined;
1133
+ mirrorOf?: string | undefined;
1134
+ subnetName?: string | undefined;
1135
+ hotkey?: string | undefined;
1064
1136
  } | {
1065
1137
  id: string;
1066
1138
  networkId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/balances-react",
3
- "version": "1.0.9",
3
+ "version": "1.2.0",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -28,12 +28,12 @@
28
28
  "lodash-es": "4.17.21",
29
29
  "react-use": "^17.5.1",
30
30
  "rxjs": "^7.8.1",
31
- "@talismn/balances": "1.0.9",
32
- "@talismn/chain-connectors": "0.0.7",
33
- "@talismn/connection-meta": "0.2.27",
34
- "@talismn/chaindata-provider": "1.1.6",
31
+ "@talismn/balances": "1.2.0",
32
+ "@talismn/chain-connectors": "0.0.9",
33
+ "@talismn/chaindata-provider": "1.3.0",
35
34
  "@talismn/scale": "0.2.2",
36
- "@talismn/token-rates": "3.0.9",
35
+ "@talismn/token-rates": "3.0.11",
36
+ "@talismn/connection-meta": "0.2.29",
37
37
  "@talismn/util": "0.5.5"
38
38
  },
39
39
  "devDependencies": {