Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusHook ¶
type ConsensusHook[Source comparable, Data comparable] func(sdk.Context, map[Source]Data)
type DataConverter ¶
type DataConverter[Source comparable, Data comparable] func(string) (Source, Data, error)
type DataWithVoter ¶
type DataWithVoter[T any] struct { Data T Voter sdk.ValAddress }
type DataWithWeight ¶
type IVoteProcessor ¶
type IVoteProcessor interface {
TallyVotes(ctx sdk.Context, validatorClaimMap map[string]types.Claim)
}
func NewSettlusVoteProcessors ¶
func NewSettlusVoteProcessors(keeper keeper.Keeper, aggregateVotes []types.AggregateVote, thresholdVotes math.Int) []IVoteProcessor
type VoteProcessor ¶
type VoteProcessor[Source comparable, Data comparable] struct { // contains filtered or unexported fields }
func NewBlockVoteProcessor ¶
func NewOwnershipVoteProcessor ¶
func NewOwnershipVoteProcessor( onConsensus func(ctx sdk.Context, voteData map[ctypes.Nft]ctypes.HexAddressString), aggregateVotes []types.AggregateVote, thresholdVotes math.Int) *VoteProcessor[ctypes.Nft, ctypes.HexAddressString]
func (*VoteProcessor[Source, Data]) TallyVotes ¶
Click to show internal directories.
Click to hide internal directories.