Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
calbera committed Jul 30, 2024
1 parent fcf1c8c commit aa4b919
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mod/node-api/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ type Backend[
BeaconBlockBodyT any,
BeaconBlockHeaderT BeaconBlockHeader[BeaconBlockHeaderT],
BeaconStateT BeaconState[
BeaconBlockHeaderT, Eth1DataT, ExecutionPayloadHeaderT, ForkT,
ValidatorT, ValidatorsT, WithdrawalT,
BeaconStateT, BeaconBlockHeaderT, Eth1DataT, ExecutionPayloadHeaderT,
ForkT, ValidatorT, ValidatorsT, WithdrawalT,
],
BeaconStateMarshallableT any,
BlobSidecarsT any,
Expand Down Expand Up @@ -77,8 +77,8 @@ func New[
BeaconBlockBodyT any,
BeaconBlockHeaderT BeaconBlockHeader[BeaconBlockHeaderT],
BeaconStateT BeaconState[
BeaconBlockHeaderT, Eth1DataT, ExecutionPayloadHeaderT, ForkT,
ValidatorT, ValidatorsT, WithdrawalT,
BeaconStateT, BeaconBlockHeaderT, Eth1DataT, ExecutionPayloadHeaderT,
ForkT, ValidatorT, ValidatorsT, WithdrawalT,
],
BeaconStateMarshallableT any,
BlobSidecarsT any,
Expand Down
4 changes: 3 additions & 1 deletion mod/node-api/backend/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ type BeaconBlockHeader[BeaconBlockHeaderT any] interface {

// BeaconState is the interface for the beacon state.
type BeaconState[
BeaconBlockHeaderT BeaconBlockHeader[BeaconBlockHeaderT],
T any, BeaconBlockHeaderT BeaconBlockHeader[BeaconBlockHeaderT],
Eth1DataT, ExecutionPayloadHeaderT, ForkT,
ValidatorT, ValidatorsT, WithdrawalT any,
] interface {
constraints.SSZRootable

// Copy returns a copy of the key-value store.
Copy() T
// SetSlot sets the slot on the beacon state.
SetSlot(math.Slot) error

Expand Down

0 comments on commit aa4b919

Please sign in to comment.