@talismn/chaindata-provider 2.3.1 → 2.3.2

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.
package/dist/index.d.mts CHANGED
@@ -1164,23 +1164,6 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1164
1164
  mintAddress: z.ZodString;
1165
1165
  isTransferable: z.ZodOptional<z.ZodBoolean>;
1166
1166
  }, z.core.$strict>], "type">, z.ZodTransform<{
1167
- id: string;
1168
- networkId: string;
1169
- isDefault?: boolean | undefined;
1170
- decimals: number;
1171
- symbol: string;
1172
- name?: string | undefined;
1173
- logo?: string | undefined;
1174
- coingeckoId?: string | undefined;
1175
- noDiscovery?: boolean | undefined;
1176
- mirrorOf?: string | undefined;
1177
- type: "substrate-hydration";
1178
- platform: "polkadot";
1179
- onChainId: number;
1180
- assetType: "Erc20" | "External" | "Token";
1181
- isSufficient: boolean;
1182
- existentialDeposit: string;
1183
- } | {
1184
1167
  id: string;
1185
1168
  networkId: string;
1186
1169
  isDefault?: boolean | undefined;
@@ -1335,8 +1318,12 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1335
1318
  coingeckoId?: string | undefined;
1336
1319
  noDiscovery?: boolean | undefined;
1337
1320
  mirrorOf?: string | undefined;
1338
- type: "sol-native";
1339
- platform: "solana";
1321
+ type: "substrate-hydration";
1322
+ platform: "polkadot";
1323
+ onChainId: number;
1324
+ assetType: "Erc20" | "External" | "Token";
1325
+ isSufficient: boolean;
1326
+ existentialDeposit: string;
1340
1327
  } | {
1341
1328
  id: string;
1342
1329
  networkId: string;
@@ -1348,9 +1335,8 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1348
1335
  coingeckoId?: string | undefined;
1349
1336
  noDiscovery?: boolean | undefined;
1350
1337
  mirrorOf?: string | undefined;
1351
- type: "sol-spl";
1338
+ type: "sol-native";
1352
1339
  platform: "solana";
1353
- mintAddress: string;
1354
1340
  } | {
1355
1341
  id: string;
1356
1342
  networkId: string;
@@ -1362,11 +1348,10 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1362
1348
  coingeckoId?: string | undefined;
1363
1349
  noDiscovery?: boolean | undefined;
1364
1350
  mirrorOf?: string | undefined;
1365
- type: "sol-token2022";
1351
+ type: "sol-spl";
1366
1352
  platform: "solana";
1367
1353
  mintAddress: string;
1368
- isTransferable?: boolean | undefined;
1369
- }, {
1354
+ } | {
1370
1355
  id: string;
1371
1356
  networkId: string;
1372
1357
  isDefault?: boolean | undefined;
@@ -1377,13 +1362,11 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1377
1362
  coingeckoId?: string | undefined;
1378
1363
  noDiscovery?: boolean | undefined;
1379
1364
  mirrorOf?: string | undefined;
1380
- type: "substrate-hydration";
1381
- platform: "polkadot";
1382
- onChainId: number;
1383
- assetType: "Erc20" | "External" | "Token";
1384
- isSufficient: boolean;
1385
- existentialDeposit: string;
1386
- } | {
1365
+ type: "sol-token2022";
1366
+ platform: "solana";
1367
+ mintAddress: string;
1368
+ isTransferable?: boolean | undefined;
1369
+ }, {
1387
1370
  id: string;
1388
1371
  networkId: string;
1389
1372
  isDefault?: boolean | undefined;
@@ -1527,6 +1510,23 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1527
1510
  platform: "polkadot";
1528
1511
  onChainId: string | number;
1529
1512
  existentialDeposit: string;
1513
+ } | {
1514
+ id: string;
1515
+ networkId: string;
1516
+ isDefault?: boolean | undefined;
1517
+ decimals: number;
1518
+ symbol: string;
1519
+ name?: string | undefined;
1520
+ logo?: string | undefined;
1521
+ coingeckoId?: string | undefined;
1522
+ noDiscovery?: boolean | undefined;
1523
+ mirrorOf?: string | undefined;
1524
+ type: "substrate-hydration";
1525
+ platform: "polkadot";
1526
+ onChainId: number;
1527
+ assetType: "Erc20" | "External" | "Token";
1528
+ isSufficient: boolean;
1529
+ existentialDeposit: string;
1530
1530
  } | {
1531
1531
  id: string;
1532
1532
  networkId: string;
@@ -1771,10 +1771,10 @@ export declare const isTokenNeedExistentialDeposit: (token: Token) => token is {
1771
1771
  coingeckoId?: string | undefined;
1772
1772
  noDiscovery?: boolean | undefined;
1773
1773
  mirrorOf?: string | undefined;
1774
- type: "substrate-hydration";
1774
+ type: "substrate-assets";
1775
1775
  platform: "polkadot";
1776
- onChainId: number;
1777
- assetType: "Erc20" | "External" | "Token";
1776
+ assetId: string;
1777
+ isFrozen?: boolean | undefined;
1778
1778
  isSufficient: boolean;
1779
1779
  existentialDeposit: string;
1780
1780
  } | {
@@ -1788,9 +1788,9 @@ export declare const isTokenNeedExistentialDeposit: (token: Token) => token is {
1788
1788
  coingeckoId?: string | undefined;
1789
1789
  noDiscovery?: boolean | undefined;
1790
1790
  mirrorOf?: string | undefined;
1791
- type: "substrate-assets";
1791
+ type: "substrate-foreignassets";
1792
1792
  platform: "polkadot";
1793
- assetId: string;
1793
+ onChainId: string;
1794
1794
  isFrozen?: boolean | undefined;
1795
1795
  isSufficient: boolean;
1796
1796
  existentialDeposit: string;
@@ -1805,11 +1805,8 @@ export declare const isTokenNeedExistentialDeposit: (token: Token) => token is {
1805
1805
  coingeckoId?: string | undefined;
1806
1806
  noDiscovery?: boolean | undefined;
1807
1807
  mirrorOf?: string | undefined;
1808
- type: "substrate-foreignassets";
1808
+ type: "substrate-native";
1809
1809
  platform: "polkadot";
1810
- onChainId: string;
1811
- isFrozen?: boolean | undefined;
1812
- isSufficient: boolean;
1813
1810
  existentialDeposit: string;
1814
1811
  } | {
1815
1812
  id: string;
@@ -1822,8 +1819,9 @@ export declare const isTokenNeedExistentialDeposit: (token: Token) => token is {
1822
1819
  coingeckoId?: string | undefined;
1823
1820
  noDiscovery?: boolean | undefined;
1824
1821
  mirrorOf?: string | undefined;
1825
- type: "substrate-native";
1822
+ type: "substrate-tokens";
1826
1823
  platform: "polkadot";
1824
+ onChainId: string | number;
1827
1825
  existentialDeposit: string;
1828
1826
  } | {
1829
1827
  id: string;
@@ -1836,9 +1834,11 @@ export declare const isTokenNeedExistentialDeposit: (token: Token) => token is {
1836
1834
  coingeckoId?: string | undefined;
1837
1835
  noDiscovery?: boolean | undefined;
1838
1836
  mirrorOf?: string | undefined;
1839
- type: "substrate-tokens";
1837
+ type: "substrate-hydration";
1840
1838
  platform: "polkadot";
1841
- onChainId: string | number;
1839
+ onChainId: number;
1840
+ assetType: "Erc20" | "External" | "Token";
1841
+ isSufficient: boolean;
1842
1842
  existentialDeposit: string;
1843
1843
  };
1844
1844
  export declare const isTokenOfType: <T extends TokenType>(token: Token | null | undefined, type: T) => token is TokenOfType<T>;
@@ -2596,23 +2596,6 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2596
2596
  mintAddress: z.ZodString;
2597
2597
  isTransferable: z.ZodOptional<z.ZodBoolean>;
2598
2598
  }, z.core.$strict>], "type">, z.ZodTransform<{
2599
- id: string;
2600
- networkId: string;
2601
- isDefault?: boolean | undefined;
2602
- decimals: number;
2603
- symbol: string;
2604
- name?: string | undefined;
2605
- logo?: string | undefined;
2606
- coingeckoId?: string | undefined;
2607
- noDiscovery?: boolean | undefined;
2608
- mirrorOf?: string | undefined;
2609
- type: "substrate-hydration";
2610
- platform: "polkadot";
2611
- onChainId: number;
2612
- assetType: "Erc20" | "External" | "Token";
2613
- isSufficient: boolean;
2614
- existentialDeposit: string;
2615
- } | {
2616
2599
  id: string;
2617
2600
  networkId: string;
2618
2601
  isDefault?: boolean | undefined;
@@ -2767,8 +2750,12 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2767
2750
  coingeckoId?: string | undefined;
2768
2751
  noDiscovery?: boolean | undefined;
2769
2752
  mirrorOf?: string | undefined;
2770
- type: "sol-native";
2771
- platform: "solana";
2753
+ type: "substrate-hydration";
2754
+ platform: "polkadot";
2755
+ onChainId: number;
2756
+ assetType: "Erc20" | "External" | "Token";
2757
+ isSufficient: boolean;
2758
+ existentialDeposit: string;
2772
2759
  } | {
2773
2760
  id: string;
2774
2761
  networkId: string;
@@ -2780,9 +2767,8 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2780
2767
  coingeckoId?: string | undefined;
2781
2768
  noDiscovery?: boolean | undefined;
2782
2769
  mirrorOf?: string | undefined;
2783
- type: "sol-spl";
2770
+ type: "sol-native";
2784
2771
  platform: "solana";
2785
- mintAddress: string;
2786
2772
  } | {
2787
2773
  id: string;
2788
2774
  networkId: string;
@@ -2794,11 +2780,10 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2794
2780
  coingeckoId?: string | undefined;
2795
2781
  noDiscovery?: boolean | undefined;
2796
2782
  mirrorOf?: string | undefined;
2797
- type: "sol-token2022";
2783
+ type: "sol-spl";
2798
2784
  platform: "solana";
2799
2785
  mintAddress: string;
2800
- isTransferable?: boolean | undefined;
2801
- }, {
2786
+ } | {
2802
2787
  id: string;
2803
2788
  networkId: string;
2804
2789
  isDefault?: boolean | undefined;
@@ -2809,13 +2794,11 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2809
2794
  coingeckoId?: string | undefined;
2810
2795
  noDiscovery?: boolean | undefined;
2811
2796
  mirrorOf?: string | undefined;
2812
- type: "substrate-hydration";
2813
- platform: "polkadot";
2814
- onChainId: number;
2815
- assetType: "Erc20" | "External" | "Token";
2816
- isSufficient: boolean;
2817
- existentialDeposit: string;
2818
- } | {
2797
+ type: "sol-token2022";
2798
+ platform: "solana";
2799
+ mintAddress: string;
2800
+ isTransferable?: boolean | undefined;
2801
+ }, {
2819
2802
  id: string;
2820
2803
  networkId: string;
2821
2804
  isDefault?: boolean | undefined;
@@ -2959,6 +2942,23 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2959
2942
  platform: "polkadot";
2960
2943
  onChainId: string | number;
2961
2944
  existentialDeposit: string;
2945
+ } | {
2946
+ id: string;
2947
+ networkId: string;
2948
+ isDefault?: boolean | undefined;
2949
+ decimals: number;
2950
+ symbol: string;
2951
+ name?: string | undefined;
2952
+ logo?: string | undefined;
2953
+ coingeckoId?: string | undefined;
2954
+ noDiscovery?: boolean | undefined;
2955
+ mirrorOf?: string | undefined;
2956
+ type: "substrate-hydration";
2957
+ platform: "polkadot";
2958
+ onChainId: number;
2959
+ assetType: "Erc20" | "External" | "Token";
2960
+ isSufficient: boolean;
2961
+ existentialDeposit: string;
2962
2962
  } | {
2963
2963
  id: string;
2964
2964
  networkId: string;
@@ -3351,23 +3351,6 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3351
3351
  mintAddress: z.ZodString;
3352
3352
  isTransferable: z.ZodOptional<z.ZodBoolean>;
3353
3353
  }, z.core.$strict>], "type">, z.ZodTransform<{
3354
- id: string;
3355
- networkId: string;
3356
- isDefault?: boolean | undefined;
3357
- decimals: number;
3358
- symbol: string;
3359
- name?: string | undefined;
3360
- logo?: string | undefined;
3361
- coingeckoId?: string | undefined;
3362
- noDiscovery?: boolean | undefined;
3363
- mirrorOf?: string | undefined;
3364
- type: "substrate-hydration";
3365
- platform: "polkadot";
3366
- onChainId: number;
3367
- assetType: "Erc20" | "External" | "Token";
3368
- isSufficient: boolean;
3369
- existentialDeposit: string;
3370
- } | {
3371
3354
  id: string;
3372
3355
  networkId: string;
3373
3356
  isDefault?: boolean | undefined;
@@ -3522,8 +3505,12 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3522
3505
  coingeckoId?: string | undefined;
3523
3506
  noDiscovery?: boolean | undefined;
3524
3507
  mirrorOf?: string | undefined;
3525
- type: "sol-native";
3526
- platform: "solana";
3508
+ type: "substrate-hydration";
3509
+ platform: "polkadot";
3510
+ onChainId: number;
3511
+ assetType: "Erc20" | "External" | "Token";
3512
+ isSufficient: boolean;
3513
+ existentialDeposit: string;
3527
3514
  } | {
3528
3515
  id: string;
3529
3516
  networkId: string;
@@ -3535,9 +3522,8 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3535
3522
  coingeckoId?: string | undefined;
3536
3523
  noDiscovery?: boolean | undefined;
3537
3524
  mirrorOf?: string | undefined;
3538
- type: "sol-spl";
3525
+ type: "sol-native";
3539
3526
  platform: "solana";
3540
- mintAddress: string;
3541
3527
  } | {
3542
3528
  id: string;
3543
3529
  networkId: string;
@@ -3549,11 +3535,10 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3549
3535
  coingeckoId?: string | undefined;
3550
3536
  noDiscovery?: boolean | undefined;
3551
3537
  mirrorOf?: string | undefined;
3552
- type: "sol-token2022";
3538
+ type: "sol-spl";
3553
3539
  platform: "solana";
3554
3540
  mintAddress: string;
3555
- isTransferable?: boolean | undefined;
3556
- }, {
3541
+ } | {
3557
3542
  id: string;
3558
3543
  networkId: string;
3559
3544
  isDefault?: boolean | undefined;
@@ -3564,13 +3549,11 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3564
3549
  coingeckoId?: string | undefined;
3565
3550
  noDiscovery?: boolean | undefined;
3566
3551
  mirrorOf?: string | undefined;
3567
- type: "substrate-hydration";
3568
- platform: "polkadot";
3569
- onChainId: number;
3570
- assetType: "Erc20" | "External" | "Token";
3571
- isSufficient: boolean;
3572
- existentialDeposit: string;
3573
- } | {
3552
+ type: "sol-token2022";
3553
+ platform: "solana";
3554
+ mintAddress: string;
3555
+ isTransferable?: boolean | undefined;
3556
+ }, {
3574
3557
  id: string;
3575
3558
  networkId: string;
3576
3559
  isDefault?: boolean | undefined;
@@ -3714,6 +3697,23 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3714
3697
  platform: "polkadot";
3715
3698
  onChainId: string | number;
3716
3699
  existentialDeposit: string;
3700
+ } | {
3701
+ id: string;
3702
+ networkId: string;
3703
+ isDefault?: boolean | undefined;
3704
+ decimals: number;
3705
+ symbol: string;
3706
+ name?: string | undefined;
3707
+ logo?: string | undefined;
3708
+ coingeckoId?: string | undefined;
3709
+ noDiscovery?: boolean | undefined;
3710
+ mirrorOf?: string | undefined;
3711
+ type: "substrate-hydration";
3712
+ platform: "polkadot";
3713
+ onChainId: number;
3714
+ assetType: "Erc20" | "External" | "Token";
3715
+ isSufficient: boolean;
3716
+ existentialDeposit: string;
3717
3717
  } | {
3718
3718
  id: string;
3719
3719
  networkId: string;
@@ -3899,18 +3899,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
3899
3899
  coingeckoId?: string | undefined;
3900
3900
  noDiscovery?: boolean | undefined;
3901
3901
  mirrorOf?: string | undefined;
3902
- type: "evm-uniswapv2";
3902
+ type: "evm-erc20";
3903
3903
  platform: "ethereum";
3904
3904
  contractAddress: `0x${string}`;
3905
- isCustom?: boolean | undefined;
3906
- symbol0: string;
3907
- symbol1: string;
3908
- decimals0: number;
3909
- decimals1: number;
3910
- tokenAddress0: `0x${string}`;
3911
- tokenAddress1: `0x${string}`;
3912
- coingeckoId0?: string | undefined;
3913
- coingeckoId1?: string | undefined;
3914
3905
  } | {
3915
3906
  id: string;
3916
3907
  networkId: string;
@@ -3922,9 +3913,8 @@ export declare class ChaindataProvider implements IChaindataProvider {
3922
3913
  coingeckoId?: string | undefined;
3923
3914
  noDiscovery?: boolean | undefined;
3924
3915
  mirrorOf?: string | undefined;
3925
- type: "evm-erc20";
3916
+ type: "evm-native";
3926
3917
  platform: "ethereum";
3927
- contractAddress: `0x${string}`;
3928
3918
  } | {
3929
3919
  id: string;
3930
3920
  networkId: string;
@@ -3936,8 +3926,18 @@ export declare class ChaindataProvider implements IChaindataProvider {
3936
3926
  coingeckoId?: string | undefined;
3937
3927
  noDiscovery?: boolean | undefined;
3938
3928
  mirrorOf?: string | undefined;
3939
- type: "evm-native";
3929
+ type: "evm-uniswapv2";
3940
3930
  platform: "ethereum";
3931
+ contractAddress: `0x${string}`;
3932
+ isCustom?: boolean | undefined;
3933
+ symbol0: string;
3934
+ symbol1: string;
3935
+ decimals0: number;
3936
+ decimals1: number;
3937
+ tokenAddress0: `0x${string}`;
3938
+ tokenAddress1: `0x${string}`;
3939
+ coingeckoId0?: string | undefined;
3940
+ coingeckoId1?: string | undefined;
3941
3941
  } | {
3942
3942
  id: string;
3943
3943
  networkId: string;
@@ -4572,18 +4572,9 @@ export declare const getRemoteChaindata$: (url: string) => Observable<{
4572
4572
  coingeckoId?: string | undefined;
4573
4573
  noDiscovery?: boolean | undefined;
4574
4574
  mirrorOf?: string | undefined;
4575
- type: "evm-uniswapv2";
4575
+ type: "evm-erc20";
4576
4576
  platform: "ethereum";
4577
4577
  contractAddress: `0x${string}`;
4578
- isCustom?: boolean | undefined;
4579
- symbol0: string;
4580
- symbol1: string;
4581
- decimals0: number;
4582
- decimals1: number;
4583
- tokenAddress0: `0x${string}`;
4584
- tokenAddress1: `0x${string}`;
4585
- coingeckoId0?: string | undefined;
4586
- coingeckoId1?: string | undefined;
4587
4578
  } | {
4588
4579
  id: string;
4589
4580
  networkId: string;
@@ -4595,9 +4586,8 @@ export declare const getRemoteChaindata$: (url: string) => Observable<{
4595
4586
  coingeckoId?: string | undefined;
4596
4587
  noDiscovery?: boolean | undefined;
4597
4588
  mirrorOf?: string | undefined;
4598
- type: "evm-erc20";
4589
+ type: "evm-native";
4599
4590
  platform: "ethereum";
4600
- contractAddress: `0x${string}`;
4601
4591
  } | {
4602
4592
  id: string;
4603
4593
  networkId: string;
@@ -4609,8 +4599,18 @@ export declare const getRemoteChaindata$: (url: string) => Observable<{
4609
4599
  coingeckoId?: string | undefined;
4610
4600
  noDiscovery?: boolean | undefined;
4611
4601
  mirrorOf?: string | undefined;
4612
- type: "evm-native";
4602
+ type: "evm-uniswapv2";
4613
4603
  platform: "ethereum";
4604
+ contractAddress: `0x${string}`;
4605
+ isCustom?: boolean | undefined;
4606
+ symbol0: string;
4607
+ symbol1: string;
4608
+ decimals0: number;
4609
+ decimals1: number;
4610
+ tokenAddress0: `0x${string}`;
4611
+ tokenAddress1: `0x${string}`;
4612
+ coingeckoId0?: string | undefined;
4613
+ coingeckoId1?: string | undefined;
4614
4614
  } | {
4615
4615
  id: string;
4616
4616
  networkId: string;