0.1.0 • Published 2 years ago
hardhat-deploy-uniswap-v2 v0.1.0
hardhat-deploy scripts for uniswap v2
Install
npm i -D hardhat-deploy-uniswap-v2 @uniswap/v2-core @uniswap/v2-periphery
+ add this to your hardhat.config.js
:
...
namedAccounts: {
...
uniswap_deployer: "<address or other name>",
uniswap_feeToSetter: "<address or other name>",
}
...
external: {
contracts: [
{
artifacts: [
'node_modules/hardhat-deploy-uniswap-v2/export/artifacts',
'node_modules/@uniswap/v2-core/build',
'node_modules/@uniswap/v2-periphery/build',
],
deploy: 'node_modules/hardhat-deploy-uniswap-v2/export/deploy',
},
],
},
Note that this deployments script will attempt to deploy a WETH contract. If the network you intend to deploy onto have already a WETH, you can create a WETH.json deployment file and the deployed uniswap system will use it instead.
0.1.0
2 years ago