Skip to content

Commit

Permalink
chg: add base-sepolia testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
maxweng committed Jul 1, 2024
1 parent 58a40b5 commit 8003e7d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ Built using [foundry](https://book.getfoundry.sh/) and [hardhat](https://hardhat
- [contract addresses](https://github.com/unioncredit/union-v2-contracts/blob/master/deployments/optimism-goerli/deployment.json)
- [deployment config](https://github.com/unioncredit/union-v2-contracts/blob/master/deployments/optimism-goerli/config.json)

- Base Sepolia

- [contract addresses](https://github.com/unioncredit/union-v2-contracts/blob/master/deployments/optimism-goerli/deployment.json)
- [deployment config](https://github.com/unioncredit/union-v2-contracts/blob/master/deployments/optimism-goerli/config.json)

## Install

To install dependencies:
Expand Down
22 changes: 20 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import "@openzeppelin/hardhat-upgrades";
import "@typechain/hardhat";
import "solidity-coverage";
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-verify";

console.log("[*] Environment");
console.log(` - ETHERSCAN_API_KEY: ${process.env.ETHERSCAN_API_KEY}`);
console.log(` - ETHERSCAN_API_KEY: ${process.env.BASE_SEPOLIA_API_KEY}`);
console.log(` - NODE_URL: ${process.env.NODE_URL}`);

export default {
Expand Down Expand Up @@ -52,6 +53,23 @@ export default {
paths: {cache: "hh-cache", tests: "./test/integration"},
mocha: {timeout: 400000000000, require: ["./test/integration/helper.ts"]},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
apiKey: {
sepolia: process.env.BASE_SEPOLIA_API_KEY,
"base-sepolia": process.env.BASE_SEPOLIA_API_KEY,
optimisticEthereum: process.env.ETHERSCAN_API_KEY
},
customChains: [
{
network: "base-sepolia",
chainId: 84532,
urls: {
apiURL: "https://sepolia.base.org/api",
browserURL: "https://base-sepolia.blockscout.com"
}
}
]
},
sourcify: {
enabled: false
}
};

0 comments on commit 8003e7d

Please sign in to comment.