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

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
0a9b6c…e483: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
0a9b6c…e483: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
0a9b6c…e483: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