Skip to content

Commit

Permalink
Merge pull request #67 from lidofinance/deployment/optimism-sepolia
Browse files Browse the repository at this point in the history
Config for Optimism Sepolia
  • Loading branch information
kovalgek authored Feb 29, 2024
2 parents 277631b + bea3781 commit c6ffd32
Show file tree
Hide file tree
Showing 25 changed files with 322 additions and 209 deletions.
71 changes: 71 additions & 0 deletions .env.wsteth.opt_sepolia
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Detailed info: https://github.com/lidofinance/lido-l2#Project-Configuration

# ############################
# RPCs
# ############################

RPC_ETH_SEPOLIA=
RPC_OPT_SEPOLIA=https://sepolia.optimism.io

# ############################
# Etherscan
# ############################

ETHERSCAN_API_KEY_ETH=
ETHERSCAN_API_KEY_OPT=

# ############################
# Bridge/Gateway Deployment
# ############################

# Address of the token to deploy the bridge/gateway for
TOKEN=0xB82381A3fBD3FaFA77B3a7bE693342618240067b

# Name of the network environments used by deployment scripts.
# Might be one of: "mainnet", "sepolia".
NETWORK=sepolia

# Private key of the deployer account used for deployment process
ETH_DEPLOYER_PRIVATE_KEY=
OPT_DEPLOYER_PRIVATE_KEY=

L1_PROXY_ADMIN=0x32A0E5828B62AAb932362a4816ae03b860b65e83
L1_BRIDGE_ADMIN=0x32A0E5828B62AAb932362a4816ae03b860b65e83
L1_DEPOSITS_ENABLED=true
L1_WITHDRAWALS_ENABLED=true
L1_DEPOSITS_ENABLERS=["0x32A0E5828B62AAb932362a4816ae03b860b65e83"]
L1_DEPOSITS_DISABLERS="["0x32A0E5828B62AAb932362a4816ae03b860b65e83", "0xa5F1d7D49F581136Cf6e58B32cBE9a2039C48bA1"]"
L1_WITHDRAWALS_ENABLERS=["0x32A0E5828B62AAb932362a4816ae03b860b65e83"]
L1_WITHDRAWALS_DISABLERS="["0x32A0E5828B62AAb932362a4816ae03b860b65e83", "0xa5F1d7D49F581136Cf6e58B32cBE9a2039C48bA1"]"

L2_PROXY_ADMIN=0xf695357C66bA514150Da95b189acb37b46DDe602
L2_BRIDGE_ADMIN=0xf695357C66bA514150Da95b189acb37b46DDe602
L2_DEPOSITS_ENABLED=true
L2_WITHDRAWALS_ENABLED=true
L2_DEPOSITS_ENABLERS=["0xf695357C66bA514150Da95b189acb37b46DDe602"]
L2_DEPOSITS_DISABLERS="["0xf695357C66bA514150Da95b189acb37b46DDe602", "0xa5F1d7D49F581136Cf6e58B32cBE9a2039C48bA1"]"
L2_WITHDRAWALS_ENABLERS=["0xf695357C66bA514150Da95b189acb37b46DDe602"]
L2_WITHDRAWALS_DISABLERS="["0xf695357C66bA514150Da95b189acb37b46DDe602", "0xa5F1d7D49F581136Cf6e58B32cBE9a2039C48bA1"]"

# ############################
# Integration & E2E Testing
# ############################

TESTING_OPT_NETWORK=sepolia
TESTING_OPT_L1_TOKEN=0xB82381A3fBD3FaFA77B3a7bE693342618240067b
TESTING_OPT_L2_TOKEN=0x24B47cd3A74f1799b32B2de11073764Cb1bb318B
TESTING_OPT_L1_ERC20_TOKEN_BRIDGE=0x4Abf633d9c0F4aEebB4C2E3213c7aa1b8505D332
TESTING_OPT_L2_ERC20_TOKEN_BRIDGE=0xdBA2760246f315203F8B716b3a7590F0FFdc704a

# ############################
# Integration Testing
# ############################

TESTING_USE_DEPLOYED_CONTRACTS=true
TESTING_L1_TOKENS_HOLDER=

# ############################
# E2E Testing
# ############################

TESTING_PRIVATE_KEY=
42 changes: 30 additions & 12 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,47 +40,47 @@ const config: HardhatUserConfig = {
eth_mainnet: {
url: env.string("RPC_ETH_MAINNET", ""),
},
eth_goerli: {
url: env.string("RPC_ETH_GOERLI", ""),
eth_sepolia: {
url: env.string("RPC_ETH_SEPOLIA", ""),
},

// Ethereum Fork Chains
eth_mainnet_fork: {
url: "http://localhost:8545",
},
eth_goerli_fork: {
eth_sepolia_fork: {
url: "http://localhost:8545",
},

// Arbitrum Public Chains
arb_mainnet: {
url: env.string("RPC_ARB_MAINNET", ""),
},
arb_goerli: {
url: env.string("RPC_ARB_GOERLI", ""),
arb_sepolia: {
url: env.string("RPC_ARB_SEPOLIA", ""),
},

// Arbitrum Fork Chains
arb_mainnet_fork: {
url: "http://localhost:8546",
},
arb_goerli_fork: {
arb_sepolia_fork: {
url: "http://localhost:8546",
},

// Optimism Public Chains
opt_mainnet: {
url: env.string("RPC_OPT_MAINNET", ""),
},
opt_goerli: {
url: env.string("RPC_OPT_GOERLI", ""),
opt_sepolia: {
url: env.string("RPC_OPT_SEPOLIA", ""),
},

// Optimism Fork Chains
opt_mainnet_fork: {
url: "http://localhost:9545",
},
opt_goerli_fork: {
opt_sepolia_fork: {
url: "http://localhost:9545",
},
},
Expand All @@ -91,12 +91,30 @@ const config: HardhatUserConfig = {
etherscan: {
apiKey: {
mainnet: env.string("ETHERSCAN_API_KEY_ETH", ""),
goerli: env.string("ETHERSCAN_API_KEY_ETH", ""),
arbitrumGoerli: env.string("ETHERSCAN_API_KEY_ARB", ""),
sepolia: env.string("ETHERSCAN_API_KEY_ETH", ""),
arbitrumOne: env.string("ETHERSCAN_API_KEY_ARB", ""),
optimisticEthereum: env.string("ETHERSCAN_API_KEY_OPT", ""),
optimisticGoerli: env.string("ETHERSCAN_API_KEY_OPT", ""),
"opt_sepolia": env.string("ETHERSCAN_API_KEY_OPT", ""),
},

customChains: [
{
network: 'sepolia',
chainId: 11155111,
urls: {
apiURL: 'https://api-sepolia.etherscan.io/api',
browserURL: 'https://sepolia.etherscan.io',
},
},
{
network: 'opt_sepolia',
chainId: 11155420,
urls: {
apiURL: 'https://api-sepolia-optimism.etherscan.io/api',
browserURL: 'https://sepolia-optimism.etherscan.io',
},
},
],
},
typechain: {
externalArtifacts: [
Expand Down
Loading

0 comments on commit c6ffd32

Please sign in to comment.