Versions in this module Expand all Collapse all v1 v1.10.3 Dec 16, 2024 v1.10.2 Dec 15, 2024 Changes in this version + var ErrVotingPowerNotEqualOne = errors.New("voting power not equal to one") + func AggregateRosters(rosters []*Roster) map[common.Address][]VoteOnSubcomittee + type AccommodateIntelchainVote struct + IsIntelchainNode bool + OverallPercent numeric.Dec + func (v AccommodateIntelchainVote) String() string + type Ballot struct + BlockHeaderHash common.Hash + Height uint64 + Signature []byte + SignerPubKeys []bls.SerializedPublicKey + ViewID uint64 + func (b Ballot) MarshalJSON() ([]byte, error) + func (b Ballot) String() string + type PureStakedVote struct + EarningAccount common.Address + EffectiveStake numeric.Dec + GroupPercent numeric.Dec + Identity bls.SerializedPublicKey + RawStake numeric.Dec + type Roster struct + OrderedSlots []bls.SerializedPublicKey + ShardID uint32 + Voters map[bls.SerializedPublicKey]*AccommodateIntelchainVote + func Compute(subComm *shard.Committee, epoch *big.Int) (*Roster, error) + func NewRoster(shardID uint32) *Roster + func (r *Roster) VotePowerByMask(mask *bls.Mask) numeric.Dec + func (r Roster) String() string + type Round struct + AggregatedVote *bls_core.Sign + BallotBox map[bls.SerializedPublicKey]*Ballot + func NewRound() *Round + type VoteOnSubcomittee struct + ShardID uint32 + func (v VoteOnSubcomittee) MarshalJSON() ([]byte, error)