Skip to content

Commit

Permalink
Merge pull request #154 from BitGo/COIN-1108-support-base-chain
Browse files Browse the repository at this point in the history
feat(config): support base chain
  • Loading branch information
kamleshmugdiya authored Aug 14, 2024
2 parents aad5058 + 26b1181 commit 853610d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
32 changes: 30 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,14 @@ const config: HardhatUserConfig = {
tzketh: {
url: `${QUICKNODE_ZKSYNC_SEPOLIA_API_KEY}`,
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
},
tbaseeth: {
url: 'https://sepolia.base.org',
accounts: [`${TESTNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
},
baseeth: {
url: 'https://mainnet.base.org/',
accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
}
},
gasReporter: {
Expand All @@ -146,7 +155,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 +208,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
9 changes: 9 additions & 0 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ async function main() {
walletImplementationContractName = 'ZkethWalletSimple';
contractPath = `contracts/coins/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
break;
// base sepolia
case 84532:
// base
case 8453:
walletImplementationContractName = 'WalletSimple';
forwarderContractName = 'Forwarder';
forwarderFactoryContractName = 'ForwarderFactory';
contractPath = `contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
break;
}

console.log(
Expand Down

0 comments on commit 853610d

Please sign in to comment.