Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

rack state

Back to all declarations

challenge

type

Value

rack.challenge

Challenge

func() flag.Challenge

Challenge describes this realm to a hall.

Open
OID
037cc3…d937:10
Challenge details

Inspect func

Prize

untyped string

Prize is the bottle nobody has ever been promised.

Value

"1811 Château d'Yquem"

Rack

type

Rack is the reserve rack: which bottle is set aside for which guest.

Value

rack.Rack

Ledger

*rack.Rack

Ledger is posted on the door for every realm to read. Other realms can import it but cannot change it: Gno makes their view of it read-only.

Open
OID
037cc3…d937:14
Ledger details

Inspect pointer

Reserve

func(guest .uverse.address, bottle string)

Reserve sets a bottle aside for guest. Only the keeper reserves, and the keeper never reserves the Prize.

Open
OID
037cc3…d937:18
Reserve details

Inspect func

Collect

func()

Collect hands over the bottle reserved in your name. If it is the Prize, the flag is yours.

Open
OID
037cc3…d937:20
Collect details

Inspect func

Render

func(string) string

Render shows the rack.

Open
OID
037cc3…d937:21
Render details

Inspect func
info : flag.Info Inspect
captures : *flag.Ledger Inspect
challenge : type =rack.challenge
Challenge : func() flag.Challenge Inspect
init.4 : func() Inspect
Prize : untyped string ="1811 Château d'Yquem"
Rack : type =rack.Rack
Ledger : *rack.Rack Inspect
Reserve : func(guest .uverse.address, bottle string) Inspect
Collect : func() Inspect
Render : func(string) string Inspect