Skip to content

Commit

Permalink
Support ApeChain
Browse files Browse the repository at this point in the history
- Add Hardhat network
- Add Etherscan config for verification

Signed-off-by: Channing <[email protected]>
  • Loading branch information
channing-magiceden authored Oct 21, 2024
1 parent 44cb22e commit e1c7fa3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ const config: HardhatUserConfig = {
accountsBalance: '1000000000000000000000'
}
},
apechain: {
url: 'https://apechain.calderachain.xyz/http',
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
base: {
url: process.env.BASE_URL || '',
accounts:
Expand Down Expand Up @@ -128,6 +133,16 @@ const config: HardhatUserConfig = {
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
customChains: [
{
network: "apechain",
chainId: 33139,
urls: {
apiURL: "https://api.apescan.io/api",
browserURL: "https://apescan.io/"
}
}
]
},
sourcify: {
enabled: true
Expand Down

0 comments on commit e1c7fa3

Please sign in to comment.