updaterepo

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: 10 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.ProposalContract. It is a system contract that creates a proposal to update a repository.

func NewContract

func NewContract(contracts *[]core.SystemContract) *Contract

NewContract creates a new instance of Contract

func (*Contract) Apply

func (c *Contract) Apply(args *core.ProposalApplyArgs) error

Apply applies the proposal action

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