Documentation ¶
Index ¶
- func SubtractGasForCallContract(contractName string, method string, params map[string][]byte, returns []byte, ...) error
- func SubtractGasForDeleteState(contractName string, stateKey []byte, txSimContext protocol.TxSimContext) error
- func SubtractGasForEmitEvent(topic string, events []string, txSimContext protocol.TxSimContext) error
- func SubtractGasForErrorResult(params []byte, txSimContext protocol.TxSimContext) error
- func SubtractGasForExecuteDDL(sql string, txSimContext protocol.TxSimContext) error
- func SubtractGasForExecuteQuery(sql string, txSimContext protocol.TxSimContext) error
- func SubtractGasForExecuteQueryOne(sql string, returnData []byte, txSimContext protocol.TxSimContext) error
- func SubtractGasForExecuteUpdate(sql string, txSimContext protocol.TxSimContext) error
- func SubtractGasForGetState(contractName string, stateKey []byte, value []byte, ...) error
- func SubtractGasForKvIterator(key []byte, limit []byte, txSimContext protocol.TxSimContext) error
- func SubtractGasForKvIteratorClose(kvIndex int32, txSimContext protocol.TxSimContext) error
- func SubtractGasForKvIteratorHasNext(kvIndex int32, txSimContext protocol.TxSimContext) error
- func SubtractGasForKvIteratorNext(key string, field string, value []byte, txSimContext protocol.TxSimContext) error
- func SubtractGasForLogMessage(params []byte, txSimContext protocol.TxSimContext) error
- func SubtractGasForPutState(contractName string, stateKey []byte, value []byte, ...) error
- func SubtractGasForRSClose(rsIndex int32, txSimContext protocol.TxSimContext) error
- func SubtractGasForRSHasNext(rsIndex int32, txSimContext protocol.TxSimContext) error
- func SubtractGasForRSNext(rsIndex int32, returnData []byte, txSimContext protocol.TxSimContext) error
- func SubtractGasForSuccessResult(params []byte, txSimContext protocol.TxSimContext) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubtractGasForCallContract ¶
func SubtractGasForCallContract( contractName string, method string, params map[string][]byte, returns []byte, txSimContext protocol.TxSimContext) error
SubtractGasForCallContract charge gas for syscall of `CallContract`
func SubtractGasForDeleteState ¶
func SubtractGasForDeleteState(contractName string, stateKey []byte, txSimContext protocol.TxSimContext) error
SubtractGasForDeleteState charge gas for syscall of `DeleteState`
func SubtractGasForEmitEvent ¶
func SubtractGasForEmitEvent(topic string, events []string, txSimContext protocol.TxSimContext) error
SubtractGasForEmitEvent charge gas for syscall of `EmitEvent`
func SubtractGasForErrorResult ¶
SubtractGasForErrorResult charge gas for syscall of `ErrorResult`
func SubtractGasForExecuteDDL ¶
SubtractGasForExecuteDDL charge gas for syscall of `ExecuteDDL`
func SubtractGasForExecuteQuery ¶
SubtractGasForExecuteQuery charge gas for syscall of `ExecuteQuery`
func SubtractGasForExecuteQueryOne ¶
func SubtractGasForExecuteQueryOne( sql string, returnData []byte, txSimContext protocol.TxSimContext) error
SubtractGasForExecuteQueryOne charge gas for syscall of `ExecuteQueryOne`
func SubtractGasForExecuteUpdate ¶
SubtractGasForExecuteUpdate charge gas for syscall of `ExecuteUpdate`
func SubtractGasForGetState ¶
func SubtractGasForGetState( contractName string, stateKey []byte, value []byte, txSimContext protocol.TxSimContext) error
SubtractGasForGetState charge gas for syscall of `GetState`
func SubtractGasForKvIterator ¶
SubtractGasForKvIterator charge gas for syscall of `kv iterator Create`
func SubtractGasForKvIteratorClose ¶
SubtractGasForKvIteratorClose charge gas for syscall of `kv iterator Close`
func SubtractGasForKvIteratorHasNext ¶
SubtractGasForKvIteratorHasNext charge gas for syscall of `kv iterator HasNext`
func SubtractGasForKvIteratorNext ¶
func SubtractGasForKvIteratorNext( key string, field string, value []byte, txSimContext protocol.TxSimContext) error
SubtractGasForKvIteratorNext charge gas for syscall of `kv iterator Next`
func SubtractGasForLogMessage ¶
SubtractGasForLogMessage charge gas for syscall of `LogMessage`
func SubtractGasForPutState ¶
func SubtractGasForPutState( contractName string, stateKey []byte, value []byte, txSimContext protocol.TxSimContext) error
SubtractGasForPutState charge gas for syscall of `PutState`
func SubtractGasForRSClose ¶
SubtractGasForRSClose charge gas for syscall of `rs Close`
func SubtractGasForRSHasNext ¶
SubtractGasForRSHasNext charge gas for syscall of `rs HasNext`
Types ¶
This section is empty.