@talismn/chaindata-provider 2.0.3 → 2.0.4

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
@@ -1162,6 +1162,23 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1162
1162
  mintAddress: z.ZodString;
1163
1163
  isTransferable: z.ZodOptional<z.ZodBoolean>;
1164
1164
  }, z.core.$strict>], "type">, z.ZodTransform<{
1165
+ id: string;
1166
+ networkId: string;
1167
+ isDefault?: boolean | undefined;
1168
+ decimals: number;
1169
+ symbol: string;
1170
+ name?: string | undefined;
1171
+ logo?: string | undefined;
1172
+ coingeckoId?: string | undefined;
1173
+ noDiscovery?: boolean | undefined;
1174
+ mirrorOf?: string | undefined;
1175
+ type: "substrate-assets";
1176
+ platform: "polkadot";
1177
+ assetId: string;
1178
+ isFrozen?: boolean | undefined;
1179
+ isSufficient: boolean;
1180
+ existentialDeposit: string;
1181
+ } | {
1165
1182
  id: string;
1166
1183
  networkId: string;
1167
1184
  isDefault?: boolean | undefined;
@@ -1211,23 +1228,6 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1211
1228
  tokenAddress1: `0x${string}`;
1212
1229
  coingeckoId0?: string | undefined;
1213
1230
  coingeckoId1?: string | undefined;
1214
- } | {
1215
- id: string;
1216
- networkId: string;
1217
- isDefault?: boolean | undefined;
1218
- decimals: number;
1219
- symbol: string;
1220
- name?: string | undefined;
1221
- logo?: string | undefined;
1222
- coingeckoId?: string | undefined;
1223
- noDiscovery?: boolean | undefined;
1224
- mirrorOf?: string | undefined;
1225
- type: "substrate-assets";
1226
- platform: "polkadot";
1227
- assetId: string;
1228
- isFrozen?: boolean | undefined;
1229
- isSufficient: boolean;
1230
- existentialDeposit: string;
1231
1231
  } | {
1232
1232
  id: string;
1233
1233
  networkId: string;
@@ -1365,6 +1365,23 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1365
1365
  mintAddress: string;
1366
1366
  isTransferable?: boolean | undefined;
1367
1367
  }, {
1368
+ id: string;
1369
+ networkId: string;
1370
+ isDefault?: boolean | undefined;
1371
+ decimals: number;
1372
+ symbol: string;
1373
+ name?: string | undefined;
1374
+ logo?: string | undefined;
1375
+ coingeckoId?: string | undefined;
1376
+ noDiscovery?: boolean | undefined;
1377
+ mirrorOf?: string | undefined;
1378
+ type: "substrate-assets";
1379
+ platform: "polkadot";
1380
+ assetId: string;
1381
+ isFrozen?: boolean | undefined;
1382
+ isSufficient: boolean;
1383
+ existentialDeposit: string;
1384
+ } | {
1368
1385
  id: string;
1369
1386
  networkId: string;
1370
1387
  isDefault?: boolean | undefined;
@@ -1414,23 +1431,6 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
1414
1431
  tokenAddress1: `0x${string}`;
1415
1432
  coingeckoId0?: string | undefined;
1416
1433
  coingeckoId1?: string | undefined;
1417
- } | {
1418
- id: string;
1419
- networkId: string;
1420
- isDefault?: boolean | undefined;
1421
- decimals: number;
1422
- symbol: string;
1423
- name?: string | undefined;
1424
- logo?: string | undefined;
1425
- coingeckoId?: string | undefined;
1426
- noDiscovery?: boolean | undefined;
1427
- mirrorOf?: string | undefined;
1428
- type: "substrate-assets";
1429
- platform: "polkadot";
1430
- assetId: string;
1431
- isFrozen?: boolean | undefined;
1432
- isSufficient: boolean;
1433
- existentialDeposit: string;
1434
1434
  } | {
1435
1435
  id: string;
1436
1436
  networkId: string;
@@ -2595,18 +2595,9 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2595
2595
  coingeckoId?: string | undefined;
2596
2596
  noDiscovery?: boolean | undefined;
2597
2597
  mirrorOf?: string | undefined;
2598
- type: "evm-uniswapv2";
2598
+ type: "evm-erc20";
2599
2599
  platform: "ethereum";
2600
2600
  contractAddress: `0x${string}`;
2601
- isCustom?: boolean | undefined;
2602
- symbol0: string;
2603
- symbol1: string;
2604
- decimals0: number;
2605
- decimals1: number;
2606
- tokenAddress0: `0x${string}`;
2607
- tokenAddress1: `0x${string}`;
2608
- coingeckoId0?: string | undefined;
2609
- coingeckoId1?: string | undefined;
2610
2601
  } | {
2611
2602
  id: string;
2612
2603
  networkId: string;
@@ -2618,9 +2609,8 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2618
2609
  coingeckoId?: string | undefined;
2619
2610
  noDiscovery?: boolean | undefined;
2620
2611
  mirrorOf?: string | undefined;
2621
- type: "evm-erc20";
2612
+ type: "evm-native";
2622
2613
  platform: "ethereum";
2623
- contractAddress: `0x${string}`;
2624
2614
  } | {
2625
2615
  id: string;
2626
2616
  networkId: string;
@@ -2632,8 +2622,18 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2632
2622
  coingeckoId?: string | undefined;
2633
2623
  noDiscovery?: boolean | undefined;
2634
2624
  mirrorOf?: string | undefined;
2635
- type: "evm-native";
2625
+ type: "evm-uniswapv2";
2636
2626
  platform: "ethereum";
2627
+ contractAddress: `0x${string}`;
2628
+ isCustom?: boolean | undefined;
2629
+ symbol0: string;
2630
+ symbol1: string;
2631
+ decimals0: number;
2632
+ decimals1: number;
2633
+ tokenAddress0: `0x${string}`;
2634
+ tokenAddress1: `0x${string}`;
2635
+ coingeckoId0?: string | undefined;
2636
+ coingeckoId1?: string | undefined;
2637
2637
  } | {
2638
2638
  id: string;
2639
2639
  networkId: string;
@@ -2798,18 +2798,9 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2798
2798
  coingeckoId?: string | undefined;
2799
2799
  noDiscovery?: boolean | undefined;
2800
2800
  mirrorOf?: string | undefined;
2801
- type: "evm-uniswapv2";
2801
+ type: "evm-erc20";
2802
2802
  platform: "ethereum";
2803
2803
  contractAddress: `0x${string}`;
2804
- isCustom?: boolean | undefined;
2805
- symbol0: string;
2806
- symbol1: string;
2807
- decimals0: number;
2808
- decimals1: number;
2809
- tokenAddress0: `0x${string}`;
2810
- tokenAddress1: `0x${string}`;
2811
- coingeckoId0?: string | undefined;
2812
- coingeckoId1?: string | undefined;
2813
2804
  } | {
2814
2805
  id: string;
2815
2806
  networkId: string;
@@ -2821,9 +2812,8 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2821
2812
  coingeckoId?: string | undefined;
2822
2813
  noDiscovery?: boolean | undefined;
2823
2814
  mirrorOf?: string | undefined;
2824
- type: "evm-erc20";
2815
+ type: "evm-native";
2825
2816
  platform: "ethereum";
2826
- contractAddress: `0x${string}`;
2827
2817
  } | {
2828
2818
  id: string;
2829
2819
  networkId: string;
@@ -2835,8 +2825,18 @@ export declare const ChaindataFileSchema: z.ZodObject<{
2835
2825
  coingeckoId?: string | undefined;
2836
2826
  noDiscovery?: boolean | undefined;
2837
2827
  mirrorOf?: string | undefined;
2838
- type: "evm-native";
2828
+ type: "evm-uniswapv2";
2839
2829
  platform: "ethereum";
2830
+ contractAddress: `0x${string}`;
2831
+ isCustom?: boolean | undefined;
2832
+ symbol0: string;
2833
+ symbol1: string;
2834
+ decimals0: number;
2835
+ decimals1: number;
2836
+ tokenAddress0: `0x${string}`;
2837
+ tokenAddress1: `0x${string}`;
2838
+ coingeckoId0?: string | undefined;
2839
+ coingeckoId1?: string | undefined;
2840
2840
  } | {
2841
2841
  id: string;
2842
2842
  networkId: string;
@@ -3348,18 +3348,9 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3348
3348
  coingeckoId?: string | undefined;
3349
3349
  noDiscovery?: boolean | undefined;
3350
3350
  mirrorOf?: string | undefined;
3351
- type: "evm-uniswapv2";
3351
+ type: "evm-erc20";
3352
3352
  platform: "ethereum";
3353
3353
  contractAddress: `0x${string}`;
3354
- isCustom?: boolean | undefined;
3355
- symbol0: string;
3356
- symbol1: string;
3357
- decimals0: number;
3358
- decimals1: number;
3359
- tokenAddress0: `0x${string}`;
3360
- tokenAddress1: `0x${string}`;
3361
- coingeckoId0?: string | undefined;
3362
- coingeckoId1?: string | undefined;
3363
3354
  } | {
3364
3355
  id: string;
3365
3356
  networkId: string;
@@ -3371,9 +3362,8 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3371
3362
  coingeckoId?: string | undefined;
3372
3363
  noDiscovery?: boolean | undefined;
3373
3364
  mirrorOf?: string | undefined;
3374
- type: "evm-erc20";
3365
+ type: "evm-native";
3375
3366
  platform: "ethereum";
3376
- contractAddress: `0x${string}`;
3377
3367
  } | {
3378
3368
  id: string;
3379
3369
  networkId: string;
@@ -3385,8 +3375,18 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3385
3375
  coingeckoId?: string | undefined;
3386
3376
  noDiscovery?: boolean | undefined;
3387
3377
  mirrorOf?: string | undefined;
3388
- type: "evm-native";
3378
+ type: "evm-uniswapv2";
3389
3379
  platform: "ethereum";
3380
+ contractAddress: `0x${string}`;
3381
+ isCustom?: boolean | undefined;
3382
+ symbol0: string;
3383
+ symbol1: string;
3384
+ decimals0: number;
3385
+ decimals1: number;
3386
+ tokenAddress0: `0x${string}`;
3387
+ tokenAddress1: `0x${string}`;
3388
+ coingeckoId0?: string | undefined;
3389
+ coingeckoId1?: string | undefined;
3390
3390
  } | {
3391
3391
  id: string;
3392
3392
  networkId: string;
@@ -3551,18 +3551,9 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3551
3551
  coingeckoId?: string | undefined;
3552
3552
  noDiscovery?: boolean | undefined;
3553
3553
  mirrorOf?: string | undefined;
3554
- type: "evm-uniswapv2";
3554
+ type: "evm-erc20";
3555
3555
  platform: "ethereum";
3556
3556
  contractAddress: `0x${string}`;
3557
- isCustom?: boolean | undefined;
3558
- symbol0: string;
3559
- symbol1: string;
3560
- decimals0: number;
3561
- decimals1: number;
3562
- tokenAddress0: `0x${string}`;
3563
- tokenAddress1: `0x${string}`;
3564
- coingeckoId0?: string | undefined;
3565
- coingeckoId1?: string | undefined;
3566
3557
  } | {
3567
3558
  id: string;
3568
3559
  networkId: string;
@@ -3574,9 +3565,8 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3574
3565
  coingeckoId?: string | undefined;
3575
3566
  noDiscovery?: boolean | undefined;
3576
3567
  mirrorOf?: string | undefined;
3577
- type: "evm-erc20";
3568
+ type: "evm-native";
3578
3569
  platform: "ethereum";
3579
- contractAddress: `0x${string}`;
3580
3570
  } | {
3581
3571
  id: string;
3582
3572
  networkId: string;
@@ -3588,8 +3578,18 @@ export declare const CustomChaindataSchema: z.ZodObject<{
3588
3578
  coingeckoId?: string | undefined;
3589
3579
  noDiscovery?: boolean | undefined;
3590
3580
  mirrorOf?: string | undefined;
3591
- type: "evm-native";
3581
+ type: "evm-uniswapv2";
3592
3582
  platform: "ethereum";
3583
+ contractAddress: `0x${string}`;
3584
+ isCustom?: boolean | undefined;
3585
+ symbol0: string;
3586
+ symbol1: string;
3587
+ decimals0: number;
3588
+ decimals1: number;
3589
+ tokenAddress0: `0x${string}`;
3590
+ tokenAddress1: `0x${string}`;
3591
+ coingeckoId0?: string | undefined;
3592
+ coingeckoId1?: string | undefined;
3593
3593
  } | {
3594
3594
  id: string;
3595
3595
  networkId: string;
@@ -3864,6 +3864,23 @@ export declare class ChaindataProvider implements IChaindataProvider {
3864
3864
  * Tokens
3865
3865
  */
3866
3866
  get tokens$(): Observable<({
3867
+ id: string;
3868
+ networkId: string;
3869
+ isDefault?: boolean | undefined;
3870
+ decimals: number;
3871
+ symbol: string;
3872
+ name?: string | undefined;
3873
+ logo?: string | undefined;
3874
+ coingeckoId?: string | undefined;
3875
+ noDiscovery?: boolean | undefined;
3876
+ mirrorOf?: string | undefined;
3877
+ type: "substrate-assets";
3878
+ platform: "polkadot";
3879
+ assetId: string;
3880
+ isFrozen?: boolean | undefined;
3881
+ isSufficient: boolean;
3882
+ existentialDeposit: string;
3883
+ } | {
3867
3884
  id: string;
3868
3885
  networkId: string;
3869
3886
  isDefault?: boolean | undefined;
@@ -3913,23 +3930,6 @@ export declare class ChaindataProvider implements IChaindataProvider {
3913
3930
  tokenAddress1: `0x${string}`;
3914
3931
  coingeckoId0?: string | undefined;
3915
3932
  coingeckoId1?: string | undefined;
3916
- } | {
3917
- id: string;
3918
- networkId: string;
3919
- isDefault?: boolean | undefined;
3920
- decimals: number;
3921
- symbol: string;
3922
- name?: string | undefined;
3923
- logo?: string | undefined;
3924
- coingeckoId?: string | undefined;
3925
- noDiscovery?: boolean | undefined;
3926
- mirrorOf?: string | undefined;
3927
- type: "substrate-assets";
3928
- platform: "polkadot";
3929
- assetId: string;
3930
- isFrozen?: boolean | undefined;
3931
- isSufficient: boolean;
3932
- existentialDeposit: string;
3933
3933
  } | {
3934
3934
  id: string;
3935
3935
  networkId: string;