@talismn/chaindata-provider 1.1.6 → 1.3.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/dist/declarations/src/chaindata/networks/DotNetwork.d.ts +10 -8
- package/dist/declarations/src/chaindata/networks/EthNetwork.d.ts +6 -6
- package/dist/declarations/src/chaindata/networks/Network.d.ts +10 -9
- package/dist/declarations/src/chaindata/networks/SolNetwork.d.ts +4 -4
- package/dist/declarations/src/chaindata/tokens/EvmErc20Token.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/EvmNativeToken.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/EvmUniswapV2Token.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/SolNativeToken.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/SolSplToken.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/SubstrateAssetsToken.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/SubstrateDTaoToken.d.ts +34 -0
- package/dist/declarations/src/chaindata/tokens/SubstrateForeignAssetsToken.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/SubstrateHydrationToken.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/SubstratePsp22Token.d.ts +1 -1
- package/dist/declarations/src/chaindata/tokens/Token.d.ts +71 -1
- package/dist/declarations/src/chaindata/tokens/index.d.ts +1 -0
- package/dist/declarations/src/chaindata/utils.d.ts +28 -9
- package/dist/declarations/src/constants.d.ts +2 -2
- package/dist/declarations/src/getBlockExplorerUrls.d.ts +2 -3
- package/dist/declarations/src/provider/ChaindataProvider.d.ts +55 -23
- package/dist/declarations/src/state/combinedChaindata.d.ts +1 -1
- package/dist/declarations/src/state/defaultChaindata.d.ts +27 -9
- package/dist/declarations/src/state/githubChaindata.d.ts +27 -9
- package/dist/declarations/src/state/net.d.ts +28 -10
- package/dist/declarations/src/state/schema.d.ts +122 -18
- package/dist/talismn-chaindata-provider.cjs.dev.js +2508 -676
- package/dist/talismn-chaindata-provider.cjs.prod.js +2508 -676
- package/dist/talismn-chaindata-provider.esm.js +2505 -678
- package/package.json +1 -1
|
@@ -3,13 +3,14 @@ export declare const DotNetworkBalancesConfigSchema: z.ZodObject<{
|
|
|
3
3
|
"substrate-native": z.ZodOptional<z.ZodObject<{
|
|
4
4
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
}, z.core.$strip>>;
|
|
6
|
-
"substrate-assets": z.ZodOptional<z.
|
|
7
|
-
"substrate-psp22": z.ZodOptional<z.
|
|
6
|
+
"substrate-assets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
7
|
+
"substrate-psp22": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
8
8
|
"substrate-tokens": z.ZodOptional<z.ZodObject<{
|
|
9
9
|
palletId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, z.core.$strip>>;
|
|
11
|
-
"substrate-foreignassets": z.ZodOptional<z.
|
|
12
|
-
"substrate-hydration": z.ZodOptional<z.
|
|
11
|
+
"substrate-foreignassets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
12
|
+
"substrate-hydration": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
13
|
+
"substrate-dtao": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
13
14
|
}, z.core.$strict>;
|
|
14
15
|
export type DotNetworkBalancesConfig = z.infer<typeof DotNetworkBalancesConfigSchema>;
|
|
15
16
|
export declare const DotNetworkTopologySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -71,13 +72,14 @@ export declare const DotNetworkSchema: z.ZodObject<{
|
|
|
71
72
|
"substrate-native": z.ZodOptional<z.ZodObject<{
|
|
72
73
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
73
74
|
}, z.core.$strip>>;
|
|
74
|
-
"substrate-assets": z.ZodOptional<z.
|
|
75
|
-
"substrate-psp22": z.ZodOptional<z.
|
|
75
|
+
"substrate-assets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
76
|
+
"substrate-psp22": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
76
77
|
"substrate-tokens": z.ZodOptional<z.ZodObject<{
|
|
77
78
|
palletId: z.ZodOptional<z.ZodString>;
|
|
78
79
|
}, z.core.$strip>>;
|
|
79
|
-
"substrate-foreignassets": z.ZodOptional<z.
|
|
80
|
-
"substrate-hydration": z.ZodOptional<z.
|
|
80
|
+
"substrate-foreignassets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
81
|
+
"substrate-hydration": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
82
|
+
"substrate-dtao": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
81
83
|
}, z.core.$strict>>;
|
|
82
84
|
}, z.core.$strict>;
|
|
83
85
|
export type DotNetwork = z.infer<typeof DotNetworkSchema>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import z from "zod/v4";
|
|
2
2
|
export declare const EthNetworkBalancesConfigSchema: z.ZodObject<{
|
|
3
|
-
"evm-native": z.ZodOptional<z.
|
|
4
|
-
"evm-erc20": z.ZodOptional<z.
|
|
5
|
-
"evm-uniswapv2": z.ZodOptional<z.
|
|
3
|
+
"evm-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
4
|
+
"evm-erc20": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
5
|
+
"evm-uniswapv2": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
6
6
|
}, z.core.$strict>;
|
|
7
7
|
export type EthNetworkBalancesConfig = z.infer<typeof EthNetworkBalancesConfigSchema>;
|
|
8
8
|
export declare const EthNetworkSchema: z.ZodObject<{
|
|
@@ -42,9 +42,9 @@ export declare const EthNetworkSchema: z.ZodObject<{
|
|
|
42
42
|
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
43
43
|
}, z.core.$strict>>;
|
|
44
44
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
"evm-native": z.ZodOptional<z.
|
|
46
|
-
"evm-erc20": z.ZodOptional<z.
|
|
47
|
-
"evm-uniswapv2": z.ZodOptional<z.
|
|
45
|
+
"evm-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
46
|
+
"evm-erc20": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
47
|
+
"evm-uniswapv2": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
48
48
|
}, z.core.$strict>>;
|
|
49
49
|
}, z.core.$strict>;
|
|
50
50
|
export type EthNetwork = z.infer<typeof EthNetworkSchema>;
|
|
@@ -49,13 +49,14 @@ export declare const NetworkSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
49
49
|
"substrate-native": z.ZodOptional<z.ZodObject<{
|
|
50
50
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
51
51
|
}, z.core.$strip>>;
|
|
52
|
-
"substrate-assets": z.ZodOptional<z.
|
|
53
|
-
"substrate-psp22": z.ZodOptional<z.
|
|
52
|
+
"substrate-assets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
53
|
+
"substrate-psp22": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
54
54
|
"substrate-tokens": z.ZodOptional<z.ZodObject<{
|
|
55
55
|
palletId: z.ZodOptional<z.ZodString>;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
|
-
"substrate-foreignassets": z.ZodOptional<z.
|
|
58
|
-
"substrate-hydration": z.ZodOptional<z.
|
|
57
|
+
"substrate-foreignassets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
58
|
+
"substrate-hydration": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
59
|
+
"substrate-dtao": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
59
60
|
}, z.core.$strict>>;
|
|
60
61
|
}, z.core.$strict>, z.ZodObject<{
|
|
61
62
|
id: z.ZodString;
|
|
@@ -94,9 +95,9 @@ export declare const NetworkSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
94
95
|
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
95
96
|
}, z.core.$strict>>;
|
|
96
97
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
97
|
-
"evm-native": z.ZodOptional<z.
|
|
98
|
-
"evm-erc20": z.ZodOptional<z.
|
|
99
|
-
"evm-uniswapv2": z.ZodOptional<z.
|
|
98
|
+
"evm-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
99
|
+
"evm-erc20": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
100
|
+
"evm-uniswapv2": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
100
101
|
}, z.core.$strict>>;
|
|
101
102
|
}, z.core.$strict>, z.ZodObject<{
|
|
102
103
|
id: z.ZodString;
|
|
@@ -120,8 +121,8 @@ export declare const NetworkSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
120
121
|
genesisHash: z.ZodString;
|
|
121
122
|
rpcs: z.ZodArray<z.ZodURL>;
|
|
122
123
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
"sol-native": z.ZodOptional<z.
|
|
124
|
-
"sol-spl": z.ZodOptional<z.
|
|
124
|
+
"sol-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
125
|
+
"sol-spl": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
125
126
|
}, z.core.$strict>>;
|
|
126
127
|
}, z.core.$strict>]>;
|
|
127
128
|
export type Network = z.infer<typeof NetworkSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from "zod/v4";
|
|
2
2
|
export declare const SolNetworkBalancesConfigSchema: z.ZodObject<{
|
|
3
|
-
"sol-native": z.ZodOptional<z.
|
|
4
|
-
"sol-spl": z.ZodOptional<z.
|
|
3
|
+
"sol-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
4
|
+
"sol-spl": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
5
5
|
}, z.core.$strict>;
|
|
6
6
|
export type SolNetworkBalancesConfig = z.infer<typeof SolNetworkBalancesConfigSchema>;
|
|
7
7
|
export declare const SolNetworkSchema: z.ZodObject<{
|
|
@@ -26,8 +26,8 @@ export declare const SolNetworkSchema: z.ZodObject<{
|
|
|
26
26
|
genesisHash: z.ZodString;
|
|
27
27
|
rpcs: z.ZodArray<z.ZodURL>;
|
|
28
28
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
29
|
-
"sol-native": z.ZodOptional<z.
|
|
30
|
-
"sol-spl": z.ZodOptional<z.
|
|
29
|
+
"sol-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
30
|
+
"sol-spl": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
31
31
|
}, z.core.$strict>>;
|
|
32
32
|
}, z.core.$strict>;
|
|
33
33
|
export type SolNetwork = z.infer<typeof SolNetworkSchema>;
|
|
@@ -18,7 +18,7 @@ export declare const EvmErc20TokenSchema: z.ZodObject<{
|
|
|
18
18
|
contractAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
19
19
|
}, z.core.$strict>;
|
|
20
20
|
export type EvmErc20Token = z.infer<typeof EvmErc20TokenSchema>;
|
|
21
|
-
export declare const EvmErc20BalancesConfigSchema: z.
|
|
21
|
+
export declare const EvmErc20BalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
22
22
|
export type EvmErc20BalancesConfig = z.infer<typeof EvmErc20BalancesConfigSchema>;
|
|
23
23
|
export type EvmErc20TokenIdSpecs = {
|
|
24
24
|
type: typeof TOKEN_TYPE;
|
|
@@ -17,7 +17,7 @@ export declare const EvmNativeTokenSchema: z.ZodObject<{
|
|
|
17
17
|
platform: z.ZodLiteral<"ethereum">;
|
|
18
18
|
}, z.core.$strict>;
|
|
19
19
|
export type EvmNativeToken = z.infer<typeof EvmNativeTokenSchema>;
|
|
20
|
-
export declare const EvmNativeBalancesConfigSchema: z.
|
|
20
|
+
export declare const EvmNativeBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
21
21
|
export type EvmNativeBalancesConfig = z.infer<typeof EvmNativeBalancesConfigSchema>;
|
|
22
22
|
export type EvmNativeTokenIdSpecs = {
|
|
23
23
|
type: typeof TOKEN_TYPE;
|
|
@@ -27,7 +27,7 @@ export declare const EvmUniswapV2TokenSchema: z.ZodObject<{
|
|
|
27
27
|
coingeckoId1: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, z.core.$strict>;
|
|
29
29
|
export type EvmUniswapV2Token = z.infer<typeof EvmUniswapV2TokenSchema>;
|
|
30
|
-
export declare const EvmUniswapV2BalancesConfigSchema: z.
|
|
30
|
+
export declare const EvmUniswapV2BalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
31
31
|
export type EvmUniswapV2BalancesConfig = z.infer<typeof EvmUniswapV2BalancesConfigSchema>;
|
|
32
32
|
export type EvmUniswapV2TokenIdSpecs = {
|
|
33
33
|
type: typeof TOKEN_TYPE;
|
|
@@ -17,7 +17,7 @@ export declare const SolNativeTokenSchema: z.ZodObject<{
|
|
|
17
17
|
platform: z.ZodLiteral<"solana">;
|
|
18
18
|
}, z.core.$strict>;
|
|
19
19
|
export type SolNativeToken = z.infer<typeof SolNativeTokenSchema>;
|
|
20
|
-
export declare const SolNativeBalancesConfigSchema: z.
|
|
20
|
+
export declare const SolNativeBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
21
21
|
export type SolNativeBalancesConfig = z.infer<typeof SolNativeBalancesConfigSchema>;
|
|
22
22
|
export type SolNativeTokenIdSpecs = {
|
|
23
23
|
type: typeof TOKEN_TYPE;
|
|
@@ -18,7 +18,7 @@ export declare const SolSplTokenSchema: z.ZodObject<{
|
|
|
18
18
|
mintAddress: z.ZodString;
|
|
19
19
|
}, z.core.$strict>;
|
|
20
20
|
export type SolSplToken = z.infer<typeof SolSplTokenSchema>;
|
|
21
|
-
export declare const SolSplBalancesConfigSchema: z.
|
|
21
|
+
export declare const SolSplBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
22
22
|
export type SolSplBalancesConfig = z.infer<typeof SolSplBalancesConfigSchema>;
|
|
23
23
|
export type SolSplTokenIdSpecs = {
|
|
24
24
|
type: typeof TOKEN_TYPE;
|
|
@@ -21,7 +21,7 @@ export declare const SubAssetsTokenSchema: z.ZodObject<{
|
|
|
21
21
|
existentialDeposit: z.ZodString;
|
|
22
22
|
}, z.core.$strict>;
|
|
23
23
|
export type SubAssetsToken = z.infer<typeof SubAssetsTokenSchema>;
|
|
24
|
-
export declare const SubAssetsBalancesConfigSchema: z.
|
|
24
|
+
export declare const SubAssetsBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
25
25
|
export type SubAssetsBalancesConfig = z.infer<typeof SubAssetsBalancesConfigSchema>;
|
|
26
26
|
export type SubAssetTokenIdSpecs = {
|
|
27
27
|
type: typeof TOKEN_TYPE;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import z from "zod/v4";
|
|
2
|
+
import { NetworkId } from "../networks";
|
|
3
|
+
import { TokenId } from "./Token";
|
|
4
|
+
declare const TOKEN_TYPE = "substrate-dtao";
|
|
5
|
+
export declare const SubDTaoTokenSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
networkId: z.ZodString;
|
|
8
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
decimals: z.ZodInt;
|
|
10
|
+
symbol: z.ZodString;
|
|
11
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
13
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
16
|
+
type: z.ZodLiteral<"substrate-dtao">;
|
|
17
|
+
platform: z.ZodLiteral<"polkadot">;
|
|
18
|
+
netuid: z.ZodNumber;
|
|
19
|
+
subnetName: z.ZodOptional<z.ZodString>;
|
|
20
|
+
hotkey: z.ZodOptional<z.ZodString>;
|
|
21
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
export type SubDTaoToken = z.infer<typeof SubDTaoTokenSchema>;
|
|
24
|
+
export declare const SubDTaoBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
25
|
+
export type SubDTaoBalancesConfig = z.infer<typeof SubDTaoBalancesConfigSchema>;
|
|
26
|
+
export type SubDTaoTokenIdSpecs = {
|
|
27
|
+
type: typeof TOKEN_TYPE;
|
|
28
|
+
networkId: NetworkId;
|
|
29
|
+
netuid: number;
|
|
30
|
+
hotkey?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const subDTaoTokenId: (networkId: NetworkId, subnetId: number, hotkey?: string) => string;
|
|
33
|
+
export declare const parseSubDTaoTokenId: (tokenId: TokenId) => SubDTaoTokenIdSpecs;
|
|
34
|
+
export {};
|
|
@@ -21,7 +21,7 @@ export declare const SubForeignAssetsTokenSchema: z.ZodObject<{
|
|
|
21
21
|
existentialDeposit: z.ZodString;
|
|
22
22
|
}, z.core.$strict>;
|
|
23
23
|
export type SubForeignAssetsToken = z.infer<typeof SubForeignAssetsTokenSchema>;
|
|
24
|
-
export declare const SubForeignAssetsBalancesConfigSchema: z.
|
|
24
|
+
export declare const SubForeignAssetsBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
25
25
|
export type SubForeignAssetsBalancesConfig = z.infer<typeof SubForeignAssetsBalancesConfigSchema>;
|
|
26
26
|
export type ForeignAssetsTokenIdSpecs = {
|
|
27
27
|
type: typeof TOKEN_TYPE;
|
|
@@ -24,7 +24,7 @@ export declare const SubHydrationTokenSchema: z.ZodObject<{
|
|
|
24
24
|
existentialDeposit: z.ZodString;
|
|
25
25
|
}, z.core.$strict>;
|
|
26
26
|
export type SubHydrationToken = z.infer<typeof SubHydrationTokenSchema>;
|
|
27
|
-
export declare const SubHydrationBalancesConfigSchema: z.
|
|
27
|
+
export declare const SubHydrationBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
28
28
|
export type SubHydrationBalancesConfig = z.infer<typeof SubHydrationBalancesConfigSchema>;
|
|
29
29
|
export type SubHydrationTokenIdSpecs = {
|
|
30
30
|
type: typeof TOKEN_TYPE;
|
|
@@ -18,7 +18,7 @@ export declare const SubPsp22TokenSchema: z.ZodObject<{
|
|
|
18
18
|
contractAddress: z.ZodString;
|
|
19
19
|
}, z.core.$strict>;
|
|
20
20
|
export type SubPsp22Token = z.infer<typeof SubPsp22TokenSchema>;
|
|
21
|
-
export declare const SubPsp22BalancesConfigSchema: z.
|
|
21
|
+
export declare const SubPsp22BalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
22
22
|
export type SubPsp22BalancesConfig = z.infer<typeof SubPsp22BalancesConfigSchema>;
|
|
23
23
|
export type SubPsp22TokenIdSpecs = {
|
|
24
24
|
type: typeof TOKEN_TYPE;
|
|
@@ -5,6 +5,7 @@ import { EvmUniswapV2TokenIdSpecs } from "./EvmUniswapV2Token";
|
|
|
5
5
|
import { SolNativeToken } from "./SolNativeToken";
|
|
6
6
|
import { SolSplToken } from "./SolSplToken";
|
|
7
7
|
import { SubAssetTokenIdSpecs } from "./SubstrateAssetsToken";
|
|
8
|
+
import { SubDTaoTokenIdSpecs } from "./SubstrateDTaoToken";
|
|
8
9
|
import { ForeignAssetsTokenIdSpecs } from "./SubstrateForeignAssetsToken";
|
|
9
10
|
import { SubHydrationToken } from "./SubstrateHydrationToken";
|
|
10
11
|
import { SubNativeTokenIdSpecs } from "./SubstrateNativeToken";
|
|
@@ -80,6 +81,23 @@ export declare const TokenSchemaBase: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
80
81
|
isFrozen: z.ZodOptional<z.ZodBoolean>;
|
|
81
82
|
isSufficient: z.ZodBoolean;
|
|
82
83
|
existentialDeposit: z.ZodString;
|
|
84
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
networkId: z.ZodString;
|
|
87
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
decimals: z.ZodInt;
|
|
89
|
+
symbol: z.ZodString;
|
|
90
|
+
name: z.ZodOptional<z.ZodString>;
|
|
91
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
92
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
95
|
+
type: z.ZodLiteral<"substrate-dtao">;
|
|
96
|
+
platform: z.ZodLiteral<"polkadot">;
|
|
97
|
+
netuid: z.ZodNumber;
|
|
98
|
+
subnetName: z.ZodOptional<z.ZodString>;
|
|
99
|
+
hotkey: z.ZodOptional<z.ZodString>;
|
|
100
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
83
101
|
}, z.core.$strict>, z.ZodObject<{
|
|
84
102
|
id: z.ZodString;
|
|
85
103
|
networkId: z.ZodString;
|
|
@@ -196,6 +214,7 @@ export declare const TokenTypeSchema: z.ZodEnum<{
|
|
|
196
214
|
"substrate-tokens": "substrate-tokens";
|
|
197
215
|
"substrate-foreignassets": "substrate-foreignassets";
|
|
198
216
|
"substrate-hydration": "substrate-hydration";
|
|
217
|
+
"substrate-dtao": "substrate-dtao";
|
|
199
218
|
"evm-native": "evm-native";
|
|
200
219
|
"evm-erc20": "evm-erc20";
|
|
201
220
|
"evm-uniswapv2": "evm-uniswapv2";
|
|
@@ -206,7 +225,7 @@ export type Token = z.infer<typeof TokenSchemaBase>;
|
|
|
206
225
|
export type TokenId = Token["id"];
|
|
207
226
|
export type TokenList = Record<TokenId, Token>;
|
|
208
227
|
export type TokenType = z.infer<typeof TokenTypeSchema>;
|
|
209
|
-
export type TokenIdSpecs<T extends TokenType> = T extends "evm-erc20" ? EvmErc20TokenIdSpecs : T extends "evm-native" ? EvmNativeTokenIdSpecs : T extends "evm-uniswapv2" ? EvmUniswapV2TokenIdSpecs : T extends "substrate-assets" ? SubAssetTokenIdSpecs : T extends "substrate-foreignassets" ? ForeignAssetsTokenIdSpecs : T extends "substrate-native" ? SubNativeTokenIdSpecs : T extends "substrate-psp22" ? SubPsp22TokenIdSpecs : T extends "substrate-tokens" ? SubTokensTokenIdSpecs : T extends "substrate-hydration" ? SubHydrationToken : T extends "sol-native" ? SolNativeToken : T extends "sol-spl" ? SolSplToken : never;
|
|
228
|
+
export type TokenIdSpecs<T extends TokenType> = T extends "evm-erc20" ? EvmErc20TokenIdSpecs : T extends "evm-native" ? EvmNativeTokenIdSpecs : T extends "evm-uniswapv2" ? EvmUniswapV2TokenIdSpecs : T extends "substrate-assets" ? SubAssetTokenIdSpecs : T extends "substrate-dtao" ? SubDTaoTokenIdSpecs : T extends "substrate-foreignassets" ? ForeignAssetsTokenIdSpecs : T extends "substrate-native" ? SubNativeTokenIdSpecs : T extends "substrate-psp22" ? SubPsp22TokenIdSpecs : T extends "substrate-tokens" ? SubTokensTokenIdSpecs : T extends "substrate-hydration" ? SubHydrationToken : T extends "sol-native" ? SolNativeToken : T extends "sol-spl" ? SolSplToken : never;
|
|
210
229
|
export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
230
|
id: z.ZodString;
|
|
212
231
|
networkId: z.ZodString;
|
|
@@ -274,6 +293,23 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
274
293
|
isFrozen: z.ZodOptional<z.ZodBoolean>;
|
|
275
294
|
isSufficient: z.ZodBoolean;
|
|
276
295
|
existentialDeposit: z.ZodString;
|
|
296
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
297
|
+
id: z.ZodString;
|
|
298
|
+
networkId: z.ZodString;
|
|
299
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
+
decimals: z.ZodInt;
|
|
301
|
+
symbol: z.ZodString;
|
|
302
|
+
name: z.ZodOptional<z.ZodString>;
|
|
303
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
304
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
305
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
307
|
+
type: z.ZodLiteral<"substrate-dtao">;
|
|
308
|
+
platform: z.ZodLiteral<"polkadot">;
|
|
309
|
+
netuid: z.ZodNumber;
|
|
310
|
+
subnetName: z.ZodOptional<z.ZodString>;
|
|
311
|
+
hotkey: z.ZodOptional<z.ZodString>;
|
|
312
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
277
313
|
}, z.core.$strict>, z.ZodObject<{
|
|
278
314
|
id: z.ZodString;
|
|
279
315
|
networkId: z.ZodString;
|
|
@@ -449,6 +485,23 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
449
485
|
noDiscovery?: boolean | undefined;
|
|
450
486
|
mirrorOf?: string | undefined;
|
|
451
487
|
isFrozen?: boolean | undefined;
|
|
488
|
+
} | {
|
|
489
|
+
id: string;
|
|
490
|
+
networkId: string;
|
|
491
|
+
decimals: number;
|
|
492
|
+
symbol: string;
|
|
493
|
+
type: "substrate-dtao";
|
|
494
|
+
platform: "polkadot";
|
|
495
|
+
netuid: number;
|
|
496
|
+
isTransferable: boolean;
|
|
497
|
+
isDefault?: boolean | undefined;
|
|
498
|
+
name?: string | undefined;
|
|
499
|
+
logo?: string | undefined;
|
|
500
|
+
coingeckoId?: string | undefined;
|
|
501
|
+
noDiscovery?: boolean | undefined;
|
|
502
|
+
mirrorOf?: string | undefined;
|
|
503
|
+
subnetName?: string | undefined;
|
|
504
|
+
hotkey?: string | undefined;
|
|
452
505
|
} | {
|
|
453
506
|
id: string;
|
|
454
507
|
networkId: string;
|
|
@@ -620,6 +673,23 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
620
673
|
noDiscovery?: boolean | undefined;
|
|
621
674
|
mirrorOf?: string | undefined;
|
|
622
675
|
isFrozen?: boolean | undefined;
|
|
676
|
+
} | {
|
|
677
|
+
id: string;
|
|
678
|
+
networkId: string;
|
|
679
|
+
decimals: number;
|
|
680
|
+
symbol: string;
|
|
681
|
+
type: "substrate-dtao";
|
|
682
|
+
platform: "polkadot";
|
|
683
|
+
netuid: number;
|
|
684
|
+
isTransferable: boolean;
|
|
685
|
+
isDefault?: boolean | undefined;
|
|
686
|
+
name?: string | undefined;
|
|
687
|
+
logo?: string | undefined;
|
|
688
|
+
coingeckoId?: string | undefined;
|
|
689
|
+
noDiscovery?: boolean | undefined;
|
|
690
|
+
mirrorOf?: string | undefined;
|
|
691
|
+
subnetName?: string | undefined;
|
|
692
|
+
hotkey?: string | undefined;
|
|
623
693
|
} | {
|
|
624
694
|
id: string;
|
|
625
695
|
networkId: string;
|
|
@@ -4,6 +4,7 @@ export * from "./EvmUniswapV2Token";
|
|
|
4
4
|
export * from "./SolNativeToken";
|
|
5
5
|
export * from "./SolSplToken";
|
|
6
6
|
export * from "./SubstrateAssetsToken";
|
|
7
|
+
export * from "./SubstrateDTaoToken";
|
|
7
8
|
export * from "./SubstrateForeignAssetsToken";
|
|
8
9
|
export * from "./SubstrateNativeToken";
|
|
9
10
|
export * from "./SubstratePsp22Token";
|
|
@@ -54,13 +54,14 @@ export declare const isNetworkDot: (network: Network | null | undefined) => netw
|
|
|
54
54
|
"substrate-native"?: {
|
|
55
55
|
disable?: boolean | undefined;
|
|
56
56
|
} | undefined;
|
|
57
|
-
"substrate-assets"?: undefined;
|
|
58
|
-
"substrate-psp22"?: undefined;
|
|
57
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
58
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
59
59
|
"substrate-tokens"?: {
|
|
60
60
|
palletId?: string | undefined;
|
|
61
61
|
} | undefined;
|
|
62
|
-
"substrate-foreignassets"?: undefined;
|
|
63
|
-
"substrate-hydration"?: undefined;
|
|
62
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
63
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
64
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
64
65
|
} | undefined;
|
|
65
66
|
};
|
|
66
67
|
export declare const isNetworkEth: (network: Network | null | undefined) => network is {
|
|
@@ -97,9 +98,9 @@ export declare const isNetworkEth: (network: Network | null | undefined) => netw
|
|
|
97
98
|
Multicall3?: `0x${string}` | undefined;
|
|
98
99
|
} | undefined;
|
|
99
100
|
balancesConfig?: {
|
|
100
|
-
"evm-native"?: undefined;
|
|
101
|
-
"evm-erc20"?: undefined;
|
|
102
|
-
"evm-uniswapv2"?: undefined;
|
|
101
|
+
"evm-native"?: Record<string, never> | undefined;
|
|
102
|
+
"evm-erc20"?: Record<string, never> | undefined;
|
|
103
|
+
"evm-uniswapv2"?: Record<string, never> | undefined;
|
|
103
104
|
} | undefined;
|
|
104
105
|
};
|
|
105
106
|
export declare const isNetworkSol: (network: Network | null | undefined) => network is {
|
|
@@ -124,8 +125,8 @@ export declare const isNetworkSol: (network: Network | null | undefined) => netw
|
|
|
124
125
|
logo?: string | undefined;
|
|
125
126
|
themeColor?: string | undefined;
|
|
126
127
|
balancesConfig?: {
|
|
127
|
-
"sol-native"?: undefined;
|
|
128
|
-
"sol-spl"?: undefined;
|
|
128
|
+
"sol-native"?: Record<string, never> | undefined;
|
|
129
|
+
"sol-spl"?: Record<string, never> | undefined;
|
|
129
130
|
} | undefined;
|
|
130
131
|
};
|
|
131
132
|
export declare const getNetworkGenesisHash: <Net extends Network, Res = Net extends DotNetwork ? DotNetwork["genesisHash"] : undefined>(network: Net | null | undefined) => Res;
|
|
@@ -258,6 +259,24 @@ export declare const isTokenSubAssets: (token: Token | null | undefined) => toke
|
|
|
258
259
|
mirrorOf?: string | undefined;
|
|
259
260
|
isFrozen?: boolean | undefined;
|
|
260
261
|
};
|
|
262
|
+
export declare const isTokenSubDTao: (token: Token | null | undefined) => token is {
|
|
263
|
+
id: string;
|
|
264
|
+
networkId: string;
|
|
265
|
+
decimals: number;
|
|
266
|
+
symbol: string;
|
|
267
|
+
type: "substrate-dtao";
|
|
268
|
+
platform: "polkadot";
|
|
269
|
+
netuid: number;
|
|
270
|
+
isTransferable: boolean;
|
|
271
|
+
isDefault?: boolean | undefined;
|
|
272
|
+
name?: string | undefined;
|
|
273
|
+
logo?: string | undefined;
|
|
274
|
+
coingeckoId?: string | undefined;
|
|
275
|
+
noDiscovery?: boolean | undefined;
|
|
276
|
+
mirrorOf?: string | undefined;
|
|
277
|
+
subnetName?: string | undefined;
|
|
278
|
+
hotkey?: string | undefined;
|
|
279
|
+
};
|
|
261
280
|
export declare const isTokenSubForeignAssets: (token: Token | null | undefined) => token is {
|
|
262
281
|
id: string;
|
|
263
282
|
networkId: string;
|
|
@@ -3,8 +3,8 @@ export declare const githubCdn = "https://raw.githubusercontent.com";
|
|
|
3
3
|
export declare const githubChaindataOrg = "TalismanSociety";
|
|
4
4
|
export declare const githubChaindataRepo = "chaindata";
|
|
5
5
|
export declare const githubChaindataBranch = "main";
|
|
6
|
-
export declare const githubChaindataDistDir = "pub/
|
|
6
|
+
export declare const githubChaindataDistDir = "pub/v7";
|
|
7
7
|
export declare const githubChaindataBaseUrl = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main";
|
|
8
|
-
export declare const githubChaindataDistUrl = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/pub/
|
|
8
|
+
export declare const githubChaindataDistUrl = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/pub/v7";
|
|
9
9
|
export declare const githubChaindataChainsAssetsDir = "assets/chains";
|
|
10
10
|
export declare const githubChaindataTokensAssetsDir = "assets/tokens";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Network } from "./chaindata";
|
|
2
|
-
type
|
|
2
|
+
export type BlockExplorerQuery = {
|
|
3
3
|
type: "address";
|
|
4
4
|
address: string;
|
|
5
5
|
} | {
|
|
@@ -19,6 +19,5 @@ type ExplorerQuery = {
|
|
|
19
19
|
type: "extrinsic-unknown";
|
|
20
20
|
hash: `0x${string}`;
|
|
21
21
|
};
|
|
22
|
-
export declare const getBlockExplorerUrls: (network: Network, query:
|
|
22
|
+
export declare const getBlockExplorerUrls: (network: Network, query: BlockExplorerQuery) => string[];
|
|
23
23
|
export declare const getBlockExplorerLabel: (blockExplorerUrl: string) => string;
|
|
24
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
1
|
+
import { Observable, ReplaySubject } from "rxjs";
|
|
2
2
|
import { AnyMiniMetadata, DotNetwork, Network, NetworkId, NetworkOfPlatform, NetworkPlatform, Token, TokenId, TokenOfType, TokenType } from "../chaindata";
|
|
3
3
|
import { CustomChaindata } from "../state/schema";
|
|
4
4
|
import { IChaindataProvider } from "./ChaindataProviderInterface";
|
|
@@ -16,10 +16,11 @@ export type ChaindataStorage = {
|
|
|
16
16
|
export type ChaindataProviderOptions = {
|
|
17
17
|
persistedStorage?: ChaindataStorage | Promise<ChaindataStorage | undefined>;
|
|
18
18
|
customChaindata$?: Observable<CustomChaindata> | CustomChaindata;
|
|
19
|
+
dynamicTokens$?: ReplaySubject<Token[]>;
|
|
19
20
|
};
|
|
20
21
|
export declare class ChaindataProvider implements IChaindataProvider {
|
|
21
22
|
#private;
|
|
22
|
-
constructor({ persistedStorage, customChaindata
|
|
23
|
+
constructor({ persistedStorage, customChaindata$, dynamicTokens$, }?: ChaindataProviderOptions);
|
|
23
24
|
/**
|
|
24
25
|
* Subscribe to this observable and save its contents somewhere persistent.
|
|
25
26
|
*
|
|
@@ -154,6 +155,23 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
154
155
|
noDiscovery?: boolean | undefined;
|
|
155
156
|
mirrorOf?: string | undefined;
|
|
156
157
|
isFrozen?: boolean | undefined;
|
|
158
|
+
} | {
|
|
159
|
+
id: string;
|
|
160
|
+
networkId: string;
|
|
161
|
+
decimals: number;
|
|
162
|
+
symbol: string;
|
|
163
|
+
type: "substrate-dtao";
|
|
164
|
+
platform: "polkadot";
|
|
165
|
+
netuid: number;
|
|
166
|
+
isTransferable: boolean;
|
|
167
|
+
isDefault?: boolean | undefined;
|
|
168
|
+
name?: string | undefined;
|
|
169
|
+
logo?: string | undefined;
|
|
170
|
+
coingeckoId?: string | undefined;
|
|
171
|
+
noDiscovery?: boolean | undefined;
|
|
172
|
+
mirrorOf?: string | undefined;
|
|
173
|
+
subnetName?: string | undefined;
|
|
174
|
+
hotkey?: string | undefined;
|
|
157
175
|
} | {
|
|
158
176
|
id: string;
|
|
159
177
|
networkId: string;
|
|
@@ -267,6 +285,16 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
267
285
|
getTokensMapById<T extends TokenType | undefined, R extends T extends TokenType ? TokenOfType<T> : Token>(type?: T): Promise<Record<TokenId, R>>;
|
|
268
286
|
getTokenById$<T extends TokenType | undefined, R extends T extends TokenType ? TokenOfType<T> : Token>(id: TokenId, type?: T): Observable<R | null>;
|
|
269
287
|
getTokenById<T extends TokenType | undefined, R extends T extends TokenType ? TokenOfType<T> : Token>(id: TokenId, type?: T): Promise<R | null>;
|
|
288
|
+
/**
|
|
289
|
+
* Registers token dynamically a runtime. used for SPL and dTAO tokens.
|
|
290
|
+
* @param tokens
|
|
291
|
+
*/
|
|
292
|
+
registerDynamicTokens(tokens: Token[]): Promise<void>;
|
|
293
|
+
/**
|
|
294
|
+
* dynamic tokens are created when they are first detected by the balance modules.
|
|
295
|
+
* this method syncs their metadata (name, symbol, logo) with custom logic specific to each token type
|
|
296
|
+
*/
|
|
297
|
+
syncDynamicTokens(): Promise<void>;
|
|
270
298
|
/**
|
|
271
299
|
* Networks
|
|
272
300
|
*/
|
|
@@ -317,13 +345,14 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
317
345
|
"substrate-native"?: {
|
|
318
346
|
disable?: boolean | undefined;
|
|
319
347
|
} | undefined;
|
|
320
|
-
"substrate-assets"?: undefined;
|
|
321
|
-
"substrate-psp22"?: undefined;
|
|
348
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
349
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
322
350
|
"substrate-tokens"?: {
|
|
323
351
|
palletId?: string | undefined;
|
|
324
352
|
} | undefined;
|
|
325
|
-
"substrate-foreignassets"?: undefined;
|
|
326
|
-
"substrate-hydration"?: undefined;
|
|
353
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
354
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
355
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
327
356
|
} | undefined;
|
|
328
357
|
} | {
|
|
329
358
|
id: string;
|
|
@@ -359,9 +388,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
359
388
|
Multicall3?: `0x${string}` | undefined;
|
|
360
389
|
} | undefined;
|
|
361
390
|
balancesConfig?: {
|
|
362
|
-
"evm-native"?: undefined;
|
|
363
|
-
"evm-erc20"?: undefined;
|
|
364
|
-
"evm-uniswapv2"?: undefined;
|
|
391
|
+
"evm-native"?: Record<string, never> | undefined;
|
|
392
|
+
"evm-erc20"?: Record<string, never> | undefined;
|
|
393
|
+
"evm-uniswapv2"?: Record<string, never> | undefined;
|
|
365
394
|
} | undefined;
|
|
366
395
|
} | {
|
|
367
396
|
id: string;
|
|
@@ -385,8 +414,8 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
385
414
|
logo?: string | undefined;
|
|
386
415
|
themeColor?: string | undefined;
|
|
387
416
|
balancesConfig?: {
|
|
388
|
-
"sol-native"?: undefined;
|
|
389
|
-
"sol-spl"?: undefined;
|
|
417
|
+
"sol-native"?: Record<string, never> | undefined;
|
|
418
|
+
"sol-spl"?: Record<string, never> | undefined;
|
|
390
419
|
} | undefined;
|
|
391
420
|
})[]>;
|
|
392
421
|
getNetworks$<P extends NetworkPlatform | undefined, R = P extends NetworkPlatform ? NetworkOfPlatform<P> : Network>(platform?: P): Observable<R[]>;
|
|
@@ -443,13 +472,14 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
443
472
|
"substrate-native"?: {
|
|
444
473
|
disable?: boolean | undefined;
|
|
445
474
|
} | undefined;
|
|
446
|
-
"substrate-assets"?: undefined;
|
|
447
|
-
"substrate-psp22"?: undefined;
|
|
475
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
476
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
448
477
|
"substrate-tokens"?: {
|
|
449
478
|
palletId?: string | undefined;
|
|
450
479
|
} | undefined;
|
|
451
|
-
"substrate-foreignassets"?: undefined;
|
|
452
|
-
"substrate-hydration"?: undefined;
|
|
480
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
481
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
482
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
453
483
|
} | undefined;
|
|
454
484
|
}>>;
|
|
455
485
|
getNetworkById$<P extends NetworkPlatform | undefined, R = P extends NetworkPlatform ? NetworkOfPlatform<P> : Network>(networkId: NetworkId, platform?: P): Observable<R | null>;
|
|
@@ -501,13 +531,14 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
501
531
|
"substrate-native"?: {
|
|
502
532
|
disable?: boolean | undefined;
|
|
503
533
|
} | undefined;
|
|
504
|
-
"substrate-assets"?: undefined;
|
|
505
|
-
"substrate-psp22"?: undefined;
|
|
534
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
535
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
506
536
|
"substrate-tokens"?: {
|
|
507
537
|
palletId?: string | undefined;
|
|
508
538
|
} | undefined;
|
|
509
|
-
"substrate-foreignassets"?: undefined;
|
|
510
|
-
"substrate-hydration"?: undefined;
|
|
539
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
540
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
541
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
511
542
|
} | undefined;
|
|
512
543
|
}>;
|
|
513
544
|
getNetworkByGenesisHash(genesisHash: `0x${string}`): Promise<{
|
|
@@ -557,13 +588,14 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
557
588
|
"substrate-native"?: {
|
|
558
589
|
disable?: boolean | undefined;
|
|
559
590
|
} | undefined;
|
|
560
|
-
"substrate-assets"?: undefined;
|
|
561
|
-
"substrate-psp22"?: undefined;
|
|
591
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
592
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
562
593
|
"substrate-tokens"?: {
|
|
563
594
|
palletId?: string | undefined;
|
|
564
595
|
} | undefined;
|
|
565
|
-
"substrate-foreignassets"?: undefined;
|
|
566
|
-
"substrate-hydration"?: undefined;
|
|
596
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
597
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
598
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
567
599
|
} | undefined;
|
|
568
600
|
}>;
|
|
569
601
|
}
|