Created
October 16, 2022 01:13
-
-
Save BlockmanCodes/1431987891b46461eb3c2cae577c86a7 to your computer and use it in GitHub Desktop.
Uniswap V3 Multicall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "multicall-2", | |
"version": "1.0.0", | |
"description": "", | |
"main": "multicall.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"@uniswap/v3-core": "^1.0.1", | |
"@uniswap/v3-periphery": "^1.4.0", | |
"@uniswap/v3-sdk": "^3.9.0", | |
"dotenv": "^16.0.3", | |
"ethers": "^5.7.1" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { abi: V3SwapRouterABI } = require('@uniswap/v3-periphery/artifacts/contracts/interfaces/ISwapRouter.sol/ISwapRouter.json') | |
const { abi: PeripheryPaymentsABI } = require("@uniswap/v3-periphery/artifacts/contracts/interfaces/IPeripheryPayments.sol/IPeripheryPayments.json"); | |
const { abi: MulticallABI } = require("@uniswap/v3-periphery/artifacts/contracts/interfaces/IMulticall.sol/IMulticall.json"); | |
const V3SwapRouterAddress = '0xE592427A0AEce92De3Edee1F18E0157C05861564' | |
const WETHAddress = '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6'; | |
const USDCAddress = '0x07865c6E87B9F70255377e024ace6630C1Eaa37F'; | |
const UNIADDRESS = '0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment