setdelcommission

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	core.Keepers
	// contains filtered or unexported fields
}

Contract implements core.SystemContract. It is a system contract for setting an account's delegate commission.

func NewContract

func NewContract() *Contract

NewContract creates a new instance of Contract

func (*Contract) CanExec

func (c *Contract) CanExec(typ types.TxCode) bool

func (*Contract) Exec

func (c *Contract) Exec() error

Exec executes the contract

func (*Contract) Init

func (c *Contract) Init(keepers core.Keepers, tx types.BaseTx, curChainHeight uint64) core.SystemContract

Init initialize the contract

Jump to

Keyboard shortcuts

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