@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 +103 -103
- package/dist/index.d.ts +175 -175
- package/dist/index.js +357 -300
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +357 -300
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1172,9 +1172,9 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1172
1172
|
coingeckoId?: string | undefined;
|
|
1173
1173
|
noDiscovery?: boolean | undefined;
|
|
1174
1174
|
mirrorOf?: string | undefined;
|
|
1175
|
-
type: "
|
|
1176
|
-
platform: "
|
|
1177
|
-
|
|
1175
|
+
type: "evm-erc20";
|
|
1176
|
+
platform: "ethereum";
|
|
1177
|
+
contractAddress: `0x${string}`;
|
|
1178
1178
|
} | {
|
|
1179
1179
|
id: string;
|
|
1180
1180
|
networkId: string;
|
|
@@ -1199,12 +1199,18 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1199
1199
|
coingeckoId?: string | undefined;
|
|
1200
1200
|
noDiscovery?: boolean | undefined;
|
|
1201
1201
|
mirrorOf?: string | undefined;
|
|
1202
|
-
type: "
|
|
1203
|
-
platform: "
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1202
|
+
type: "evm-uniswapv2";
|
|
1203
|
+
platform: "ethereum";
|
|
1204
|
+
contractAddress: `0x${string}`;
|
|
1205
|
+
isCustom?: boolean | undefined;
|
|
1206
|
+
symbol0: string;
|
|
1207
|
+
symbol1: string;
|
|
1208
|
+
decimals0: number;
|
|
1209
|
+
decimals1: number;
|
|
1210
|
+
tokenAddress0: `0x${string}`;
|
|
1211
|
+
tokenAddress1: `0x${string}`;
|
|
1212
|
+
coingeckoId0?: string | undefined;
|
|
1213
|
+
coingeckoId1?: string | undefined;
|
|
1208
1214
|
} | {
|
|
1209
1215
|
id: string;
|
|
1210
1216
|
networkId: string;
|
|
@@ -1216,9 +1222,12 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1216
1222
|
coingeckoId?: string | undefined;
|
|
1217
1223
|
noDiscovery?: boolean | undefined;
|
|
1218
1224
|
mirrorOf?: string | undefined;
|
|
1219
|
-
type: "
|
|
1220
|
-
platform: "
|
|
1221
|
-
|
|
1225
|
+
type: "substrate-assets";
|
|
1226
|
+
platform: "polkadot";
|
|
1227
|
+
assetId: string;
|
|
1228
|
+
isFrozen?: boolean | undefined;
|
|
1229
|
+
isSufficient: boolean;
|
|
1230
|
+
existentialDeposit: string;
|
|
1222
1231
|
} | {
|
|
1223
1232
|
id: string;
|
|
1224
1233
|
networkId: string;
|
|
@@ -1230,18 +1239,12 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1230
1239
|
coingeckoId?: string | undefined;
|
|
1231
1240
|
noDiscovery?: boolean | undefined;
|
|
1232
1241
|
mirrorOf?: string | undefined;
|
|
1233
|
-
type: "
|
|
1234
|
-
platform: "
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
decimals0: number;
|
|
1240
|
-
decimals1: number;
|
|
1241
|
-
tokenAddress0: `0x${string}`;
|
|
1242
|
-
tokenAddress1: `0x${string}`;
|
|
1243
|
-
coingeckoId0?: string | undefined;
|
|
1244
|
-
coingeckoId1?: string | undefined;
|
|
1242
|
+
type: "substrate-dtao";
|
|
1243
|
+
platform: "polkadot";
|
|
1244
|
+
netuid: number;
|
|
1245
|
+
subnetName?: string | undefined;
|
|
1246
|
+
hotkey?: string | undefined;
|
|
1247
|
+
isTransferable: boolean;
|
|
1245
1248
|
} | {
|
|
1246
1249
|
id: string;
|
|
1247
1250
|
networkId: string;
|
|
@@ -1253,9 +1256,9 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1253
1256
|
coingeckoId?: string | undefined;
|
|
1254
1257
|
noDiscovery?: boolean | undefined;
|
|
1255
1258
|
mirrorOf?: string | undefined;
|
|
1256
|
-
type: "substrate-
|
|
1259
|
+
type: "substrate-foreignassets";
|
|
1257
1260
|
platform: "polkadot";
|
|
1258
|
-
|
|
1261
|
+
onChainId: string;
|
|
1259
1262
|
isFrozen?: boolean | undefined;
|
|
1260
1263
|
isSufficient: boolean;
|
|
1261
1264
|
existentialDeposit: string;
|
|
@@ -1270,11 +1273,8 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1270
1273
|
coingeckoId?: string | undefined;
|
|
1271
1274
|
noDiscovery?: boolean | undefined;
|
|
1272
1275
|
mirrorOf?: string | undefined;
|
|
1273
|
-
type: "substrate-
|
|
1276
|
+
type: "substrate-native";
|
|
1274
1277
|
platform: "polkadot";
|
|
1275
|
-
onChainId: string;
|
|
1276
|
-
isFrozen?: boolean | undefined;
|
|
1277
|
-
isSufficient: boolean;
|
|
1278
1278
|
existentialDeposit: string;
|
|
1279
1279
|
} | {
|
|
1280
1280
|
id: string;
|
|
@@ -1375,9 +1375,9 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1375
1375
|
coingeckoId?: string | undefined;
|
|
1376
1376
|
noDiscovery?: boolean | undefined;
|
|
1377
1377
|
mirrorOf?: string | undefined;
|
|
1378
|
-
type: "
|
|
1379
|
-
platform: "
|
|
1380
|
-
|
|
1378
|
+
type: "evm-erc20";
|
|
1379
|
+
platform: "ethereum";
|
|
1380
|
+
contractAddress: `0x${string}`;
|
|
1381
1381
|
} | {
|
|
1382
1382
|
id: string;
|
|
1383
1383
|
networkId: string;
|
|
@@ -1402,12 +1402,18 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1402
1402
|
coingeckoId?: string | undefined;
|
|
1403
1403
|
noDiscovery?: boolean | undefined;
|
|
1404
1404
|
mirrorOf?: string | undefined;
|
|
1405
|
-
type: "
|
|
1406
|
-
platform: "
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1405
|
+
type: "evm-uniswapv2";
|
|
1406
|
+
platform: "ethereum";
|
|
1407
|
+
contractAddress: `0x${string}`;
|
|
1408
|
+
isCustom?: boolean | undefined;
|
|
1409
|
+
symbol0: string;
|
|
1410
|
+
symbol1: string;
|
|
1411
|
+
decimals0: number;
|
|
1412
|
+
decimals1: number;
|
|
1413
|
+
tokenAddress0: `0x${string}`;
|
|
1414
|
+
tokenAddress1: `0x${string}`;
|
|
1415
|
+
coingeckoId0?: string | undefined;
|
|
1416
|
+
coingeckoId1?: string | undefined;
|
|
1411
1417
|
} | {
|
|
1412
1418
|
id: string;
|
|
1413
1419
|
networkId: string;
|
|
@@ -1419,9 +1425,12 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1419
1425
|
coingeckoId?: string | undefined;
|
|
1420
1426
|
noDiscovery?: boolean | undefined;
|
|
1421
1427
|
mirrorOf?: string | undefined;
|
|
1422
|
-
type: "
|
|
1423
|
-
platform: "
|
|
1424
|
-
|
|
1428
|
+
type: "substrate-assets";
|
|
1429
|
+
platform: "polkadot";
|
|
1430
|
+
assetId: string;
|
|
1431
|
+
isFrozen?: boolean | undefined;
|
|
1432
|
+
isSufficient: boolean;
|
|
1433
|
+
existentialDeposit: string;
|
|
1425
1434
|
} | {
|
|
1426
1435
|
id: string;
|
|
1427
1436
|
networkId: string;
|
|
@@ -1433,18 +1442,12 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1433
1442
|
coingeckoId?: string | undefined;
|
|
1434
1443
|
noDiscovery?: boolean | undefined;
|
|
1435
1444
|
mirrorOf?: string | undefined;
|
|
1436
|
-
type: "
|
|
1437
|
-
platform: "
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
decimals0: number;
|
|
1443
|
-
decimals1: number;
|
|
1444
|
-
tokenAddress0: `0x${string}`;
|
|
1445
|
-
tokenAddress1: `0x${string}`;
|
|
1446
|
-
coingeckoId0?: string | undefined;
|
|
1447
|
-
coingeckoId1?: string | undefined;
|
|
1445
|
+
type: "substrate-dtao";
|
|
1446
|
+
platform: "polkadot";
|
|
1447
|
+
netuid: number;
|
|
1448
|
+
subnetName?: string | undefined;
|
|
1449
|
+
hotkey?: string | undefined;
|
|
1450
|
+
isTransferable: boolean;
|
|
1448
1451
|
} | {
|
|
1449
1452
|
id: string;
|
|
1450
1453
|
networkId: string;
|
|
@@ -1456,9 +1459,9 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1456
1459
|
coingeckoId?: string | undefined;
|
|
1457
1460
|
noDiscovery?: boolean | undefined;
|
|
1458
1461
|
mirrorOf?: string | undefined;
|
|
1459
|
-
type: "substrate-
|
|
1462
|
+
type: "substrate-foreignassets";
|
|
1460
1463
|
platform: "polkadot";
|
|
1461
|
-
|
|
1464
|
+
onChainId: string;
|
|
1462
1465
|
isFrozen?: boolean | undefined;
|
|
1463
1466
|
isSufficient: boolean;
|
|
1464
1467
|
existentialDeposit: string;
|
|
@@ -1473,11 +1476,8 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1473
1476
|
coingeckoId?: string | undefined;
|
|
1474
1477
|
noDiscovery?: boolean | undefined;
|
|
1475
1478
|
mirrorOf?: string | undefined;
|
|
1476
|
-
type: "substrate-
|
|
1479
|
+
type: "substrate-native";
|
|
1477
1480
|
platform: "polkadot";
|
|
1478
|
-
onChainId: string;
|
|
1479
|
-
isFrozen?: boolean | undefined;
|
|
1480
|
-
isSufficient: boolean;
|
|
1481
1481
|
existentialDeposit: string;
|
|
1482
1482
|
} | {
|
|
1483
1483
|
id: string;
|
|
@@ -1768,8 +1768,11 @@ export declare const isTokenNeedExistentialDeposit: (token: Token) => token is {
|
|
|
1768
1768
|
coingeckoId?: string | undefined;
|
|
1769
1769
|
noDiscovery?: boolean | undefined;
|
|
1770
1770
|
mirrorOf?: string | undefined;
|
|
1771
|
-
type: "substrate-
|
|
1771
|
+
type: "substrate-assets";
|
|
1772
1772
|
platform: "polkadot";
|
|
1773
|
+
assetId: string;
|
|
1774
|
+
isFrozen?: boolean | undefined;
|
|
1775
|
+
isSufficient: boolean;
|
|
1773
1776
|
existentialDeposit: string;
|
|
1774
1777
|
} | {
|
|
1775
1778
|
id: string;
|
|
@@ -1782,9 +1785,9 @@ export declare const isTokenNeedExistentialDeposit: (token: Token) => token is {
|
|
|
1782
1785
|
coingeckoId?: string | undefined;
|
|
1783
1786
|
noDiscovery?: boolean | undefined;
|
|
1784
1787
|
mirrorOf?: string | undefined;
|
|
1785
|
-
type: "substrate-
|
|
1788
|
+
type: "substrate-foreignassets";
|
|
1786
1789
|
platform: "polkadot";
|
|
1787
|
-
|
|
1790
|
+
onChainId: string;
|
|
1788
1791
|
isFrozen?: boolean | undefined;
|
|
1789
1792
|
isSufficient: boolean;
|
|
1790
1793
|
existentialDeposit: string;
|
|
@@ -1799,11 +1802,8 @@ export declare const isTokenNeedExistentialDeposit: (token: Token) => token is {
|
|
|
1799
1802
|
coingeckoId?: string | undefined;
|
|
1800
1803
|
noDiscovery?: boolean | undefined;
|
|
1801
1804
|
mirrorOf?: string | undefined;
|
|
1802
|
-
type: "substrate-
|
|
1805
|
+
type: "substrate-native";
|
|
1803
1806
|
platform: "polkadot";
|
|
1804
|
-
onChainId: string;
|
|
1805
|
-
isFrozen?: boolean | undefined;
|
|
1806
|
-
isSufficient: boolean;
|
|
1807
1807
|
existentialDeposit: string;
|
|
1808
1808
|
} | {
|
|
1809
1809
|
id: 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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;
|
|
@@ -3874,9 +3874,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3874
3874
|
coingeckoId?: string | undefined;
|
|
3875
3875
|
noDiscovery?: boolean | undefined;
|
|
3876
3876
|
mirrorOf?: string | undefined;
|
|
3877
|
-
type: "
|
|
3878
|
-
platform: "
|
|
3879
|
-
|
|
3877
|
+
type: "evm-erc20";
|
|
3878
|
+
platform: "ethereum";
|
|
3879
|
+
contractAddress: `0x${string}`;
|
|
3880
3880
|
} | {
|
|
3881
3881
|
id: string;
|
|
3882
3882
|
networkId: string;
|
|
@@ -3901,12 +3901,18 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3901
3901
|
coingeckoId?: string | undefined;
|
|
3902
3902
|
noDiscovery?: boolean | undefined;
|
|
3903
3903
|
mirrorOf?: string | undefined;
|
|
3904
|
-
type: "
|
|
3905
|
-
platform: "
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3904
|
+
type: "evm-uniswapv2";
|
|
3905
|
+
platform: "ethereum";
|
|
3906
|
+
contractAddress: `0x${string}`;
|
|
3907
|
+
isCustom?: boolean | undefined;
|
|
3908
|
+
symbol0: string;
|
|
3909
|
+
symbol1: string;
|
|
3910
|
+
decimals0: number;
|
|
3911
|
+
decimals1: number;
|
|
3912
|
+
tokenAddress0: `0x${string}`;
|
|
3913
|
+
tokenAddress1: `0x${string}`;
|
|
3914
|
+
coingeckoId0?: string | undefined;
|
|
3915
|
+
coingeckoId1?: string | undefined;
|
|
3910
3916
|
} | {
|
|
3911
3917
|
id: string;
|
|
3912
3918
|
networkId: string;
|
|
@@ -3918,9 +3924,12 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3918
3924
|
coingeckoId?: string | undefined;
|
|
3919
3925
|
noDiscovery?: boolean | undefined;
|
|
3920
3926
|
mirrorOf?: string | undefined;
|
|
3921
|
-
type: "
|
|
3922
|
-
platform: "
|
|
3923
|
-
|
|
3927
|
+
type: "substrate-assets";
|
|
3928
|
+
platform: "polkadot";
|
|
3929
|
+
assetId: string;
|
|
3930
|
+
isFrozen?: boolean | undefined;
|
|
3931
|
+
isSufficient: boolean;
|
|
3932
|
+
existentialDeposit: string;
|
|
3924
3933
|
} | {
|
|
3925
3934
|
id: string;
|
|
3926
3935
|
networkId: string;
|
|
@@ -3932,18 +3941,12 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3932
3941
|
coingeckoId?: string | undefined;
|
|
3933
3942
|
noDiscovery?: boolean | undefined;
|
|
3934
3943
|
mirrorOf?: string | undefined;
|
|
3935
|
-
type: "
|
|
3936
|
-
platform: "
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
decimals0: number;
|
|
3942
|
-
decimals1: number;
|
|
3943
|
-
tokenAddress0: `0x${string}`;
|
|
3944
|
-
tokenAddress1: `0x${string}`;
|
|
3945
|
-
coingeckoId0?: string | undefined;
|
|
3946
|
-
coingeckoId1?: string | undefined;
|
|
3944
|
+
type: "substrate-dtao";
|
|
3945
|
+
platform: "polkadot";
|
|
3946
|
+
netuid: number;
|
|
3947
|
+
subnetName?: string | undefined;
|
|
3948
|
+
hotkey?: string | undefined;
|
|
3949
|
+
isTransferable: boolean;
|
|
3947
3950
|
} | {
|
|
3948
3951
|
id: string;
|
|
3949
3952
|
networkId: string;
|
|
@@ -3955,9 +3958,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3955
3958
|
coingeckoId?: string | undefined;
|
|
3956
3959
|
noDiscovery?: boolean | undefined;
|
|
3957
3960
|
mirrorOf?: string | undefined;
|
|
3958
|
-
type: "substrate-
|
|
3961
|
+
type: "substrate-foreignassets";
|
|
3959
3962
|
platform: "polkadot";
|
|
3960
|
-
|
|
3963
|
+
onChainId: string;
|
|
3961
3964
|
isFrozen?: boolean | undefined;
|
|
3962
3965
|
isSufficient: boolean;
|
|
3963
3966
|
existentialDeposit: string;
|
|
@@ -3972,11 +3975,8 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3972
3975
|
coingeckoId?: string | undefined;
|
|
3973
3976
|
noDiscovery?: boolean | undefined;
|
|
3974
3977
|
mirrorOf?: string | undefined;
|
|
3975
|
-
type: "substrate-
|
|
3978
|
+
type: "substrate-native";
|
|
3976
3979
|
platform: "polkadot";
|
|
3977
|
-
onChainId: string;
|
|
3978
|
-
isFrozen?: boolean | undefined;
|
|
3979
|
-
isSufficient: boolean;
|
|
3980
3980
|
existentialDeposit: string;
|
|
3981
3981
|
} | {
|
|
3982
3982
|
id: string;
|
|
@@ -4090,32 +4090,6 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
4090
4090
|
* Networks
|
|
4091
4091
|
*/
|
|
4092
4092
|
get networks$(): Observable<({
|
|
4093
|
-
id: string;
|
|
4094
|
-
isTestnet?: boolean | undefined;
|
|
4095
|
-
isDefault?: boolean | undefined;
|
|
4096
|
-
forceScan?: boolean | undefined;
|
|
4097
|
-
name: string;
|
|
4098
|
-
logo?: string | undefined;
|
|
4099
|
-
nativeTokenId: string;
|
|
4100
|
-
nativeCurrency: {
|
|
4101
|
-
decimals: number;
|
|
4102
|
-
symbol: string;
|
|
4103
|
-
name: string;
|
|
4104
|
-
coingeckoId?: string | undefined;
|
|
4105
|
-
mirrorOf?: string | undefined;
|
|
4106
|
-
logo?: string | undefined;
|
|
4107
|
-
};
|
|
4108
|
-
themeColor?: string | undefined;
|
|
4109
|
-
blockExplorerUrls: string[];
|
|
4110
|
-
platform: "solana";
|
|
4111
|
-
genesisHash: string;
|
|
4112
|
-
rpcs: string[];
|
|
4113
|
-
balancesConfig?: {
|
|
4114
|
-
"sol-native"?: Record<string, never> | undefined;
|
|
4115
|
-
"sol-spl"?: Record<string, never> | undefined;
|
|
4116
|
-
"sol-token2022"?: Record<string, never> | undefined;
|
|
4117
|
-
} | undefined;
|
|
4118
|
-
} | {
|
|
4119
4093
|
id: string;
|
|
4120
4094
|
isTestnet?: boolean | undefined;
|
|
4121
4095
|
isDefault?: boolean | undefined;
|
|
@@ -4209,6 +4183,32 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
4209
4183
|
"evm-erc20"?: Record<string, never> | undefined;
|
|
4210
4184
|
"evm-uniswapv2"?: Record<string, never> | undefined;
|
|
4211
4185
|
} | undefined;
|
|
4186
|
+
} | {
|
|
4187
|
+
id: string;
|
|
4188
|
+
isTestnet?: boolean | undefined;
|
|
4189
|
+
isDefault?: boolean | undefined;
|
|
4190
|
+
forceScan?: boolean | undefined;
|
|
4191
|
+
name: string;
|
|
4192
|
+
logo?: string | undefined;
|
|
4193
|
+
nativeTokenId: string;
|
|
4194
|
+
nativeCurrency: {
|
|
4195
|
+
decimals: number;
|
|
4196
|
+
symbol: string;
|
|
4197
|
+
name: string;
|
|
4198
|
+
coingeckoId?: string | undefined;
|
|
4199
|
+
mirrorOf?: string | undefined;
|
|
4200
|
+
logo?: string | undefined;
|
|
4201
|
+
};
|
|
4202
|
+
themeColor?: string | undefined;
|
|
4203
|
+
blockExplorerUrls: string[];
|
|
4204
|
+
platform: "solana";
|
|
4205
|
+
genesisHash: string;
|
|
4206
|
+
rpcs: string[];
|
|
4207
|
+
balancesConfig?: {
|
|
4208
|
+
"sol-native"?: Record<string, never> | undefined;
|
|
4209
|
+
"sol-spl"?: Record<string, never> | undefined;
|
|
4210
|
+
"sol-token2022"?: Record<string, never> | undefined;
|
|
4211
|
+
} | undefined;
|
|
4212
4212
|
})[]>;
|
|
4213
4213
|
getNetworks$<P extends NetworkPlatform | undefined, R = P extends NetworkPlatform ? NetworkOfPlatform<P> : Network>(platform?: P): Observable<R[]>;
|
|
4214
4214
|
getNetworks<P extends NetworkPlatform | undefined, R = P extends NetworkPlatform ? NetworkOfPlatform<P> : Network>(platform?: P): Promise<R[]>;
|