@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 +131 -131
- package/dist/index.d.ts +138 -138
- package/dist/index.js +353 -297
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +353 -297
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
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-assets";
|
|
1178
|
-
platform: "polkadot";
|
|
1179
|
-
assetId: string;
|
|
1180
|
-
isFrozen?: boolean | undefined;
|
|
1181
|
-
isSufficient: boolean;
|
|
1182
|
-
existentialDeposit: string;
|
|
1183
|
-
} | {
|
|
1184
1167
|
id: string;
|
|
1185
1168
|
networkId: string;
|
|
1186
1169
|
isDefault?: boolean | undefined;
|
|
@@ -1230,6 +1213,23 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1230
1213
|
tokenAddress1: `0x${string}`;
|
|
1231
1214
|
coingeckoId0?: string | undefined;
|
|
1232
1215
|
coingeckoId1?: string | undefined;
|
|
1216
|
+
} | {
|
|
1217
|
+
id: string;
|
|
1218
|
+
networkId: string;
|
|
1219
|
+
isDefault?: boolean | undefined;
|
|
1220
|
+
decimals: number;
|
|
1221
|
+
symbol: string;
|
|
1222
|
+
name?: string | undefined;
|
|
1223
|
+
logo?: string | undefined;
|
|
1224
|
+
coingeckoId?: string | undefined;
|
|
1225
|
+
noDiscovery?: boolean | undefined;
|
|
1226
|
+
mirrorOf?: string | undefined;
|
|
1227
|
+
type: "substrate-assets";
|
|
1228
|
+
platform: "polkadot";
|
|
1229
|
+
assetId: string;
|
|
1230
|
+
isFrozen?: boolean | undefined;
|
|
1231
|
+
isSufficient: boolean;
|
|
1232
|
+
existentialDeposit: string;
|
|
1233
1233
|
} | {
|
|
1234
1234
|
id: string;
|
|
1235
1235
|
networkId: string;
|
|
@@ -1367,23 +1367,6 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1367
1367
|
mintAddress: string;
|
|
1368
1368
|
isTransferable?: boolean | undefined;
|
|
1369
1369
|
}, {
|
|
1370
|
-
id: string;
|
|
1371
|
-
networkId: string;
|
|
1372
|
-
isDefault?: boolean | undefined;
|
|
1373
|
-
decimals: number;
|
|
1374
|
-
symbol: string;
|
|
1375
|
-
name?: string | undefined;
|
|
1376
|
-
logo?: string | undefined;
|
|
1377
|
-
coingeckoId?: string | undefined;
|
|
1378
|
-
noDiscovery?: boolean | undefined;
|
|
1379
|
-
mirrorOf?: string | undefined;
|
|
1380
|
-
type: "substrate-assets";
|
|
1381
|
-
platform: "polkadot";
|
|
1382
|
-
assetId: string;
|
|
1383
|
-
isFrozen?: boolean | undefined;
|
|
1384
|
-
isSufficient: boolean;
|
|
1385
|
-
existentialDeposit: string;
|
|
1386
|
-
} | {
|
|
1387
1370
|
id: string;
|
|
1388
1371
|
networkId: string;
|
|
1389
1372
|
isDefault?: boolean | undefined;
|
|
@@ -1433,6 +1416,23 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1433
1416
|
tokenAddress1: `0x${string}`;
|
|
1434
1417
|
coingeckoId0?: string | undefined;
|
|
1435
1418
|
coingeckoId1?: string | undefined;
|
|
1419
|
+
} | {
|
|
1420
|
+
id: string;
|
|
1421
|
+
networkId: string;
|
|
1422
|
+
isDefault?: boolean | undefined;
|
|
1423
|
+
decimals: number;
|
|
1424
|
+
symbol: string;
|
|
1425
|
+
name?: string | undefined;
|
|
1426
|
+
logo?: string | undefined;
|
|
1427
|
+
coingeckoId?: string | undefined;
|
|
1428
|
+
noDiscovery?: boolean | undefined;
|
|
1429
|
+
mirrorOf?: string | undefined;
|
|
1430
|
+
type: "substrate-assets";
|
|
1431
|
+
platform: "polkadot";
|
|
1432
|
+
assetId: string;
|
|
1433
|
+
isFrozen?: boolean | undefined;
|
|
1434
|
+
isSufficient: boolean;
|
|
1435
|
+
existentialDeposit: string;
|
|
1436
1436
|
} | {
|
|
1437
1437
|
id: string;
|
|
1438
1438
|
networkId: string;
|
|
@@ -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-assets";
|
|
2610
|
-
platform: "polkadot";
|
|
2611
|
-
assetId: string;
|
|
2612
|
-
isFrozen?: boolean | undefined;
|
|
2613
|
-
isSufficient: boolean;
|
|
2614
|
-
existentialDeposit: string;
|
|
2615
|
-
} | {
|
|
2616
2599
|
id: string;
|
|
2617
2600
|
networkId: string;
|
|
2618
2601
|
isDefault?: boolean | undefined;
|
|
@@ -2662,6 +2645,23 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2662
2645
|
tokenAddress1: `0x${string}`;
|
|
2663
2646
|
coingeckoId0?: string | undefined;
|
|
2664
2647
|
coingeckoId1?: string | undefined;
|
|
2648
|
+
} | {
|
|
2649
|
+
id: string;
|
|
2650
|
+
networkId: string;
|
|
2651
|
+
isDefault?: boolean | undefined;
|
|
2652
|
+
decimals: number;
|
|
2653
|
+
symbol: string;
|
|
2654
|
+
name?: string | undefined;
|
|
2655
|
+
logo?: string | undefined;
|
|
2656
|
+
coingeckoId?: string | undefined;
|
|
2657
|
+
noDiscovery?: boolean | undefined;
|
|
2658
|
+
mirrorOf?: string | undefined;
|
|
2659
|
+
type: "substrate-assets";
|
|
2660
|
+
platform: "polkadot";
|
|
2661
|
+
assetId: string;
|
|
2662
|
+
isFrozen?: boolean | undefined;
|
|
2663
|
+
isSufficient: boolean;
|
|
2664
|
+
existentialDeposit: string;
|
|
2665
2665
|
} | {
|
|
2666
2666
|
id: string;
|
|
2667
2667
|
networkId: string;
|
|
@@ -2799,23 +2799,6 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2799
2799
|
mintAddress: string;
|
|
2800
2800
|
isTransferable?: boolean | undefined;
|
|
2801
2801
|
}, {
|
|
2802
|
-
id: string;
|
|
2803
|
-
networkId: string;
|
|
2804
|
-
isDefault?: boolean | undefined;
|
|
2805
|
-
decimals: number;
|
|
2806
|
-
symbol: string;
|
|
2807
|
-
name?: string | undefined;
|
|
2808
|
-
logo?: string | undefined;
|
|
2809
|
-
coingeckoId?: string | undefined;
|
|
2810
|
-
noDiscovery?: boolean | undefined;
|
|
2811
|
-
mirrorOf?: string | undefined;
|
|
2812
|
-
type: "substrate-assets";
|
|
2813
|
-
platform: "polkadot";
|
|
2814
|
-
assetId: string;
|
|
2815
|
-
isFrozen?: boolean | undefined;
|
|
2816
|
-
isSufficient: boolean;
|
|
2817
|
-
existentialDeposit: string;
|
|
2818
|
-
} | {
|
|
2819
2802
|
id: string;
|
|
2820
2803
|
networkId: string;
|
|
2821
2804
|
isDefault?: boolean | undefined;
|
|
@@ -2865,6 +2848,23 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2865
2848
|
tokenAddress1: `0x${string}`;
|
|
2866
2849
|
coingeckoId0?: string | undefined;
|
|
2867
2850
|
coingeckoId1?: string | undefined;
|
|
2851
|
+
} | {
|
|
2852
|
+
id: string;
|
|
2853
|
+
networkId: string;
|
|
2854
|
+
isDefault?: boolean | undefined;
|
|
2855
|
+
decimals: number;
|
|
2856
|
+
symbol: string;
|
|
2857
|
+
name?: string | undefined;
|
|
2858
|
+
logo?: string | undefined;
|
|
2859
|
+
coingeckoId?: string | undefined;
|
|
2860
|
+
noDiscovery?: boolean | undefined;
|
|
2861
|
+
mirrorOf?: string | undefined;
|
|
2862
|
+
type: "substrate-assets";
|
|
2863
|
+
platform: "polkadot";
|
|
2864
|
+
assetId: string;
|
|
2865
|
+
isFrozen?: boolean | undefined;
|
|
2866
|
+
isSufficient: boolean;
|
|
2867
|
+
existentialDeposit: string;
|
|
2868
2868
|
} | {
|
|
2869
2869
|
id: string;
|
|
2870
2870
|
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-assets";
|
|
3365
|
-
platform: "polkadot";
|
|
3366
|
-
assetId: string;
|
|
3367
|
-
isFrozen?: boolean | undefined;
|
|
3368
|
-
isSufficient: boolean;
|
|
3369
|
-
existentialDeposit: string;
|
|
3370
|
-
} | {
|
|
3371
3354
|
id: string;
|
|
3372
3355
|
networkId: string;
|
|
3373
3356
|
isDefault?: boolean | undefined;
|
|
@@ -3417,6 +3400,23 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3417
3400
|
tokenAddress1: `0x${string}`;
|
|
3418
3401
|
coingeckoId0?: string | undefined;
|
|
3419
3402
|
coingeckoId1?: string | undefined;
|
|
3403
|
+
} | {
|
|
3404
|
+
id: string;
|
|
3405
|
+
networkId: string;
|
|
3406
|
+
isDefault?: boolean | undefined;
|
|
3407
|
+
decimals: number;
|
|
3408
|
+
symbol: string;
|
|
3409
|
+
name?: string | undefined;
|
|
3410
|
+
logo?: string | undefined;
|
|
3411
|
+
coingeckoId?: string | undefined;
|
|
3412
|
+
noDiscovery?: boolean | undefined;
|
|
3413
|
+
mirrorOf?: string | undefined;
|
|
3414
|
+
type: "substrate-assets";
|
|
3415
|
+
platform: "polkadot";
|
|
3416
|
+
assetId: string;
|
|
3417
|
+
isFrozen?: boolean | undefined;
|
|
3418
|
+
isSufficient: boolean;
|
|
3419
|
+
existentialDeposit: string;
|
|
3420
3420
|
} | {
|
|
3421
3421
|
id: string;
|
|
3422
3422
|
networkId: string;
|
|
@@ -3554,23 +3554,6 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3554
3554
|
mintAddress: string;
|
|
3555
3555
|
isTransferable?: boolean | undefined;
|
|
3556
3556
|
}, {
|
|
3557
|
-
id: string;
|
|
3558
|
-
networkId: string;
|
|
3559
|
-
isDefault?: boolean | undefined;
|
|
3560
|
-
decimals: number;
|
|
3561
|
-
symbol: string;
|
|
3562
|
-
name?: string | undefined;
|
|
3563
|
-
logo?: string | undefined;
|
|
3564
|
-
coingeckoId?: string | undefined;
|
|
3565
|
-
noDiscovery?: boolean | undefined;
|
|
3566
|
-
mirrorOf?: string | undefined;
|
|
3567
|
-
type: "substrate-assets";
|
|
3568
|
-
platform: "polkadot";
|
|
3569
|
-
assetId: string;
|
|
3570
|
-
isFrozen?: boolean | undefined;
|
|
3571
|
-
isSufficient: boolean;
|
|
3572
|
-
existentialDeposit: string;
|
|
3573
|
-
} | {
|
|
3574
3557
|
id: string;
|
|
3575
3558
|
networkId: string;
|
|
3576
3559
|
isDefault?: boolean | undefined;
|
|
@@ -3620,6 +3603,23 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3620
3603
|
tokenAddress1: `0x${string}`;
|
|
3621
3604
|
coingeckoId0?: string | undefined;
|
|
3622
3605
|
coingeckoId1?: string | undefined;
|
|
3606
|
+
} | {
|
|
3607
|
+
id: string;
|
|
3608
|
+
networkId: string;
|
|
3609
|
+
isDefault?: boolean | undefined;
|
|
3610
|
+
decimals: number;
|
|
3611
|
+
symbol: string;
|
|
3612
|
+
name?: string | undefined;
|
|
3613
|
+
logo?: string | undefined;
|
|
3614
|
+
coingeckoId?: string | undefined;
|
|
3615
|
+
noDiscovery?: boolean | undefined;
|
|
3616
|
+
mirrorOf?: string | undefined;
|
|
3617
|
+
type: "substrate-assets";
|
|
3618
|
+
platform: "polkadot";
|
|
3619
|
+
assetId: string;
|
|
3620
|
+
isFrozen?: boolean | undefined;
|
|
3621
|
+
isSufficient: boolean;
|
|
3622
|
+
existentialDeposit: string;
|
|
3623
3623
|
} | {
|
|
3624
3624
|
id: string;
|
|
3625
3625
|
networkId: string;
|
|
@@ -3899,9 +3899,18 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3899
3899
|
coingeckoId?: string | undefined;
|
|
3900
3900
|
noDiscovery?: boolean | undefined;
|
|
3901
3901
|
mirrorOf?: string | undefined;
|
|
3902
|
-
type: "
|
|
3903
|
-
platform: "
|
|
3904
|
-
contractAddress: string
|
|
3902
|
+
type: "evm-uniswapv2";
|
|
3903
|
+
platform: "ethereum";
|
|
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;
|
|
3905
3914
|
} | {
|
|
3906
3915
|
id: string;
|
|
3907
3916
|
networkId: string;
|
|
@@ -3913,9 +3922,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3913
3922
|
coingeckoId?: string | undefined;
|
|
3914
3923
|
noDiscovery?: boolean | undefined;
|
|
3915
3924
|
mirrorOf?: string | undefined;
|
|
3916
|
-
type: "
|
|
3917
|
-
platform: "
|
|
3918
|
-
contractAddress:
|
|
3925
|
+
type: "substrate-psp22";
|
|
3926
|
+
platform: "polkadot";
|
|
3927
|
+
contractAddress: string;
|
|
3919
3928
|
} | {
|
|
3920
3929
|
id: string;
|
|
3921
3930
|
networkId: string;
|
|
@@ -3927,8 +3936,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3927
3936
|
coingeckoId?: string | undefined;
|
|
3928
3937
|
noDiscovery?: boolean | undefined;
|
|
3929
3938
|
mirrorOf?: string | undefined;
|
|
3930
|
-
type: "evm-
|
|
3939
|
+
type: "evm-erc20";
|
|
3931
3940
|
platform: "ethereum";
|
|
3941
|
+
contractAddress: `0x${string}`;
|
|
3932
3942
|
} | {
|
|
3933
3943
|
id: string;
|
|
3934
3944
|
networkId: string;
|
|
@@ -3940,18 +3950,8 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3940
3950
|
coingeckoId?: string | undefined;
|
|
3941
3951
|
noDiscovery?: boolean | undefined;
|
|
3942
3952
|
mirrorOf?: string | undefined;
|
|
3943
|
-
type: "evm-
|
|
3953
|
+
type: "evm-native";
|
|
3944
3954
|
platform: "ethereum";
|
|
3945
|
-
contractAddress: `0x${string}`;
|
|
3946
|
-
isCustom?: boolean | undefined;
|
|
3947
|
-
symbol0: string;
|
|
3948
|
-
symbol1: string;
|
|
3949
|
-
decimals0: number;
|
|
3950
|
-
decimals1: number;
|
|
3951
|
-
tokenAddress0: `0x${string}`;
|
|
3952
|
-
tokenAddress1: `0x${string}`;
|
|
3953
|
-
coingeckoId0?: string | undefined;
|
|
3954
|
-
coingeckoId1?: string | undefined;
|
|
3955
3955
|
} | {
|
|
3956
3956
|
id: string;
|
|
3957
3957
|
networkId: string;
|
|
@@ -4572,9 +4572,18 @@ export declare const getRemoteChaindata$: (url: string) => Observable<{
|
|
|
4572
4572
|
coingeckoId?: string | undefined;
|
|
4573
4573
|
noDiscovery?: boolean | undefined;
|
|
4574
4574
|
mirrorOf?: string | undefined;
|
|
4575
|
-
type: "
|
|
4576
|
-
platform: "
|
|
4577
|
-
contractAddress: string
|
|
4575
|
+
type: "evm-uniswapv2";
|
|
4576
|
+
platform: "ethereum";
|
|
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;
|
|
4578
4587
|
} | {
|
|
4579
4588
|
id: string;
|
|
4580
4589
|
networkId: string;
|
|
@@ -4586,9 +4595,9 @@ export declare const getRemoteChaindata$: (url: string) => Observable<{
|
|
|
4586
4595
|
coingeckoId?: string | undefined;
|
|
4587
4596
|
noDiscovery?: boolean | undefined;
|
|
4588
4597
|
mirrorOf?: string | undefined;
|
|
4589
|
-
type: "
|
|
4590
|
-
platform: "
|
|
4591
|
-
contractAddress:
|
|
4598
|
+
type: "substrate-psp22";
|
|
4599
|
+
platform: "polkadot";
|
|
4600
|
+
contractAddress: string;
|
|
4592
4601
|
} | {
|
|
4593
4602
|
id: string;
|
|
4594
4603
|
networkId: string;
|
|
@@ -4600,8 +4609,9 @@ export declare const getRemoteChaindata$: (url: string) => Observable<{
|
|
|
4600
4609
|
coingeckoId?: string | undefined;
|
|
4601
4610
|
noDiscovery?: boolean | undefined;
|
|
4602
4611
|
mirrorOf?: string | undefined;
|
|
4603
|
-
type: "evm-
|
|
4612
|
+
type: "evm-erc20";
|
|
4604
4613
|
platform: "ethereum";
|
|
4614
|
+
contractAddress: `0x${string}`;
|
|
4605
4615
|
} | {
|
|
4606
4616
|
id: string;
|
|
4607
4617
|
networkId: string;
|
|
@@ -4613,18 +4623,8 @@ export declare const getRemoteChaindata$: (url: string) => Observable<{
|
|
|
4613
4623
|
coingeckoId?: string | undefined;
|
|
4614
4624
|
noDiscovery?: boolean | undefined;
|
|
4615
4625
|
mirrorOf?: string | undefined;
|
|
4616
|
-
type: "evm-
|
|
4626
|
+
type: "evm-native";
|
|
4617
4627
|
platform: "ethereum";
|
|
4618
|
-
contractAddress: `0x${string}`;
|
|
4619
|
-
isCustom?: boolean | undefined;
|
|
4620
|
-
symbol0: string;
|
|
4621
|
-
symbol1: string;
|
|
4622
|
-
decimals0: number;
|
|
4623
|
-
decimals1: number;
|
|
4624
|
-
tokenAddress0: `0x${string}`;
|
|
4625
|
-
tokenAddress1: `0x${string}`;
|
|
4626
|
-
coingeckoId0?: string | undefined;
|
|
4627
|
-
coingeckoId1?: string | undefined;
|
|
4628
4628
|
} | {
|
|
4629
4629
|
id: string;
|
|
4630
4630
|
networkId: string;
|