wasp

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInt

func GetInt(objId int32, keyId int32) int64

func GetKey

func GetKey(key string) int32

func GetObject

func GetObject(objId int32, keyId int32, typeId int32) int32

func GetString

func GetString(objId int32, keyId int32) string

func KeyLength

func KeyLength() int32

func KeyLog

func KeyLog() int32

func KeyTrace

func KeyTrace() int32

func SetInt

func SetInt(objId int32, keyId int32, value int64)

func SetString

func SetString(objId int32, keyId int32, value string)

Types

type ScContext

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

func NewScContext

func NewScContext() *ScContext

func (*ScContext) Balance

func (ctx *ScContext) Balance(color string) int64

func (*ScContext) Colors

func (ctx *ScContext) Colors() *ScImmutableStringArray

func (*ScContext) Config

func (ctx *ScContext) Config() *ScImmutableMap

func (*ScContext) Error

func (ctx *ScContext) Error() *ScMutableString

func (*ScContext) Log

func (ctx *ScContext) Log(text string)

func (*ScContext) Owner

func (ctx *ScContext) Owner() string

func (*ScContext) Params

func (ctx *ScContext) Params() *ScImmutableMap

func (*ScContext) Random

func (ctx *ScContext) Random(max int64) int64

func (*ScContext) RequestBalance

func (ctx *ScContext) RequestBalance(color string) int64

func (*ScContext) RequestColors

func (ctx *ScContext) RequestColors() *ScImmutableStringArray

func (*ScContext) RequestHash

func (ctx *ScContext) RequestHash() string

func (*ScContext) Requests

func (ctx *ScContext) Requests() *ScMutableMapArray

func (*ScContext) ScAddress

func (ctx *ScContext) ScAddress() string

func (*ScContext) Sender

func (ctx *ScContext) Sender() string

func (*ScContext) State

func (ctx *ScContext) State() *ScMutableMap

func (*ScContext) Timestamp

func (ctx *ScContext) Timestamp() int64

func (*ScContext) Trace

func (ctx *ScContext) Trace(text string)

func (*ScContext) Transfers

func (ctx *ScContext) Transfers() *ScMutableMapArray

type ScImmutableInt

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

func (*ScImmutableInt) Value

func (o *ScImmutableInt) Value() int64

type ScImmutableIntArray

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

func (*ScImmutableIntArray) GetInt

func (o *ScImmutableIntArray) GetInt(index int32) *ScImmutableInt

func (*ScImmutableIntArray) Length

func (o *ScImmutableIntArray) Length() int32

type ScImmutableMap

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

func (*ScImmutableMap) GetInt

func (o *ScImmutableMap) GetInt(key string) *ScImmutableInt

func (*ScImmutableMap) GetIntArray

func (o *ScImmutableMap) GetIntArray(key string) *ScImmutableIntArray

func (*ScImmutableMap) GetMap

func (o *ScImmutableMap) GetMap(key string) *ScImmutableMap

func (*ScImmutableMap) GetMaprray

func (o *ScImmutableMap) GetMaprray(key string) *ScImmutableMapArray

func (*ScImmutableMap) GetString

func (o *ScImmutableMap) GetString(key string) *ScImmutableString

func (*ScImmutableMap) GetStringArray

func (o *ScImmutableMap) GetStringArray(key string) *ScImmutableStringArray

type ScImmutableMapArray

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

func (*ScImmutableMapArray) GetMap

func (o *ScImmutableMapArray) GetMap(index int32) *ScImmutableMap

func (*ScImmutableMapArray) Length

func (o *ScImmutableMapArray) Length() int32

type ScImmutableString

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

func (*ScImmutableString) Value

func (o *ScImmutableString) Value() string

type ScImmutableStringArray

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

func (*ScImmutableStringArray) GetString

func (o *ScImmutableStringArray) GetString(index int32) *ScImmutableString

func (*ScImmutableStringArray) Length

func (o *ScImmutableStringArray) Length() int32

type ScMutableInt

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

func (*ScMutableInt) SetValue

func (o *ScMutableInt) SetValue(value int64)

func (*ScMutableInt) Value

func (o *ScMutableInt) Value() int64

type ScMutableIntArray

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

func (*ScMutableIntArray) Clear

func (o *ScMutableIntArray) Clear()

func (*ScMutableIntArray) GetInt

func (o *ScMutableIntArray) GetInt(index int32) *ScMutableInt

func (*ScMutableIntArray) Immutable

func (o *ScMutableIntArray) Immutable() *ScImmutableIntArray

func (*ScMutableIntArray) Length

func (o *ScMutableIntArray) Length() int32

type ScMutableMap

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

func (*ScMutableMap) Clear

func (o *ScMutableMap) Clear()

func (*ScMutableMap) GetInt

func (o *ScMutableMap) GetInt(key string) *ScMutableInt

func (*ScMutableMap) GetIntArray

func (o *ScMutableMap) GetIntArray(key string) *ScMutableIntArray

func (*ScMutableMap) GetMap

func (o *ScMutableMap) GetMap(key string) *ScMutableMap

func (*ScMutableMap) GetMapArray

func (o *ScMutableMap) GetMapArray(key string) *ScMutableMapArray

func (*ScMutableMap) GetString

func (o *ScMutableMap) GetString(key string) *ScMutableString

func (*ScMutableMap) GetStringArray

func (o *ScMutableMap) GetStringArray(key string) *ScMutableStringArray

func (*ScMutableMap) Immutable

func (o *ScMutableMap) Immutable() *ScImmutableMap

type ScMutableMapArray

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

func (*ScMutableMapArray) Clear

func (o *ScMutableMapArray) Clear()

func (*ScMutableMapArray) GetMap

func (o *ScMutableMapArray) GetMap(index int32) *ScMutableMap

func (*ScMutableMapArray) Immutable

func (o *ScMutableMapArray) Immutable() *ScImmutableMapArray

func (*ScMutableMapArray) Length

func (o *ScMutableMapArray) Length() int32

type ScMutableString

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

func (*ScMutableString) SetValue

func (o *ScMutableString) SetValue(value string)

func (*ScMutableString) Value

func (o *ScMutableString) Value() string

type ScMutableStringArray

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

func (*ScMutableStringArray) Clear

func (o *ScMutableStringArray) Clear()

func (*ScMutableStringArray) GetString

func (o *ScMutableStringArray) GetString(index int32) *ScMutableString

func (*ScMutableStringArray) Immutable

func (*ScMutableStringArray) Length

func (o *ScMutableStringArray) Length() int32

Jump to

Keyboard shortcuts

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