Skip to content

Commit

Permalink
feat(config): support base chain
Browse files Browse the repository at this point in the history
Ticket: COIN-1108
  • Loading branch information
mullapudipruthvik committed Jul 4, 2024
1 parent 9a93e13 commit 4a17abe
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const {
BSCSCAN_API_KEY,
ARBISCAN_API_KEY,
OPTIMISTIC_ETHERSCAN_API_KEY,
ZKSYNC_EXPLORER_API_KEY
ZKSYNC_EXPLORER_API_KEY,
BASESCAN_API_KEY
} = process.env;

const config: HardhatUserConfig = {
Expand Down Expand Up @@ -121,6 +122,20 @@ const config: HardhatUserConfig = {
tzketh: {
url: `${QUICKNODE_ZKSYNC_SEPOLIA_API_KEY}`,
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
},
tbaseeth: {
url: 'https://sepolia.base.org',
accounts: [
`${PRIVATE_KEY_FOR_V1_WALLET_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT_BACKUP}`
]
},
baseeth: {
url: 'https://mainnet.base.org/',
accounts: [
`${PRIVATE_KEY_FOR_V1_WALLET_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT_BACKUP}`
]
}
},
gasReporter: {
Expand All @@ -146,7 +161,10 @@ const config: HardhatUserConfig = {
optimisticSepolia: `${OPTIMISTIC_ETHERSCAN_API_KEY}`,
// zksync
zksync: `${ZKSYNC_EXPLORER_API_KEY}`,
zksyncSepolia: `${ZKSYNC_EXPLORER_API_KEY}`
zksyncSepolia: `${ZKSYNC_EXPLORER_API_KEY}`,
// base chain
baseSepolia: `${BASESCAN_API_KEY}`,
base: `${BASESCAN_API_KEY}`
},
customChains: [
{
Expand Down Expand Up @@ -196,6 +214,22 @@ const config: HardhatUserConfig = {
apiURL: 'https://api-amoy.polygonscan.com/api',
browserURL: 'https://amoy.polygonscan.com'
}
},
{
network: 'baseSepolia',
chainId: 84532,
urls: {
apiURL: 'https://api-sepolia.basescan.org/api',
browserURL: 'https://sepolia.basescan.org/'
}
},
{
network: 'base',
chainId: 8453,
urls: {
apiURL: 'https://api.basescan.org/api',
browserURL: 'https://basescan.org/'
}
}
]
},
Expand Down

0 comments on commit 4a17abe

Please sign in to comment.