forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from bobanetwork/add-bnb-testnet-support
Add boba bnb testnet support
- Loading branch information
Showing
37 changed files
with
9,350 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
version: '3.4' | ||
|
||
# The geth db can be downloaded from | ||
# https://boba-db.s3.us-east-2.amazonaws.com/bnb-testnet/boba-bnb-testnet-geth-db.tgz | ||
# and extracted to the DATA_DIR | ||
|
||
# The jwt-secret.txt file should be a random string of32 characters and should be kept secret. | ||
|
||
# The p2p-node-key.txt is the private key used for the node to identify itself. | ||
|
||
# The discovery and peerstore directories are used to store the peerstore and discovery data. | ||
|
||
services: | ||
l2: | ||
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth:${GETH_VERSION:-v1.101308.1} | ||
command: > | ||
--datadir=/db | ||
--networkid=9728 | ||
--http | ||
--http.addr=0.0.0.0 | ||
--http.port=9545 | ||
--http.corsdomain=* | ||
--http.vhosts=* | ||
--authrpc.addr=0.0.0.0 | ||
--authrpc.port=8551 | ||
--authrpc.vhosts=* | ||
--authrpc.jwtsecret=/config/jwt-secret.txt | ||
--rollup.disabletxpoolgossip=true | ||
--http.api=eth,debug,net,web3 | ||
--nodiscover | ||
--syncmode=full | ||
--maxpeers=0 | ||
--rollup.sequencerhttp=https://testnet.bnb.boba.network | ||
ports: | ||
- "9545:9545" | ||
- "8551:8551" | ||
volumes: | ||
- ./jwt-secret.txt:/config/jwt-secret.txt | ||
- DATA_DIR:/db | ||
op-node: | ||
depends_on: | ||
- l2 | ||
image: us-docker.pkg.dev/boba-392114/bobanetwork-tools-artifacts/images/op-node:${OP_NODE_VERSION:-latest} | ||
command: > | ||
op-node | ||
--l1=${ETH1_HTTP:-https://bsc-testnet.public.blastapi.io.co} | ||
--l1.beacon.ignore=true | ||
--l2=http://l2:8551 | ||
--l2.jwt-secret=/config/jwt-secret.txt | ||
--network=boba-bnb-testnet | ||
--rpc.addr=0.0.0.0 | ||
--rpc.port=8545 | ||
--plasma.enabled=false | ||
# Optional flags | ||
# These flags are optional and can be used to identify the node and store the peerstore and discovery data. | ||
# We recommend adding these flags to your configuration to help identify your node and store the peerstore and discovery data. | ||
# --p2p.ban.peers=false | ||
# --p2p.priv.path=/config/p2p-node-key.txt | ||
# --p2p.discovery.path=/p2p_discovery_db | ||
# --p2p.peerstore.path=/p2p_peerstore_db | ||
ports: | ||
- "8545:8545" | ||
volumes: | ||
- ./jwt-secret.txt:/config/jwt-secret.txt | ||
# - ./p2p-node-key.txt:/config/p2p-node-key.txt | ||
# - ./discovery:/p2p_discovery_db | ||
# - ./peerstore:/p2p_peerstore_db | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: '3.4' | ||
|
||
# The legacy geth can be downloaded from | ||
# https://boba-db.s3.us-east-2.amazonaws.com/bnb-testnet/boba-bnb-testnet-geth-db-legacy.tgz | ||
# and extracted to the DATA_DIR | ||
|
||
# This service serves as the legacy chain before the migration | ||
services: | ||
legacy-l2: | ||
image: bobanetwork/l2geth:v0.9.5 | ||
environment: | ||
CHAIN_ID: '9728' | ||
NETWORK_ID: '9728' | ||
NO_USB: 'true' | ||
NO_DISCOVER: 'true' | ||
DATADIR: '/root/.ethereum' | ||
GCMODE: 'archive' | ||
IPC_DISABLE: 'true' | ||
TARGET_GAS_LIMIT: '11000000' | ||
USING_OVM: 'true' | ||
RPC_ENABLE: 'true' | ||
RPC_ADDR: '0.0.0.0' | ||
RPC_PORT: '8545' | ||
RPC_API: eth,net,rollup,web3,debug | ||
RPC_CORS_DOMAIN: '*' | ||
RPC_VHOSTS: '*' | ||
WS: 'true' | ||
WS_ADDR: '0.0.0.0' | ||
WS_PORT: '8546' | ||
WS_API: 'eth,net,rollup,web3' | ||
WS_ORIGINS: '*' | ||
ROLLUP_BACKEND: 'l2' | ||
ROLLUP_VERIFIER_ENABLE: 'true' | ||
ROLLUP_READONLY: 'true' | ||
BLOCK_SIGNER_KEY: "6587ae678cf4fc9a33000cdbf9f35226b71dcc6a4684a31203241f9bcfd55d27" | ||
BLOCK_SIGNER_ADDRESS: "0x00000398232E2064F896018496b4b44b3D62751F" | ||
ROLLUP_ENFORCE_FEES: 'true' | ||
TURING_CREDIT_ADDRESS: "0x4200000000000000000000000000000000000020" | ||
L2_BOBA_TOKEN_ADDRESS: "0x4200000000000000000000000000000000000023" | ||
BOBA_GAS_PRICE_ORACLE_ADDRESS: "0x4200000000000000000000000000000000000024" | ||
ports: | ||
- ${LEGACY_L2_HTTP_PORT:-8545}:8545 | ||
- ${LEGACY_L2_WS_PORT:-8546}:8546 | ||
volumes: | ||
- DATA_DIR:/root/.ethereum | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
version: '3.4' | ||
|
||
# The erigon db can be downloaded from | ||
# https://boba-db.s3.us-east-2.amazonaws.com/bnb-testnet/boba-bnb-testnet-erigon-snapshot-675077.tgz | ||
# and extracted to the DATA_DIR | ||
|
||
# The jwt-secret.txt file should be a random string of32 characters and should be kept secret. | ||
|
||
# The p2p-node-key.txt is the private key used for the node to identify itself. | ||
|
||
# The discovery and peerstore directories are used to store the peerstore and discovery data. | ||
|
||
services: | ||
l2: | ||
image: us-docker.pkg.dev/boba-392114/bobanetwork-tools-artifacts/images/op-erigon:${ERIGON_VERSION:-latest} | ||
command: | | ||
--datadir=/db | ||
--chain=boba-bnb-testnet | ||
--http.addr=0.0.0.0 | ||
--http.port=9545 | ||
--http.corsdomain=* | ||
--http.vhosts=* | ||
--authrpc.addr=0.0.0.0 | ||
--authrpc.port=8551 | ||
--authrpc.vhosts=* | ||
--authrpc.jwtsecret=/config/jwt-secret.txt | ||
--http.api=eth,debug,net,engine,web3 | ||
--txpool.gossip.disable=true | ||
--rollup.sequencerhttp=https://testnet.bnb.boba.network | ||
--db.size.limit=8TB | ||
ports: | ||
- "9545:9545" | ||
- "8551:8551" | ||
volumes: | ||
- ./jwt-secret.txt:/config/jwt-secret.txt | ||
- DATA_DIR:/db | ||
op-node: | ||
depends_on: | ||
- l2 | ||
image: us-docker.pkg.dev/boba-392114/bobanetwork-tools-artifacts/images/op-node:${OP_NODE_VERSION:-latest} | ||
command: > | ||
op-node | ||
--l1=${ETH1_HTTP:-https://bsc-testnet.public.blastapi.io.co} | ||
--l1.beacon.ignore=true | ||
--l2=http://l2:8551 | ||
--l2.jwt-secret=/config/jwt-secret.txt | ||
--network=boba-bnb-testnet | ||
--rpc.addr=0.0.0.0 | ||
--rpc.port=8545 | ||
--plasma.enabled=false | ||
# Optional flags | ||
# These flags are optional and can be used to identify the node and store the peerstore and discovery data. | ||
# We recommend adding these flags to your configuration to help identify your node and store the peerstore and discovery data. | ||
# --p2p.ban.peers=false | ||
# --p2p.priv.path=/config/p2p-node-key.txt | ||
# --p2p.discovery.path=/p2p_discovery_db | ||
# --p2p.peerstore.path=/p2p_peerstore_db | ||
ports: | ||
- "8545:8545" | ||
volumes: | ||
- ./jwt-secret.txt:/config/jwt-secret.txt | ||
# - ./p2p-node-key.txt:/config/p2p-node-key.txt | ||
# - ./discovery:/p2p_discovery_db | ||
# - ./peerstore:/p2p_peerstore_db | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
packages/contracts-bedrock/deploy-config/boba-bnb-testnet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"finalSystemOwner": "0xd3EdFbD01829c5A97B94B20F82DC17088Cc00031", | ||
"portalGuardian": "0xd3EdFbD01829c5A97B94B20F82DC17088Cc00031", | ||
"superchainConfigGuardian": "0xd3EdFbD01829c5A97B94B20F82DC17088Cc00031", | ||
"controller": "0xd3EdFbD01829c5A97B94B20F82DC17088Cc00031", | ||
|
||
"l1StartingBlockTag": "0x87063262e607919b1879aeca6a6652d2d601326518a58a0f85245c05b14f8666", | ||
|
||
"l1ChainID": 97, | ||
"l1BlockTime": 3, | ||
"l2ChainID": 9728, | ||
"l2BlockTime": 2, | ||
|
||
"maxSequencerDrift": 900, | ||
"sequencerWindowSize": 3600, | ||
"channelTimeout": 300, | ||
|
||
"p2pSequencerAddress": "0x747a375E6bea0735FC184a3A8FA0520435404347", | ||
"batchInboxAddress": "0xfFf0000000000000000000000000000000009728", | ||
"batchSenderAddress": "0xfcdd863d1d21f609f0c0737d07634b0b146ef266", | ||
|
||
"l2OutputOracleSubmissionInterval": 900, | ||
"l2OutputOracleStartingBlockNumber": 675077, | ||
"l2OutputOracleStartingTimestamp": 1718920167, | ||
|
||
"l2OutputOracleProposer": "0xd0d2cb0d7d1ab3d049b7bc1a928c66d83e68ab21", | ||
"l2OutputOracleChallenger": "0xd3EdFbD01829c5A97B94B20F82DC17088Cc00031", | ||
|
||
"finalizationPeriodSeconds": 12, | ||
|
||
"proxyAdminOwner": "0xd3EdFbD01829c5A97B94B20F82DC17088Cc00031", | ||
"baseFeeVaultRecipient": "0x0A4429E69FbddF6F2A0ACE9896f7D50b3ee93523", | ||
"l1FeeVaultRecipient": "0x0A4429E69FbddF6F2A0ACE9896f7D50b3ee93523", | ||
"sequencerFeeVaultRecipient": "0x0A4429E69FbddF6F2A0ACE9896f7D50b3ee93523", | ||
|
||
"baseFeeVaultMinimumWithdrawalAmount": "0x0", | ||
"l1FeeVaultMinimumWithdrawalAmount": "0x0", | ||
"sequencerFeeVaultMinimumWithdrawalAmount": "0x0", | ||
"baseFeeVaultWithdrawalNetwork": 1, | ||
"l1FeeVaultWithdrawalNetwork": 1, | ||
"sequencerFeeVaultWithdrawalNetwork": 1, | ||
|
||
"gasPriceOracleOverhead": 2100, | ||
"gasPriceOracleScalar": 1000000, | ||
|
||
"governanceTokenSymbol": "OP", | ||
"governanceTokenName": "Optimism", | ||
"governanceTokenOwner": "0x0000000000000000000000000000000000000000", | ||
|
||
"l2GenesisBlockGasLimit": "0x1C9C380", | ||
"l2GenesisBlockBaseFeePerGas": "0x3b9aca00", | ||
|
||
"eip1559Denominator": 50, | ||
"eip1559Elasticity": 6, | ||
"eip1559DenominatorCanyon": 250, | ||
|
||
"l1BobaTokenAddress": "0x0000000000000000000000000000000000000000", | ||
|
||
"requiredProtocolVersion": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"recommendedProtocolVersion": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
|
||
"l2GenesisRegolithTimeOffset": "0x0", | ||
"l2GenesisCanyonTimeOffset": "0x0", | ||
"l2GenesisDeltaTimeOffset": "0x0", | ||
"l2GenesisEcotoneTimeOffset": "0x1" | ||
} |
1 change: 1 addition & 0 deletions
1
packages/contracts-bedrock/deployments/boba-bnb-testnet/.chainId
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
97 |
Oops, something went wrong.