Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit f32d654

Browse files
authored
Add withdrawal operations to Engine API (#734)
See ethereum/execution-apis#195 Prerequisite: erigontech/interfaces#134
1 parent fd11ffc commit f32d654

21 files changed

+1153
-717
lines changed

direct/eth_backend_client.go

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,30 @@ func (s *EthBackendClientDirect) NetPeerCount(ctx context.Context, in *remote.Ne
4646
return s.server.NetPeerCount(ctx, in)
4747
}
4848

49-
func (s *EthBackendClientDirect) EngineGetPayloadV1(ctx context.Context, in *remote.EngineGetPayloadRequest, opts ...grpc.CallOption) (*types.ExecutionPayload, error) {
50-
return s.server.EngineGetPayloadV1(ctx, in)
51-
}
52-
5349
func (s *EthBackendClientDirect) EngineNewPayloadV1(ctx context.Context, in *types.ExecutionPayload, opts ...grpc.CallOption) (*remote.EnginePayloadStatus, error) {
5450
return s.server.EngineNewPayloadV1(ctx, in)
5551
}
5652

53+
func (s *EthBackendClientDirect) EngineNewPayloadV2(ctx context.Context, in *types.ExecutionPayloadV2, opts ...grpc.CallOption) (*remote.EnginePayloadStatus, error) {
54+
return s.server.EngineNewPayloadV2(ctx, in)
55+
}
56+
5757
func (s *EthBackendClientDirect) EngineForkChoiceUpdatedV1(ctx context.Context, in *remote.EngineForkChoiceUpdatedRequest, opts ...grpc.CallOption) (*remote.EngineForkChoiceUpdatedReply, error) {
5858
return s.server.EngineForkChoiceUpdatedV1(ctx, in)
5959
}
6060

61+
func (s *EthBackendClientDirect) EngineForkChoiceUpdatedV2(ctx context.Context, in *remote.EngineForkChoiceUpdatedRequestV2, opts ...grpc.CallOption) (*remote.EngineForkChoiceUpdatedReply, error) {
62+
return s.server.EngineForkChoiceUpdatedV2(ctx, in)
63+
}
64+
65+
func (s *EthBackendClientDirect) EngineGetPayloadV1(ctx context.Context, in *remote.EngineGetPayloadRequest, opts ...grpc.CallOption) (*types.ExecutionPayload, error) {
66+
return s.server.EngineGetPayloadV1(ctx, in)
67+
}
68+
69+
func (s *EthBackendClientDirect) EngineGetPayloadV2(ctx context.Context, in *remote.EngineGetPayloadRequest, opts ...grpc.CallOption) (*types.ExecutionPayloadV2, error) {
70+
return s.server.EngineGetPayloadV2(ctx, in)
71+
}
72+
6173
func (s *EthBackendClientDirect) Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*types.VersionReply, error) {
6274
return s.server.Version(ctx, in)
6375
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
1616
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
1717
github.com/holiman/uint256 v1.2.1
18-
github.com/ledgerwatch/interfaces v0.0.0-20221130100748-a344b71afc33
18+
github.com/ledgerwatch/interfaces v0.0.0-20221201072604-256480b3c8af
1919
github.com/ledgerwatch/log/v3 v3.6.0
2020
github.com/ledgerwatch/secp256k1 v1.0.0
2121
github.com/ledgerwatch/trackerslist v1.0.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
231231
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
232232
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
233233
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
234-
github.com/ledgerwatch/interfaces v0.0.0-20221130100748-a344b71afc33 h1:TMqJnel34dqXY3IHnhFUDTaARyNMJJ7rumDn6lgpVq0=
235-
github.com/ledgerwatch/interfaces v0.0.0-20221130100748-a344b71afc33/go.mod h1:ugQv1QllJzBny3cKZKxUrSnykkjkBgm27eQM6dnGAcc=
234+
github.com/ledgerwatch/interfaces v0.0.0-20221201072604-256480b3c8af h1:nSs5WJCXWr8wFMwuDKUsi2D0p+4ACHEcdJ7osbj7jHw=
235+
github.com/ledgerwatch/interfaces v0.0.0-20221201072604-256480b3c8af/go.mod h1:ugQv1QllJzBny3cKZKxUrSnykkjkBgm27eQM6dnGAcc=
236236
github.com/ledgerwatch/log/v3 v3.6.0 h1:JBUSK1epPyutUrz7KYDTcJtQLEHnehECRpKbM1ugy5M=
237237
github.com/ledgerwatch/log/v3 v3.6.0/go.mod h1:L+Sp+ma/h205EdCjviZECjGEvYUYEyXSdiuHNZzg+xQ=
238238
github.com/ledgerwatch/secp256k1 v1.0.0 h1:Usvz87YoTG0uePIV8woOof5cQnLXGYa162rFf3YnwaQ=

gointerfaces/downloader/downloader.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gointerfaces/downloader/downloader_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)