diff --git a/op-zora-mainnet.yml b/op-zora-mainnet.yml index 7e86774a..989b367f 100644 --- a/op-zora-mainnet.yml +++ b/op-zora-mainnet.yml @@ -3,7 +3,11 @@ version: '3.1' services: op-zora-mainnet: # this is Optimism's geth client #image: stakesquid/op-zora-mainnet:v0.1 - build: ./op + build: + context: ./op + args: + OP_VERSION: v1.3.1 + GETH_VERSION: v1.101304.1 expose: - 8545 # RPC / Websocket - 2483 # P2P TCP (currently unused) @@ -42,7 +46,11 @@ services: op-zora-mainnet-node: #image: stakesquid/op-zora-mainnet:v0.1 - build: ./op + build: + context: ./op + args: + OP_VERSION: v1.3.1 + GETH_VERSION: v1.101304.1 depends_on: - op-zora-mainnet expose: diff --git a/op/Dockerfile b/op/Dockerfile index 728b3cfc..233b6274 100644 --- a/op/Dockerfile +++ b/op/Dockerfile @@ -2,13 +2,13 @@ FROM golang:1.21 as op WORKDIR /app -ENV REPO=https://github.com/ethereum-optimism/optimism.git -ENV VERSION=v1.7.1 +ARG OP_REPO=https://github.com/ethereum-optimism/optimism.git +ARG OP_VERSION=v1.7.1 # for verification: -RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \ - git switch -c branch-$VERSION +RUN git clone $OP_REPO --branch op-node/$OP_VERSION --single-branch . && \ + git switch -c branch-$OP_VERSION RUN cd op-node && \ @@ -18,12 +18,12 @@ FROM golang:1.21 as geth WORKDIR /app -ENV REPO=https://github.com/ethereum-optimism/op-geth.git -ENV VERSION=v1.101308.2 +ARG GETH_REPO=https://github.com/ethereum-optimism/op-geth.git +ARG GETH_VERSION=v1.101308.2 # avoid depth=1, so the geth build can read tags -RUN git clone $REPO --branch $VERSION --single-branch . && \ - git switch -c branch-$VERSION +RUN git clone $GETH_REPO --branch $GETH_VERSION --single-branch . && \ + git switch -c branch-$GETH_VERSION RUN go run build/ci.go install -static ./cmd/geth diff --git a/reference-rpc-endpoint.json b/reference-rpc-endpoint.json index 1cd92e4f..d19b271b 100644 --- a/reference-rpc-endpoint.json +++ b/reference-rpc-endpoint.json @@ -226,5 +226,14 @@ "id": 534352, "urls": ["https://rpc.scroll.io"], "default": ["scroll-mainnet"] + }, + "zora": { + "id": 7777777, + "urls": [ + "https://rpc.zora.energy" + ], + "default": [ + "op-zora-mainnet" + ] } }