@talismn/chaindata-provider 1.0.0 → 1.0.2
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/EthNetwork.d.ts +4 -4
- package/dist/declarations/src/chaindata/networks/Network.d.ts +4 -4
- package/dist/declarations/src/chaindata/utils.d.ts +4 -1
- package/dist/declarations/src/provider/ChaindataProvider.d.ts +4 -1
- package/dist/declarations/src/state/defaultChaindata.d.ts +4 -1
- package/dist/declarations/src/state/net.d.ts +4 -1
- package/dist/declarations/src/state/schema.d.ts +8 -8
- package/dist/talismn-chaindata-provider.cjs.dev.js +162 -118
- package/dist/talismn-chaindata-provider.cjs.prod.js +162 -118
- package/dist/talismn-chaindata-provider.esm.js +162 -118
- package/package.json +5 -5
|
@@ -37,10 +37,10 @@ export declare const EthNetworkSchema: z.ZodObject<{
|
|
|
37
37
|
type: z.ZodLiteral<"scroll">;
|
|
38
38
|
l1GasPriceOracle: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
39
39
|
}, z.core.$strict>]>>;
|
|
40
|
-
contracts: z.ZodOptional<z.
|
|
41
|
-
Erc20Aggregator:
|
|
42
|
-
Multicall3:
|
|
43
|
-
}
|
|
40
|
+
contracts: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
Erc20Aggregator: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
42
|
+
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
44
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
45
45
|
"evm-native": z.ZodOptional<z.ZodUndefined>;
|
|
46
46
|
"evm-erc20": z.ZodOptional<z.ZodUndefined>;
|
|
@@ -89,10 +89,10 @@ export declare const NetworkSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
89
89
|
type: z.ZodLiteral<"scroll">;
|
|
90
90
|
l1GasPriceOracle: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
91
91
|
}, z.core.$strict>]>>;
|
|
92
|
-
contracts: z.ZodOptional<z.
|
|
93
|
-
Erc20Aggregator:
|
|
94
|
-
Multicall3:
|
|
95
|
-
}
|
|
92
|
+
contracts: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
Erc20Aggregator: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
94
|
+
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
96
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
97
97
|
"evm-native": z.ZodOptional<z.ZodUndefined>;
|
|
98
98
|
"evm-erc20": z.ZodOptional<z.ZodUndefined>;
|
|
@@ -92,7 +92,10 @@ export declare const isNetworkEth: (network: Network | null | undefined) => netw
|
|
|
92
92
|
type: "scroll";
|
|
93
93
|
l1GasPriceOracle: `0x${string}`;
|
|
94
94
|
} | undefined;
|
|
95
|
-
contracts?:
|
|
95
|
+
contracts?: {
|
|
96
|
+
Erc20Aggregator?: `0x${string}` | undefined;
|
|
97
|
+
Multicall3?: `0x${string}` | undefined;
|
|
98
|
+
} | undefined;
|
|
96
99
|
balancesConfig?: {
|
|
97
100
|
"evm-native"?: undefined;
|
|
98
101
|
"evm-erc20"?: undefined;
|
|
@@ -308,7 +308,10 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
308
308
|
type: "scroll";
|
|
309
309
|
l1GasPriceOracle: `0x${string}`;
|
|
310
310
|
} | undefined;
|
|
311
|
-
contracts?:
|
|
311
|
+
contracts?: {
|
|
312
|
+
Erc20Aggregator?: `0x${string}` | undefined;
|
|
313
|
+
Multicall3?: `0x${string}` | undefined;
|
|
314
|
+
} | undefined;
|
|
312
315
|
balancesConfig?: {
|
|
313
316
|
"evm-native"?: undefined;
|
|
314
317
|
"evm-erc20"?: undefined;
|
|
@@ -84,7 +84,10 @@ export declare const defaultChaindata$: Observable<{
|
|
|
84
84
|
type: "scroll";
|
|
85
85
|
l1GasPriceOracle: `0x${string}`;
|
|
86
86
|
} | undefined;
|
|
87
|
-
contracts?:
|
|
87
|
+
contracts?: {
|
|
88
|
+
Erc20Aggregator?: `0x${string}` | undefined;
|
|
89
|
+
Multicall3?: `0x${string}` | undefined;
|
|
90
|
+
} | undefined;
|
|
88
91
|
balancesConfig?: {
|
|
89
92
|
"evm-native"?: undefined;
|
|
90
93
|
"evm-erc20"?: undefined;
|
|
@@ -84,7 +84,10 @@ export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
|
84
84
|
type: "scroll";
|
|
85
85
|
l1GasPriceOracle: `0x${string}`;
|
|
86
86
|
} | undefined;
|
|
87
|
-
contracts?:
|
|
87
|
+
contracts?: {
|
|
88
|
+
Erc20Aggregator?: `0x${string}` | undefined;
|
|
89
|
+
Multicall3?: `0x${string}` | undefined;
|
|
90
|
+
} | undefined;
|
|
88
91
|
balancesConfig?: {
|
|
89
92
|
"evm-native"?: undefined;
|
|
90
93
|
"evm-erc20"?: undefined;
|
|
@@ -90,10 +90,10 @@ 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>;
|
|
@@ -639,10 +639,10 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
639
639
|
type: z.ZodLiteral<"scroll">;
|
|
640
640
|
l1GasPriceOracle: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
641
641
|
}, z.core.$strict>]>>;
|
|
642
|
-
contracts: z.ZodOptional<z.
|
|
643
|
-
Erc20Aggregator:
|
|
644
|
-
Multicall3:
|
|
645
|
-
}
|
|
642
|
+
contracts: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
Erc20Aggregator: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
644
|
+
Multicall3: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
645
|
+
}, z.core.$strict>>;
|
|
646
646
|
balancesConfig: z.ZodOptional<z.ZodObject<{
|
|
647
647
|
"evm-native": z.ZodOptional<z.ZodUndefined>;
|
|
648
648
|
"evm-erc20": z.ZodOptional<z.ZodUndefined>;
|