@talismn/chaindata-provider 1.1.5 → 1.2.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 +33 -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 +67 -1
- package/dist/declarations/src/chaindata/tokens/index.d.ts +1 -0
- package/dist/declarations/src/chaindata/utils.d.ts +27 -9
- package/dist/declarations/src/constants.d.ts +2 -2
- package/dist/declarations/src/provider/ChaindataProvider.d.ts +54 -23
- package/dist/declarations/src/state/combinedChaindata.d.ts +1 -1
- package/dist/declarations/src/state/defaultChaindata.d.ts +26 -9
- package/dist/declarations/src/state/githubChaindata.d.ts +26 -9
- package/dist/declarations/src/state/net.d.ts +27 -10
- package/dist/declarations/src/state/schema.d.ts +116 -18
- package/dist/talismn-chaindata-provider.cjs.dev.js +2508 -549
- package/dist/talismn-chaindata-provider.cjs.prod.js +2508 -549
- package/dist/talismn-chaindata-provider.esm.js +2504 -550
- package/package.json +3 -3
|
@@ -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,33 @@
|
|
|
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
|
+
}, z.core.$strict>;
|
|
22
|
+
export type SubDTaoToken = z.infer<typeof SubDTaoTokenSchema>;
|
|
23
|
+
export declare const SubDTaoBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
24
|
+
export type SubDTaoBalancesConfig = z.infer<typeof SubDTaoBalancesConfigSchema>;
|
|
25
|
+
export type SubDTaoTokenIdSpecs = {
|
|
26
|
+
type: typeof TOKEN_TYPE;
|
|
27
|
+
networkId: NetworkId;
|
|
28
|
+
netuid: number;
|
|
29
|
+
hotkey?: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const subDTaoTokenId: (networkId: NetworkId, subnetId: number, hotkey?: string) => string;
|
|
32
|
+
export declare const parseSubDTaoTokenId: (tokenId: TokenId) => SubDTaoTokenIdSpecs;
|
|
33
|
+
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,22 @@ 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>;
|
|
83
100
|
}, z.core.$strict>, z.ZodObject<{
|
|
84
101
|
id: z.ZodString;
|
|
85
102
|
networkId: z.ZodString;
|
|
@@ -196,6 +213,7 @@ export declare const TokenTypeSchema: z.ZodEnum<{
|
|
|
196
213
|
"substrate-tokens": "substrate-tokens";
|
|
197
214
|
"substrate-foreignassets": "substrate-foreignassets";
|
|
198
215
|
"substrate-hydration": "substrate-hydration";
|
|
216
|
+
"substrate-dtao": "substrate-dtao";
|
|
199
217
|
"evm-native": "evm-native";
|
|
200
218
|
"evm-erc20": "evm-erc20";
|
|
201
219
|
"evm-uniswapv2": "evm-uniswapv2";
|
|
@@ -206,7 +224,7 @@ export type Token = z.infer<typeof TokenSchemaBase>;
|
|
|
206
224
|
export type TokenId = Token["id"];
|
|
207
225
|
export type TokenList = Record<TokenId, Token>;
|
|
208
226
|
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;
|
|
227
|
+
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
228
|
export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
229
|
id: z.ZodString;
|
|
212
230
|
networkId: z.ZodString;
|
|
@@ -274,6 +292,22 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
274
292
|
isFrozen: z.ZodOptional<z.ZodBoolean>;
|
|
275
293
|
isSufficient: z.ZodBoolean;
|
|
276
294
|
existentialDeposit: z.ZodString;
|
|
295
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
296
|
+
id: z.ZodString;
|
|
297
|
+
networkId: z.ZodString;
|
|
298
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
+
decimals: z.ZodInt;
|
|
300
|
+
symbol: z.ZodString;
|
|
301
|
+
name: z.ZodOptional<z.ZodString>;
|
|
302
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
303
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
304
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
306
|
+
type: z.ZodLiteral<"substrate-dtao">;
|
|
307
|
+
platform: z.ZodLiteral<"polkadot">;
|
|
308
|
+
netuid: z.ZodNumber;
|
|
309
|
+
subnetName: z.ZodOptional<z.ZodString>;
|
|
310
|
+
hotkey: z.ZodOptional<z.ZodString>;
|
|
277
311
|
}, z.core.$strict>, z.ZodObject<{
|
|
278
312
|
id: z.ZodString;
|
|
279
313
|
networkId: z.ZodString;
|
|
@@ -449,6 +483,22 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
449
483
|
noDiscovery?: boolean | undefined;
|
|
450
484
|
mirrorOf?: string | undefined;
|
|
451
485
|
isFrozen?: boolean | undefined;
|
|
486
|
+
} | {
|
|
487
|
+
id: string;
|
|
488
|
+
networkId: string;
|
|
489
|
+
decimals: number;
|
|
490
|
+
symbol: string;
|
|
491
|
+
type: "substrate-dtao";
|
|
492
|
+
platform: "polkadot";
|
|
493
|
+
netuid: number;
|
|
494
|
+
isDefault?: boolean | undefined;
|
|
495
|
+
name?: string | undefined;
|
|
496
|
+
logo?: string | undefined;
|
|
497
|
+
coingeckoId?: string | undefined;
|
|
498
|
+
noDiscovery?: boolean | undefined;
|
|
499
|
+
mirrorOf?: string | undefined;
|
|
500
|
+
subnetName?: string | undefined;
|
|
501
|
+
hotkey?: string | undefined;
|
|
452
502
|
} | {
|
|
453
503
|
id: string;
|
|
454
504
|
networkId: string;
|
|
@@ -620,6 +670,22 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
620
670
|
noDiscovery?: boolean | undefined;
|
|
621
671
|
mirrorOf?: string | undefined;
|
|
622
672
|
isFrozen?: boolean | undefined;
|
|
673
|
+
} | {
|
|
674
|
+
id: string;
|
|
675
|
+
networkId: string;
|
|
676
|
+
decimals: number;
|
|
677
|
+
symbol: string;
|
|
678
|
+
type: "substrate-dtao";
|
|
679
|
+
platform: "polkadot";
|
|
680
|
+
netuid: number;
|
|
681
|
+
isDefault?: boolean | undefined;
|
|
682
|
+
name?: string | undefined;
|
|
683
|
+
logo?: string | undefined;
|
|
684
|
+
coingeckoId?: string | undefined;
|
|
685
|
+
noDiscovery?: boolean | undefined;
|
|
686
|
+
mirrorOf?: string | undefined;
|
|
687
|
+
subnetName?: string | undefined;
|
|
688
|
+
hotkey?: string | undefined;
|
|
623
689
|
} | {
|
|
624
690
|
id: string;
|
|
625
691
|
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,23 @@ 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
|
+
isDefault?: boolean | undefined;
|
|
271
|
+
name?: string | undefined;
|
|
272
|
+
logo?: string | undefined;
|
|
273
|
+
coingeckoId?: string | undefined;
|
|
274
|
+
noDiscovery?: boolean | undefined;
|
|
275
|
+
mirrorOf?: string | undefined;
|
|
276
|
+
subnetName?: string | undefined;
|
|
277
|
+
hotkey?: string | undefined;
|
|
278
|
+
};
|
|
261
279
|
export declare const isTokenSubForeignAssets: (token: Token | null | undefined) => token is {
|
|
262
280
|
id: string;
|
|
263
281
|
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/v6";
|
|
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/v6";
|
|
9
9
|
export declare const githubChaindataChainsAssetsDir = "assets/chains";
|
|
10
10
|
export declare const githubChaindataTokensAssetsDir = "assets/tokens";
|
|
@@ -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,22 @@ 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
|
+
isDefault?: boolean | undefined;
|
|
167
|
+
name?: string | undefined;
|
|
168
|
+
logo?: string | undefined;
|
|
169
|
+
coingeckoId?: string | undefined;
|
|
170
|
+
noDiscovery?: boolean | undefined;
|
|
171
|
+
mirrorOf?: string | undefined;
|
|
172
|
+
subnetName?: string | undefined;
|
|
173
|
+
hotkey?: string | undefined;
|
|
157
174
|
} | {
|
|
158
175
|
id: string;
|
|
159
176
|
networkId: string;
|
|
@@ -267,6 +284,16 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
267
284
|
getTokensMapById<T extends TokenType | undefined, R extends T extends TokenType ? TokenOfType<T> : Token>(type?: T): Promise<Record<TokenId, R>>;
|
|
268
285
|
getTokenById$<T extends TokenType | undefined, R extends T extends TokenType ? TokenOfType<T> : Token>(id: TokenId, type?: T): Observable<R | null>;
|
|
269
286
|
getTokenById<T extends TokenType | undefined, R extends T extends TokenType ? TokenOfType<T> : Token>(id: TokenId, type?: T): Promise<R | null>;
|
|
287
|
+
/**
|
|
288
|
+
* Registers token dynamically a runtime. used for SPL and dTAO tokens.
|
|
289
|
+
* @param tokens
|
|
290
|
+
*/
|
|
291
|
+
registerDynamicTokens(tokens: Token[]): Promise<void>;
|
|
292
|
+
/**
|
|
293
|
+
* dynamic tokens are created when they are first detected by the balance modules.
|
|
294
|
+
* this method syncs their metadata (name, symbol, logo) with custom logic specific to each token type
|
|
295
|
+
*/
|
|
296
|
+
syncDynamicTokens(): Promise<void>;
|
|
270
297
|
/**
|
|
271
298
|
* Networks
|
|
272
299
|
*/
|
|
@@ -317,13 +344,14 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
317
344
|
"substrate-native"?: {
|
|
318
345
|
disable?: boolean | undefined;
|
|
319
346
|
} | undefined;
|
|
320
|
-
"substrate-assets"?: undefined;
|
|
321
|
-
"substrate-psp22"?: undefined;
|
|
347
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
348
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
322
349
|
"substrate-tokens"?: {
|
|
323
350
|
palletId?: string | undefined;
|
|
324
351
|
} | undefined;
|
|
325
|
-
"substrate-foreignassets"?: undefined;
|
|
326
|
-
"substrate-hydration"?: undefined;
|
|
352
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
353
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
354
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
327
355
|
} | undefined;
|
|
328
356
|
} | {
|
|
329
357
|
id: string;
|
|
@@ -359,9 +387,9 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
359
387
|
Multicall3?: `0x${string}` | undefined;
|
|
360
388
|
} | undefined;
|
|
361
389
|
balancesConfig?: {
|
|
362
|
-
"evm-native"?: undefined;
|
|
363
|
-
"evm-erc20"?: undefined;
|
|
364
|
-
"evm-uniswapv2"?: undefined;
|
|
390
|
+
"evm-native"?: Record<string, never> | undefined;
|
|
391
|
+
"evm-erc20"?: Record<string, never> | undefined;
|
|
392
|
+
"evm-uniswapv2"?: Record<string, never> | undefined;
|
|
365
393
|
} | undefined;
|
|
366
394
|
} | {
|
|
367
395
|
id: string;
|
|
@@ -385,8 +413,8 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
385
413
|
logo?: string | undefined;
|
|
386
414
|
themeColor?: string | undefined;
|
|
387
415
|
balancesConfig?: {
|
|
388
|
-
"sol-native"?: undefined;
|
|
389
|
-
"sol-spl"?: undefined;
|
|
416
|
+
"sol-native"?: Record<string, never> | undefined;
|
|
417
|
+
"sol-spl"?: Record<string, never> | undefined;
|
|
390
418
|
} | undefined;
|
|
391
419
|
})[]>;
|
|
392
420
|
getNetworks$<P extends NetworkPlatform | undefined, R = P extends NetworkPlatform ? NetworkOfPlatform<P> : Network>(platform?: P): Observable<R[]>;
|
|
@@ -443,13 +471,14 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
443
471
|
"substrate-native"?: {
|
|
444
472
|
disable?: boolean | undefined;
|
|
445
473
|
} | undefined;
|
|
446
|
-
"substrate-assets"?: undefined;
|
|
447
|
-
"substrate-psp22"?: undefined;
|
|
474
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
475
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
448
476
|
"substrate-tokens"?: {
|
|
449
477
|
palletId?: string | undefined;
|
|
450
478
|
} | undefined;
|
|
451
|
-
"substrate-foreignassets"?: undefined;
|
|
452
|
-
"substrate-hydration"?: undefined;
|
|
479
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
480
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
481
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
453
482
|
} | undefined;
|
|
454
483
|
}>>;
|
|
455
484
|
getNetworkById$<P extends NetworkPlatform | undefined, R = P extends NetworkPlatform ? NetworkOfPlatform<P> : Network>(networkId: NetworkId, platform?: P): Observable<R | null>;
|
|
@@ -501,13 +530,14 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
501
530
|
"substrate-native"?: {
|
|
502
531
|
disable?: boolean | undefined;
|
|
503
532
|
} | undefined;
|
|
504
|
-
"substrate-assets"?: undefined;
|
|
505
|
-
"substrate-psp22"?: undefined;
|
|
533
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
534
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
506
535
|
"substrate-tokens"?: {
|
|
507
536
|
palletId?: string | undefined;
|
|
508
537
|
} | undefined;
|
|
509
|
-
"substrate-foreignassets"?: undefined;
|
|
510
|
-
"substrate-hydration"?: undefined;
|
|
538
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
539
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
540
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
511
541
|
} | undefined;
|
|
512
542
|
}>;
|
|
513
543
|
getNetworkByGenesisHash(genesisHash: `0x${string}`): Promise<{
|
|
@@ -557,13 +587,14 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
557
587
|
"substrate-native"?: {
|
|
558
588
|
disable?: boolean | undefined;
|
|
559
589
|
} | undefined;
|
|
560
|
-
"substrate-assets"?: undefined;
|
|
561
|
-
"substrate-psp22"?: undefined;
|
|
590
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
591
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
562
592
|
"substrate-tokens"?: {
|
|
563
593
|
palletId?: string | undefined;
|
|
564
594
|
} | undefined;
|
|
565
|
-
"substrate-foreignassets"?: undefined;
|
|
566
|
-
"substrate-hydration"?: undefined;
|
|
595
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
596
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
597
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
567
598
|
} | undefined;
|
|
568
599
|
}>;
|
|
569
600
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { Network, Token } from "../chaindata";
|
|
3
3
|
import { Chaindata, CustomChaindata } from "./schema";
|
|
4
|
-
export declare const getCombinedChaindata$: (default$: Observable<Chaindata>, custom$: Observable<CustomChaindata> | CustomChaindata | undefined) => Observable<Chaindata>;
|
|
4
|
+
export declare const getCombinedChaindata$: (default$: Observable<Chaindata>, custom$: Observable<CustomChaindata> | CustomChaindata | undefined, dynamicTokens$: Observable<Token[]>) => Observable<Chaindata>;
|
|
5
5
|
export declare const isNetworkCustom: (network: Network) => boolean;
|
|
6
6
|
export declare const isNetworkKnown: (network: Network) => boolean;
|
|
7
7
|
export declare const isTokenCustom: (token: Token) => boolean;
|