@talismn/chaindata-provider 2.0.3 → 2.1.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.
- package/README.md +9 -1
- package/dist/index.d.mts +72 -66
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +181 -175
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +454 -322
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +453 -323
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
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;
|
|
@@ -2083,8 +2083,14 @@ export type BlockExplorerQuery = {
|
|
|
2083
2083
|
hash: `0x${string}`;
|
|
2084
2084
|
};
|
|
2085
2085
|
export declare const getBlockExplorerUrls: (network: Network, query: BlockExplorerQuery) => string[];
|
|
2086
|
+
export declare const getBlockExplorerUrl: (network: Network | null | undefined, query: BlockExplorerQuery) => string | null;
|
|
2086
2087
|
export declare const getBlockExplorerLabel: (blockExplorerUrl: string) => string;
|
|
2087
2088
|
//#endregion
|
|
2089
|
+
//#region src/isAccountPlatformCompatibleWithNetwork.d.ts
|
|
2090
|
+
/** mirrors AccountPlatform from @talismn/crypto, which this package does not depend on */
|
|
2091
|
+
type AccountPlatform = "ethereum" | "polkadot" | "bitcoin" | "solana";
|
|
2092
|
+
export declare const isAccountPlatformCompatibleWithNetwork: (network: Network, platform: AccountPlatform) => boolean;
|
|
2093
|
+
//#endregion
|
|
2088
2094
|
//#region src/legacy/EvmNetwork.d.ts
|
|
2089
2095
|
/** @deprecated */
|
|
2090
2096
|
export type LegacyEvmNetworkId = string;
|
|
@@ -2595,18 +2601,9 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2595
2601
|
coingeckoId?: string | undefined;
|
|
2596
2602
|
noDiscovery?: boolean | undefined;
|
|
2597
2603
|
mirrorOf?: string | undefined;
|
|
2598
|
-
type: "evm-
|
|
2604
|
+
type: "evm-erc20";
|
|
2599
2605
|
platform: "ethereum";
|
|
2600
2606
|
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
2607
|
} | {
|
|
2611
2608
|
id: string;
|
|
2612
2609
|
networkId: string;
|
|
@@ -2618,9 +2615,8 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2618
2615
|
coingeckoId?: string | undefined;
|
|
2619
2616
|
noDiscovery?: boolean | undefined;
|
|
2620
2617
|
mirrorOf?: string | undefined;
|
|
2621
|
-
type: "evm-
|
|
2618
|
+
type: "evm-native";
|
|
2622
2619
|
platform: "ethereum";
|
|
2623
|
-
contractAddress: `0x${string}`;
|
|
2624
2620
|
} | {
|
|
2625
2621
|
id: string;
|
|
2626
2622
|
networkId: string;
|
|
@@ -2632,8 +2628,18 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2632
2628
|
coingeckoId?: string | undefined;
|
|
2633
2629
|
noDiscovery?: boolean | undefined;
|
|
2634
2630
|
mirrorOf?: string | undefined;
|
|
2635
|
-
type: "evm-
|
|
2631
|
+
type: "evm-uniswapv2";
|
|
2636
2632
|
platform: "ethereum";
|
|
2633
|
+
contractAddress: `0x${string}`;
|
|
2634
|
+
isCustom?: boolean | undefined;
|
|
2635
|
+
symbol0: string;
|
|
2636
|
+
symbol1: string;
|
|
2637
|
+
decimals0: number;
|
|
2638
|
+
decimals1: number;
|
|
2639
|
+
tokenAddress0: `0x${string}`;
|
|
2640
|
+
tokenAddress1: `0x${string}`;
|
|
2641
|
+
coingeckoId0?: string | undefined;
|
|
2642
|
+
coingeckoId1?: string | undefined;
|
|
2637
2643
|
} | {
|
|
2638
2644
|
id: string;
|
|
2639
2645
|
networkId: string;
|
|
@@ -2798,18 +2804,9 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2798
2804
|
coingeckoId?: string | undefined;
|
|
2799
2805
|
noDiscovery?: boolean | undefined;
|
|
2800
2806
|
mirrorOf?: string | undefined;
|
|
2801
|
-
type: "evm-
|
|
2807
|
+
type: "evm-erc20";
|
|
2802
2808
|
platform: "ethereum";
|
|
2803
2809
|
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
2810
|
} | {
|
|
2814
2811
|
id: string;
|
|
2815
2812
|
networkId: string;
|
|
@@ -2821,9 +2818,8 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2821
2818
|
coingeckoId?: string | undefined;
|
|
2822
2819
|
noDiscovery?: boolean | undefined;
|
|
2823
2820
|
mirrorOf?: string | undefined;
|
|
2824
|
-
type: "evm-
|
|
2821
|
+
type: "evm-native";
|
|
2825
2822
|
platform: "ethereum";
|
|
2826
|
-
contractAddress: `0x${string}`;
|
|
2827
2823
|
} | {
|
|
2828
2824
|
id: string;
|
|
2829
2825
|
networkId: string;
|
|
@@ -2835,8 +2831,18 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
2835
2831
|
coingeckoId?: string | undefined;
|
|
2836
2832
|
noDiscovery?: boolean | undefined;
|
|
2837
2833
|
mirrorOf?: string | undefined;
|
|
2838
|
-
type: "evm-
|
|
2834
|
+
type: "evm-uniswapv2";
|
|
2839
2835
|
platform: "ethereum";
|
|
2836
|
+
contractAddress: `0x${string}`;
|
|
2837
|
+
isCustom?: boolean | undefined;
|
|
2838
|
+
symbol0: string;
|
|
2839
|
+
symbol1: string;
|
|
2840
|
+
decimals0: number;
|
|
2841
|
+
decimals1: number;
|
|
2842
|
+
tokenAddress0: `0x${string}`;
|
|
2843
|
+
tokenAddress1: `0x${string}`;
|
|
2844
|
+
coingeckoId0?: string | undefined;
|
|
2845
|
+
coingeckoId1?: string | undefined;
|
|
2840
2846
|
} | {
|
|
2841
2847
|
id: string;
|
|
2842
2848
|
networkId: string;
|
|
@@ -3348,18 +3354,9 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3348
3354
|
coingeckoId?: string | undefined;
|
|
3349
3355
|
noDiscovery?: boolean | undefined;
|
|
3350
3356
|
mirrorOf?: string | undefined;
|
|
3351
|
-
type: "evm-
|
|
3357
|
+
type: "evm-erc20";
|
|
3352
3358
|
platform: "ethereum";
|
|
3353
3359
|
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
3360
|
} | {
|
|
3364
3361
|
id: string;
|
|
3365
3362
|
networkId: string;
|
|
@@ -3371,9 +3368,8 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3371
3368
|
coingeckoId?: string | undefined;
|
|
3372
3369
|
noDiscovery?: boolean | undefined;
|
|
3373
3370
|
mirrorOf?: string | undefined;
|
|
3374
|
-
type: "evm-
|
|
3371
|
+
type: "evm-native";
|
|
3375
3372
|
platform: "ethereum";
|
|
3376
|
-
contractAddress: `0x${string}`;
|
|
3377
3373
|
} | {
|
|
3378
3374
|
id: string;
|
|
3379
3375
|
networkId: string;
|
|
@@ -3385,8 +3381,18 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3385
3381
|
coingeckoId?: string | undefined;
|
|
3386
3382
|
noDiscovery?: boolean | undefined;
|
|
3387
3383
|
mirrorOf?: string | undefined;
|
|
3388
|
-
type: "evm-
|
|
3384
|
+
type: "evm-uniswapv2";
|
|
3389
3385
|
platform: "ethereum";
|
|
3386
|
+
contractAddress: `0x${string}`;
|
|
3387
|
+
isCustom?: boolean | undefined;
|
|
3388
|
+
symbol0: string;
|
|
3389
|
+
symbol1: string;
|
|
3390
|
+
decimals0: number;
|
|
3391
|
+
decimals1: number;
|
|
3392
|
+
tokenAddress0: `0x${string}`;
|
|
3393
|
+
tokenAddress1: `0x${string}`;
|
|
3394
|
+
coingeckoId0?: string | undefined;
|
|
3395
|
+
coingeckoId1?: string | undefined;
|
|
3390
3396
|
} | {
|
|
3391
3397
|
id: string;
|
|
3392
3398
|
networkId: string;
|
|
@@ -3551,18 +3557,9 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3551
3557
|
coingeckoId?: string | undefined;
|
|
3552
3558
|
noDiscovery?: boolean | undefined;
|
|
3553
3559
|
mirrorOf?: string | undefined;
|
|
3554
|
-
type: "evm-
|
|
3560
|
+
type: "evm-erc20";
|
|
3555
3561
|
platform: "ethereum";
|
|
3556
3562
|
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
3563
|
} | {
|
|
3567
3564
|
id: string;
|
|
3568
3565
|
networkId: string;
|
|
@@ -3574,9 +3571,8 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3574
3571
|
coingeckoId?: string | undefined;
|
|
3575
3572
|
noDiscovery?: boolean | undefined;
|
|
3576
3573
|
mirrorOf?: string | undefined;
|
|
3577
|
-
type: "evm-
|
|
3574
|
+
type: "evm-native";
|
|
3578
3575
|
platform: "ethereum";
|
|
3579
|
-
contractAddress: `0x${string}`;
|
|
3580
3576
|
} | {
|
|
3581
3577
|
id: string;
|
|
3582
3578
|
networkId: string;
|
|
@@ -3588,8 +3584,18 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
3588
3584
|
coingeckoId?: string | undefined;
|
|
3589
3585
|
noDiscovery?: boolean | undefined;
|
|
3590
3586
|
mirrorOf?: string | undefined;
|
|
3591
|
-
type: "evm-
|
|
3587
|
+
type: "evm-uniswapv2";
|
|
3592
3588
|
platform: "ethereum";
|
|
3589
|
+
contractAddress: `0x${string}`;
|
|
3590
|
+
isCustom?: boolean | undefined;
|
|
3591
|
+
symbol0: string;
|
|
3592
|
+
symbol1: string;
|
|
3593
|
+
decimals0: number;
|
|
3594
|
+
decimals1: number;
|
|
3595
|
+
tokenAddress0: `0x${string}`;
|
|
3596
|
+
tokenAddress1: `0x${string}`;
|
|
3597
|
+
coingeckoId0?: string | undefined;
|
|
3598
|
+
coingeckoId1?: string | undefined;
|
|
3593
3599
|
} | {
|
|
3594
3600
|
id: string;
|
|
3595
3601
|
networkId: string;
|
|
@@ -3874,9 +3880,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3874
3880
|
coingeckoId?: string | undefined;
|
|
3875
3881
|
noDiscovery?: boolean | undefined;
|
|
3876
3882
|
mirrorOf?: string | undefined;
|
|
3877
|
-
type: "
|
|
3878
|
-
platform: "
|
|
3879
|
-
|
|
3883
|
+
type: "evm-erc20";
|
|
3884
|
+
platform: "ethereum";
|
|
3885
|
+
contractAddress: `0x${string}`;
|
|
3880
3886
|
} | {
|
|
3881
3887
|
id: string;
|
|
3882
3888
|
networkId: string;
|
|
@@ -3901,12 +3907,18 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3901
3907
|
coingeckoId?: string | undefined;
|
|
3902
3908
|
noDiscovery?: boolean | undefined;
|
|
3903
3909
|
mirrorOf?: string | undefined;
|
|
3904
|
-
type: "
|
|
3905
|
-
platform: "
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
+
type: "evm-uniswapv2";
|
|
3911
|
+
platform: "ethereum";
|
|
3912
|
+
contractAddress: `0x${string}`;
|
|
3913
|
+
isCustom?: boolean | undefined;
|
|
3914
|
+
symbol0: string;
|
|
3915
|
+
symbol1: string;
|
|
3916
|
+
decimals0: number;
|
|
3917
|
+
decimals1: number;
|
|
3918
|
+
tokenAddress0: `0x${string}`;
|
|
3919
|
+
tokenAddress1: `0x${string}`;
|
|
3920
|
+
coingeckoId0?: string | undefined;
|
|
3921
|
+
coingeckoId1?: string | undefined;
|
|
3910
3922
|
} | {
|
|
3911
3923
|
id: string;
|
|
3912
3924
|
networkId: string;
|
|
@@ -3918,9 +3930,12 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3918
3930
|
coingeckoId?: string | undefined;
|
|
3919
3931
|
noDiscovery?: boolean | undefined;
|
|
3920
3932
|
mirrorOf?: string | undefined;
|
|
3921
|
-
type: "
|
|
3922
|
-
platform: "
|
|
3923
|
-
|
|
3933
|
+
type: "substrate-assets";
|
|
3934
|
+
platform: "polkadot";
|
|
3935
|
+
assetId: string;
|
|
3936
|
+
isFrozen?: boolean | undefined;
|
|
3937
|
+
isSufficient: boolean;
|
|
3938
|
+
existentialDeposit: string;
|
|
3924
3939
|
} | {
|
|
3925
3940
|
id: string;
|
|
3926
3941
|
networkId: string;
|
|
@@ -3932,18 +3947,12 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3932
3947
|
coingeckoId?: string | undefined;
|
|
3933
3948
|
noDiscovery?: boolean | undefined;
|
|
3934
3949
|
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;
|
|
3950
|
+
type: "substrate-dtao";
|
|
3951
|
+
platform: "polkadot";
|
|
3952
|
+
netuid: number;
|
|
3953
|
+
subnetName?: string | undefined;
|
|
3954
|
+
hotkey?: string | undefined;
|
|
3955
|
+
isTransferable: boolean;
|
|
3947
3956
|
} | {
|
|
3948
3957
|
id: string;
|
|
3949
3958
|
networkId: string;
|
|
@@ -3955,9 +3964,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3955
3964
|
coingeckoId?: string | undefined;
|
|
3956
3965
|
noDiscovery?: boolean | undefined;
|
|
3957
3966
|
mirrorOf?: string | undefined;
|
|
3958
|
-
type: "substrate-
|
|
3967
|
+
type: "substrate-foreignassets";
|
|
3959
3968
|
platform: "polkadot";
|
|
3960
|
-
|
|
3969
|
+
onChainId: string;
|
|
3961
3970
|
isFrozen?: boolean | undefined;
|
|
3962
3971
|
isSufficient: boolean;
|
|
3963
3972
|
existentialDeposit: string;
|
|
@@ -3972,11 +3981,8 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
3972
3981
|
coingeckoId?: string | undefined;
|
|
3973
3982
|
noDiscovery?: boolean | undefined;
|
|
3974
3983
|
mirrorOf?: string | undefined;
|
|
3975
|
-
type: "substrate-
|
|
3984
|
+
type: "substrate-native";
|
|
3976
3985
|
platform: "polkadot";
|
|
3977
|
-
onChainId: string;
|
|
3978
|
-
isFrozen?: boolean | undefined;
|
|
3979
|
-
isSufficient: boolean;
|
|
3980
3986
|
existentialDeposit: string;
|
|
3981
3987
|
} | {
|
|
3982
3988
|
id: string;
|
|
@@ -4090,32 +4096,6 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
4090
4096
|
* Networks
|
|
4091
4097
|
*/
|
|
4092
4098
|
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
4099
|
id: string;
|
|
4120
4100
|
isTestnet?: boolean | undefined;
|
|
4121
4101
|
isDefault?: boolean | undefined;
|
|
@@ -4209,6 +4189,32 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
4209
4189
|
"evm-erc20"?: Record<string, never> | undefined;
|
|
4210
4190
|
"evm-uniswapv2"?: Record<string, never> | undefined;
|
|
4211
4191
|
} | undefined;
|
|
4192
|
+
} | {
|
|
4193
|
+
id: string;
|
|
4194
|
+
isTestnet?: boolean | undefined;
|
|
4195
|
+
isDefault?: boolean | undefined;
|
|
4196
|
+
forceScan?: boolean | undefined;
|
|
4197
|
+
name: string;
|
|
4198
|
+
logo?: string | undefined;
|
|
4199
|
+
nativeTokenId: string;
|
|
4200
|
+
nativeCurrency: {
|
|
4201
|
+
decimals: number;
|
|
4202
|
+
symbol: string;
|
|
4203
|
+
name: string;
|
|
4204
|
+
coingeckoId?: string | undefined;
|
|
4205
|
+
mirrorOf?: string | undefined;
|
|
4206
|
+
logo?: string | undefined;
|
|
4207
|
+
};
|
|
4208
|
+
themeColor?: string | undefined;
|
|
4209
|
+
blockExplorerUrls: string[];
|
|
4210
|
+
platform: "solana";
|
|
4211
|
+
genesisHash: string;
|
|
4212
|
+
rpcs: string[];
|
|
4213
|
+
balancesConfig?: {
|
|
4214
|
+
"sol-native"?: Record<string, never> | undefined;
|
|
4215
|
+
"sol-spl"?: Record<string, never> | undefined;
|
|
4216
|
+
"sol-token2022"?: Record<string, never> | undefined;
|
|
4217
|
+
} | undefined;
|
|
4212
4218
|
})[]>;
|
|
4213
4219
|
getNetworks$<P extends NetworkPlatform | undefined, R = P extends NetworkPlatform ? NetworkOfPlatform<P> : Network>(platform?: P): Observable<R[]>;
|
|
4214
4220
|
getNetworks<P extends NetworkPlatform | undefined, R = P extends NetworkPlatform ? NetworkOfPlatform<P> : Network>(platform?: P): Promise<R[]>;
|