Skip to content

Commit a77e5b4

Browse files
committed
simulators/eth2/beacon: api first changes
1 parent 448156f commit a77e5b4

File tree

26 files changed

+692
-0
lines changed

26 files changed

+692
-0
lines changed

simulators/beacon/api/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Build the simulator binary
2+
FROM golang:1-alpine AS builder
3+
RUN apk --no-cache add gcc musl-dev linux-headers cmake make clang build-base clang-static clang-dev
4+
5+
# Prepare workspace.
6+
# Note: the build context of this simulator image is the parent directory!
7+
ADD . /source
8+
9+
# Build within simulator folder
10+
WORKDIR /source
11+
RUN go build -o ./sim .
12+
13+
# Build the runner container.
14+
FROM alpine:latest
15+
ADD . /
16+
COPY --from=builder /source/sim /
17+
18+
ENTRYPOINT ["./sim"]

simulators/beacon/api/go.mod

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module github.com/ethereum/hive/simulators/beacon/api
2+
3+
go 1.20
4+
5+
require (
6+
github.com/ethereum/hive v0.0.0-20230516150403-448156fa839e
7+
github.com/golang/snappy v0.0.4
8+
github.com/holiman/uint256 v1.2.1
9+
github.com/pkg/errors v0.9.1
10+
github.com/protolambda/zrnt v0.30.0
11+
github.com/protolambda/ztyp v0.2.2
12+
gopkg.in/yaml.v3 v3.0.1
13+
)
14+
15+
require (
16+
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
17+
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
18+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
19+
github.com/ethereum/go-ethereum v1.11.4 // indirect
20+
github.com/go-ole/go-ole v1.2.6 // indirect
21+
github.com/go-stack/stack v1.8.1 // indirect
22+
github.com/gorilla/websocket v1.5.0 // indirect
23+
github.com/kilic/bls12-381 v0.1.0 // indirect
24+
github.com/minio/sha256-simd v0.1.0 // indirect
25+
github.com/protolambda/bls12-381-util v0.0.0-20210720105258-a772f2aac13e // indirect
26+
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
27+
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
28+
github.com/tklauser/go-sysconf v0.3.11 // indirect
29+
github.com/tklauser/numcpus v0.6.0 // indirect
30+
github.com/yusufpapurcu/wmi v1.2.2 // indirect
31+
golang.org/x/crypto v0.4.0 // indirect
32+
golang.org/x/sys v0.5.0 // indirect
33+
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
34+
)

simulators/beacon/api/go.sum

Lines changed: 176 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)