Skip to content

Commit

Permalink
simulators/eth2/beacon: api first changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed May 18, 2023
1 parent 448156f commit a77e5b4
Show file tree
Hide file tree
Showing 26 changed files with 692 additions and 0 deletions.
18 changes: 18 additions & 0 deletions simulators/beacon/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Build the simulator binary
FROM golang:1-alpine AS builder
RUN apk --no-cache add gcc musl-dev linux-headers cmake make clang build-base clang-static clang-dev

# Prepare workspace.
# Note: the build context of this simulator image is the parent directory!
ADD . /source

# Build within simulator folder
WORKDIR /source
RUN go build -o ./sim .

# Build the runner container.
FROM alpine:latest
ADD . /
COPY --from=builder /source/sim /

ENTRYPOINT ["./sim"]
34 changes: 34 additions & 0 deletions simulators/beacon/api/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module github.com/ethereum/hive/simulators/beacon/api

go 1.20

require (
github.com/ethereum/hive v0.0.0-20230516150403-448156fa839e
github.com/golang/snappy v0.0.4
github.com/holiman/uint256 v1.2.1
github.com/pkg/errors v0.9.1
github.com/protolambda/zrnt v0.30.0
github.com/protolambda/ztyp v0.2.2
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
github.com/ethereum/go-ethereum v1.11.4 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/kilic/bls12-381 v0.1.0 // indirect
github.com/minio/sha256-simd v0.1.0 // indirect
github.com/protolambda/bls12-381-util v0.0.0-20210720105258-a772f2aac13e // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.0 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
golang.org/x/crypto v0.4.0 // indirect
golang.org/x/sys v0.5.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
)
176 changes: 176 additions & 0 deletions simulators/beacon/api/go.sum

Large diffs are not rendered by default.

Loading

0 comments on commit a77e5b4

Please sign in to comment.