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
Source Files
¶
- government_contract.go
Click to show internal directories.
Click to hide internal directories.