https://github.com/climax-solution/hardhat-arbitrum
https://github.com/climax-solution/hardhat-arbitrum
arbitrum javascript npm-package typescript
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/climax-solution/hardhat-arbitrum
- Owner: climax-solution
- License: mit
- Created: 2022-10-12T17:49:34.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T21:33:30.000Z (over 2 years ago)
- Last Synced: 2024-11-10T08:12:34.606Z (over 1 year ago)
- Topics: arbitrum, javascript, npm-package, typescript
- Language: TypeScript
- Homepage:
- Size: 48.8 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hardhat-arbitrum
Hardhat plugin for Arbitrum Developers.
## Features
ArbitrumScan Contract Verification
## Prerequisites
Before the installation steps you need to have your hardhat project initialized using the command
```bash
npx hardhat init
```
Make sure to have dependencies installed!
## Installation
Use the following command to install
```bash
npm i hardhat-arbitrum --save-dev
```
Import the plugin in your `hardhat.config.js`:
```js
require("hardhat-arbitrum");
```
Or if you are using TypeScript, in your `hardhat.config.ts`:
```ts
import "hardhat-arbitrum";
```
Remove / Comment the import for `@nomicfoundation/hardhat-toolbox`
Add the following configuration to the `config` object in `hardhat.config.js`.
```js
networks: {
arbitrumGoerli: {
// can be replaced with the RPC url of your choice.
url: "https://goerli-rollup.arbitrum.io/rpc",
accounts: [
""
],
},
arbitrumOne: {
url: "https://arb1.arbitrum.io/rpc",
accounts: [
""
],
}
},
etherscan: {
apiKey: {
arbitrumGoerli: "",
arbitrumOne: ""
},
},
```
Verify your contracts using the following command (Make sure your contracts are compiled before verification)
Arbitrum Goerli Testnet
```bash
npx hardhat verify --network arbitrumGoerli
```
Arbitrum Mainnet
```bash
npx hardhat verify --network arbitrumOne
```