0.0.6 • Published 2 years ago
hardhat-manta v0.0.6
hardhat-manta
Hardhat plugin for manta Developers.
Features
mantaScan Contract Verification
Prerequisites
Before the installation steps you need to have your hardhat project initialized using the command
npx hardhat initMake sure to have dependencies installed!
Installation
Use the following command to install
npm i hardhat-manta --save-devImport the plugin in your hardhat.config.js:
require("hardhat-manta");Or if you are using TypeScript, in your hardhat.config.ts:
import "hardhat-manta";Remove / Comment the import for @nomicfoundation/hardhat-toolbox
Add the following configuration to the config object in hardhat.config.js.
networks: {
mantaGoerli: {
// can be replaced with the RPC url of your choice.
url: "https://goerli-rollup.manta.io/rpc",
accounts: [
"<YOUR_PRIVATE_KEY>"
],
},
mantaOne: {
url: "https://1rpc.io/manta",
accounts: [
"<YOUR_PRIVATE_KEY>"
],
}
},
etherscan: {
apiKey: {
mantaGoerli: "<OPTIMISMSCAN_API_KEY>",
mantaOne: "<OPTIMISMSCAN_API_KEY>"
},
},Verify your contracts using the following command (Make sure your contracts are compiled before verification)
manta Goerli Testnet
npx hardhat verify <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS> --network mantaGoerlimanta Mainnet
npx hardhat verify <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS> --network mantaOne