Commit 0b782a2e authored by Mark Tyneway's avatar Mark Tyneway

sdk: update to add mainnet network in hh config

Ports a change from `feat/mainnet` so that the hardhat
config can run against a mainnet network. Ensures that
it can find the deploy artifacts on disk for running
the e2e hh tasks.
parent 9b14083d
...@@ -15,6 +15,12 @@ const config: HardhatUserConfig = { ...@@ -15,6 +15,12 @@ const config: HardhatUserConfig = {
sources: './test/contracts', sources: './test/contracts',
}, },
networks: { networks: {
mainnet: {
url: process.env.L1_RPC || 'https://mainnet-l1-rehearsal.optimism.io',
accounts: [
'ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
],
},
devnetL1: { devnetL1: {
url: 'http://localhost:8545', url: 'http://localhost:8545',
accounts: [ accounts: [
...@@ -43,6 +49,10 @@ const config: HardhatUserConfig = { ...@@ -43,6 +49,10 @@ const config: HardhatUserConfig = {
}, },
], ],
deployments: { deployments: {
mainnet: [
'../contracts/deployments/mainnet',
'../contracts-bedrock/deployments/mainnet',
],
hivenet: ['../contracts-bedrock/deployments/hivenet'], hivenet: ['../contracts-bedrock/deployments/hivenet'],
devnetL1: ['../contracts-bedrock/deployments/devnetL1'], devnetL1: ['../contracts-bedrock/deployments/devnetL1'],
goerli: [ goerli: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment