@pancakeswap/multicall 3.0.0 → 3.0.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/README.md +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Enhanced multicall sdk to safely make multicalls within the gas limit.
|
|
4
4
|
|
|
5
|
-
Inspired by the
|
|
5
|
+
Inspired by the [1inch multicall](https://github.com/1inch/multicall).
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -34,7 +34,7 @@ const calls: MulticallRequestWithGas[] = [
|
|
|
34
34
|
const { results, blockNumber } = await multicallByGasLimit(calls, {
|
|
35
35
|
chainId: ChainId.BSC,
|
|
36
36
|
|
|
37
|
-
// Rpc client.
|
|
37
|
+
// Rpc client. Please refer to `PublicClient` from viem
|
|
38
38
|
client,
|
|
39
39
|
})
|
|
40
40
|
|
|
@@ -69,3 +69,7 @@ import { getGasLimitOnChain } from '@pancakeswap/multicall'
|
|
|
69
69
|
// Get the rpc call gas limit of the specified chain
|
|
70
70
|
const gasLimit = await getGasLimitOnChain(ChainId.BSC)
|
|
71
71
|
```
|
|
72
|
+
|
|
73
|
+
## Supported chains
|
|
74
|
+
|
|
75
|
+
For supported chains and contract addresses, please refer to [multicall contracts](https://github.com/pancakeswap/pancake-frontend/blob/develop/packages/multicall/src/constants/contracts.ts).
|