testwasmlib

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0, BSD-2-Clause, Apache-2.0, + 1 more Imports: 3 Imported by: 0

README

testwasmlib

Exercise all aspects of WasmLib

Documentation

Index

Constants

View Source
const (
	ScName        = "testwasmlib"
	ScDescription = "Exercise all aspects of WasmLib"
	HScName       = wasmlib.ScHname(0x89703a45)
)
View Source
const (
	ParamAddress     = wasmlib.Key("address")
	ParamAgentID     = wasmlib.Key("agentID")
	ParamBlockIndex  = wasmlib.Key("blockIndex")
	ParamBytes       = wasmlib.Key("bytes")
	ParamChainID     = wasmlib.Key("chainID")
	ParamColor       = wasmlib.Key("color")
	ParamHash        = wasmlib.Key("hash")
	ParamHname       = wasmlib.Key("hname")
	ParamIndex       = wasmlib.Key("index")
	ParamInt16       = wasmlib.Key("int16")
	ParamInt32       = wasmlib.Key("int32")
	ParamInt64       = wasmlib.Key("int64")
	ParamName        = wasmlib.Key("name")
	ParamRecordIndex = wasmlib.Key("recordIndex")
	ParamRequestID   = wasmlib.Key("requestID")
	ParamString      = wasmlib.Key("string")
	ParamValue       = wasmlib.Key("value")
)
View Source
const (
	ResultCount  = wasmlib.Key("count")
	ResultIotas  = wasmlib.Key("iotas")
	ResultLength = wasmlib.Key("length")
	ResultRecord = wasmlib.Key("record")
	ResultValue  = wasmlib.Key("value")
)
View Source
const (
	FuncArrayClear   = "arrayClear"
	FuncArrayCreate  = "arrayCreate"
	FuncArraySet     = "arraySet"
	FuncParamTypes   = "paramTypes"
	ViewArrayLength  = "arrayLength"
	ViewArrayValue   = "arrayValue"
	ViewBlockRecord  = "blockRecord"
	ViewBlockRecords = "blockRecords"
	ViewIotaBalance  = "iotaBalance"
)
View Source
const (
	HFuncArrayClear   = wasmlib.ScHname(0x88021821)
	HFuncArrayCreate  = wasmlib.ScHname(0x1ed5b23b)
	HFuncArraySet     = wasmlib.ScHname(0x2c4150b3)
	HFuncParamTypes   = wasmlib.ScHname(0x6921c4cd)
	HViewArrayLength  = wasmlib.ScHname(0x3a831021)
	HViewArrayValue   = wasmlib.ScHname(0x662dbd81)
	HViewBlockRecord  = wasmlib.ScHname(0xad13b2f8)
	HViewBlockRecords = wasmlib.ScHname(0x16e249ea)
	HViewIotaBalance  = wasmlib.ScHname(0x9d3920bd)
)
View Source
const (
	IdxParamAddress     = 0
	IdxParamAgentID     = 1
	IdxParamBlockIndex  = 2
	IdxParamBytes       = 3
	IdxParamChainID     = 4
	IdxParamColor       = 5
	IdxParamHash        = 6
	IdxParamHname       = 7
	IdxParamIndex       = 8
	IdxParamInt16       = 9
	IdxParamInt32       = 10
	IdxParamInt64       = 11
	IdxParamName        = 12
	IdxParamRecordIndex = 13
	IdxParamRequestID   = 14
	IdxParamString      = 15
	IdxParamValue       = 16
	IdxResultCount      = 17
	IdxResultIotas      = 18
	IdxResultLength     = 19
	IdxResultRecord     = 20
	IdxResultValue      = 21
	IdxStateArrays      = 22
)
View Source
const StateArrays = wasmlib.Key("arrays")

Variables

This section is empty.

Functions

func OnLoad

func OnLoad()

Types

type ArrayClearCall

type ArrayClearCall struct {
	Func   *wasmlib.ScFunc
	Params MutableArrayClearParams
}

type ArrayClearContext

type ArrayClearContext struct {
	Params ImmutableArrayClearParams
	State  MutableTestWasmLibState
}

type ArrayCreateCall

type ArrayCreateCall struct {
	Func   *wasmlib.ScFunc
	Params MutableArrayCreateParams
}

type ArrayCreateContext

type ArrayCreateContext struct {
	Params ImmutableArrayCreateParams
	State  MutableTestWasmLibState
}

type ArrayLengthCall

type ArrayLengthCall struct {
	Func    *wasmlib.ScView
	Params  MutableArrayLengthParams
	Results ImmutableArrayLengthResults
}

type ArrayLengthContext

type ArrayLengthContext struct {
	Params  ImmutableArrayLengthParams
	Results MutableArrayLengthResults
	State   ImmutableTestWasmLibState
}

type ArrayOfImmutableString

type ArrayOfImmutableString struct {
	// contains filtered or unexported fields
}

func (ArrayOfImmutableString) GetString

func (ArrayOfImmutableString) Length

func (a ArrayOfImmutableString) Length() int32

type ArrayOfMutableString

type ArrayOfMutableString struct {
	// contains filtered or unexported fields
}

func (ArrayOfMutableString) Clear

func (a ArrayOfMutableString) Clear()

func (ArrayOfMutableString) GetString

func (ArrayOfMutableString) Length

func (a ArrayOfMutableString) Length() int32

type ArraySetCall

type ArraySetCall struct {
	Func   *wasmlib.ScFunc
	Params MutableArraySetParams
}

type ArraySetContext

type ArraySetContext struct {
	Params ImmutableArraySetParams
	State  MutableTestWasmLibState
}

type ArrayValueCall

type ArrayValueCall struct {
	Func    *wasmlib.ScView
	Params  MutableArrayValueParams
	Results ImmutableArrayValueResults
}

type ArrayValueContext

type ArrayValueContext struct {
	Params  ImmutableArrayValueParams
	Results MutableArrayValueResults
	State   ImmutableTestWasmLibState
}

type BlockRecordCall

type BlockRecordCall struct {
	Func    *wasmlib.ScView
	Params  MutableBlockRecordParams
	Results ImmutableBlockRecordResults
}

type BlockRecordContext

type BlockRecordContext struct {
	Params  ImmutableBlockRecordParams
	Results MutableBlockRecordResults
	State   ImmutableTestWasmLibState
}

type BlockRecordsCall

type BlockRecordsCall struct {
	Func    *wasmlib.ScView
	Params  MutableBlockRecordsParams
	Results ImmutableBlockRecordsResults
}

type BlockRecordsContext

type BlockRecordsContext struct {
	Params  ImmutableBlockRecordsParams
	Results MutableBlockRecordsResults
	State   ImmutableTestWasmLibState
}

type Funcs

type Funcs struct{}
var ScFuncs Funcs

func (Funcs) ArrayClear

func (sc Funcs) ArrayClear(ctx wasmlib.ScFuncCallContext) *ArrayClearCall

func (Funcs) ArrayCreate

func (sc Funcs) ArrayCreate(ctx wasmlib.ScFuncCallContext) *ArrayCreateCall

func (Funcs) ArrayLength

func (sc Funcs) ArrayLength(ctx wasmlib.ScViewCallContext) *ArrayLengthCall

func (Funcs) ArraySet

func (sc Funcs) ArraySet(ctx wasmlib.ScFuncCallContext) *ArraySetCall

func (Funcs) ArrayValue

func (sc Funcs) ArrayValue(ctx wasmlib.ScViewCallContext) *ArrayValueCall

func (Funcs) BlockRecord

func (sc Funcs) BlockRecord(ctx wasmlib.ScViewCallContext) *BlockRecordCall

func (Funcs) BlockRecords

func (sc Funcs) BlockRecords(ctx wasmlib.ScViewCallContext) *BlockRecordsCall

func (Funcs) IotaBalance

func (sc Funcs) IotaBalance(ctx wasmlib.ScViewCallContext) *IotaBalanceCall

func (Funcs) ParamTypes

func (sc Funcs) ParamTypes(ctx wasmlib.ScFuncCallContext) *ParamTypesCall

type ImmutableArrayClearParams

type ImmutableArrayClearParams struct {
	// contains filtered or unexported fields
}

func (ImmutableArrayClearParams) Name

type ImmutableArrayCreateParams

type ImmutableArrayCreateParams struct {
	// contains filtered or unexported fields
}

func (ImmutableArrayCreateParams) Name

type ImmutableArrayLengthParams

type ImmutableArrayLengthParams struct {
	// contains filtered or unexported fields
}

func (ImmutableArrayLengthParams) Name

type ImmutableArrayLengthResults

type ImmutableArrayLengthResults struct {
	// contains filtered or unexported fields
}

func (ImmutableArrayLengthResults) Length

type ImmutableArraySetParams

type ImmutableArraySetParams struct {
	// contains filtered or unexported fields
}

func (ImmutableArraySetParams) Index

func (ImmutableArraySetParams) Name

func (ImmutableArraySetParams) Value

type ImmutableArrayValueParams

type ImmutableArrayValueParams struct {
	// contains filtered or unexported fields
}

func (ImmutableArrayValueParams) Index

func (ImmutableArrayValueParams) Name

type ImmutableArrayValueResults

type ImmutableArrayValueResults struct {
	// contains filtered or unexported fields
}

func (ImmutableArrayValueResults) Value

type ImmutableBlockRecordParams

type ImmutableBlockRecordParams struct {
	// contains filtered or unexported fields
}

func (ImmutableBlockRecordParams) BlockIndex

func (ImmutableBlockRecordParams) RecordIndex

type ImmutableBlockRecordResults

type ImmutableBlockRecordResults struct {
	// contains filtered or unexported fields
}

func (ImmutableBlockRecordResults) Record

type ImmutableBlockRecordsParams

type ImmutableBlockRecordsParams struct {
	// contains filtered or unexported fields
}

func (ImmutableBlockRecordsParams) BlockIndex

type ImmutableBlockRecordsResults

type ImmutableBlockRecordsResults struct {
	// contains filtered or unexported fields
}

func (ImmutableBlockRecordsResults) Count

type ImmutableIotaBalanceResults

type ImmutableIotaBalanceResults struct {
	// contains filtered or unexported fields
}

func (ImmutableIotaBalanceResults) Iotas

type ImmutableParamTypesParams

type ImmutableParamTypesParams struct {
	// contains filtered or unexported fields
}

func (ImmutableParamTypesParams) Address

func (ImmutableParamTypesParams) AgentID

func (ImmutableParamTypesParams) Bytes

func (ImmutableParamTypesParams) ChainID

func (ImmutableParamTypesParams) Color

func (ImmutableParamTypesParams) Hash

func (ImmutableParamTypesParams) Hname

func (ImmutableParamTypesParams) Int16

func (ImmutableParamTypesParams) Int32

func (ImmutableParamTypesParams) Int64

func (ImmutableParamTypesParams) Param

func (ImmutableParamTypesParams) RequestID

func (ImmutableParamTypesParams) String

type ImmutableStringArray

type ImmutableStringArray = ArrayOfImmutableString

type ImmutableTestWasmLibState

type ImmutableTestWasmLibState struct {
	// contains filtered or unexported fields
}

func (ImmutableTestWasmLibState) Arrays

type IotaBalanceCall

type IotaBalanceCall struct {
	Func    *wasmlib.ScView
	Results ImmutableIotaBalanceResults
}

type IotaBalanceContext

type IotaBalanceContext struct {
	Results MutableIotaBalanceResults
	State   ImmutableTestWasmLibState
}

type MapStringToImmutableBytes

type MapStringToImmutableBytes struct {
	// contains filtered or unexported fields
}

func (MapStringToImmutableBytes) GetBytes

type MapStringToImmutableStringArray

type MapStringToImmutableStringArray struct {
	// contains filtered or unexported fields
}

func (MapStringToImmutableStringArray) GetStringArray

type MapStringToMutableBytes

type MapStringToMutableBytes struct {
	// contains filtered or unexported fields
}

func (MapStringToMutableBytes) Clear

func (m MapStringToMutableBytes) Clear()

func (MapStringToMutableBytes) GetBytes

type MapStringToMutableStringArray

type MapStringToMutableStringArray struct {
	// contains filtered or unexported fields
}

func (MapStringToMutableStringArray) Clear

func (MapStringToMutableStringArray) GetStringArray

type MutableArrayClearParams

type MutableArrayClearParams struct {
	// contains filtered or unexported fields
}

func (MutableArrayClearParams) Name

type MutableArrayCreateParams

type MutableArrayCreateParams struct {
	// contains filtered or unexported fields
}

func (MutableArrayCreateParams) Name

type MutableArrayLengthParams

type MutableArrayLengthParams struct {
	// contains filtered or unexported fields
}

func (MutableArrayLengthParams) Name

type MutableArrayLengthResults

type MutableArrayLengthResults struct {
	// contains filtered or unexported fields
}

func (MutableArrayLengthResults) Length

type MutableArraySetParams

type MutableArraySetParams struct {
	// contains filtered or unexported fields
}

func (MutableArraySetParams) Index

func (MutableArraySetParams) Name

func (MutableArraySetParams) Value

type MutableArrayValueParams

type MutableArrayValueParams struct {
	// contains filtered or unexported fields
}

func (MutableArrayValueParams) Index

func (MutableArrayValueParams) Name

type MutableArrayValueResults

type MutableArrayValueResults struct {
	// contains filtered or unexported fields
}

func (MutableArrayValueResults) Value

type MutableBlockRecordParams

type MutableBlockRecordParams struct {
	// contains filtered or unexported fields
}

func (MutableBlockRecordParams) BlockIndex

func (MutableBlockRecordParams) RecordIndex

type MutableBlockRecordResults

type MutableBlockRecordResults struct {
	// contains filtered or unexported fields
}

func (MutableBlockRecordResults) Record

type MutableBlockRecordsParams

type MutableBlockRecordsParams struct {
	// contains filtered or unexported fields
}

func (MutableBlockRecordsParams) BlockIndex

type MutableBlockRecordsResults

type MutableBlockRecordsResults struct {
	// contains filtered or unexported fields
}

func (MutableBlockRecordsResults) Count

type MutableIotaBalanceResults

type MutableIotaBalanceResults struct {
	// contains filtered or unexported fields
}

func (MutableIotaBalanceResults) Iotas

type MutableParamTypesParams

type MutableParamTypesParams struct {
	// contains filtered or unexported fields
}

func (MutableParamTypesParams) Address

func (MutableParamTypesParams) AgentID

func (MutableParamTypesParams) Bytes

func (MutableParamTypesParams) ChainID

func (MutableParamTypesParams) Color

func (MutableParamTypesParams) Hash

func (MutableParamTypesParams) Hname

func (MutableParamTypesParams) Int16

func (MutableParamTypesParams) Int32

func (MutableParamTypesParams) Int64

func (MutableParamTypesParams) Param

func (MutableParamTypesParams) RequestID

func (MutableParamTypesParams) String

type MutableStringArray

type MutableStringArray = ArrayOfMutableString

type MutableTestWasmLibState

type MutableTestWasmLibState struct {
	// contains filtered or unexported fields
}

func (MutableTestWasmLibState) Arrays

type ParamTypesCall

type ParamTypesCall struct {
	Func   *wasmlib.ScFunc
	Params MutableParamTypesParams
}

type ParamTypesContext

type ParamTypesContext struct {
	Params ImmutableParamTypesParams
	State  MutableTestWasmLibState
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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