helloworld

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: 1 Imported by: 0

README

helloworld

Sample smart contract

ISCP version of the ubiquitous "Hello, world!" program.

Documentation

Index

Constants

View Source
const (
	ScName        = "helloworld"
	ScDescription = "The ubiquitous hello world demo"
	HScName       = wasmlib.ScHname(0x0683223c)
)
View Source
const (
	FuncHelloWorld    = "helloWorld"
	ViewGetHelloWorld = "getHelloWorld"
)
View Source
const (
	HFuncHelloWorld    = wasmlib.ScHname(0x9d042e65)
	HViewGetHelloWorld = wasmlib.ScHname(0x210439ce)
)
View Source
const IdxResultHelloWorld = 0
View Source
const ResultHelloWorld = wasmlib.Key("helloWorld")

Variables

This section is empty.

Functions

func OnLoad

func OnLoad()

Types

type Funcs

type Funcs struct{}
var ScFuncs Funcs

func (Funcs) GetHelloWorld

func (sc Funcs) GetHelloWorld(ctx wasmlib.ScViewCallContext) *GetHelloWorldCall

func (Funcs) HelloWorld

func (sc Funcs) HelloWorld(ctx wasmlib.ScFuncCallContext) *HelloWorldCall

type GetHelloWorldCall

type GetHelloWorldCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetHelloWorldResults
}

type GetHelloWorldContext

type GetHelloWorldContext struct {
	Results MutableGetHelloWorldResults
	State   ImmutableHelloWorldState
}

type HelloWorldCall

type HelloWorldCall struct {
	Func *wasmlib.ScFunc
}

type HelloWorldContext

type HelloWorldContext struct {
	State MutableHelloWorldState
}

type ImmutableGetHelloWorldResults

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

func (ImmutableGetHelloWorldResults) HelloWorld

type ImmutableHelloWorldState

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

type MutableGetHelloWorldResults

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

func (MutableGetHelloWorldResults) HelloWorld

type MutableHelloWorldState

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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