From af422f4998b4b3b591ab22beebc098d8528a776b Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Fri, 26 Jul 2024 14:39:36 +0300 Subject: [PATCH] Refactor getPools to use multicall3 --- packages/client/src/multicall3.json | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 packages/client/src/multicall3.json diff --git a/packages/client/src/multicall3.json b/packages/client/src/multicall3.json new file mode 100644 index 00000000..bcd99362 --- /dev/null +++ b/packages/client/src/multicall3.json @@ -0,0 +1,38 @@ +[ + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct IMulticall3.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "aggregate", + "outputs": [ + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + }, + { + "internalType": "bytes[]", + "name": "returnData", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + } +] \ No newline at end of file