@talismn/chaindata-provider 1.0.2 → 1.1.1
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/index.d.ts +1 -0
- package/dist/declarations/src/chaindata/networks/Network.d.ts +25 -0
- package/dist/declarations/src/chaindata/networks/SolNetwork.d.ts +35 -0
- package/dist/declarations/src/chaindata/networks/index.d.ts +1 -0
- package/dist/declarations/src/chaindata/shared/SolanaAddress.d.ts +3 -0
- package/dist/declarations/src/chaindata/shared/index.d.ts +1 -0
- package/dist/declarations/src/chaindata/tokens/SolNativeToken.d.ts +28 -0
- package/dist/declarations/src/chaindata/tokens/SolSplToken.d.ts +30 -0
- package/dist/declarations/src/chaindata/tokens/Token.d.ts +113 -1
- package/dist/declarations/src/chaindata/tokens/index.d.ts +2 -0
- package/dist/declarations/src/chaindata/utils.d.ts +44 -0
- package/dist/declarations/src/constants.d.ts +2 -2
- package/dist/declarations/src/getBlockExplorerUrls.d.ts +24 -0
- package/dist/declarations/src/index.d.ts +8 -3
- package/dist/declarations/src/provider/ChaindataProvider.d.ts +75 -11
- package/dist/declarations/src/state/combinedChaindata.d.ts +11 -0
- package/dist/declarations/src/state/defaultChaindata.d.ts +55 -2
- package/dist/declarations/src/state/githubChaindata.d.ts +303 -0
- package/dist/declarations/src/state/net.d.ts +53 -1
- package/dist/declarations/src/state/oldDb.d.ts +1 -0
- package/dist/declarations/src/state/schema.d.ts +212 -0
- package/dist/talismn-chaindata-provider.cjs.dev.js +990 -747
- package/dist/talismn-chaindata-provider.cjs.prod.js +990 -747
- package/dist/talismn-chaindata-provider.esm.js +978 -751
- package/package.json +7 -7
- package/dist/declarations/src/legacy/index.d.ts +0 -3
- package/dist/declarations/src/provider/index.d.ts +0 -2
- package/dist/declarations/src/state/db.d.ts +0 -11
- package/dist/declarations/src/state/index.d.ts +0 -2
- package/dist/declarations/src/upgrades/index.d.ts +0 -1
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export declare const githubChaindata$: Observable<{
|
|
3
|
+
networks: ({
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
nativeTokenId: string;
|
|
7
|
+
nativeCurrency: {
|
|
8
|
+
decimals: number;
|
|
9
|
+
symbol: string;
|
|
10
|
+
name: string;
|
|
11
|
+
coingeckoId?: string | undefined;
|
|
12
|
+
mirrorOf?: string | undefined;
|
|
13
|
+
logo?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
blockExplorerUrls: string[];
|
|
16
|
+
genesisHash: `0x${string}`;
|
|
17
|
+
platform: "polkadot";
|
|
18
|
+
chainName: string;
|
|
19
|
+
specName: string;
|
|
20
|
+
specVersion: number;
|
|
21
|
+
account: "secp256k1" | "*25519";
|
|
22
|
+
prefix: number;
|
|
23
|
+
rpcs: string[];
|
|
24
|
+
topology: {
|
|
25
|
+
type: "standalone";
|
|
26
|
+
} | {
|
|
27
|
+
type: "relay";
|
|
28
|
+
} | {
|
|
29
|
+
type: "parachain";
|
|
30
|
+
relayId: string;
|
|
31
|
+
paraId: number;
|
|
32
|
+
};
|
|
33
|
+
isTestnet?: boolean | undefined;
|
|
34
|
+
isDefault?: boolean | undefined;
|
|
35
|
+
forceScan?: boolean | undefined;
|
|
36
|
+
logo?: string | undefined;
|
|
37
|
+
themeColor?: string | undefined;
|
|
38
|
+
chainspecQrUrl?: string | undefined;
|
|
39
|
+
latestMetadataQrUrl?: string | undefined;
|
|
40
|
+
oldPrefix?: number | undefined;
|
|
41
|
+
registryTypes?: any;
|
|
42
|
+
signedExtensions?: any;
|
|
43
|
+
hasCheckMetadataHash?: boolean | undefined;
|
|
44
|
+
hasExtrinsicSignatureTypePrefix?: boolean | undefined;
|
|
45
|
+
isUnknownFeeToken?: boolean | undefined;
|
|
46
|
+
balancesConfig?: {
|
|
47
|
+
"substrate-native"?: {
|
|
48
|
+
disable?: boolean | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
"substrate-assets"?: undefined;
|
|
51
|
+
"substrate-psp22"?: undefined;
|
|
52
|
+
"substrate-tokens"?: {
|
|
53
|
+
palletId?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
"substrate-foreignassets"?: undefined;
|
|
56
|
+
"substrate-hydration"?: undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
nativeTokenId: string;
|
|
62
|
+
nativeCurrency: {
|
|
63
|
+
decimals: number;
|
|
64
|
+
symbol: string;
|
|
65
|
+
name: string;
|
|
66
|
+
coingeckoId?: string | undefined;
|
|
67
|
+
mirrorOf?: string | undefined;
|
|
68
|
+
logo?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
blockExplorerUrls: string[];
|
|
71
|
+
platform: "ethereum";
|
|
72
|
+
rpcs: string[];
|
|
73
|
+
isTestnet?: boolean | undefined;
|
|
74
|
+
isDefault?: boolean | undefined;
|
|
75
|
+
forceScan?: boolean | undefined;
|
|
76
|
+
logo?: string | undefined;
|
|
77
|
+
themeColor?: string | undefined;
|
|
78
|
+
substrateChainId?: string | undefined;
|
|
79
|
+
preserveGasEstimate?: boolean | undefined;
|
|
80
|
+
feeType?: "legacy" | "eip-1559" | undefined;
|
|
81
|
+
l2FeeType?: {
|
|
82
|
+
type: "op-stack";
|
|
83
|
+
} | {
|
|
84
|
+
type: "scroll";
|
|
85
|
+
l1GasPriceOracle: `0x${string}`;
|
|
86
|
+
} | undefined;
|
|
87
|
+
contracts?: {
|
|
88
|
+
Erc20Aggregator?: `0x${string}` | undefined;
|
|
89
|
+
Multicall3?: `0x${string}` | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
balancesConfig?: {
|
|
92
|
+
"evm-native"?: undefined;
|
|
93
|
+
"evm-erc20"?: undefined;
|
|
94
|
+
"evm-uniswapv2"?: undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
nativeTokenId: string;
|
|
100
|
+
nativeCurrency: {
|
|
101
|
+
decimals: number;
|
|
102
|
+
symbol: string;
|
|
103
|
+
name: string;
|
|
104
|
+
coingeckoId?: string | undefined;
|
|
105
|
+
mirrorOf?: string | undefined;
|
|
106
|
+
logo?: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
blockExplorerUrls: string[];
|
|
109
|
+
platform: "solana";
|
|
110
|
+
genesisHash: string;
|
|
111
|
+
rpcs: string[];
|
|
112
|
+
isTestnet?: boolean | undefined;
|
|
113
|
+
isDefault?: boolean | undefined;
|
|
114
|
+
forceScan?: boolean | undefined;
|
|
115
|
+
logo?: string | undefined;
|
|
116
|
+
themeColor?: string | undefined;
|
|
117
|
+
balancesConfig?: {
|
|
118
|
+
"sol-native"?: undefined;
|
|
119
|
+
"sol-spl"?: undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
})[];
|
|
122
|
+
tokens: ({
|
|
123
|
+
id: string;
|
|
124
|
+
networkId: string;
|
|
125
|
+
decimals: number;
|
|
126
|
+
symbol: string;
|
|
127
|
+
type: "evm-erc20";
|
|
128
|
+
platform: "ethereum";
|
|
129
|
+
contractAddress: `0x${string}`;
|
|
130
|
+
isDefault?: boolean | undefined;
|
|
131
|
+
name?: string | undefined;
|
|
132
|
+
logo?: string | undefined;
|
|
133
|
+
coingeckoId?: string | undefined;
|
|
134
|
+
noDiscovery?: boolean | undefined;
|
|
135
|
+
mirrorOf?: string | undefined;
|
|
136
|
+
} | {
|
|
137
|
+
id: string;
|
|
138
|
+
networkId: string;
|
|
139
|
+
decimals: number;
|
|
140
|
+
symbol: string;
|
|
141
|
+
type: "evm-native";
|
|
142
|
+
platform: "ethereum";
|
|
143
|
+
isDefault?: boolean | undefined;
|
|
144
|
+
name?: string | undefined;
|
|
145
|
+
logo?: string | undefined;
|
|
146
|
+
coingeckoId?: string | undefined;
|
|
147
|
+
noDiscovery?: boolean | undefined;
|
|
148
|
+
mirrorOf?: string | undefined;
|
|
149
|
+
} | {
|
|
150
|
+
id: string;
|
|
151
|
+
networkId: string;
|
|
152
|
+
decimals: number;
|
|
153
|
+
symbol: string;
|
|
154
|
+
type: "evm-uniswapv2";
|
|
155
|
+
platform: "ethereum";
|
|
156
|
+
contractAddress: `0x${string}`;
|
|
157
|
+
symbol0: string;
|
|
158
|
+
symbol1: string;
|
|
159
|
+
decimals0: number;
|
|
160
|
+
decimals1: number;
|
|
161
|
+
tokenAddress0: `0x${string}`;
|
|
162
|
+
tokenAddress1: `0x${string}`;
|
|
163
|
+
isDefault?: boolean | undefined;
|
|
164
|
+
name?: string | undefined;
|
|
165
|
+
logo?: string | undefined;
|
|
166
|
+
coingeckoId?: string | undefined;
|
|
167
|
+
noDiscovery?: boolean | undefined;
|
|
168
|
+
mirrorOf?: string | undefined;
|
|
169
|
+
isCustom?: boolean | undefined;
|
|
170
|
+
coingeckoId0?: string | undefined;
|
|
171
|
+
coingeckoId1?: string | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
id: string;
|
|
174
|
+
networkId: string;
|
|
175
|
+
decimals: number;
|
|
176
|
+
symbol: string;
|
|
177
|
+
type: "substrate-assets";
|
|
178
|
+
platform: "polkadot";
|
|
179
|
+
assetId: string;
|
|
180
|
+
isSufficient: boolean;
|
|
181
|
+
existentialDeposit: string;
|
|
182
|
+
isDefault?: boolean | undefined;
|
|
183
|
+
name?: string | undefined;
|
|
184
|
+
logo?: string | undefined;
|
|
185
|
+
coingeckoId?: string | undefined;
|
|
186
|
+
noDiscovery?: boolean | undefined;
|
|
187
|
+
mirrorOf?: string | undefined;
|
|
188
|
+
isFrozen?: boolean | undefined;
|
|
189
|
+
} | {
|
|
190
|
+
id: string;
|
|
191
|
+
networkId: string;
|
|
192
|
+
decimals: number;
|
|
193
|
+
symbol: string;
|
|
194
|
+
type: "substrate-foreignassets";
|
|
195
|
+
platform: "polkadot";
|
|
196
|
+
onChainId: string;
|
|
197
|
+
isSufficient: boolean;
|
|
198
|
+
existentialDeposit: string;
|
|
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
|
+
isFrozen?: boolean | undefined;
|
|
206
|
+
} | {
|
|
207
|
+
id: string;
|
|
208
|
+
networkId: string;
|
|
209
|
+
decimals: number;
|
|
210
|
+
symbol: string;
|
|
211
|
+
type: "substrate-native";
|
|
212
|
+
platform: "polkadot";
|
|
213
|
+
existentialDeposit: string;
|
|
214
|
+
isDefault?: boolean | undefined;
|
|
215
|
+
name?: string | undefined;
|
|
216
|
+
logo?: string | undefined;
|
|
217
|
+
coingeckoId?: string | undefined;
|
|
218
|
+
noDiscovery?: boolean | undefined;
|
|
219
|
+
mirrorOf?: string | undefined;
|
|
220
|
+
} | {
|
|
221
|
+
id: string;
|
|
222
|
+
networkId: string;
|
|
223
|
+
decimals: number;
|
|
224
|
+
symbol: string;
|
|
225
|
+
type: "substrate-psp22";
|
|
226
|
+
platform: "polkadot";
|
|
227
|
+
contractAddress: string;
|
|
228
|
+
isDefault?: boolean | undefined;
|
|
229
|
+
name?: string | undefined;
|
|
230
|
+
logo?: string | undefined;
|
|
231
|
+
coingeckoId?: string | undefined;
|
|
232
|
+
noDiscovery?: boolean | undefined;
|
|
233
|
+
mirrorOf?: string | undefined;
|
|
234
|
+
} | {
|
|
235
|
+
id: string;
|
|
236
|
+
networkId: string;
|
|
237
|
+
decimals: number;
|
|
238
|
+
symbol: string;
|
|
239
|
+
type: "substrate-tokens";
|
|
240
|
+
platform: "polkadot";
|
|
241
|
+
onChainId: string | number;
|
|
242
|
+
existentialDeposit: string;
|
|
243
|
+
isDefault?: boolean | undefined;
|
|
244
|
+
name?: string | undefined;
|
|
245
|
+
logo?: string | undefined;
|
|
246
|
+
coingeckoId?: string | undefined;
|
|
247
|
+
noDiscovery?: boolean | undefined;
|
|
248
|
+
mirrorOf?: string | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
id: string;
|
|
251
|
+
networkId: string;
|
|
252
|
+
decimals: number;
|
|
253
|
+
symbol: string;
|
|
254
|
+
type: "substrate-hydration";
|
|
255
|
+
platform: "polkadot";
|
|
256
|
+
onChainId: number;
|
|
257
|
+
assetType: "Token" | "Erc20" | "External";
|
|
258
|
+
isSufficient: boolean;
|
|
259
|
+
existentialDeposit: string;
|
|
260
|
+
isDefault?: boolean | undefined;
|
|
261
|
+
name?: string | undefined;
|
|
262
|
+
logo?: string | undefined;
|
|
263
|
+
coingeckoId?: string | undefined;
|
|
264
|
+
noDiscovery?: boolean | undefined;
|
|
265
|
+
mirrorOf?: string | undefined;
|
|
266
|
+
} | {
|
|
267
|
+
id: string;
|
|
268
|
+
networkId: string;
|
|
269
|
+
decimals: number;
|
|
270
|
+
symbol: string;
|
|
271
|
+
type: "sol-native";
|
|
272
|
+
platform: "solana";
|
|
273
|
+
isDefault?: boolean | undefined;
|
|
274
|
+
name?: string | undefined;
|
|
275
|
+
logo?: string | undefined;
|
|
276
|
+
coingeckoId?: string | undefined;
|
|
277
|
+
noDiscovery?: boolean | undefined;
|
|
278
|
+
mirrorOf?: string | undefined;
|
|
279
|
+
} | {
|
|
280
|
+
id: string;
|
|
281
|
+
networkId: string;
|
|
282
|
+
decimals: number;
|
|
283
|
+
symbol: string;
|
|
284
|
+
type: "sol-spl";
|
|
285
|
+
platform: "solana";
|
|
286
|
+
mintAddress: string;
|
|
287
|
+
isDefault?: boolean | undefined;
|
|
288
|
+
name?: string | undefined;
|
|
289
|
+
logo?: string | undefined;
|
|
290
|
+
coingeckoId?: string | undefined;
|
|
291
|
+
noDiscovery?: boolean | undefined;
|
|
292
|
+
mirrorOf?: string | undefined;
|
|
293
|
+
})[];
|
|
294
|
+
miniMetadatas: {
|
|
295
|
+
id: string;
|
|
296
|
+
source: string;
|
|
297
|
+
chainId: string;
|
|
298
|
+
specVersion: number;
|
|
299
|
+
version: string;
|
|
300
|
+
data: `0x${string}` | null;
|
|
301
|
+
extra: any;
|
|
302
|
+
}[];
|
|
303
|
+
}>;
|
|
@@ -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/v5/chaindata.min.json";
|
|
2
2
|
export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
3
3
|
networks: ({
|
|
4
4
|
id: string;
|
|
@@ -93,6 +93,31 @@ export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
|
93
93
|
"evm-erc20"?: undefined;
|
|
94
94
|
"evm-uniswapv2"?: undefined;
|
|
95
95
|
} | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
nativeTokenId: string;
|
|
100
|
+
nativeCurrency: {
|
|
101
|
+
decimals: number;
|
|
102
|
+
symbol: string;
|
|
103
|
+
name: string;
|
|
104
|
+
coingeckoId?: string | undefined;
|
|
105
|
+
mirrorOf?: string | undefined;
|
|
106
|
+
logo?: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
blockExplorerUrls: string[];
|
|
109
|
+
platform: "solana";
|
|
110
|
+
genesisHash: string;
|
|
111
|
+
rpcs: string[];
|
|
112
|
+
isTestnet?: boolean | undefined;
|
|
113
|
+
isDefault?: boolean | undefined;
|
|
114
|
+
forceScan?: boolean | undefined;
|
|
115
|
+
logo?: string | undefined;
|
|
116
|
+
themeColor?: string | undefined;
|
|
117
|
+
balancesConfig?: {
|
|
118
|
+
"sol-native"?: undefined;
|
|
119
|
+
"sol-spl"?: undefined;
|
|
120
|
+
} | undefined;
|
|
96
121
|
})[];
|
|
97
122
|
tokens: ({
|
|
98
123
|
id: string;
|
|
@@ -238,6 +263,33 @@ export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
|
238
263
|
coingeckoId?: string | undefined;
|
|
239
264
|
noDiscovery?: boolean | undefined;
|
|
240
265
|
mirrorOf?: string | undefined;
|
|
266
|
+
} | {
|
|
267
|
+
id: string;
|
|
268
|
+
networkId: string;
|
|
269
|
+
decimals: number;
|
|
270
|
+
symbol: string;
|
|
271
|
+
type: "sol-native";
|
|
272
|
+
platform: "solana";
|
|
273
|
+
isDefault?: boolean | undefined;
|
|
274
|
+
name?: string | undefined;
|
|
275
|
+
logo?: string | undefined;
|
|
276
|
+
coingeckoId?: string | undefined;
|
|
277
|
+
noDiscovery?: boolean | undefined;
|
|
278
|
+
mirrorOf?: string | undefined;
|
|
279
|
+
} | {
|
|
280
|
+
id: string;
|
|
281
|
+
networkId: string;
|
|
282
|
+
decimals: number;
|
|
283
|
+
symbol: string;
|
|
284
|
+
type: "sol-spl";
|
|
285
|
+
platform: "solana";
|
|
286
|
+
mintAddress: string;
|
|
287
|
+
isDefault?: boolean | undefined;
|
|
288
|
+
name?: string | undefined;
|
|
289
|
+
logo?: string | undefined;
|
|
290
|
+
coingeckoId?: string | undefined;
|
|
291
|
+
noDiscovery?: boolean | undefined;
|
|
292
|
+
mirrorOf?: string | undefined;
|
|
241
293
|
})[];
|
|
242
294
|
miniMetadatas: {
|
|
243
295
|
id: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tryToDeleteOldChaindataDb: () => void;
|
|
@@ -99,6 +99,31 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
99
99
|
"evm-erc20": z.ZodOptional<z.ZodUndefined>;
|
|
100
100
|
"evm-uniswapv2": z.ZodOptional<z.ZodUndefined>;
|
|
101
101
|
}, z.core.$strict>>;
|
|
102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
isTestnet: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
forceScan: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
109
|
+
nativeTokenId: z.ZodString;
|
|
110
|
+
nativeCurrency: z.ZodObject<{
|
|
111
|
+
decimals: z.ZodUInt32;
|
|
112
|
+
symbol: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
115
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
116
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
themeColor: z.ZodOptional<z.ZodString>;
|
|
119
|
+
blockExplorerUrls: z.ZodDefault<z.ZodArray<z.ZodURL>>;
|
|
120
|
+
platform: z.ZodLiteral<"solana">;
|
|
121
|
+
genesisHash: z.ZodString;
|
|
122
|
+
rpcs: z.ZodArray<z.ZodURL>;
|
|
123
|
+
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
"sol-native": z.ZodOptional<z.ZodUndefined>;
|
|
125
|
+
"sol-spl": z.ZodOptional<z.ZodUndefined>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
102
127
|
}, z.core.$strict>]>>;
|
|
103
128
|
tokens: z.ZodArray<z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
104
129
|
id: z.ZodString;
|
|
@@ -248,6 +273,33 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
248
273
|
}>;
|
|
249
274
|
isSufficient: z.ZodBoolean;
|
|
250
275
|
existentialDeposit: z.ZodString;
|
|
276
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
277
|
+
id: z.ZodString;
|
|
278
|
+
networkId: z.ZodString;
|
|
279
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
280
|
+
decimals: z.ZodInt;
|
|
281
|
+
symbol: z.ZodString;
|
|
282
|
+
name: z.ZodOptional<z.ZodString>;
|
|
283
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
284
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
285
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
287
|
+
type: z.ZodLiteral<"sol-native">;
|
|
288
|
+
platform: z.ZodLiteral<"solana">;
|
|
289
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
290
|
+
id: z.ZodString;
|
|
291
|
+
networkId: z.ZodString;
|
|
292
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
decimals: z.ZodInt;
|
|
294
|
+
symbol: z.ZodString;
|
|
295
|
+
name: z.ZodOptional<z.ZodString>;
|
|
296
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
297
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
298
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
300
|
+
type: z.ZodLiteral<"sol-spl">;
|
|
301
|
+
platform: z.ZodLiteral<"solana">;
|
|
302
|
+
mintAddress: z.ZodString;
|
|
251
303
|
}, z.core.$strict>]>, z.ZodTransform<{
|
|
252
304
|
id: string;
|
|
253
305
|
networkId: string;
|
|
@@ -392,6 +444,33 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
392
444
|
coingeckoId?: string | undefined;
|
|
393
445
|
noDiscovery?: boolean | undefined;
|
|
394
446
|
mirrorOf?: string | undefined;
|
|
447
|
+
} | {
|
|
448
|
+
id: string;
|
|
449
|
+
networkId: string;
|
|
450
|
+
decimals: number;
|
|
451
|
+
symbol: string;
|
|
452
|
+
type: "sol-native";
|
|
453
|
+
platform: "solana";
|
|
454
|
+
isDefault?: boolean | undefined;
|
|
455
|
+
name?: string | undefined;
|
|
456
|
+
logo?: string | undefined;
|
|
457
|
+
coingeckoId?: string | undefined;
|
|
458
|
+
noDiscovery?: boolean | undefined;
|
|
459
|
+
mirrorOf?: string | undefined;
|
|
460
|
+
} | {
|
|
461
|
+
id: string;
|
|
462
|
+
networkId: string;
|
|
463
|
+
decimals: number;
|
|
464
|
+
symbol: string;
|
|
465
|
+
type: "sol-spl";
|
|
466
|
+
platform: "solana";
|
|
467
|
+
mintAddress: string;
|
|
468
|
+
isDefault?: boolean | undefined;
|
|
469
|
+
name?: string | undefined;
|
|
470
|
+
logo?: string | undefined;
|
|
471
|
+
coingeckoId?: string | undefined;
|
|
472
|
+
noDiscovery?: boolean | undefined;
|
|
473
|
+
mirrorOf?: string | undefined;
|
|
395
474
|
}, {
|
|
396
475
|
id: string;
|
|
397
476
|
networkId: string;
|
|
@@ -536,6 +615,33 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
536
615
|
coingeckoId?: string | undefined;
|
|
537
616
|
noDiscovery?: boolean | undefined;
|
|
538
617
|
mirrorOf?: string | undefined;
|
|
618
|
+
} | {
|
|
619
|
+
id: string;
|
|
620
|
+
networkId: string;
|
|
621
|
+
decimals: number;
|
|
622
|
+
symbol: string;
|
|
623
|
+
type: "sol-native";
|
|
624
|
+
platform: "solana";
|
|
625
|
+
isDefault?: boolean | undefined;
|
|
626
|
+
name?: string | undefined;
|
|
627
|
+
logo?: string | undefined;
|
|
628
|
+
coingeckoId?: string | undefined;
|
|
629
|
+
noDiscovery?: boolean | undefined;
|
|
630
|
+
mirrorOf?: string | undefined;
|
|
631
|
+
} | {
|
|
632
|
+
id: string;
|
|
633
|
+
networkId: string;
|
|
634
|
+
decimals: number;
|
|
635
|
+
symbol: string;
|
|
636
|
+
type: "sol-spl";
|
|
637
|
+
platform: "solana";
|
|
638
|
+
mintAddress: string;
|
|
639
|
+
isDefault?: boolean | undefined;
|
|
640
|
+
name?: string | undefined;
|
|
641
|
+
logo?: string | undefined;
|
|
642
|
+
coingeckoId?: string | undefined;
|
|
643
|
+
noDiscovery?: boolean | undefined;
|
|
644
|
+
mirrorOf?: string | undefined;
|
|
539
645
|
}>>>;
|
|
540
646
|
miniMetadatas: z.ZodArray<z.ZodObject<{
|
|
541
647
|
id: z.ZodString;
|
|
@@ -648,6 +754,31 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
648
754
|
"evm-erc20": z.ZodOptional<z.ZodUndefined>;
|
|
649
755
|
"evm-uniswapv2": z.ZodOptional<z.ZodUndefined>;
|
|
650
756
|
}, z.core.$strict>>;
|
|
757
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
758
|
+
id: z.ZodString;
|
|
759
|
+
isTestnet: z.ZodOptional<z.ZodBoolean>;
|
|
760
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
+
forceScan: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
+
name: z.ZodString;
|
|
763
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
764
|
+
nativeTokenId: z.ZodString;
|
|
765
|
+
nativeCurrency: z.ZodObject<{
|
|
766
|
+
decimals: z.ZodUInt32;
|
|
767
|
+
symbol: z.ZodString;
|
|
768
|
+
name: z.ZodString;
|
|
769
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
770
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
771
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
772
|
+
}, z.core.$strict>;
|
|
773
|
+
themeColor: z.ZodOptional<z.ZodString>;
|
|
774
|
+
blockExplorerUrls: z.ZodDefault<z.ZodArray<z.ZodURL>>;
|
|
775
|
+
platform: z.ZodLiteral<"solana">;
|
|
776
|
+
genesisHash: z.ZodString;
|
|
777
|
+
rpcs: z.ZodArray<z.ZodURL>;
|
|
778
|
+
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
779
|
+
"sol-native": z.ZodOptional<z.ZodUndefined>;
|
|
780
|
+
"sol-spl": z.ZodOptional<z.ZodUndefined>;
|
|
781
|
+
}, z.core.$strict>>;
|
|
651
782
|
}, z.core.$strict>]>>>;
|
|
652
783
|
tokens: z.ZodArray<z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
653
784
|
id: z.ZodString;
|
|
@@ -797,6 +928,33 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
797
928
|
}>;
|
|
798
929
|
isSufficient: z.ZodBoolean;
|
|
799
930
|
existentialDeposit: z.ZodString;
|
|
931
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
932
|
+
id: z.ZodString;
|
|
933
|
+
networkId: z.ZodString;
|
|
934
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
935
|
+
decimals: z.ZodInt;
|
|
936
|
+
symbol: z.ZodString;
|
|
937
|
+
name: z.ZodOptional<z.ZodString>;
|
|
938
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
939
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
940
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
941
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
942
|
+
type: z.ZodLiteral<"sol-native">;
|
|
943
|
+
platform: z.ZodLiteral<"solana">;
|
|
944
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
945
|
+
id: z.ZodString;
|
|
946
|
+
networkId: z.ZodString;
|
|
947
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
948
|
+
decimals: z.ZodInt;
|
|
949
|
+
symbol: z.ZodString;
|
|
950
|
+
name: z.ZodOptional<z.ZodString>;
|
|
951
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
952
|
+
coingeckoId: z.ZodOptional<z.ZodString>;
|
|
953
|
+
noDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
954
|
+
mirrorOf: z.ZodOptional<z.ZodString>;
|
|
955
|
+
type: z.ZodLiteral<"sol-spl">;
|
|
956
|
+
platform: z.ZodLiteral<"solana">;
|
|
957
|
+
mintAddress: z.ZodString;
|
|
800
958
|
}, z.core.$strict>]>, z.ZodTransform<{
|
|
801
959
|
id: string;
|
|
802
960
|
networkId: string;
|
|
@@ -941,6 +1099,33 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
941
1099
|
coingeckoId?: string | undefined;
|
|
942
1100
|
noDiscovery?: boolean | undefined;
|
|
943
1101
|
mirrorOf?: string | undefined;
|
|
1102
|
+
} | {
|
|
1103
|
+
id: string;
|
|
1104
|
+
networkId: string;
|
|
1105
|
+
decimals: number;
|
|
1106
|
+
symbol: string;
|
|
1107
|
+
type: "sol-native";
|
|
1108
|
+
platform: "solana";
|
|
1109
|
+
isDefault?: boolean | undefined;
|
|
1110
|
+
name?: string | undefined;
|
|
1111
|
+
logo?: string | undefined;
|
|
1112
|
+
coingeckoId?: string | undefined;
|
|
1113
|
+
noDiscovery?: boolean | undefined;
|
|
1114
|
+
mirrorOf?: string | undefined;
|
|
1115
|
+
} | {
|
|
1116
|
+
id: string;
|
|
1117
|
+
networkId: string;
|
|
1118
|
+
decimals: number;
|
|
1119
|
+
symbol: string;
|
|
1120
|
+
type: "sol-spl";
|
|
1121
|
+
platform: "solana";
|
|
1122
|
+
mintAddress: string;
|
|
1123
|
+
isDefault?: boolean | undefined;
|
|
1124
|
+
name?: string | undefined;
|
|
1125
|
+
logo?: string | undefined;
|
|
1126
|
+
coingeckoId?: string | undefined;
|
|
1127
|
+
noDiscovery?: boolean | undefined;
|
|
1128
|
+
mirrorOf?: string | undefined;
|
|
944
1129
|
}, {
|
|
945
1130
|
id: string;
|
|
946
1131
|
networkId: string;
|
|
@@ -1085,6 +1270,33 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
1085
1270
|
coingeckoId?: string | undefined;
|
|
1086
1271
|
noDiscovery?: boolean | undefined;
|
|
1087
1272
|
mirrorOf?: string | undefined;
|
|
1273
|
+
} | {
|
|
1274
|
+
id: string;
|
|
1275
|
+
networkId: string;
|
|
1276
|
+
decimals: number;
|
|
1277
|
+
symbol: string;
|
|
1278
|
+
type: "sol-native";
|
|
1279
|
+
platform: "solana";
|
|
1280
|
+
isDefault?: boolean | undefined;
|
|
1281
|
+
name?: string | undefined;
|
|
1282
|
+
logo?: string | undefined;
|
|
1283
|
+
coingeckoId?: string | undefined;
|
|
1284
|
+
noDiscovery?: boolean | undefined;
|
|
1285
|
+
mirrorOf?: string | undefined;
|
|
1286
|
+
} | {
|
|
1287
|
+
id: string;
|
|
1288
|
+
networkId: string;
|
|
1289
|
+
decimals: number;
|
|
1290
|
+
symbol: string;
|
|
1291
|
+
type: "sol-spl";
|
|
1292
|
+
platform: "solana";
|
|
1293
|
+
mintAddress: string;
|
|
1294
|
+
isDefault?: boolean | undefined;
|
|
1295
|
+
name?: string | undefined;
|
|
1296
|
+
logo?: string | undefined;
|
|
1297
|
+
coingeckoId?: string | undefined;
|
|
1298
|
+
noDiscovery?: boolean | undefined;
|
|
1299
|
+
mirrorOf?: string | undefined;
|
|
1088
1300
|
}>>>;
|
|
1089
1301
|
}, z.core.$strict>;
|
|
1090
1302
|
export type CustomChaindata = z.infer<typeof CustomChaindataSchema>;
|