types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	EPActivity []uint64
	EPLeader   []string
	RPActivity []uint64
	RPLeader   []string
	SLBlocks   []uint64
	SLTLeader  []string
}

Activity is the partial type returned by pos_getActivity

type Client added in v0.4.0

type Client struct {
	Address     common.Address
	Amount      string
	VotingPower string
	QuitEpoch   uint64
}

Client is the type under Clients returned by pos_getStakerInfo

func (*Client) Stake added in v0.7.0

func (c *Client) Stake() *big.Int

func (*Client) TotalAmount added in v0.7.0

func (c *Client) TotalAmount() *big.Int

type DelegatorIncentive added in v0.3.0

type DelegatorIncentive struct {
	Address   string
	Incentive string
	Type      string
}

DelegatorIncentive is the partial type returned by pos_getEpochIncentivePayDetail

type Partner added in v0.4.0

type Partner struct {
	Address      common.Address
	Amount       string
	VotingPower  string
	Renewal      bool
	LockEpochs   uint64
	StakingEpoch uint64
}

Partner is the type under Partners returned by pos_getStakerInfo

func (*Partner) Stake added in v0.7.0

func (p *Partner) Stake() *big.Int

func (*Partner) TotalAmount added in v0.7.0

func (p *Partner) TotalAmount() *big.Int

type Validator added in v0.4.0

type Validator struct {
	Address             common.Address
	PubSec256           string
	PubBn256            string
	Amount              string
	VotingPower         string
	LockEpochs          uint64
	NextLockEpochs      uint64
	From                common.Address
	StakingEpoch        uint64
	FeeRate             uint64
	Clients             []Client
	Partners            []Partner
	MaxFeeRate          uint64
	FeeRateChangedEpoch uint64
}

Validator is the type returned by pos_getStakerInfo

func (*Validator) Stake added in v0.7.0

func (v *Validator) Stake() *big.Int

func (*Validator) TotalAmount added in v0.7.0

func (v *Validator) TotalAmount() *big.Int

type ValidatorIncentive added in v0.3.0

type ValidatorIncentive struct {
	DelegatorIncentive
	Delegators      []DelegatorIncentive
	StakeInFromAddr string
}

ValidatorIncentive is the type returned by pos_getEpochIncentivePayDetail

Jump to

Keyboard shortcuts

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