Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add BASE networks to hardhat config #41

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
Loading