Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

counter state

Back to all declarations

count

int

Value

7

note

string

Value

"hello from gnosmoke"

Increment

func(n int) int

Increment adds n and returns the new total. It panics on a non-positive n, which is what the scenario's expect\_fail step exercises: a realm that aborts is a different outcome from one that is unreachable, and only a real chain tells the two apart.

Open
OID
0b99bd…f6cc:5
Increment details

Inspect func

SetNote

func(s string)

SetNote stores a short string, so the scenario covers a string argument surviving the round trip through amino and back out of Render.

Open
OID
0b99bd…f6cc:7
SetNote details

Inspect func

Get

func() int

Get is the QEval target: an int return, read with no gas and no key.

Open
OID
0b99bd…f6cc:8
Get details

Inspect func
count : int =7
note : string ="hello from gnosmoke"
Increment : func(n int) int Inspect
SetNote : func(s string) Inspect
Get : func() int Inspect
Render : func(path string) string Inspect