@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
|
@@ -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;
|
|
@@ -48,13 +48,14 @@ export declare const getDefaultChaindata$: (storage$: Subject<ChaindataStorage>)
|
|
|
48
48
|
"substrate-native"?: {
|
|
49
49
|
disable?: boolean | undefined;
|
|
50
50
|
} | undefined;
|
|
51
|
-
"substrate-assets"?: undefined;
|
|
52
|
-
"substrate-psp22"?: undefined;
|
|
51
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
52
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
53
53
|
"substrate-tokens"?: {
|
|
54
54
|
palletId?: string | undefined;
|
|
55
55
|
} | undefined;
|
|
56
|
-
"substrate-foreignassets"?: undefined;
|
|
57
|
-
"substrate-hydration"?: undefined;
|
|
56
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
57
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
58
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
58
59
|
} | undefined;
|
|
59
60
|
} | {
|
|
60
61
|
id: string;
|
|
@@ -90,9 +91,9 @@ export declare const getDefaultChaindata$: (storage$: Subject<ChaindataStorage>)
|
|
|
90
91
|
Multicall3?: `0x${string}` | undefined;
|
|
91
92
|
} | undefined;
|
|
92
93
|
balancesConfig?: {
|
|
93
|
-
"evm-native"?: undefined;
|
|
94
|
-
"evm-erc20"?: undefined;
|
|
95
|
-
"evm-uniswapv2"?: undefined;
|
|
94
|
+
"evm-native"?: Record<string, never> | undefined;
|
|
95
|
+
"evm-erc20"?: Record<string, never> | undefined;
|
|
96
|
+
"evm-uniswapv2"?: Record<string, never> | undefined;
|
|
96
97
|
} | undefined;
|
|
97
98
|
} | {
|
|
98
99
|
id: string;
|
|
@@ -116,8 +117,8 @@ export declare const getDefaultChaindata$: (storage$: Subject<ChaindataStorage>)
|
|
|
116
117
|
logo?: string | undefined;
|
|
117
118
|
themeColor?: string | undefined;
|
|
118
119
|
balancesConfig?: {
|
|
119
|
-
"sol-native"?: undefined;
|
|
120
|
-
"sol-spl"?: undefined;
|
|
120
|
+
"sol-native"?: Record<string, never> | undefined;
|
|
121
|
+
"sol-spl"?: Record<string, never> | undefined;
|
|
121
122
|
} | undefined;
|
|
122
123
|
})[];
|
|
123
124
|
tokens: ({
|
|
@@ -187,6 +188,23 @@ export declare const getDefaultChaindata$: (storage$: Subject<ChaindataStorage>)
|
|
|
187
188
|
noDiscovery?: boolean | undefined;
|
|
188
189
|
mirrorOf?: string | undefined;
|
|
189
190
|
isFrozen?: boolean | undefined;
|
|
191
|
+
} | {
|
|
192
|
+
id: string;
|
|
193
|
+
networkId: string;
|
|
194
|
+
decimals: number;
|
|
195
|
+
symbol: string;
|
|
196
|
+
type: "substrate-dtao";
|
|
197
|
+
platform: "polkadot";
|
|
198
|
+
netuid: number;
|
|
199
|
+
isTransferable: boolean;
|
|
200
|
+
isDefault?: boolean | undefined;
|
|
201
|
+
name?: string | undefined;
|
|
202
|
+
logo?: string | undefined;
|
|
203
|
+
coingeckoId?: string | undefined;
|
|
204
|
+
noDiscovery?: boolean | undefined;
|
|
205
|
+
mirrorOf?: string | undefined;
|
|
206
|
+
subnetName?: string | undefined;
|
|
207
|
+
hotkey?: string | undefined;
|
|
190
208
|
} | {
|
|
191
209
|
id: string;
|
|
192
210
|
networkId: string;
|
|
@@ -47,13 +47,14 @@ export declare const githubChaindata$: Observable<{
|
|
|
47
47
|
"substrate-native"?: {
|
|
48
48
|
disable?: boolean | undefined;
|
|
49
49
|
} | undefined;
|
|
50
|
-
"substrate-assets"?: undefined;
|
|
51
|
-
"substrate-psp22"?: undefined;
|
|
50
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
51
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
52
52
|
"substrate-tokens"?: {
|
|
53
53
|
palletId?: string | undefined;
|
|
54
54
|
} | undefined;
|
|
55
|
-
"substrate-foreignassets"?: undefined;
|
|
56
|
-
"substrate-hydration"?: undefined;
|
|
55
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
56
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
57
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
57
58
|
} | undefined;
|
|
58
59
|
} | {
|
|
59
60
|
id: string;
|
|
@@ -89,9 +90,9 @@ export declare const githubChaindata$: Observable<{
|
|
|
89
90
|
Multicall3?: `0x${string}` | undefined;
|
|
90
91
|
} | undefined;
|
|
91
92
|
balancesConfig?: {
|
|
92
|
-
"evm-native"?: undefined;
|
|
93
|
-
"evm-erc20"?: undefined;
|
|
94
|
-
"evm-uniswapv2"?: undefined;
|
|
93
|
+
"evm-native"?: Record<string, never> | undefined;
|
|
94
|
+
"evm-erc20"?: Record<string, never> | undefined;
|
|
95
|
+
"evm-uniswapv2"?: Record<string, never> | undefined;
|
|
95
96
|
} | undefined;
|
|
96
97
|
} | {
|
|
97
98
|
id: string;
|
|
@@ -115,8 +116,8 @@ export declare const githubChaindata$: Observable<{
|
|
|
115
116
|
logo?: string | undefined;
|
|
116
117
|
themeColor?: string | undefined;
|
|
117
118
|
balancesConfig?: {
|
|
118
|
-
"sol-native"?: undefined;
|
|
119
|
-
"sol-spl"?: undefined;
|
|
119
|
+
"sol-native"?: Record<string, never> | undefined;
|
|
120
|
+
"sol-spl"?: Record<string, never> | undefined;
|
|
120
121
|
} | undefined;
|
|
121
122
|
})[];
|
|
122
123
|
tokens: ({
|
|
@@ -186,6 +187,23 @@ export declare const githubChaindata$: Observable<{
|
|
|
186
187
|
noDiscovery?: boolean | undefined;
|
|
187
188
|
mirrorOf?: string | undefined;
|
|
188
189
|
isFrozen?: boolean | undefined;
|
|
190
|
+
} | {
|
|
191
|
+
id: string;
|
|
192
|
+
networkId: string;
|
|
193
|
+
decimals: number;
|
|
194
|
+
symbol: string;
|
|
195
|
+
type: "substrate-dtao";
|
|
196
|
+
platform: "polkadot";
|
|
197
|
+
netuid: number;
|
|
198
|
+
isTransferable: boolean;
|
|
199
|
+
isDefault?: boolean | undefined;
|
|
200
|
+
name?: string | undefined;
|
|
201
|
+
logo?: string | undefined;
|
|
202
|
+
coingeckoId?: string | undefined;
|
|
203
|
+
noDiscovery?: boolean | undefined;
|
|
204
|
+
mirrorOf?: string | undefined;
|
|
205
|
+
subnetName?: string | undefined;
|
|
206
|
+
hotkey?: string | undefined;
|
|
189
207
|
} | {
|
|
190
208
|
id: string;
|
|
191
209
|
networkId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CHAINDATA_CONSOLIDATED_URL = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/pub/
|
|
1
|
+
export declare const CHAINDATA_CONSOLIDATED_URL = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/pub/v7/chaindata.min.json";
|
|
2
2
|
export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
3
3
|
networks: ({
|
|
4
4
|
id: string;
|
|
@@ -47,13 +47,14 @@ export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
|
47
47
|
"substrate-native"?: {
|
|
48
48
|
disable?: boolean | undefined;
|
|
49
49
|
} | undefined;
|
|
50
|
-
"substrate-assets"?: undefined;
|
|
51
|
-
"substrate-psp22"?: undefined;
|
|
50
|
+
"substrate-assets"?: Record<string, never> | undefined;
|
|
51
|
+
"substrate-psp22"?: Record<string, never> | undefined;
|
|
52
52
|
"substrate-tokens"?: {
|
|
53
53
|
palletId?: string | undefined;
|
|
54
54
|
} | undefined;
|
|
55
|
-
"substrate-foreignassets"?: undefined;
|
|
56
|
-
"substrate-hydration"?: undefined;
|
|
55
|
+
"substrate-foreignassets"?: Record<string, never> | undefined;
|
|
56
|
+
"substrate-hydration"?: Record<string, never> | undefined;
|
|
57
|
+
"substrate-dtao"?: Record<string, never> | undefined;
|
|
57
58
|
} | undefined;
|
|
58
59
|
} | {
|
|
59
60
|
id: string;
|
|
@@ -89,9 +90,9 @@ export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
|
89
90
|
Multicall3?: `0x${string}` | undefined;
|
|
90
91
|
} | undefined;
|
|
91
92
|
balancesConfig?: {
|
|
92
|
-
"evm-native"?: undefined;
|
|
93
|
-
"evm-erc20"?: undefined;
|
|
94
|
-
"evm-uniswapv2"?: undefined;
|
|
93
|
+
"evm-native"?: Record<string, never> | undefined;
|
|
94
|
+
"evm-erc20"?: Record<string, never> | undefined;
|
|
95
|
+
"evm-uniswapv2"?: Record<string, never> | undefined;
|
|
95
96
|
} | undefined;
|
|
96
97
|
} | {
|
|
97
98
|
id: string;
|
|
@@ -115,8 +116,8 @@ export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
|
115
116
|
logo?: string | undefined;
|
|
116
117
|
themeColor?: string | undefined;
|
|
117
118
|
balancesConfig?: {
|
|
118
|
-
"sol-native"?: undefined;
|
|
119
|
-
"sol-spl"?: undefined;
|
|
119
|
+
"sol-native"?: Record<string, never> | undefined;
|
|
120
|
+
"sol-spl"?: Record<string, never> | undefined;
|
|
120
121
|
} | undefined;
|
|
121
122
|
})[];
|
|
122
123
|
tokens: ({
|
|
@@ -186,6 +187,23 @@ export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
|
186
187
|
noDiscovery?: boolean | undefined;
|
|
187
188
|
mirrorOf?: string | undefined;
|
|
188
189
|
isFrozen?: boolean | undefined;
|
|
190
|
+
} | {
|
|
191
|
+
id: string;
|
|
192
|
+
networkId: string;
|
|
193
|
+
decimals: number;
|
|
194
|
+
symbol: string;
|
|
195
|
+
type: "substrate-dtao";
|
|
196
|
+
platform: "polkadot";
|
|
197
|
+
netuid: number;
|
|
198
|
+
isTransferable: boolean;
|
|
199
|
+
isDefault?: boolean | undefined;
|
|
200
|
+
name?: string | undefined;
|
|
201
|
+
logo?: string | undefined;
|
|
202
|
+
coingeckoId?: string | undefined;
|
|
203
|
+
noDiscovery?: boolean | undefined;
|
|
204
|
+
mirrorOf?: string | undefined;
|
|
205
|
+
subnetName?: string | undefined;
|
|
206
|
+
hotkey?: string | undefined;
|
|
189
207
|
} | {
|
|
190
208
|
id: string;
|
|
191
209
|
networkId: string;
|
|
@@ -50,13 +50,14 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
50
50
|
"substrate-native": z.ZodOptional<z.ZodObject<{
|
|
51
51
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
52
52
|
}, z.core.$strip>>;
|
|
53
|
-
"substrate-assets": z.ZodOptional<z.
|
|
54
|
-
"substrate-psp22": z.ZodOptional<z.
|
|
53
|
+
"substrate-assets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
54
|
+
"substrate-psp22": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
55
55
|
"substrate-tokens": z.ZodOptional<z.ZodObject<{
|
|
56
56
|
palletId: z.ZodOptional<z.ZodString>;
|
|
57
57
|
}, z.core.$strip>>;
|
|
58
|
-
"substrate-foreignassets": z.ZodOptional<z.
|
|
59
|
-
"substrate-hydration": z.ZodOptional<z.
|
|
58
|
+
"substrate-foreignassets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
59
|
+
"substrate-hydration": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
60
|
+
"substrate-dtao": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
60
61
|
}, z.core.$strict>>;
|
|
61
62
|
}, z.core.$strict>, z.ZodObject<{
|
|
62
63
|
id: z.ZodString;
|
|
@@ -95,9 +96,9 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
95
96
|
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
96
97
|
}, z.core.$strict>>;
|
|
97
98
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
98
|
-
"evm-native": z.ZodOptional<z.
|
|
99
|
-
"evm-erc20": z.ZodOptional<z.
|
|
100
|
-
"evm-uniswapv2": z.ZodOptional<z.
|
|
99
|
+
"evm-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
100
|
+
"evm-erc20": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
101
|
+
"evm-uniswapv2": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
101
102
|
}, z.core.$strict>>;
|
|
102
103
|
}, z.core.$strict>, z.ZodObject<{
|
|
103
104
|
id: z.ZodString;
|
|
@@ -121,8 +122,8 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
121
122
|
genesisHash: z.ZodString;
|
|
122
123
|
rpcs: z.ZodArray<z.ZodURL>;
|
|
123
124
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
124
|
-
"sol-native": z.ZodOptional<z.
|
|
125
|
-
"sol-spl": z.ZodOptional<z.
|
|
125
|
+
"sol-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
126
|
+
"sol-spl": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
126
127
|
}, z.core.$strict>>;
|
|
127
128
|
}, z.core.$strict>]>>;
|
|
128
129
|
tokens: z.ZodArray<z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -192,6 +193,23 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
192
193
|
isFrozen: z.ZodOptional<z.ZodBoolean>;
|
|
193
194
|
isSufficient: z.ZodBoolean;
|
|
194
195
|
existentialDeposit: z.ZodString;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
networkId: z.ZodString;
|
|
199
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
decimals: z.ZodInt;
|
|
201
|
+
symbol: z.ZodString;
|
|
202
|
+
name: z.ZodOptional<z.ZodString>;
|
|
203
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
204
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
205
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
207
|
+
type: z.ZodLiteral<"substrate-dtao">;
|
|
208
|
+
platform: z.ZodLiteral<"polkadot">;
|
|
209
|
+
netuid: z.ZodNumber;
|
|
210
|
+
subnetName: z.ZodOptional<z.ZodString>;
|
|
211
|
+
hotkey: z.ZodOptional<z.ZodString>;
|
|
212
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
195
213
|
}, z.core.$strict>, z.ZodObject<{
|
|
196
214
|
id: z.ZodString;
|
|
197
215
|
networkId: z.ZodString;
|
|
@@ -367,6 +385,23 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
367
385
|
noDiscovery?: boolean | undefined;
|
|
368
386
|
mirrorOf?: string | undefined;
|
|
369
387
|
isFrozen?: boolean | undefined;
|
|
388
|
+
} | {
|
|
389
|
+
id: string;
|
|
390
|
+
networkId: string;
|
|
391
|
+
decimals: number;
|
|
392
|
+
symbol: string;
|
|
393
|
+
type: "substrate-dtao";
|
|
394
|
+
platform: "polkadot";
|
|
395
|
+
netuid: number;
|
|
396
|
+
isTransferable: boolean;
|
|
397
|
+
isDefault?: boolean | undefined;
|
|
398
|
+
name?: string | undefined;
|
|
399
|
+
logo?: string | undefined;
|
|
400
|
+
coingeckoId?: string | undefined;
|
|
401
|
+
noDiscovery?: boolean | undefined;
|
|
402
|
+
mirrorOf?: string | undefined;
|
|
403
|
+
subnetName?: string | undefined;
|
|
404
|
+
hotkey?: string | undefined;
|
|
370
405
|
} | {
|
|
371
406
|
id: string;
|
|
372
407
|
networkId: string;
|
|
@@ -538,6 +573,23 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
538
573
|
noDiscovery?: boolean | undefined;
|
|
539
574
|
mirrorOf?: string | undefined;
|
|
540
575
|
isFrozen?: boolean | undefined;
|
|
576
|
+
} | {
|
|
577
|
+
id: string;
|
|
578
|
+
networkId: string;
|
|
579
|
+
decimals: number;
|
|
580
|
+
symbol: string;
|
|
581
|
+
type: "substrate-dtao";
|
|
582
|
+
platform: "polkadot";
|
|
583
|
+
netuid: number;
|
|
584
|
+
isTransferable: boolean;
|
|
585
|
+
isDefault?: boolean | undefined;
|
|
586
|
+
name?: string | undefined;
|
|
587
|
+
logo?: string | undefined;
|
|
588
|
+
coingeckoId?: string | undefined;
|
|
589
|
+
noDiscovery?: boolean | undefined;
|
|
590
|
+
mirrorOf?: string | undefined;
|
|
591
|
+
subnetName?: string | undefined;
|
|
592
|
+
hotkey?: string | undefined;
|
|
541
593
|
} | {
|
|
542
594
|
id: string;
|
|
543
595
|
networkId: string;
|
|
@@ -705,13 +757,14 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
705
757
|
"substrate-native": z.ZodOptional<z.ZodObject<{
|
|
706
758
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
707
759
|
}, z.core.$strip>>;
|
|
708
|
-
"substrate-assets": z.ZodOptional<z.
|
|
709
|
-
"substrate-psp22": z.ZodOptional<z.
|
|
760
|
+
"substrate-assets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
761
|
+
"substrate-psp22": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
710
762
|
"substrate-tokens": z.ZodOptional<z.ZodObject<{
|
|
711
763
|
palletId: z.ZodOptional<z.ZodString>;
|
|
712
764
|
}, z.core.$strip>>;
|
|
713
|
-
"substrate-foreignassets": z.ZodOptional<z.
|
|
714
|
-
"substrate-hydration": z.ZodOptional<z.
|
|
765
|
+
"substrate-foreignassets": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
766
|
+
"substrate-hydration": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
767
|
+
"substrate-dtao": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
715
768
|
}, z.core.$strict>>;
|
|
716
769
|
}, z.core.$strict>, z.ZodObject<{
|
|
717
770
|
id: z.ZodString;
|
|
@@ -750,9 +803,9 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
750
803
|
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
751
804
|
}, z.core.$strict>>;
|
|
752
805
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
753
|
-
"evm-native": z.ZodOptional<z.
|
|
754
|
-
"evm-erc20": z.ZodOptional<z.
|
|
755
|
-
"evm-uniswapv2": z.ZodOptional<z.
|
|
806
|
+
"evm-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
807
|
+
"evm-erc20": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
808
|
+
"evm-uniswapv2": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
756
809
|
}, z.core.$strict>>;
|
|
757
810
|
}, z.core.$strict>, z.ZodObject<{
|
|
758
811
|
id: z.ZodString;
|
|
@@ -776,8 +829,8 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
776
829
|
genesisHash: z.ZodString;
|
|
777
830
|
rpcs: z.ZodArray<z.ZodURL>;
|
|
778
831
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
779
|
-
"sol-native": z.ZodOptional<z.
|
|
780
|
-
"sol-spl": z.ZodOptional<z.
|
|
832
|
+
"sol-native": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
833
|
+
"sol-spl": z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
781
834
|
}, z.core.$strict>>;
|
|
782
835
|
}, z.core.$strict>]>>>;
|
|
783
836
|
tokens: z.ZodArray<z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -847,6 +900,23 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
847
900
|
isFrozen: z.ZodOptional<z.ZodBoolean>;
|
|
848
901
|
isSufficient: z.ZodBoolean;
|
|
849
902
|
existentialDeposit: z.ZodString;
|
|
903
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
904
|
+
id: z.ZodString;
|
|
905
|
+
networkId: z.ZodString;
|
|
906
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
907
|
+
decimals: z.ZodInt;
|
|
908
|
+
symbol: z.ZodString;
|
|
909
|
+
name: z.ZodOptional<z.ZodString>;
|
|
910
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
911
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
912
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
913
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
914
|
+
type: z.ZodLiteral<"substrate-dtao">;
|
|
915
|
+
platform: z.ZodLiteral<"polkadot">;
|
|
916
|
+
netuid: z.ZodNumber;
|
|
917
|
+
subnetName: z.ZodOptional<z.ZodString>;
|
|
918
|
+
hotkey: z.ZodOptional<z.ZodString>;
|
|
919
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
850
920
|
}, z.core.$strict>, z.ZodObject<{
|
|
851
921
|
id: z.ZodString;
|
|
852
922
|
networkId: z.ZodString;
|
|
@@ -1022,6 +1092,23 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
1022
1092
|
noDiscovery?: boolean | undefined;
|
|
1023
1093
|
mirrorOf?: string | undefined;
|
|
1024
1094
|
isFrozen?: boolean | undefined;
|
|
1095
|
+
} | {
|
|
1096
|
+
id: string;
|
|
1097
|
+
networkId: string;
|
|
1098
|
+
decimals: number;
|
|
1099
|
+
symbol: string;
|
|
1100
|
+
type: "substrate-dtao";
|
|
1101
|
+
platform: "polkadot";
|
|
1102
|
+
netuid: number;
|
|
1103
|
+
isTransferable: boolean;
|
|
1104
|
+
isDefault?: boolean | undefined;
|
|
1105
|
+
name?: string | undefined;
|
|
1106
|
+
logo?: string | undefined;
|
|
1107
|
+
coingeckoId?: string | undefined;
|
|
1108
|
+
noDiscovery?: boolean | undefined;
|
|
1109
|
+
mirrorOf?: string | undefined;
|
|
1110
|
+
subnetName?: string | undefined;
|
|
1111
|
+
hotkey?: string | undefined;
|
|
1025
1112
|
} | {
|
|
1026
1113
|
id: string;
|
|
1027
1114
|
networkId: string;
|
|
@@ -1193,6 +1280,23 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
1193
1280
|
noDiscovery?: boolean | undefined;
|
|
1194
1281
|
mirrorOf?: string | undefined;
|
|
1195
1282
|
isFrozen?: boolean | undefined;
|
|
1283
|
+
} | {
|
|
1284
|
+
id: string;
|
|
1285
|
+
networkId: string;
|
|
1286
|
+
decimals: number;
|
|
1287
|
+
symbol: string;
|
|
1288
|
+
type: "substrate-dtao";
|
|
1289
|
+
platform: "polkadot";
|
|
1290
|
+
netuid: number;
|
|
1291
|
+
isTransferable: boolean;
|
|
1292
|
+
isDefault?: boolean | undefined;
|
|
1293
|
+
name?: string | undefined;
|
|
1294
|
+
logo?: string | undefined;
|
|
1295
|
+
coingeckoId?: string | undefined;
|
|
1296
|
+
noDiscovery?: boolean | undefined;
|
|
1297
|
+
mirrorOf?: string | undefined;
|
|
1298
|
+
subnetName?: string | undefined;
|
|
1299
|
+
hotkey?: string | undefined;
|
|
1196
1300
|
} | {
|
|
1197
1301
|
id: string;
|
|
1198
1302
|
networkId: string;
|