diff --git a/mod/node-api/engines/go.sum b/mod/node-api/engines/go.sum index 276ce05618..0d3399cd6e 100644 --- a/mod/node-api/engines/go.sum +++ b/mod/node-api/engines/go.sum @@ -1,8 +1,5 @@ -<<<<<<< HEAD github.com/berachain/beacon-kit/mod/log v0.0.0-20240705193247-d464364483df h1:SnzeY9SCmKyEx0iGC/C/8E39ozpl/g5yI7lFXpmbMBI= github.com/berachain/beacon-kit/mod/log v0.0.0-20240705193247-d464364483df/go.mod h1:mJ0ZlK+izcPWcveHAtM4+W0a+8jhu5Y4DMPL2Takacg= -======= ->>>>>>> origin/main github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/gabriel-vasile/mimetype v1.4.4 h1:QjV6pZ7/XZ7ryI2KuyeEDE8wnh7fHP9YnQy+R0LnH8I= diff --git a/mod/node-api/handlers/builder/handler.go b/mod/node-api/handlers/builder/handler.go index 3fc0f55ccb..8a2c3ccfc6 100644 --- a/mod/node-api/handlers/builder/handler.go +++ b/mod/node-api/handlers/builder/handler.go @@ -43,10 +43,6 @@ func NewHandler[ContextT context.Context]( return h } -func (h *Handler[ContextT]) RouteSet() handlers.RouteSet[ContextT] { - return h.BaseHandler.RouteSet() -} - func (h *Handler[ContextT]) NotImplemented(_ ContextT) (any, error) { return nil, types.ErrNotImplemented } diff --git a/mod/node-api/handlers/builder/routes.go b/mod/node-api/handlers/builder/routes.go index e1b146ddec..c79d6c45e3 100644 --- a/mod/node-api/handlers/builder/routes.go +++ b/mod/node-api/handlers/builder/routes.go @@ -18,24 +18,20 @@ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND // TITLE. -package backend +package builder import ( - "context" + "net/http" - "github.com/berachain/beacon-kit/mod/node-api/types" + "github.com/berachain/beacon-kit/mod/node-api/handlers" ) -func (h Backend) GetBlockRewards( - _ context.Context, - _ string, -) (*types.BlockRewardsData, error) { - return &types.BlockRewardsData{ - ProposerIndex: 1, - Total: 1, - Attestations: 1, - SyncAggregate: 1, - ProposerSlashings: 1, - AttesterSlashings: 1, - }, nil +func (h *Handler[ContextT]) RegisterRoutes() { + h.BaseHandler.AddRoutes([]handlers.Route[ContextT]{ + { + Method: http.MethodGet, + Path: "/eth/v1/builder/states/:state_id/expected_withdrawals", + Handler: h.NotImplemented, + }, + }) }