Skip to content

Commit

Permalink
etherscan verification updates
Browse files Browse the repository at this point in the history
  • Loading branch information
simondlr committed Dec 27, 2020
1 parent d293d19 commit c5de5b9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1,486 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ If the address differs, you must copy it from hardhat and put into the
Back in this repo:
```yarn run start```

### Mainnet

To deploy to a testnet or mainnet, just add or use the existing network in the openzeppelin networks.js. It uses Infura to deploy and thus you also need to export your own Infura ID (like your mnemonic for deployment).
```export REACT_APP_INFURA_ID="<INFURA_ID_HERE>"```

### License

Code License:
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"deploy_contracts_mainnet": "cd packages/hardhat && npx hardhat run --network mainnet scripts/deploy.js",
"publish_contracts": "cd packages/hardhat && npx run scripts/publish_oz.js",
"test_contracts": "cd packages/hardhat && npx hardhat test",
"verify_CURVE": "cd packages/hardhat && npx hardhat verify --network mainnet 0x174150478891bdD4EAefaB50FB24B9126F289FA6 '0x0CaCC6104D8Cd9d7b2850b4f35c65C1eCDEECe03'",
"verify_ERC721": "cd packages/hardhat && npx hardhat verify --network mainnet 0xB2D6fb1Dc231F97F8cC89467B52F7C4F78484044 'Neolastics' 'NLS'",
"start": "yarn workspace @neolastics/react-app start",
"compile": "cd packages/hardhat && npx hardhat compile"
},
Expand Down
18 changes: 6 additions & 12 deletions packages/hardhat/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const defaultAccounts = require("./scripts/wallet-utils.js");
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3");
require("@nomiclabs/hardhat-etherscan");

let infuraID = process.env.REACT_APP_INFURA_ID;

Expand All @@ -20,19 +21,12 @@ module.exports = {
url: `https://mainnet.infura.io/v3/${infuraID}`,
accounts: [deployAccounts[0].privateKey],
gasPrice: 80e9
}
},
},
etherscan: {
apiKey: ''
},
solc: {
version : "0.7.6",
}
}

/*
mainnet: {
provider: () => new HDWalletProvider(
mnemonic, `https://mainnet.infura.io/v3/${infuraID}`, 3
),
networkId: 1,
gasPrice: 50e9,
}
*/
}
1 change: 1 addition & 0 deletions packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@nomiclabs/hardhat-etherscan": "^2.1.0",
"@truffle/hdwallet-provider": "^1.2.0",
"chai": "^4.2.0",
"ethereum-waffle": "^3.2.0",
Expand Down
Loading

0 comments on commit c5de5b9

Please sign in to comment.