@pancakeswap/multicall 3.5.8 → 3.5.10
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/getMulticallContract.d.ts +15 -15
- package/package.json +3 -3
|
@@ -6,7 +6,7 @@ type Params = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare function getMulticallContract({ chainId, client }: Params): {
|
|
8
8
|
read: {
|
|
9
|
-
[x: string]: (...parameters: [options?: import("viem
|
|
9
|
+
[x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
10
10
|
inputs: ({
|
|
11
11
|
components: {
|
|
12
12
|
internalType: string;
|
|
@@ -40,7 +40,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
40
40
|
})[];
|
|
41
41
|
stateMutability: string;
|
|
42
42
|
type: string;
|
|
43
|
-
}[], string, readonly unknown[]>, "address" | "abi" | "args" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem
|
|
43
|
+
}[], string, readonly unknown[]>, "address" | "abi" | "args" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
44
44
|
inputs: ({
|
|
45
45
|
components: {
|
|
46
46
|
internalType: string;
|
|
@@ -77,7 +77,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
77
77
|
}[], string, readonly unknown[]>, "address" | "abi" | "args" | "functionName">> | undefined]) => Promise<unknown>;
|
|
78
78
|
};
|
|
79
79
|
estimateGas: {
|
|
80
|
-
[x: string]: (...parameters: [options: import("viem
|
|
80
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
81
81
|
inputs: ({
|
|
82
82
|
components: {
|
|
83
83
|
internalType: string;
|
|
@@ -111,7 +111,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
111
111
|
})[];
|
|
112
112
|
stateMutability: string;
|
|
113
113
|
type: string;
|
|
114
|
-
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>] | [args: readonly unknown[], options: import("viem
|
|
114
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
115
115
|
inputs: ({
|
|
116
116
|
components: {
|
|
117
117
|
internalType: string;
|
|
@@ -147,7 +147,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
147
147
|
type: string;
|
|
148
148
|
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>]) => Promise<bigint>;
|
|
149
149
|
} & {
|
|
150
|
-
[x: string]: (...parameters: [options: import("viem
|
|
150
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
151
151
|
inputs: ({
|
|
152
152
|
components: {
|
|
153
153
|
internalType: string;
|
|
@@ -181,7 +181,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
181
181
|
})[];
|
|
182
182
|
stateMutability: string;
|
|
183
183
|
type: string;
|
|
184
|
-
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>] | [args: readonly unknown[], options: import("viem
|
|
184
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
185
185
|
inputs: ({
|
|
186
186
|
components: {
|
|
187
187
|
internalType: string;
|
|
@@ -218,7 +218,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
218
218
|
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>]) => Promise<bigint>;
|
|
219
219
|
};
|
|
220
220
|
simulate: {
|
|
221
|
-
[x: string]: <
|
|
221
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends `0x${string}` | import("viem").Account | undefined = undefined>(...parameters: [options?: Omit<import("viem").SimulateContractParameters<{
|
|
222
222
|
inputs: ({
|
|
223
223
|
components: {
|
|
224
224
|
internalType: string;
|
|
@@ -252,7 +252,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
252
252
|
})[];
|
|
253
253
|
stateMutability: string;
|
|
254
254
|
type: string;
|
|
255
|
-
}[], string, readonly unknown[], import("viem").Chain | undefined,
|
|
255
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<import("viem").SimulateContractParameters<{
|
|
256
256
|
inputs: ({
|
|
257
257
|
components: {
|
|
258
258
|
internalType: string;
|
|
@@ -286,14 +286,14 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
286
286
|
})[];
|
|
287
287
|
stateMutability: string;
|
|
288
288
|
type: string;
|
|
289
|
-
}[], string, readonly unknown[], import("viem").Chain | undefined,
|
|
289
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined]) => Promise<import("viem").SimulateContractReturnType>;
|
|
290
290
|
};
|
|
291
291
|
createEventFilter: {
|
|
292
|
-
[x: string]: <
|
|
292
|
+
[x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
|
|
293
293
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
294
294
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
295
295
|
} & {
|
|
296
|
-
strict?:
|
|
296
|
+
strict?: strict | undefined;
|
|
297
297
|
}) | undefined] | [args: readonly unknown[] | {
|
|
298
298
|
[x: string]: unknown;
|
|
299
299
|
address?: undefined;
|
|
@@ -307,7 +307,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
307
307
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
308
308
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
309
309
|
} & {
|
|
310
|
-
strict?:
|
|
310
|
+
strict?: strict | undefined;
|
|
311
311
|
}) | undefined]) => Promise<import("viem").CreateContractEventFilterReturnType>;
|
|
312
312
|
};
|
|
313
313
|
getEvents: {
|
|
@@ -471,7 +471,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
471
471
|
} | undefined]) => import("viem").WatchContractEventReturnType;
|
|
472
472
|
};
|
|
473
473
|
write: {
|
|
474
|
-
[x: string]: <
|
|
474
|
+
[x: string]: <chainOverride_1 extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
475
475
|
inputs: ({
|
|
476
476
|
components: {
|
|
477
477
|
internalType: string;
|
|
@@ -505,7 +505,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
505
505
|
})[];
|
|
506
506
|
stateMutability: string;
|
|
507
507
|
type: string;
|
|
508
|
-
}[], string, readonly unknown[], import("viem").Chain | undefined, undefined,
|
|
508
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, undefined, chainOverride_1>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
509
509
|
inputs: ({
|
|
510
510
|
components: {
|
|
511
511
|
internalType: string;
|
|
@@ -539,7 +539,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
539
539
|
})[];
|
|
540
540
|
stateMutability: string;
|
|
541
541
|
type: string;
|
|
542
|
-
}[], string, readonly unknown[], import("viem").Chain | undefined, undefined,
|
|
542
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, undefined, chainOverride_1>, "address" | "abi" | "args" | "functionName">[K]; } : never, Rest extends unknown[] = [options: options]>(...parameters: Rest | [args: readonly unknown[], ...parameters: Rest]) => Promise<`0x${string}`>;
|
|
543
543
|
};
|
|
544
544
|
address: `0x${string}`;
|
|
545
545
|
abi: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pancakeswap/multicall",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.10",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"module": "dist/index.mjs",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"viem": "^2.
|
|
12
|
+
"viem": "^2.21.22",
|
|
13
13
|
"@pancakeswap/chains": "0.4.6",
|
|
14
|
-
"@pancakeswap/sdk": "5.8.
|
|
14
|
+
"@pancakeswap/sdk": "5.8.10"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"tsup": "^6.7.0",
|