uniswap / hardhat-v3-deploy Goto Github PK
View Code? Open in Web Editor NEWHardhat plugin for Uniswap V3 deployment
License: MIT License
Hardhat plugin for Uniswap V3 deployment
License: MIT License
you can use this deployer plugin with dapptools, just up the testnet on dapptools with dapp testnet
, save the RPC URL as network config in hardhat.config file then, in a new terminal run npx hardhat deploy-uniswap --network [NETWORK-NAME]
I integrated the uniswap V3 plugin in order to mock the dex contracts which works smoothly. However, whenever I try to make a function call like createPool()
I get an error like undefined
. Some uniswap devs told me I need to hard code the init code hash based on this stackoverflow thread. That's great accept the uniswap contracts are not hardcoded into my project since I just imported them as an npm package from Hardhat. If anyone has any suggestions, please let me know.
Hi
I'm getting following error when I'm trying deploy the contracts.
at Logger.makeError (/Users/amin/Development/uniswapv3-develop/node_modules/@ethersproject/logger/src.ts/index.ts:225:28)
at Logger.throwError (/Users/amin/Development/uniswapv3-develop/node_modules/@ethersproject/logger/src.ts/index.ts:237:20)
at Logger.throwArgumentError (/Users/amin/Development/uniswapv3-develop/node_modules/@ethersproject/logger/src.ts/index.ts:241:21)
at new ContractFactory (/Users/amin/Development/uniswapv3-develop/node_modules/@ethersproject/contracts/src.ts/index.ts:1162:20)
at UniswapV3Deployer.deployContract (/Users/amin/Development/uniswapv3-develop/node_modules/uniswap-v3-deploy-plugin/src/deployer/UniswapV3Deployer.ts:139:21)
at UniswapV3Deployer.deployPositionDescriptor (/Users/amin/Development/uniswapv3-develop/node_modules/uniswap-v3-deploy-plugin/src/deployer/UniswapV3Deployer.ts:112:24)
at Function.deploy (/Users/amin/Development/uniswapv3-develop/node_modules/uniswap-v3-deploy-plugin/src/deployer/UniswapV3Deployer.ts:27:47)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node:internal/process/task_queues:65:3)
at listOnTimeout (node:internal/timers:526:9) {
reason: 'invalid bytecode',
code: 'INVALID_ARGUMENT',
argument: 'bytecode',
Thanks
It would be great to complement this with the ability to setup some Pools, initialize them, and create positions (add liquidity) so they provide a ready-to-use instance of populated Pools for other protocols to develop on top.
How to verify the contract after release
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.