@talismn/chaindata-provider 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/declarations/src/chaindata/index.d.ts +1 -0
- package/dist/declarations/src/chaindata/networks/EthNetwork.d.ts +4 -4
- package/dist/declarations/src/chaindata/networks/Network.d.ts +29 -4
- 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 +48 -1
- 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 +79 -12
- package/dist/declarations/src/state/combinedChaindata.d.ts +11 -0
- package/dist/declarations/src/state/defaultChaindata.d.ts +59 -3
- package/dist/declarations/src/state/githubChaindata.d.ts +303 -0
- package/dist/declarations/src/state/net.d.ts +57 -2
- package/dist/declarations/src/state/oldDb.d.ts +1 -0
- package/dist/declarations/src/state/schema.d.ts +220 -8
- package/dist/talismn-chaindata-provider.cjs.dev.js +1051 -777
- package/dist/talismn-chaindata-provider.cjs.prod.js +1051 -777
- package/dist/talismn-chaindata-provider.esm.js +1039 -781
- package/package.json +8 -8
- 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
|
@@ -90,15 +90,40 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
90
90
|
type: z.ZodLiteral<"scroll">;
|
|
91
91
|
l1GasPriceOracle: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
92
92
|
}, z.core.$strict>]>>;
|
|
93
|
-
contracts: z.ZodOptional<z.
|
|
94
|
-
Erc20Aggregator:
|
|
95
|
-
Multicall3:
|
|
96
|
-
}
|
|
93
|
+
contracts: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
Erc20Aggregator: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
95
|
+
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
97
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
98
98
|
"evm-native": z.ZodOptional<z.ZodUndefined>;
|
|
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;
|
|
@@ -639,15 +745,40 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
639
745
|
type: z.ZodLiteral<"scroll">;
|
|
640
746
|
l1GasPriceOracle: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
641
747
|
}, z.core.$strict>]>>;
|
|
642
|
-
contracts: z.ZodOptional<z.
|
|
643
|
-
Erc20Aggregator:
|
|
644
|
-
Multicall3:
|
|
645
|
-
}
|
|
748
|
+
contracts: z.ZodOptional<z.ZodObject<{
|
|
749
|
+
Erc20Aggregator: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
750
|
+
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
751
|
+
}, z.core.$strict>>;
|
|
646
752
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
647
753
|
"evm-native": z.ZodOptional<z.ZodUndefined>;
|
|
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>;
|