@pancakeswap/multicall 3.5.7 → 3.5.9
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.
|
@@ -6,20 +6,78 @@ type Params = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare function getMulticallContract({ chainId, client }: Params): {
|
|
8
8
|
read: {
|
|
9
|
-
[x: string]: (...parameters: [options?: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
[x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
10
|
+
inputs: ({
|
|
11
|
+
components: {
|
|
12
|
+
internalType: string;
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
}[];
|
|
16
|
+
internalType: string;
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
} | {
|
|
20
|
+
internalType: string;
|
|
21
|
+
name: string;
|
|
22
|
+
type: string;
|
|
23
|
+
components?: undefined;
|
|
24
|
+
})[];
|
|
25
|
+
name: string;
|
|
26
|
+
outputs: ({
|
|
27
|
+
internalType: string;
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
components?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
components: {
|
|
33
|
+
internalType: string;
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
}[];
|
|
37
|
+
internalType: string;
|
|
38
|
+
name: string;
|
|
39
|
+
type: string;
|
|
40
|
+
})[];
|
|
41
|
+
stateMutability: string;
|
|
42
|
+
type: string;
|
|
43
|
+
}[], string, readonly unknown[]>, "address" | "abi" | "args" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
44
|
+
inputs: ({
|
|
45
|
+
components: {
|
|
46
|
+
internalType: string;
|
|
47
|
+
name: string;
|
|
48
|
+
type: string;
|
|
49
|
+
}[];
|
|
50
|
+
internalType: string;
|
|
51
|
+
name: string;
|
|
52
|
+
type: string;
|
|
53
|
+
} | {
|
|
54
|
+
internalType: string;
|
|
55
|
+
name: string;
|
|
56
|
+
type: string;
|
|
57
|
+
components?: undefined;
|
|
58
|
+
})[];
|
|
59
|
+
name: string;
|
|
60
|
+
outputs: ({
|
|
61
|
+
internalType: string;
|
|
62
|
+
name: string;
|
|
63
|
+
type: string;
|
|
64
|
+
components?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
components: {
|
|
67
|
+
internalType: string;
|
|
68
|
+
name: string;
|
|
69
|
+
type: string;
|
|
70
|
+
}[];
|
|
71
|
+
internalType: string;
|
|
72
|
+
name: string;
|
|
73
|
+
type: string;
|
|
74
|
+
})[];
|
|
75
|
+
stateMutability: string;
|
|
76
|
+
type: string;
|
|
77
|
+
}[], string, readonly unknown[]>, "address" | "abi" | "args" | "functionName">> | undefined]) => Promise<unknown>;
|
|
20
78
|
};
|
|
21
79
|
estimateGas: {
|
|
22
|
-
[x: string]: (...parameters: [options: import("viem
|
|
80
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
23
81
|
inputs: ({
|
|
24
82
|
components: {
|
|
25
83
|
internalType: string;
|
|
@@ -53,7 +111,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
53
111
|
})[];
|
|
54
112
|
stateMutability: string;
|
|
55
113
|
type: string;
|
|
56
|
-
}[], 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<{
|
|
57
115
|
inputs: ({
|
|
58
116
|
components: {
|
|
59
117
|
internalType: string;
|
|
@@ -89,7 +147,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
89
147
|
type: string;
|
|
90
148
|
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>]) => Promise<bigint>;
|
|
91
149
|
} & {
|
|
92
|
-
[x: string]: (...parameters: [options: import("viem
|
|
150
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
93
151
|
inputs: ({
|
|
94
152
|
components: {
|
|
95
153
|
internalType: string;
|
|
@@ -123,7 +181,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
123
181
|
})[];
|
|
124
182
|
stateMutability: string;
|
|
125
183
|
type: string;
|
|
126
|
-
}[], 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<{
|
|
127
185
|
inputs: ({
|
|
128
186
|
components: {
|
|
129
187
|
internalType: string;
|
|
@@ -160,7 +218,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
160
218
|
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>]) => Promise<bigint>;
|
|
161
219
|
};
|
|
162
220
|
simulate: {
|
|
163
|
-
[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<{
|
|
164
222
|
inputs: ({
|
|
165
223
|
components: {
|
|
166
224
|
internalType: string;
|
|
@@ -194,7 +252,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
194
252
|
})[];
|
|
195
253
|
stateMutability: string;
|
|
196
254
|
type: string;
|
|
197
|
-
}[], 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<{
|
|
198
256
|
inputs: ({
|
|
199
257
|
components: {
|
|
200
258
|
internalType: string;
|
|
@@ -228,14 +286,14 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
228
286
|
})[];
|
|
229
287
|
stateMutability: string;
|
|
230
288
|
type: string;
|
|
231
|
-
}[], 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>;
|
|
232
290
|
};
|
|
233
291
|
createEventFilter: {
|
|
234
|
-
[x: string]: <
|
|
292
|
+
[x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
|
|
235
293
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
236
294
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
237
295
|
} & {
|
|
238
|
-
strict?:
|
|
296
|
+
strict?: strict | undefined;
|
|
239
297
|
}) | undefined] | [args: readonly unknown[] | {
|
|
240
298
|
[x: string]: unknown;
|
|
241
299
|
address?: undefined;
|
|
@@ -249,7 +307,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
249
307
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
250
308
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
251
309
|
} & {
|
|
252
|
-
strict?:
|
|
310
|
+
strict?: strict | undefined;
|
|
253
311
|
}) | undefined]) => Promise<import("viem").CreateContractEventFilterReturnType>;
|
|
254
312
|
};
|
|
255
313
|
getEvents: {
|
|
@@ -413,7 +471,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
413
471
|
} | undefined]) => import("viem").WatchContractEventReturnType;
|
|
414
472
|
};
|
|
415
473
|
write: {
|
|
416
|
-
[x: string]: <
|
|
474
|
+
[x: string]: <chainOverride_1 extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
417
475
|
inputs: ({
|
|
418
476
|
components: {
|
|
419
477
|
internalType: string;
|
|
@@ -447,7 +505,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
447
505
|
})[];
|
|
448
506
|
stateMutability: string;
|
|
449
507
|
type: string;
|
|
450
|
-
}[], 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<{
|
|
451
509
|
inputs: ({
|
|
452
510
|
components: {
|
|
453
511
|
internalType: string;
|
|
@@ -481,7 +539,7 @@ export declare function getMulticallContract({ chainId, client }: Params): {
|
|
|
481
539
|
})[];
|
|
482
540
|
stateMutability: string;
|
|
483
541
|
type: string;
|
|
484
|
-
}[], 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}`>;
|
|
485
543
|
};
|
|
486
544
|
address: `0x${string}`;
|
|
487
545
|
abi: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMulticallContract.d.ts","sourceRoot":"","sources":["../src/getMulticallContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,YAAY,EAAe,MAAM,MAAM,CAAA;AAKzD,KAAK,MAAM,G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,4BAA4B,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAEvE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pancakeswap/multicall",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.9",
|
|
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.9"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"tsup": "^6.7.0",
|