Documentation ¶
Index ¶
- func BigIntImports(imports *wasmer.Imports) (*wasmer.Imports, error)
- func DelegateExecutionWithHost(host arwen.VMHost, gasLimit int64, addressOffset int32, functionOffset int32, ...) int32
- func DelegateExecutionWithTypedArgs(host arwen.VMHost, gasLimit int64, function []byte, dest []byte, args [][]byte) int32
- func ElrondEIImports() (*wasmer.Imports, error)
- func ExecuteOnDestContextByCallerWithHost(host arwen.VMHost, gasLimit int64, addressOffset int32, valueOffset int32, ...) int32
- func ExecuteOnDestContextByCallerWithTypedArgs(host arwen.VMHost, gasLimit int64, value *big.Int, function []byte, ...) int32
- func ExecuteOnDestContextWithHost(host arwen.VMHost, gasLimit int64, addressOffset int32, valueOffset int32, ...) int32
- func ExecuteOnDestContextWithTypedArgs(host arwen.VMHost, gasLimit int64, value *big.Int, function []byte, ...) int32
- func ExecuteOnSameContextWithHost(host arwen.VMHost, gasLimit int64, addressOffset int32, valueOffset int32, ...) int32
- func ExecuteOnSameContextWithTypedArgs(host arwen.VMHost, gasLimit int64, value *big.Int, function []byte, ...) int32
- func ExecuteReadOnlyWithHost(host arwen.VMHost, gasLimit int64, addressOffset int32, functionOffset int32, ...) int32
- func ExecuteReadOnlyWithTypedArguments(host arwen.VMHost, gasLimit int64, function []byte, dest []byte, args [][]byte) int32
- func SmallIntImports(imports *wasmer.Imports) (*wasmer.Imports, error)
- func TransferESDTNFTExecuteWithHost(host arwen.VMHost, destOffset int32, tokenIDOffset int32, tokenIDLen int32, ...) int32
- func TransferESDTNFTExecuteWithTypedArgs(host arwen.VMHost, esdtValue *big.Int, esdtTokenName []byte, dest []byte, ...) int32
- func TransferValueExecuteWithHost(host arwen.VMHost, destOffset int32, valueOffset int32, gasLimit int64, ...) int32
- func TransferValueExecuteWithTypedArgs(host arwen.VMHost, dest []byte, value *big.Int, gasLimit int64, ...) int32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigIntImports ¶
BigIntImports creates a new wasmer.Imports populated with the BigInt API methods
func DelegateExecutionWithHost ¶
func DelegateExecutionWithHost( host arwen.VMHost, gasLimit int64, addressOffset int32, functionOffset int32, functionLength int32, numArguments int32, argumentsLengthOffset int32, dataOffset int32, ) int32
DelegateExecutionWithHost - delegateExecution with host instead of pointer context
func DelegateExecutionWithTypedArgs ¶
func DelegateExecutionWithTypedArgs( host arwen.VMHost, gasLimit int64, function []byte, dest []byte, args [][]byte, ) int32
DelegateExecutionWithTypedArgs - delegateExecution with args already read from memory
func ElrondEIImports ¶
ElrondEIImports creates a new wasmer.Imports populated with the ElrondEI API methods
func ExecuteOnDestContextByCallerWithHost ¶
func ExecuteOnDestContextByCallerWithHost( host arwen.VMHost, gasLimit int64, addressOffset int32, valueOffset int32, functionOffset int32, functionLength int32, numArguments int32, argumentsLengthOffset int32, dataOffset int32, ) int32
ExecuteOnDestContextByCallerWithHost - executeOnDestContextByCaller with host instead of pointer context
func ExecuteOnDestContextByCallerWithTypedArgs ¶
func ExecuteOnDestContextByCallerWithTypedArgs( host arwen.VMHost, gasLimit int64, value *big.Int, function []byte, dest []byte, args [][]byte, ) int32
ExecuteOnDestContextByCallerWithTypedArgs - executeOnDestContextByCaller with args already read from memory
func ExecuteOnDestContextWithHost ¶
func ExecuteOnDestContextWithHost( host arwen.VMHost, gasLimit int64, addressOffset int32, valueOffset int32, functionOffset int32, functionLength int32, numArguments int32, argumentsLengthOffset int32, dataOffset int32, ) int32
ExecuteOnDestContextWithHost - executeOnDestContext with host instead of pointer context
func ExecuteOnDestContextWithTypedArgs ¶
func ExecuteOnDestContextWithTypedArgs( host arwen.VMHost, gasLimit int64, value *big.Int, function []byte, dest []byte, args [][]byte, ) int32
ExecuteOnDestContextWithTypedArgs - executeOnDestContext with args already read from memory
func ExecuteOnSameContextWithHost ¶
func ExecuteOnSameContextWithHost( host arwen.VMHost, gasLimit int64, addressOffset int32, valueOffset int32, functionOffset int32, functionLength int32, numArguments int32, argumentsLengthOffset int32, dataOffset int32, ) int32
ExecuteOnSameContextWithHost - executeOnSameContext with host instead of pointer context
func ExecuteOnSameContextWithTypedArgs ¶
func ExecuteOnSameContextWithTypedArgs( host arwen.VMHost, gasLimit int64, value *big.Int, function []byte, dest []byte, args [][]byte, ) int32
ExecuteOnSameContextWithTypedArgs - executeOnSameContext with args already read from memory
func ExecuteReadOnlyWithHost ¶
func ExecuteReadOnlyWithHost( host arwen.VMHost, gasLimit int64, addressOffset int32, functionOffset int32, functionLength int32, numArguments int32, argumentsLengthOffset int32, dataOffset int32, ) int32
ExecuteReadOnlyWithHost - executeReadOnly with host instead of pointer context
func ExecuteReadOnlyWithTypedArguments ¶
func ExecuteReadOnlyWithTypedArguments( host arwen.VMHost, gasLimit int64, function []byte, dest []byte, args [][]byte, ) int32
ExecuteReadOnlyWithTypedArguments - executeReadOnly with args already read from memory
func SmallIntImports ¶
SmallIntImports creates a new wasmer.Imports populated with the small int (int64/uint64) API methods
func TransferESDTNFTExecuteWithHost ¶
func TransferESDTNFTExecuteWithHost( host arwen.VMHost, destOffset int32, tokenIDOffset int32, tokenIDLen int32, valueOffset int32, nonce int64, gasLimit int64, functionOffset int32, functionLength int32, numArguments int32, argumentsLengthOffset int32, dataOffset int32, ) int32
TransferESDTNFTExecuteWithHost contains only memory reading of arguments
func TransferESDTNFTExecuteWithTypedArgs ¶
func TransferESDTNFTExecuteWithTypedArgs( host arwen.VMHost, esdtValue *big.Int, esdtTokenName []byte, dest []byte, nonce int64, gasLimit int64, function []byte, data [][]byte, ) int32
TransferESDTNFTExecuteWithTypedArgs defines the actual transfer ESDT execute logic
func TransferValueExecuteWithHost ¶
func TransferValueExecuteWithHost( host arwen.VMHost, destOffset int32, valueOffset int32, gasLimit int64, functionOffset int32, functionLength int32, numArguments int32, argumentsLengthOffset int32, dataOffset int32, ) int32
TransferValueExecuteWithHost - transferValueExecute with host instead of pointer context
Types ¶
This section is empty.