Documentation ¶
Index ¶
- Constants
- func BigFloatImports(imports vmhooksmeta.EIFunctionReceiver) error
- func BigIntImports(imports vmhooksmeta.EIFunctionReceiver) error
- func BigIntToStringWithHost(host arwen.VMHost, bigIntHandle int32, destinationHandle int32)
- func CleanReturnDataWithHost(host arwen.VMHost)
- func DeleteFromReturnDataWithHost(host arwen.VMHost, resultID int32)
- func DeployFromSourceContractWithTypedArgs(host arwen.VMHost, sourceContractAddress []byte, codeMetadata []byte, ...) ([]byte, error)
- func ElrondEIImports(imports vmhooksmeta.EIFunctionReceiver) 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 GetReturnDataWithHostAndTypedArgs(host arwen.VMHost, resultID int32) []byte
- func ManagedAsyncCallWithHost(host arwen.VMHost, destHandle int32, valueHandle int32, functionHandle int32, ...)
- func ManagedBufferCopyByteSliceWithHost(host arwen.VMHost, sourceHandle int32, startingPosition int32, ...) int32
- func ManagedBufferImports(imports vmhooksmeta.EIFunctionReceiver) error
- func ManagedBufferSetByteSliceWithHost(host arwen.VMHost, mBufferHandle int32, startingPosition int32, ...) int32
- func ManagedBufferSetByteSliceWithTypedArgs(host arwen.VMHost, mBufferHandle int32, startingPosition int32, ...) int32
- func ManagedBufferToHexWithHost(host arwen.VMHost, sourceHandle int32, destHandle int32)
- func ManagedEIImports(imports vmhooksmeta.EIFunctionReceiver) error
- func ManagedIsESDTFrozenWithHost(host arwen.VMHost, addressHandle int32, tokenIDHandle int32, nonce int64) int32
- func ManagedIsESDTLimitedTransferWithHost(host arwen.VMHost, tokenIDHandle int32) int32
- func ManagedIsESDTPausedWithHost(host arwen.VMHost, tokenIDHandle int32) int32
- func SetStorageLockWithHost(host arwen.VMHost, keyOffset int32, keyLength int32, lockTimestamp int64) int32
- func SetStorageLockWithTypedArgs(host arwen.VMHost, key []byte, lockTimestamp int64) int32
- func SmallIntImports(imports vmhooksmeta.EIFunctionReceiver) error
- func StorageLoadFromAddressWithHost(host arwen.VMHost, addressOffset int32, keyOffset int32, keyLength int32, ...) int32
- func StorageLoadFromAddressWithTypedArgs(host arwen.VMHost, address []byte, key []byte) ([]byte, error)
- func StorageLoadWithHost(host arwen.VMHost, keyOffset int32, keyLength int32, dataOffset int32) int32
- func StorageLoadWithWithTypedArgs(host arwen.VMHost, key []byte) ([]byte, error)
- func StorageStoreWithHost(host arwen.VMHost, keyOffset int32, keyLength int32, dataOffset int32, ...) int32
- func StorageStoreWithTypedArgs(host arwen.VMHost, key []byte, data []byte) int32
- func TransferESDTNFTExecuteWithHost(host arwen.VMHost, destOffset int32, tokenIDOffset int32, tokenIDLen int32, ...) int32
- func TransferESDTNFTExecuteWithTypedArgs(host arwen.VMHost, dest []byte, transfers []*vmcommon.ESDTTransfer, ...) 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
- func UpgradeFromSourceContractWithTypedArgs(host arwen.VMHost, sourceContractAddress []byte, destContractAddress []byte, ...)
- func ValidateToken(tokenID []byte) bool
Constants ¶
const ( RoleMint = 1 << iota RoleBurn RoleNFTCreate RoleNFTAddQuantity RoleNFTBurn )
Variables ¶
This section is empty.
Functions ¶
func BigFloatImports ¶
func BigFloatImports(imports vmhooksmeta.EIFunctionReceiver) error
BigFloatImports creates a new wasmer.Imports populated with the BigFloat API methods
func BigIntImports ¶
func BigIntImports(imports vmhooksmeta.EIFunctionReceiver) error
BigIntImports creates a new wasmer.Imports populated with the BigInt API methods
func BigIntToStringWithHost ¶
func CleanReturnDataWithHost ¶
func CleanReturnDataWithHost(host arwen.VMHost)
CleanReturnDataWithHost - exposed version of v1_4_deleteFromReturnData for tests
func DeleteFromReturnDataWithHost ¶
func DeleteFromReturnDataWithHost(host arwen.VMHost, resultID int32)
DeleteFromReturnDataWithHost - exposed version of v1_4_deleteFromReturnData for tests
func DeployFromSourceContractWithTypedArgs ¶
func DeployFromSourceContractWithTypedArgs( host arwen.VMHost, sourceContractAddress []byte, codeMetadata []byte, value *big.Int, data [][]byte, gasLimit int64, ) ([]byte, error)
DeployFromSourceContractWithTypedArgs - deployFromSourceContract with args already read from memory
func ElrondEIImports ¶ added in v1.4.73
func ElrondEIImports(imports vmhooksmeta.EIFunctionReceiver) error
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 ManagedBufferImports ¶
func ManagedBufferImports(imports vmhooksmeta.EIFunctionReceiver) error
ManagedBufferImports creates a new wasmer.Imports populated with the ManagedBuffer API methods
func ManagedEIImports ¶
func ManagedEIImports(imports vmhooksmeta.EIFunctionReceiver) error
ManagedEIImports creates a new wasmer.Imports populated with variants of the API methods that use managed types only.
func SetStorageLockWithHost ¶
func SetStorageLockWithHost(host arwen.VMHost, keyOffset int32, keyLength int32, lockTimestamp int64) int32
SetStorageLockWithHost - setStorageLock with host instead of pointer context
func SetStorageLockWithTypedArgs ¶
SetStorageLockWithTypedArgs - setStorageLock with args already read from memory
func SmallIntImports ¶
func SmallIntImports(imports vmhooksmeta.EIFunctionReceiver) error
SmallIntImports creates a new wasmer.Imports populated with the small int (int64/uint64) API methods
func StorageLoadFromAddressWithHost ¶
func StorageLoadFromAddressWithHost(host arwen.VMHost, addressOffset int32, keyOffset int32, keyLength int32, dataOffset int32) int32
StorageLoadFromAddressWithHost - storageLoadFromAddress with host instead of pointer context
func StorageLoadFromAddressWithTypedArgs ¶
func StorageLoadFromAddressWithTypedArgs(host arwen.VMHost, address []byte, key []byte) ([]byte, error)
StorageLoadFromAddressWithTypedArgs - storageLoadFromAddress with args already read from memory
func StorageLoadWithHost ¶
func StorageLoadWithHost(host arwen.VMHost, keyOffset int32, keyLength int32, dataOffset int32) int32
StorageLoadWithHost - storageLoad with host instead of pointer context
func StorageLoadWithWithTypedArgs ¶
StorageLoadWithWithTypedArgs - storageLoad with args already read from memory
func StorageStoreWithHost ¶
func StorageStoreWithHost(host arwen.VMHost, keyOffset int32, keyLength int32, dataOffset int32, dataLength int32) int32
StorageStoreWithHost - storageStore with host instead of pointer context
func StorageStoreWithTypedArgs ¶
StorageStoreWithTypedArgs - storageStore with args already read from memory
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, dest []byte, transfers []*vmcommon.ESDTTransfer, 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
func TransferValueExecuteWithTypedArgs ¶
func TransferValueExecuteWithTypedArgs( host arwen.VMHost, dest []byte, value *big.Int, gasLimit int64, function []byte, args [][]byte, ) int32
TransferValueExecuteWithTypedArgs - transferValueExecute with args already read from memory
func UpgradeFromSourceContractWithTypedArgs ¶
func UpgradeFromSourceContractWithTypedArgs( host arwen.VMHost, sourceContractAddress []byte, destContractAddress []byte, value []byte, data [][]byte, gasLimit int64, codeMetadata []byte, )
UpgradeFromSourceContractWithTypedArgs - upgradeFromSourceContract with args already read from memory
Types ¶
This section is empty.