package
3.8.0+incompatible
Repository: https://github.com/bottos-project/bottos.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BytesToF32 convert bytes to float32.
BytesToF64 convert bytes to float64.
BytesToString convert bytes to string.
ByteToFloat64 convert byte to float64.
for common.
for js.
for js.
F32ToBytes convert float32 to bytes.
F64ToBytes convert float64 to bytes.
GetInstance is to get instance of wasm engine.
GetWasmVersion is to get wasm version.
I32ToBytes convert int32 to bytes.
I64ToBytes convert int64 to bytes.
NewEnvFunc new an EnvFunc.
NewVM creates a new VM from a given module.
Search the CTX infor at the database according to apply_context.
NewWASM Search the CTX infor at the database according to applyContext.
for js.
No description provided by the author
No description provided by the author

# Constants

BOTTOS_INVALID_CODE config the status of code.
CALL_DEP_LIMIT config the max depth of call.
No description provided by the author
CALL_WID_LIMIT config the max width of call.
No description provided by the author
CTX_WASM_FILE config ctx wasm fileCTX_WASM_FILE = "/opt/bin/go/usermng.wasm"CTX_WASM_FILE = "C:\\Users\\stewa\\Desktop\\BottosCTX\\math.wasm"CTX_WASM_FILE = "C:\\Users\\stewa\\Desktop\\BottosCTX\\callcontract.wasm"CTX_WASM_FILE = "C:\\Users\\stewa\\go\\src\\github.com\\AssemblyScript\\assemblyscript\\examples\\example\\module.optimized.wasm"CTX_WASM_FILE = "C:\\Users\\stewa\\go\\src\\github.com\\AssemblyScript\\assemblyscript\\examples\\example\\module.optimized.wasm"CTX_WASM_FILE = "C:\\Users\\stewa\\Desktop\\BottosCTX\\commontoken.wasm".
ENTRY_FUNCTION
ENTRY_FUNCTION config the entry name.
Float32 type enum.
Float64 type enum.
Int16 type enum.
Int32 type enum.
Int64 type enum.
Int8 type enum.
No description provided by the author
No description provided by the author
String type enum.
Struct type enum.
CTX_WASM_FILE = "C:\\Users\\stewa\\Desktop\\BottosCTX\\module.optimized.coredump.wasm" SUB_WASM_FILE config sub wasm file.
TST Test status.
Unknown type enum.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VM_PERIOD_OF_VALIDITY config the VM period of validity.
No description provided by the author
WAIT_TIME config the wait times.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidArgumentCount is returned by (*VM).ExecCode when an invalid number of arguments to the WebAssembly function are passed to it.
No description provided by the author
ErrMultipleLinearMemories is returned by (*VM).NewVM when the module has more then one entries in the linear memory space.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrOutOfBoundsMemoryAccess is the error value used while trapping the VM when it detects an out of bounds access to the linear memory.
ErrSignatureMismatch is the error value used while trapping the VM when a signature mismatch between the table entry and the type entry is found in a call_indirect operation.
ErrUndefinedElementIndex is the error value used while trapping the VM when an invalid index to the module's table space is used as an operand to call_indirect.
ErrUnreachable is the error value used while trapping the VM when an unreachable operator is reached during execution.

# Structs

ApplyContext define the apply context.
Authorization define the struct of authorization.
EnvFunc defines env for func execution.
FuncInfo is function information.
Message define the message info.
ParamInfo define param info.
ParamList define param array.
Rtn define the return type.
VM is the execution context for executing WebAssembly bytecode.

# Type aliases

InvalidFunctionIndexError is returned by (*VM).ExecCode when the function index provided is invalid.
InvalidReturnTypeError is returned by (*VM).ExecCode when the module specifies an invalid return type value for the executed function.
No description provided by the author
Type define one variable type.
No description provided by the author