rewards

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochFoundationReward

type EpochFoundationReward struct {
	EpochNumber     uint64
	EpochReward     string
	FoundationBonus string
}

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

type RewardDistribution struct {
	VoterEthAddress   string
	VoterIotexAddress string
	Amount            string
}

RewardDistribution defines reward distribute info

type TotalWeight

type TotalWeight struct {
	EpochNumber uint64
	TotalWeight string
}

TotalWeight defines a delegate's total weighted votes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL