staking

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 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

func EnablePurgeValidator added in v0.14.0

func EnablePurgeValidator(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() kv.Pairs

func (ApplyValidator) Type

func (apply ApplyValidator) Type() action.Type

func (*ApplyValidator) Unmarshal

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

type Purge added in v0.14.0

type Purge struct {
	AdminAddress     action.Address
	ValidatorAddress action.Address
}

func (Purge) Marshal added in v0.14.0

func (p Purge) Marshal() ([]byte, error)

func (Purge) Signers added in v0.14.0

func (p Purge) Signers() []action.Address

func (Purge) Tags added in v0.14.0

func (p Purge) Tags() kv.Pairs

func (Purge) Type added in v0.14.0

func (p Purge) Type() action.Type

func (*Purge) Unmarshal added in v0.14.0

func (p *Purge) Unmarshal(bytes []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() kv.Pairs

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