From 1c2c6ec6aade7b86fd9b23702f6c6ab9ff64cb9c Mon Sep 17 00:00:00 2001 From: Ethen Pociask Date: Thu, 9 Jan 2025 23:35:44 +0700 Subject: [PATCH] chore: Add BASE networks to hardhat config --- .github/workflows/contract-tests.yml | 4 ++-- hardhat.config.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/contract-tests.yml b/.github/workflows/contract-tests.yml index 10d2866..da994c5 100644 --- a/.github/workflows/contract-tests.yml +++ b/.github/workflows/contract-tests.yml @@ -110,7 +110,7 @@ jobs: files: ./contracts/coverage.json verbose: false token: ${{ secrets.CODECOV_TOKEN }} - + # TODO: This is test is failing due testnode referencing a latest target when running # a prysm ETH validator. This causes config ingestion to fail and the resource to fail to spin up. # This has already been patched upstream and will need to be incorporated within the next rebasing. @@ -147,7 +147,7 @@ jobs: # - name: Test 4844 # run: yarn test:4844 - + # NOTE: OCL disables theses tests by default, not worth fixing until # they are supported upstream # SEE for ref: https://github.com/OffchainLabs/nitro-contracts/blob/94999b3e2d3b4b7f8e771cc458b9eb229620dd8f/.github/workflows/contract-tests.yml#L153-L247 diff --git a/hardhat.config.ts b/hardhat.config.ts index 6e895ba..571d357 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -92,6 +92,18 @@ module.exports = { enabled: process.env['SHOULD_FORK'] === '1', }, }, + base: { + url: '' + process.env['BASE_MAINNET_RPC'], + accounts: process.env['MAINNET_PRIVKEY'] + ? [process.env['MAINNET_PRIVKEY']] + : [], + }, + baseSepolia: { + url: '' + process.env['BASE_SEPOLIA_RPC'], + accounts: process.env['DEVNET_PRIVKEY'] + ? [process.env['DEVNET_PRIVKEY']] + : [], + }, mainnet: { url: 'https://mainnet.infura.io/v3/' + process.env['INFURA_KEY'], accounts: process.env['MAINNET_PRIVKEY']