staking

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableApplyValidator

func EnableApplyValidator(r action.Router) error

Types

type ApplyValidator

type ApplyValidator struct {
	StakeAddress         action.Address
	Stake                action.Amount
	NodeName             string
	ValidatorAddress     action.Address
	ValidatorPubKey      keys.PublicKey
	ValidatorECDSAPubKey keys.PublicKey
	Purge                bool
}

func (ApplyValidator) Marshal

func (apply ApplyValidator) Marshal() ([]byte, error)

func (ApplyValidator) Signers

func (apply ApplyValidator) Signers() []action.Address

func (ApplyValidator) Tags

func (apply ApplyValidator) Tags() common.KVPairs

func (ApplyValidator) Type

func (apply ApplyValidator) Type() action.Type

func (*ApplyValidator) Unmarshal

func (apply *ApplyValidator) Unmarshal(data []byte) error

type Withdraw added in v0.12.0

type Withdraw struct {
	// staking account from which the reward is withdraw
	From action.Address `json:"from"`
	// beneficiary account to which the reward is withdraw to
	To action.Address `json:"to"`
}

func (Withdraw) Marshal added in v0.12.0

func (s Withdraw) Marshal() ([]byte, error)

func (Withdraw) Signers added in v0.12.0

func (s Withdraw) Signers() []action.Address

func (Withdraw) Tags added in v0.12.0

func (s Withdraw) Tags() common.KVPairs

func (Withdraw) Type added in v0.12.0

func (s Withdraw) Type() action.Type

func (*Withdraw) Unmarshal added in v0.12.0

func (s *Withdraw) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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