Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EpochFoundationReward ¶
EpochFoundationReward defines a delegate's epoch reward and foundation bonus
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
Protocol defines the protocol of querying tables
func NewProtocol ¶
func NewProtocol(idx *indexservice.Indexer) *Protocol
NewProtocol creates a new protocol
func (*Protocol) GetAccountReward ¶
func (p *Protocol) GetAccountReward(startEpoch uint64, epochCount uint64, candidateName string) (string, string, string, error)
GetAccountReward gets account reward
func (*Protocol) GetBookkeeping ¶
func (p *Protocol) GetBookkeeping(startEpoch uint64, epochCount uint64, delegateName string, percentage int, includeFoundationBonus bool) ([]*RewardDistribution, error)
GetBookkeeping get reward distribution info
type RewardDistribution ¶
RewardDistribution defines reward distribute info
type TotalWeight ¶
TotalWeight defines a delegate's total weighted votes
Click to show internal directories.
Click to hide internal directories.