forked from Uniswap/deploy-v3
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhardhat.config.ts
38 lines (36 loc) · 1.39 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import '@matterlabs/hardhat-zksync-solc'
import { task } from 'hardhat/config'
import { deployV3 } from './index'
task('deploy-v3')
.addParam('privateKey', 'Private key used to deploy all contracts')
.addParam('jsonRpc', 'JSON RPC URL where the program should be deployed')
.addParam('weth9Address', 'Address of the WETH9 contract on this chain')
.addParam('nativeCurrencyLabel', 'Native currency label, e.g. ETH')
.addParam('ownerAddress', 'Contract address that will own the deployed artifacts after the script runs')
.addOptionalParam('state', 'Path to the JSON file containing the migrations state (optional)', './state.json')
.addOptionalParam('v2CoreFactoryAddress', 'The V2 core factory address used in the swap router (optional)')
.addOptionalParam('gasPrice', 'The gas price to pay in GWEI for each transaction (optional)')
.addOptionalParam('confirmations', 'How many confirmations to wait for after each transaction (optional)', '2')
.setAction(async (taskArgs) => {
await deployV3(taskArgs)
})
// This config will be used to compile the `v3-periphery-1_3_0/contracts/NonfungibleTokenPositionDescriptor.sol` contract
export default {
networks: {
hardhat: {
zksync: true,
},
},
solidity: {
version: '0.7.6',
},
zksolc: {
version: '1.3.13',
compilerSource: 'binary',
settings: {
metadata: {
bytecodeHash: 'none',
},
},
},
}