mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
Add deployment script
This commit is contained in:
parent
b5d4dc74e6
commit
d60471ceff
|
@ -0,0 +1,3 @@
|
|||
ALCHEMY_ID="<>"
|
||||
ETHERSCAN="<>"
|
||||
PRIVATE_KEY="<>"
|
|
@ -4,6 +4,7 @@ require("@nomiclabs/hardhat-etherscan");
|
|||
|
||||
require("dotenv").config();
|
||||
const ALCHEMY_ID = process.env.ALCHEMY_ID;
|
||||
const PRIVATE_KEY = process.env.PRIVATE_KEY;
|
||||
|
||||
// You need to export an object to set up your config
|
||||
// Go to https://hardhat.org/config/ to learn more
|
||||
|
@ -13,7 +14,15 @@ const ALCHEMY_ID = process.env.ALCHEMY_ID;
|
|||
*/
|
||||
module.exports = {
|
||||
defaultNetwork: "hardhat",
|
||||
solidity: "0.7.3",
|
||||
solidity: {
|
||||
version: "0.7.3",
|
||||
settings: {
|
||||
optimizer: {
|
||||
enabled: true,
|
||||
runs: 200
|
||||
}
|
||||
}
|
||||
},
|
||||
networks: {
|
||||
hardhat: {
|
||||
forking: {
|
||||
|
@ -22,9 +31,13 @@ module.exports = {
|
|||
},
|
||||
blockGasLimit: 12000000,
|
||||
},
|
||||
kovan: {
|
||||
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
||||
accounts: [`0x${PRIVATE_KEY}`],
|
||||
gas: 12500000,
|
||||
},
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: process.env.ETHERSCAN
|
||||
}
|
||||
};
|
||||
|
||||
|
|
3
package-lock.json
generated
3
package-lock.json
generated
|
@ -9,7 +9,8 @@
|
|||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@nomiclabs/hardhat-etherscan": "^2.1.1",
|
||||
"dotenv": "^8.2.0"
|
||||
"dotenv": "^8.2.0",
|
||||
"rlp": "^2.2.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nomiclabs/hardhat-ethers": "^2.0.2",
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@nomiclabs/hardhat-etherscan": "^2.1.1",
|
||||
"dotenv": "^8.2.0"
|
||||
"dotenv": "^8.2.0",
|
||||
"rlp": "^2.2.6"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user