staking

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableStaking added in v0.14.3

func EnableStaking(r action.Router) error

Types

type Stake added in v0.14.3

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

func (Stake) Marshal added in v0.14.3

func (st Stake) Marshal() ([]byte, error)

func (Stake) Signers added in v0.14.3

func (st Stake) Signers() []action.Address

func (Stake) Tags added in v0.14.3

func (st Stake) Tags() kv.Pairs

func (Stake) Type added in v0.14.3

func (st Stake) Type() action.Type

func (*Stake) Unmarshal added in v0.14.3

func (st *Stake) Unmarshal(data []byte) error

type Unstake added in v0.14.3

type Unstake struct {
	ValidatorAddress keys.Address
	StakeAddress     keys.Address
	Stake            action.Amount
}

func (Unstake) Marshal added in v0.14.3

func (ust Unstake) Marshal() ([]byte, error)

func (Unstake) Signers added in v0.14.3

func (ust Unstake) Signers() []action.Address

func (Unstake) Tags added in v0.14.3

func (ust Unstake) Tags() kv.Pairs

func (Unstake) Type added in v0.14.3

func (ust Unstake) Type() action.Type

func (*Unstake) Unmarshal added in v0.14.3

func (ust *Unstake) Unmarshal(data []byte) error

type Withdraw added in v0.12.0

type Withdraw struct {
	ValidatorAddress keys.Address
	StakeAddress     keys.Address
	Stake            action.Amount
}

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