government

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GovernmentContractName 治理合约名
	GovernmentContractName = "government_contract"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GovernmentContract

type GovernmentContract struct {
	common.BaseContract
	// contains filtered or unexported fields
}

GovernmentContract 治理合约

func NewGovernmentContract

func NewGovernmentContract(log protocol.Logger) *GovernmentContract

NewGovernmentContract 新建治理合约对象 @param log @return *GovernmentContract

type GovernmentRuntime

type GovernmentRuntime struct {
	// contains filtered or unexported fields
}

GovernmentRuntime 治理合约方法的运行时

func (*GovernmentRuntime) GetGovernmentContract

func (r *GovernmentRuntime) GetGovernmentContract(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

GetGovernmentContract 获得治理合约对象 @param txSimContext @param parameters @return []byte @return error

Jump to

Keyboard shortcuts

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