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

Config for Optimism Sepolia #67

Merged
merged 5 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
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=
kovalgek marked this conversation as resolved.
Show resolved Hide resolved
TESTING_OPT_L1_ERC20_TOKEN_BRIDGE=
TESTING_OPT_L2_ERC20_TOKEN_BRIDGE=

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

TESTING_USE_DEPLOYED_CONTRACTS=true
TESTING_L1_TOKENS_HOLDER=

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

TESTING_PRIVATE_KEY=
43 changes: 31 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,31 @@ 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", ""),
// arbitrumSepolia: env.string("ETHERSCAN_API_KEY_ARB", ""),
kovalgek marked this conversation as resolved.
Show resolved Hide resolved
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", ""),
kovalgek marked this conversation as resolved.
Show resolved Hide resolved
},

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
Loading