From ec365a35af0d8917bb4560cf0d1f54e4e2b4c251 Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:18:04 +0100 Subject: [PATCH 1/2] fix: arbitrum and gnosis networks are coming by default --- hardhat.config.js | 32 ++------------------------- scripts/contracts/verify-contracts.js | 4 ++++ 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/hardhat.config.js b/hardhat.config.js index b42c7d5f..7b97de82 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -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", - } - } ] } } diff --git a/scripts/contracts/verify-contracts.js b/scripts/contracts/verify-contracts.js index 4c8e644f..f0f1d41a 100755 --- a/scripts/contracts/verify-contracts.js +++ b/scripts/contracts/verify-contracts.js @@ -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() { @@ -123,6 +126,7 @@ if (args.length > 3) { if (args.length > 4) { tempDir = args[4] } else { tempDir = createEphemeralFolder(version) } + console.log(`\nVerifying contracts (${contractsToVerify}) of version ${version} deployed on network ${network} using the tag ${tag}\n`) console.log(`Using contracts folder ${tempDir}`) From fae550140c4e572049fde6d254430c091c72a2a9 Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:18:39 +0100 Subject: [PATCH 2/2] chore: linting --- scripts/contracts/verify-contracts.js | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/contracts/verify-contracts.js b/scripts/contracts/verify-contracts.js index f0f1d41a..1123688f 100755 --- a/scripts/contracts/verify-contracts.js +++ b/scripts/contracts/verify-contracts.js @@ -126,7 +126,6 @@ if (args.length > 3) { if (args.length > 4) { tempDir = args[4] } else { tempDir = createEphemeralFolder(version) } - console.log(`\nVerifying contracts (${contractsToVerify}) of version ${version} deployed on network ${network} using the tag ${tag}\n`) console.log(`Using contracts folder ${tempDir}`)