staking

package
v0.18.15 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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