add bease sepolia

This commit is contained in:
Sebastian
2024-06-03 09:50:20 +02:00
parent 4856d70345
commit 2183d7c593
4 changed files with 15396 additions and 0 deletions

101
base-sepolia.yml Normal file
View File

@@ -0,0 +1,101 @@
version: '3.1'
services:
base-sepolia: # this is Optimism's geth client
build: ./base
expose:
- 8545 # RPC / Websocket
- 30765 # P2P TCP (currently unused)
- 30765/udp # P2P UDP (currently unused)
- 6060 # metrics
- 855
ports:
- "30765:30765"
- "30765:30765/udp"
#command: [ "sh", "./geth-entrypoint" ]
restart: always
stop_grace_period: 3m
entrypoint: ./geth
command: --datadir=/data --verbosity=3 --http --http.corsdomain=* --http.vhosts=* --http.addr=0.0.0.0 --http.port=8545 --http.api=web3,debug,eth,net,engine --authrpc.addr=0.0.0.0 --authrpc.port=8551 --authrpc.vhosts=* --authrpc.jwtsecret=/jwtsecret --ws --ws.addr=0.0.0.0 --ws.port=8545 --ws.origins=* --ws.api=debug,eth,net,engine --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --syncmode=snap --gcmode=full --state.scheme=path --db.engine=pebble --discovery.port=30765 --maxpeers=100 --networkid=84532 --op-network=base-sepolia --rollup.halt=major --rollup.sequencerhttp=https://sepolia-sequencer.base.org --port=30765 --nat=extip:${IP}
volumes:
- base-sepolia:/data
- .jwtsecret:/jwtsecret
environment:
- "OP_GETH_GENESIS_FILE_PATH=sepolia/genesis-l2.json"
- "OP_GETH_SEQUENCER_HTTP=https://sepolia-sequencer.base.org"
- "OP_GETH_GCMODE=full"
- "OP_GETH_SYNCMODE=snap"
- "GETH_SYNCMODE=snap"
- "GETH_BOOTNODES=enode://548f715f3fc388a7c917ba644a2f16270f1ede48a5d88a4d14ea287cc916068363f3092e39936f1a3e7885198bef0e5af951f1d7b1041ce8ba4010917777e71f@18.210.176.114:30301,enode://6f10052847a966a725c9f4adf6716f9141155b99a0fb487fea3f51498f4c2a2cb8d534e680ee678f9447db85b93ff7c74562762c3714783a7233ac448603b25f@107.21.251.55:30301"
- "OP_GETH_STATE_SCHEME=path"
- "GETH_STATE_SCHEME=path"
- "OP_GETH_DB_ENGINE=pebble"
- "OP_GETH_P2P_PORT=30765"
- "GETH_DISCOVERY_PORT=30765"
- "GETH_DB_ENGINE=pebble"
- "P2P_PORT=30765"
- "WS_PORT=8545"
- "OP_NODE_L2_ENGINE_AUTH_RAW=${JWTSECRET}"
- "OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt"
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.base-stripprefix.stripprefix.prefixes=/base-sepolia"
- "traefik.http.services.base.loadbalancer.server.port=8545"
- "traefik.http.routers.base.entrypoints=websecure"
- "traefik.http.routers.base.tls.certresolver=myresolver"
- "traefik.http.routers.base.rule=Host(`$DOMAIN`) && PathPrefix(`/base-sepolia`)"
- "traefik.http.routers.base.middlewares=base-stripprefix, ipwhitelist"
networks:
- chains
base-sepolia-node:
build: ./base
depends_on:
- base-sepolia
volumes:
- .jwtsecret:/jwtsecret
expose:
- 8545 # RPC
- 54844 # P2P TCP
- 54844/udp # P2P UDP
- 7300 # metrics
- 6060 # pprof
ports:
- "54844:54844"
- "54844:54844/udp"
#command: [ "sh", "./op-node-entrypoint" ]
entrypoint: ./op-node
restart: always
stop_grace_period: 30s
environment:
- "OP_NODE_NETWORK=base-sepolia"
- "OP_NODE_SYNCMODE=execution-layer"
- "OP_NODE_L1_ETH_RPC=${BASE_ETHEREUM_ENDPOINT}"
- "OP_NODE_L2_ENGINE_AUTH_RAW=${JWTSECRET}"
- "OP_NODE_L2_ENGINE_AUTH=/jwtsecret"
- "OP_NODE_L2_ENGINE_RPC=http://base-sepolia:8551"
- "OP_NODE_LOG_LEVEL=info"
- "OP_NODE_METRICS_ADDR=0.0.0.0"
- "OP_NODE_METRICS_ENABLED=true"
- "OP_NODE_METRICS_PORT=7300"
- "OP_NODE_P2P_AGENT=base"
- "OP_NODE_P2P_BOOTNODES=enr:-J64QBwRIWAco7lv6jImSOjPU_W266lHXzpAS5YOh7WmgTyBZkgLgOwo_mxKJq3wz2XRbsoBItbv1dCyjIoNq67mFguGAYrTxM42gmlkgnY0gmlwhBLSsHKHb3BzdGFja4S0lAUAiXNlY3AyNTZrMaEDmoWSi8hcsRpQf2eJsNUx-sqv6fH4btmo2HsAzZFAKnKDdGNwgiQGg3VkcIIkBg,enr:-J64QFa3qMsONLGphfjEkeYyF6Jkil_jCuJmm7_a42ckZeUQGLVzrzstZNb1dgBp1GGx9bzImq5VxJLP-BaptZThGiWGAYrTytOvgmlkgnY0gmlwhGsV-zeHb3BzdGFja4S0lAUAiXNlY3AyNTZrMaEDahfSECTIS_cXyZ8IyNf4leANlZnrsMEWTkEYxf4GMCmDdGNwgiQGg3VkcIIkBg"
- "OP_NODE_BETA_EXTRA_NETWORKS=true"
- "OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true"
- "OP_NODE_P2P_LISTEN_IP=0.0.0.0"
- "OP_NODE_P2P_LISTEN_TCP_PORT=54844"
- "OP_NODE_P2P_LISTEN_UDP_PORT=54844"
- "OP_NODE_ROLLUP_CONFIG=sepolia/rollup.json"
- "OP_NODE_RPC_ADDR=0.0.0.0"
- "OP_NODE_RPC_PORT=8545"
- "OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log"
- "OP_NODE_VERIFIER_L1_CONFS=4"
- "OP_NODE_L1_RPC_KIND=${BASE_ETHEREUM_ENDPOINT_KIND:-basic}"
- "OP_NODE_L1_TRUST_RPC=${BASE_ETHEREUM_ENDPOINT_TRUST:-false}"
- "OP_NODE_L1_BEACON=${BASE_ETHEREUM_ENDPOINT_BEACON}"
networks:
- chains
volumes:
base-sepolia:

15256
base/sepolia/genesis-l2.json Normal file

File diff suppressed because one or more lines are too long

30
base/sepolia/rollup.json Normal file
View File

@@ -0,0 +1,30 @@
{
"genesis": {
"l1": {
"hash": "0xcac9a83291d4dec146d6f7f69ab2304f23f5be87b1789119a0c5b1e4482444ed",
"number": 4370868
},
"l2": {
"hash": "0x0dcc9e089e30b90ddfc55be9a37dd15bc551aeee999d2e2b51414c54eaf934e4",
"number": 0
},
"l2_time": 1695768288,
"system_config": {
"batcherAddr": "0x6cdebe940bc0f26850285caca097c11c33103e47",
"overhead": "0x0000000000000000000000000000000000000000000000000000000000000834",
"scalar": "0x00000000000000000000000000000000000000000000000000000000000f4240",
"gasLimit": 25000000
}
},
"block_time": 2,
"max_sequencer_drift": 600,
"seq_window_size": 3600,
"channel_timeout": 300,
"l1_chain_id": 11155111,
"l2_chain_id": 84532,
"regolith_time": 0,
"batch_inbox_address": "0xff00000000000000000000000000000000084532",
"deposit_contract_address": "0x49f53e41452c74589e85ca1677426ba426459e85",
"l1_system_config_address": "0xf272670eb55e895584501d564afeb048bed26194",
"protocol_versions_address": "0x0000000000000000000000000000000000000000"
}

View File

@@ -7,6 +7,15 @@
"default": [ "default": [
"base-fullnode" "base-fullnode"
] ]
},
"base-sepolia": {
"id": 84532,
"urls": [
"https://sepolia.base.org"
],
"default": [
"base-sepolia"
]
}, },
"ethereum": { "ethereum": {
"id": 1, "id": 1,