prysm-pulse/beacon-chain/state/altair.go
Preston Van Loon c0076cc7a2
State: move state interfaces into state package (#9268)
* Move interfaces from github.com/prysmaticlabs/prysm/beacon-chain/state/interface to github.com/prysmaticlabs/prysm/beacon-chain/state

* remove/rename state2
2021-07-23 16:11:21 +00:00

22 lines
832 B
Go

package state
import statepb "github.com/prysmaticlabs/prysm/proto/prysm/v2/state"
// BeaconStateAltair has read and write access to beacon state methods.
type BeaconStateAltair interface {
BeaconState
CurrentSyncCommittee() (*statepb.SyncCommittee, error)
NextSyncCommittee() (*statepb.SyncCommittee, error)
SetCurrentSyncCommittee(val *statepb.SyncCommittee) error
SetNextSyncCommittee(val *statepb.SyncCommittee) error
CurrentEpochParticipation() ([]byte, error)
PreviousEpochParticipation() ([]byte, error)
InactivityScores() ([]uint64, error)
AppendCurrentParticipationBits(val byte) error
AppendPreviousParticipationBits(val byte) error
AppendInactivityScore(s uint64) error
SetInactivityScores(val []uint64) error
SetPreviousParticipationBits(val []byte) error
SetCurrentParticipationBits(val []byte) error
}