Documentation ¶
Overview ¶
Package native is package for native
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitInstance ¶ added in v2.3.3
func InitInstance(chainId string, gasConfig *gasutils.GasConfig, log protocol.Logger, msgBus msgbus.MessageBus, store protocol.BlockchainStore)
InitInstance get singleton RuntimeInstance
func IsNative ¶
IsNative is a native contract @param contractName @param txType @return bool
func IsNativeContract ¶
IsNativeContract return is native contract name
Types ¶
type RuntimeInstance ¶
type RuntimeInstance struct {
// contains filtered or unexported fields
}
RuntimeInstance native contract runtime instance
func GetRuntimeInstance ¶
func GetRuntimeInstance(chainId string) *RuntimeInstance
GetRuntimeInstance get singleton RuntimeInstance
func (*RuntimeInstance) Invoke ¶
func (r *RuntimeInstance) Invoke(contract *commonPb.Contract, methodName string, _ []byte, parameters map[string][]byte, txContext protocol.TxSimContext) *commonPb.ContractResult
Invoke verify and run Contract method
func (*RuntimeInstance) OnMessage ¶ added in v2.3.3
func (r *RuntimeInstance) OnMessage(msg *msgbus.Message)
OnMessage receive msg bus message
func (*RuntimeInstance) OnQuit ¶ added in v2.3.3
func (r *RuntimeInstance) OnQuit()
OnQuit quit process
Directories ¶
Path | Synopsis |
---|---|
Package accountmgr is package for account
|
Package accountmgr is package for account |
Package certmgr is package for cert
|
Package certmgr is package for cert |
Package chainconfigmgr is package for chainconf
|
Package chainconfigmgr is package for chainconf |
Package common is package for common
|
Package common is package for common |
Package contractmgr is package for contract
|
Package contractmgr is package for contract |
Package crosstx is package for crosstx
|
Package crosstx is package for crosstx |
Package dposmgr is package for dposmgr
|
Package dposmgr is package for dposmgr |
Package government is package for government
|
Package government is package for government |
Package multisign is package for multisign
|
Package multisign is package for multisign |
Package privatecompute is package for privatecompute
|
Package privatecompute is package for privatecompute |
Package pubkeymgr is package for pubkeymgr
|
Package pubkeymgr is package for pubkeymgr |
Package relaycross is package for relaycross
|
Package relaycross is package for relaycross |
Package testcontract is package for testcontract
|
Package testcontract is package for testcontract |
Package transactionmgr is package for transactionmgr
|
Package transactionmgr is package for transactionmgr |
v210
|
|
v220
|
|
certmgr
* Copyright (C) BABEC.
|
* Copyright (C) BABEC. |
v230
|
|
Click to show internal directories.
Click to hide internal directories.