Skip to content

Commit

Permalink
Merge pull request #521 from nevermined-io/fix/verification_networks
Browse files Browse the repository at this point in the history
Fixing contracts verification
  • Loading branch information
aaitor authored Oct 31, 2023
2 parents 09f942a + fae5501 commit 2d26d92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 30 deletions.
32 changes: 2 additions & 30 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,40 +250,12 @@ module.exports = {
mainnet: process.env.ETHERSCAN_TOKEN,
polygonMumbai: process.env.POLYGONSCAN_TOKEN,
polygon: process.env.POLYGONSCAN_TOKEN,
'arbitrum-goerli': process.env.ARBISCAN_TOKEN,
'arbitrum-one': process.env.ARBISCAN_TOKEN,
arbitrumGoerli: process.env.ARBISCAN_TOKEN,
arbitrumOne: process.env.ARBISCAN_TOKEN,
chiado: process.env.GNOSIS_TOKEN,
gnosis: process.env.GNOSIS_TOKEN
},
customChains: [
{
network: 'arbitrum-goerli',
chainId: 421613,
urls: {
apiURL: 'https://api-goerli.arbiscan.io/api',
browserURL: 'https://api-goerli.arbiscan.io'
}
}, {
network: 'chiado',
chainId: 10200,
urls: {
// Blockscout
apiURL: 'https://blockscout.com/gnosis/chiado/api',
browserURL: 'https://blockscout.com/gnosis/chiado'
}
}, {
network: 'gnosis',
chainId: 100,
urls: {
// 3) Select to what explorer verify the contracts
// Gnosisscan
apiURL: 'https://api.gnosisscan.io/api',
browserURL: 'https://gnosisscan.io/'
// Blockscout
// apiURL: "https://blockscout.com/xdai/mainnet/api",
// browserURL: "https://blockscout.com/xdai/mainnet",
}
}
]
}
}
3 changes: 3 additions & 0 deletions scripts/contracts/verify-contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const defaultToVerify = require('../deploy/contracts-verify.json')
* - Smart Contracts version. Example: v2.1.0
* - Network name. Example: mainnet, goerli, etc
* - Tag Name. Nevermined Smart Contracts can be deployed multiple times under different tag names. Example: public or common
* Optional parameters:
* - Temporary Path. Example: /tmp/nvm_contracts_verification_1234
* - Contract name to verify. Example: NeverminedToken or all
*/

function parseArguments() {
Expand Down

0 comments on commit 2d26d92

Please sign in to comment.