From db0ef9cd1c7df3ed05174203b8a4b0f19075b749 Mon Sep 17 00:00:00 2001 From: Corey Rice Date: Thu, 16 Nov 2023 16:46:14 -0300 Subject: [PATCH] feat: support exporting sepolia and ethereum deployments --- .github/workflows/ci.yaml | 5 ++++- hardhat.config.ts | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 448d689fe..47548dc01 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -116,8 +116,11 @@ jobs: run: | yarn hardhat export --network bsctestnet --export ./deployments/bsctestnet.json yarn hardhat export --network bscmainnet --export ./deployments/bscmainnet.json + yarn hardhat export --network sepolia --export ./deployments/sepolia.json + yarn hardhat export --network ethereum --export ./deployments/ethereum.json yarn prettier - uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: "feat: updating deployment files" \ No newline at end of file + commit_message: "feat: updating deployment files" + file_pattern: "deployments/*.json" diff --git a/hardhat.config.ts b/hardhat.config.ts index 4b1ea96d1..4b5742b0d 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -174,6 +174,18 @@ const config: HardhatUserConfig = { mnemonic: process.env.MNEMONIC || "", }, }, + sepolia: { + url: process.env.RPC_URL || "https://rpc.notadegen.com/eth/sepolia", + chainId: 11155111, + live: true, + gasPrice: 20000000000, // 20 gwei + }, + ethereum: { + url: process.env.ETHEREUM_ARCHIVE_NODE_URL || "https://eth-mainnet.public.blastapi.io", + chainId: 1, + live: true, + timeout: 1200000, // 20 minutes + }, }, gasReporter: { enabled: process.env.REPORT_GAS !== undefined,