go-ethereum/grpc
2023-08-08 16:05:56 -07:00
..
execution Migrate to the v1alpha1 API 2023-08-08 16:05:56 -07:00
gen/astria/execution Migrate to the v1alpha1 API 2023-08-08 16:05:56 -07:00
buf.gen.yaml Feature/grpc execution api (#1) 2023-03-27 13:30:46 -06:00
README.md Changing from prev_state_root to prev_block_hash 2023-07-10 16:23:19 -04:00

This package provides a gRPC server as an entrypoint to the EVM.

Build and run from source:

# install necessary dependencies
brew install leveldb

# build geth
make geth

# generating protobuf files
buf generate buf.build/astria/astria --path "astria/execution"

See private_network.md for running a local geth node.

Running with remote Docker image:

docker run --rm \
  -p 8545:8545 -p 30303:30303 -p 50051:50051 \
  ghcr.io/astriaorg/go-ethereum --goerli \
  --grpc --grpc.addr "0.0.0.0" --grpc.port 50051

Local Docker workflow:

# build local docker image
docker build \
  --build-arg COMMIT=$(git rev-parse HEAD) \
  --build-arg VERSION=0.1 \
  --build-arg BUILDNUM=1 \
  --tag ghcr.io/astriaorg/go-ethereum:local .

# run local docker image
docker run --rm \
  -p 8545:8545 -p 30303:30303 -p 50051:50051 \
  ghcr.io/astriaorg/go-ethereum:local --goerli \
  --grpc --grpc.addr "0.0.0.0" --grpc.port 50051

# build and push to remote from local (as opposed to gh action)
docker build \
  --build-arg COMMIT=$(git rev-parse HEAD) \
  --build-arg VERSION=0.1 \
  --build-arg BUILDNUM=1 \
  --tag ghcr.io/astriaorg/go-ethereum:latest .
echo $CR_PAT | docker login ghcr.io -u astriaorg --password-stdin
docker push ghcr.io/astriaorg/go-ethereum:latest