wasm

package
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

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

func SubtractGasForErrorResult(params []byte, txSimContext protocol.TxSimContext) error

SubtractGasForErrorResult charge gas for syscall of `ErrorResult`

func SubtractGasForExecuteDDL

func SubtractGasForExecuteDDL(
	sql string,
	txSimContext protocol.TxSimContext) error

SubtractGasForExecuteDDL charge gas for syscall of `ExecuteDDL`

func SubtractGasForExecuteQuery

func SubtractGasForExecuteQuery(
	sql string,
	txSimContext protocol.TxSimContext) error

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

func SubtractGasForExecuteUpdate(
	sql string,
	txSimContext protocol.TxSimContext) error

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

func SubtractGasForKvIterator(
	key []byte,
	limit []byte,
	txSimContext protocol.TxSimContext) error

SubtractGasForKvIterator charge gas for syscall of `kv iterator Create`

func SubtractGasForKvIteratorClose

func SubtractGasForKvIteratorClose(
	kvIndex int32,
	txSimContext protocol.TxSimContext) error

SubtractGasForKvIteratorClose charge gas for syscall of `kv iterator Close`

func SubtractGasForKvIteratorHasNext

func SubtractGasForKvIteratorHasNext(
	kvIndex int32,
	txSimContext protocol.TxSimContext) error

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

func SubtractGasForLogMessage(params []byte, txSimContext protocol.TxSimContext) error

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

func SubtractGasForRSClose(
	rsIndex int32,
	txSimContext protocol.TxSimContext) error

SubtractGasForRSClose charge gas for syscall of `rs Close`

func SubtractGasForRSHasNext

func SubtractGasForRSHasNext(
	rsIndex int32,
	txSimContext protocol.TxSimContext) error

SubtractGasForRSHasNext charge gas for syscall of `rs HasNext`

func SubtractGasForRSNext

func SubtractGasForRSNext(
	rsIndex int32,
	returnData []byte,
	txSimContext protocol.TxSimContext) error

SubtractGasForRSNext charge gas for syscall of `rs Next`

func SubtractGasForSuccessResult

func SubtractGasForSuccessResult(params []byte, txSimContext protocol.TxSimContext) error

SubtractGasForSuccessResult charge gas for syscall of `SuccessResult`

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL