2021-07-23 16:11:21 +00:00
|
|
|
package state
|
2021-06-30 15:06:19 +00:00
|
|
|
|
2021-08-10 19:55:24 +00:00
|
|
|
import ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
2021-06-30 15:06:19 +00:00
|
|
|
|
|
|
|
// BeaconStateAltair has read and write access to beacon state methods.
|
|
|
|
type BeaconStateAltair interface {
|
|
|
|
BeaconState
|
2021-08-10 19:55:24 +00:00
|
|
|
CurrentSyncCommittee() (*ethpb.SyncCommittee, error)
|
|
|
|
NextSyncCommittee() (*ethpb.SyncCommittee, error)
|
|
|
|
SetCurrentSyncCommittee(val *ethpb.SyncCommittee) error
|
|
|
|
SetNextSyncCommittee(val *ethpb.SyncCommittee) error
|
2021-06-30 15:06:19 +00:00
|
|
|
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
|
|
|
|
}
|