diff --git a/README.md b/README.md index 299615e..eb2e487 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,6 @@ These URLs will be used to configure your `.env` file for accessing the RSK netw hh deploy --network rskTestnet --tags 721 ``` - #### 3. Interact With Contract - Mint ```shell @@ -119,6 +118,13 @@ hh erc721-mint \ --network rskTestnet ``` + +### Verify + +``` +npx hardhat verify --network rskTestnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1" +``` + --- ### Testing diff --git a/hardhat.config.ts b/hardhat.config.ts index 6fa42ce..21f05ff 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -23,7 +23,7 @@ import "./tasks/erc1155/contract-uri"; // Environment variable setup const RSK_MAINNET_RPC_URL = process.env.RSK_MAINNET_RPC_URL; -const RSK_TESTNET_RPC_URL = process.env.RSK_TESTNET_RPC_URL; +const RSK_TESTNET_RPC_URL = process.env.RSK_TESTNET_RPC_URL; const PRIVATE_KEY = process.env.PRIVATE_KEY; // Ensure environment variables are configured @@ -56,15 +56,40 @@ const config: HardhatUserConfig = { url: RSK_MAINNET_RPC_URL, chainId: 30, gasPrice: 60000000, - accounts:[PRIVATE_KEY] + accounts: [PRIVATE_KEY] }, rskTestnet: { - url: RSK_TESTNET_RPC_URL, + url: RSK_TESTNET_RPC_URL, chainId: 31, gasPrice: 60000000, - accounts:[PRIVATE_KEY] + accounts: [PRIVATE_KEY] }, }, + etherscan: { + apiKey: { + // Is not required by blockscout. Can be any non-empty string + rsktestnet: 'your API key', + rskmainnet: 'your API key' + }, + customChains: [ + { + network: "rsktestnet", + chainId: 31, + urls: { + apiURL: "https://rootstock-testnet.blockscout.com/api/", + browserURL: "https://rootstock-testnet.blockscout.com/", + } + }, + { + network: "rskmainnet", + chainId: 30, + urls: { + apiURL: "https://rootstock.blockscout.com/api/", + browserURL: "https://rootstock.blockscout.com/", + } + }, + ] + }, namedAccounts: { deployer: { default: 0, // Default is the first account