# Packages

No description provided by the author

# Functions

AddFinishData appends the provided []byte to the ReturnData of the given vmOutput.
AddNewOutputAccount creates a new vmcommon.OutputAccount from the provided arguments and adds it to OutputAccounts of the provided vmOutput.
AddTestSmartContractToWorld directly deploys the provided code into the given MockWorld under a SC address built with the given identifier.
BuildSCModule invokes erdpy to build the contract into a WASM module.
DefaultTestContractCallInput creates a vmcommon.ContractCallInput struct with default values.
DefaultTestContractCreateInput creates a vmcommon.ContractCreateInput struct with default values.
No description provided by the author
GetSCCode retrieves the bytecode of a WASM module from a file.
GetTestSCCode retrieves the bytecode of a WASM testing contract.
GetTestSCCodeModule retrieves the bytecode of a WASM testing contract, given a specific name of the WASM module.
LoadGasScheduleConfig parses and prepares a gas schedule read from file.
LoadTomlFileToMap opens and decodes a toml file as a map[string]interface{}.
MakeTestSCAddress generates a new smart contract address to be used for testing based on the given identifier.
MakeVMOutput creates a vmcommon.VMOutput struct with default values.
MakeVMOutputError creates a vmcommon.VMOutput struct with default values for errors.
NewVMHost creates a new VM vmHost.
OpenFile method opens the file from given path - does not close the file.
SetStorageUpdate sets a storage update to the provided vmcommon.OutputAccount.
SetStorageUpdateStrings sets a storage update to the provided vmcommon.OutputAccount, from string arguments.
TryCatch simulates a try/catch block using golang's recover() functionality.

# Constants

AddressSize is the size of an account address, in bytes.
AheadOfTimeGasUsageFlag defines the flag that activates the ahead of time gas usage fix.
BuiltInFunctionsFlag defines the flag that activates the builtin functions.
RepairCallbackFlag defines the flag that activates the repair callback fix.
SCDeployFlag defines the flag that activates the sc deploy.

# Variables

MaximumWasmerInstanceCount represents the maximum number of Wasmer instances that can be active at the same time.
SCAddressPrefix is the prefix of any smart contract address used for testing.

# Type aliases

CatchFunction corresponds to the catch() part of a try / catch block.
TryFunction corresponds to the try() part of a try / catch block.