New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

hardhat-manta

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat-manta

Hardhat plugin for Mantle

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
11
1000%
Maintainers
1
Weekly downloads
 
Created
Source

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 init

Make sure to have dependencies installed!

Installation

Use the following command to install

npm i hardhat-manta --save-dev

Import 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 mantaGoerli

manta Mainnet

npx hardhat verify <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS> --network mantaOne

Keywords

ethereum

FAQs

Package last updated on 11 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts