Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNativeContract ¶
IsNativeContract return is native contract name
func IsNativeTxType ¶
TODO: Devin: Remove it IsNativeTxType return is native contract supported transaction type
Types ¶
type RuntimeInstance ¶
type RuntimeInstance struct {
// contains filtered or unexported fields
}
func GetRuntimeInstance ¶
func GetRuntimeInstance(chainId string, defaultGas uint64) *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
Click to show internal directories.
Click to hide internal directories.