From de59e7c233774b11ada926ab8f513958e0fcee34 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Thu, 13 Jun 2024 05:55:59 +0200 Subject: [PATCH] add scroll sepolia --- reference-rpc-endpoint.json | 9 +++++- scroll-sepolia.yml | 63 +++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 scroll-sepolia.yml diff --git a/reference-rpc-endpoint.json b/reference-rpc-endpoint.json index 38636476..d06d27ef 100644 --- a/reference-rpc-endpoint.json +++ b/reference-rpc-endpoint.json @@ -306,8 +306,15 @@ "scroll": { "id": 534352, "urls": ["https://rpc.scroll.io"], - "default": ["scroll-mainnet"] + "default": ["scroll-mainnet"], + "archive": ["scroll-mainnet"] }, + "scroll-sepolia": { + "id": 534351, + "urls": ["https://sepolia-rpc.scroll.io"], + "default": ["scroll-sepolia"], + "archive": ["scroll-sepolia"] + }, "zora": { "id": 7777777, "urls": [ diff --git a/scroll-sepolia.yml b/scroll-sepolia.yml new file mode 100644 index 00000000..d0e9669a --- /dev/null +++ b/scroll-sepolia.yml @@ -0,0 +1,63 @@ +version: '3.1' + +services: + scroll-sepolia: + image: scrolltech/l2geth:scroll-v5.4.2 + expose: + # HTTP server / GraphQL API + - 8545 + ports: + - "6326:6326" + - "6326:6326/udp" + command: + [ + "--scroll-sepolia", + # Blockchain sync mode ("snap", "full" or "light") + "--syncmode=full", + "--port=6326", + "--nat=extip:$IP", + # Megabytes of memory allocated to internal caching + "--cache=8192", + # Enable the WS-RPC server + "--ws", + "--ws.port=8545", + "--ws.addr=0.0.0.0", + "--ws.origins=*", + # Enable the HTTP-RPC server + "--http", + "--http.port=8545", + "--http.addr=0.0.0.0", + "--http.vhosts=*", + "--l1.endpoint=${SCROLL_SEPOLIA_L1_ENDPOINT}", + "--rollup.verify", + # Enable GraphQL on the HTTP-RPC server. Note that GraphQL can only be started if an HTTP server is started as well. + "--graphql", + "--graphql.vhosts=*", + # Enable metrics collection and reporting + "--metrics", + "--metrics.addr=0.0.0.0", + # Maximum number of network peers (network disabled if set to 0) (default: 50) + "--maxpeers=100" + ] + networks: + - chains + volumes: + - "scroll-sepolia:/root/.ethereum" + - ".jwtsecret:/jwtsecret" + restart: unless-stopped + stop_grace_period: 5m + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.scroll-sepolia-stripprefix.stripprefix.prefixes=/scroll-sepolia" + - "traefik.http.services.scroll-sepolia.loadbalancer.server.port=8545" + - "traefik.http.routers.scroll-sepolia.entrypoints=websecure" + - "traefik.http.routers.scroll-sepolia.tls.certresolver=myresolver" + - "traefik.http.routers.scroll-sepolia.rule=Host(`$DOMAIN`) && PathPrefix(`/scroll-sepolia`)" + - "traefik.http.routers.scroll-sepolia.middlewares=scroll-sepolia-stripprefix, ipwhitelist" + - "prometheus-scrape.enabled=true" + - "prometheus-scrape.port=6060" + - "prometheus-scrape.job_name=geth-scroll-sepolia" + - "prometheus-scrape.metrics_path=/debug/metrics/prometheus" + +volumes: + scroll-sepolia: