Skip to content

Commit

Permalink
Add support for IOTA and Sonic chains
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiOhl committed Jan 8, 2025
1 parent c3352bb commit 10b5c55
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ BLASTSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
OKLINK_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
COREDAOSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
ZKEVM_POLYGONSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
SCROLLSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
SCROLLSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
SONICSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ Networks can be configured in _[hardhat.config.ts](hardhat.config.ts)_. We've pr
- `lisk` (Lisk Mainnet)
- `form` (Form Mainnet)
- `ink` (Ink Mainnet)
- `iota` (IOTA EVM Mainnet)
- `sonic` (Sonic 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 @@ -148,6 +148,14 @@ const config: HardhatUserConfig = {
ink: {
url: "https://rpc-gel.inkonchain.com",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
},
iota: {
url: "https://json-rpc.evm.iotaledger.net",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
},
sonic: {
url: "https://rpc.soniclabs.com/",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
}
},
gasReporter: {
Expand Down Expand Up @@ -183,7 +191,9 @@ const config: HardhatUserConfig = {
avalanche: "avalanche",
lisk: "lisk",
form: "form",
ink: "ink"
ink: "ink",
iota: "iota",
sonic: process.env.SONICSCAN_API_KEY || ""
},
customChains: [
{
Expand Down Expand Up @@ -287,6 +297,22 @@ const config: HardhatUserConfig = {
apiURL: "https://explorer.inkonchain.com/api",
browserURL: "https://explorer.inkonchain.com"
}
},
{
network: "iota",
chainId: 8822,
urls: {
apiURL: "https://explorer.evm.iota.org/api",
browserURL: "https://explorer.evm.iota.org"
}
},
{
network: "sonic",
chainId: 146,
urls: {
apiURL: "https://api.sonicscan.org/api",
browserURL: "https://sonicscan.org"
}
}
]
},
Expand Down

0 comments on commit 10b5c55

Please sign in to comment.