government

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package government is package for government

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 {
	// contains filtered or unexported fields
}

GovernmentContract 治理合约

func NewGovernmentContract

func NewGovernmentContract(log protocol.Logger) *GovernmentContract

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

func (*GovernmentContract) GetMethod

func (c *GovernmentContract) GetMethod(methodName string) common.ContractFunc

GetMethod get register method by name

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