network_delegation

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 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 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