2021-07-23 16:11:21 +00:00
|
|
|
package state
|
2021-06-30 15:06:19 +00:00
|
|
|
|
2021-07-28 21:23:44 +00:00
|
|
|
import statepb "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-07-23 13:07:40 +00:00
|
|
|
CurrentSyncCommittee() (*statepb.SyncCommittee, error)
|
|
|
|
NextSyncCommittee() (*statepb.SyncCommittee, error)
|
|
|
|
SetCurrentSyncCommittee(val *statepb.SyncCommittee) error
|
|
|
|
SetNextSyncCommittee(val *statepb.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
|
|
|
|
}
|