Skip to content

Commit

Permalink
Add Avalanche & Lisk chain
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiOhl committed Aug 13, 2024
1 parent 888ff6b commit 2dbae99
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Networks can be configured in _[hardhat.config.ts](hardhat.config.ts)_. We've pr
- `zeta` (ZetaChain Mainnet)
- `mint` (Mint Blockchain Mainnet)
- `mode` (Mode Network Mainnet)
- `avalanche` (Avalanche C-Chain)
- `lisk` (Lisk Mainnet)

## Verification

Expand Down
28 changes: 27 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ const config: HardhatUserConfig = {
mode: {
url: "https://mode.drpc.org",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
},
avalanche: {
url: "https://avax.meowrpc.com",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
},
lisk: {
url: "https://rpc.api.lisk.com",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
}
},
gasReporter: {
Expand Down Expand Up @@ -158,7 +166,9 @@ const config: HardhatUserConfig = {
scroll: process.env.SCROLLSCAN_API_KEY || "",
// zeta: "", // no etherscan
// mint: "", // no etherscan
mode: "mode"
mode: "mode",
avalanche: "avalanche",
lisk: "lisk"
},
customChains: [
{
Expand Down Expand Up @@ -230,6 +240,22 @@ const config: HardhatUserConfig = {
apiURL: "https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan",
browserURL: "https://modescan.io"
}
},
{
network: "avalanche",
chainId: 43114,
urls: {
apiURL: "https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan",
browserURL: "https://snowtrace.io"
}
},
{
network: "lisk",
chainId: 1135,
urls: {
apiURL: "https://blockscout.lisk.com/api",
browserURL: "https://blockscout.lisk.com"
}
}
]
},
Expand Down

0 comments on commit 2dbae99

Please sign in to comment.