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 77788ba commit 24a3ab2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,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
30 changes: 29 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,16 @@ const config: HardhatUserConfig = {
url: "https://mode.drpc.org",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
zksync: false
},
avalanche: {
url: "https://avax.meowrpc.com",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
zksync: false
},
lisk: {
url: "https://rpc.api.lisk.com",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
zksync: false
}
},
gasReporter: {
Expand Down Expand Up @@ -195,7 +205,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 @@ -267,6 +279,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 24a3ab2

Please sign in to comment.