go-ethereum/grpc
2023-04-10 19:16:59 -04:00
..
execution rename state_root to block_hash 2023-04-10 19:16:59 -04:00
gen/proto/execution/v1 rename state_root to block_hash 2023-04-10 19:16:59 -04:00
buf.gen.yaml Feature/grpc execution api (#1) 2023-03-27 13:30:46 -06:00
README.md Adding features to mempool to support our pre-ordered txs (#2) 2023-04-10 12:21:41 -05: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/execution-apis

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