network_delegation

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableNetworkDelegation

func EnableNetworkDelegation(r action.Router) error

Types

type AddNetworkDelegation

type AddNetworkDelegation struct {
	DelegationAddress keys.Address  `json:"delegationAddress"`
	Amount            action.Amount `json:"amount"`
}

func (AddNetworkDelegation) Marshal

func (n AddNetworkDelegation) Marshal() ([]byte, error)

func (AddNetworkDelegation) Signers

func (n AddNetworkDelegation) Signers() []action.Address

func (AddNetworkDelegation) Tags

func (n AddNetworkDelegation) Tags() kv.Pairs

func (AddNetworkDelegation) Type

func (n AddNetworkDelegation) Type() action.Type

func (*AddNetworkDelegation) Unmarshal

func (n *AddNetworkDelegation) Unmarshal(bytes []byte) error

type Reinvest

type Reinvest struct {
	Delegator action.Address `json:"delegator"`
	Amount    action.Amount  `json:"amount"`
}

func (Reinvest) Marshal

func (ri Reinvest) Marshal() ([]byte, error)

func (Reinvest) Signers

func (ri Reinvest) Signers() []action.Address

func (Reinvest) Tags

func (ri Reinvest) Tags() kv.Pairs

func (Reinvest) Type

func (ri Reinvest) Type() action.Type

func (*Reinvest) Unmarshal

func (ri *Reinvest) Unmarshal(bytes []byte) error

type Undelegate

type Undelegate struct {
	Delegator keys.Address  `json:"delegator"`
	Amount    action.Amount `json:"amount"`
}

func (*Undelegate) Marshal

func (ud *Undelegate) Marshal() ([]byte, error)

func (Undelegate) Signers

func (ud Undelegate) Signers() []action.Address

func (Undelegate) Tags

func (ud Undelegate) Tags() kv.Pairs

func (Undelegate) Type

func (ud Undelegate) Type() action.Type

func (*Undelegate) Unmarshal

func (ud *Undelegate) Unmarshal(data []byte) error

type Withdraw

type Withdraw struct {
	Delegator action.Address `json:"delegator"`
	Amount    action.Amount  `json:"amount"`
}

func (Withdraw) Marshal

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

func (Withdraw) Signers

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

func (Withdraw) Tags

func (w Withdraw) Tags() kv.Pairs

func (Withdraw) Type

func (w Withdraw) Type() action.Type

func (*Withdraw) Unmarshal

func (w *Withdraw) Unmarshal(bytes []byte) error

Jump to

Keyboard shortcuts

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