Skip to content

Commit

Permalink
add etherscan verify depedency in contracts package
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrosaturnino committed May 6, 2024
1 parent 3f6219f commit 30bdb78
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
42 changes: 24 additions & 18 deletions packages/contracts/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require("@nomiclabs/hardhat-truffle5");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@nomicfoundation/hardhat-verify");
require("solidity-coverage");
require("hardhat-gas-reporter");

Expand All @@ -22,13 +22,6 @@ const alchemyUrl = () => {
return `https://eth-mainnet.alchemyapi.io/v2/${getSecret('alchemyAPIKey')}`
}

const alchemyUrlRinkeby = () => {
return `https://eth-rinkeby.alchemyapi.io/v2/${getSecret('alchemyAPIKeyRinkeby')}`
}

const alchemyUrlRopsten = () => {
return `https://eth-ropsten.alchemyapi.io/v2/${getSecret('alchemyAPIKeyRopsten')}`
}

module.exports = {
paths: {
Expand All @@ -48,6 +41,9 @@ module.exports = {
}
]
},
sourcify: {
enabled: true
},
networks: {
hardhat: {
accounts: accountsList,
Expand All @@ -65,19 +61,29 @@ module.exports = {
getSecret('ACCOUNT2_PRIVATEKEY', '0x3ec7cedbafd0cb9ec05bf9f7ccfa1e8b42b3e3a02c75addfccbfeb328d1b383b')
]
},
rinkeby: {
url: alchemyUrlRinkeby(),
gas: 10000000, // tx gas limit
accounts: [getSecret('RINKEBY_DEPLOYER_PRIVATEKEY', '0x60ddfe7f579ab6867cbe7a2dc03853dc141d7a4ab6dbefc0dae2d2b1bd4e487f')]
bob_testnet: {
url: "https://testnet.rpc.gobob.xyz/",
chainId: 111,
accounts: [
getSecret('DEPLOYER_PRIVATEKEY', '0x60ddfe7f579ab6867cbe7a2dc03853dc141d7a4ab6dbefc0dae2d2b1bd4e487f'),
getSecret('ACCOUNT2_PRIVATEKEY', '0x3ec7cedbafd0cb9ec05bf9f7ccfa1e8b42b3e3a02c75addfccbfeb328d1b383b')
]
},
ropsten: {
url: alchemyUrlRopsten(),
gas: 120000000, // tx gas limit
accounts: [getSecret('RINKEBY_DEPLOYER_PRIVATEKEY', '0x60ddfe7f579ab6867cbe7a2dc03853dc141d7a4ab6dbefc0dae2d2b1bd4e487f')]
}
},
etherscan: {
apiKey: getSecret("ETHERSCAN_API_KEY")
apiKey: {
bob_testnet: getSecret("ETHERSCAN_API_KEY")
},
customChains: [
{
network: "bob_testnet",
chainId: 111,
urls: {
apiURL: "https://testnet-explorer.gobob.xyz/api?",
browserURL: "https://testnet.rpc.gobob.xyz"
}
},
],
},
mocha: {
timeout: 12000000,
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-etherscan": "^2.1.2",
"@nomicfoundation/hardhat-verify": "2.0.5",
"@nomiclabs/hardhat-truffle5": "^2.0.0",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@openzeppelin/contracts": "4.9.2",
Expand Down

0 comments on commit 30bdb78

Please sign in to comment.