Documentation ¶
Index ¶
- Constants
- type ExecuteEngine
- func (e *ExecuteEngine) Call(data []byte) (result []byte, err error)
- func (e *ExecuteEngine) GenerateBlock(block *types.StateBlock, signFn SignFunc) (result *GenResult, err error)
- func (e *ExecuteEngine) InitCall(args []byte) (result []byte, err error)
- func (e *ExecuteEngine) Run(block, sendBlock *types.StateBlock) (blockList []*types.StateBlock, isRetry bool, err error)
- type GenResult
- type SignFunc
Constants ¶
View Source
const ( ContractMethodName = "invoke" ContractInitMethod = "init" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteEngine ¶
type ExecuteEngine struct {
// contains filtered or unexported fields
}
func NewExecuteEngine ¶
func NewExecuteEngine(caller types.Address, contract *types.SmartContractBlock, ledger *ledger.Ledger) *ExecuteEngine
NewExecuteEngine new vm execute engine
func (*ExecuteEngine) Call ¶
func (e *ExecuteEngine) Call(data []byte) (result []byte, err error)
Call invoke to run the contract code by block.data
func (*ExecuteEngine) GenerateBlock ¶
func (e *ExecuteEngine) GenerateBlock(block *types.StateBlock, signFn SignFunc) (result *GenResult, err error)
func (*ExecuteEngine) InitCall ¶
func (e *ExecuteEngine) InitCall(args []byte) (result []byte, err error)
InitCall init method on deployment
func (*ExecuteEngine) Run ¶
func (e *ExecuteEngine) Run(block, sendBlock *types.StateBlock) (blockList []*types.StateBlock, isRetry bool, err error)
Click to show internal directories.
Click to hide internal directories.