Skip to content

Commit

Permalink
git moment
Browse files Browse the repository at this point in the history
  • Loading branch information
ocnc2 committed Jul 24, 2024
1 parent 67a70c9 commit b840ee3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
3 changes: 0 additions & 3 deletions mod/node-api/engines/go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand Down
4 changes: 0 additions & 4 deletions mod/node-api/handlers/builder/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
26 changes: 11 additions & 15 deletions mod/node-api/handlers/builder/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
})
}

0 comments on commit b840ee3

Please sign in to comment.