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.

till state

Back to all declarations

challenge

type

Value

till.challenge

Challenge

func() flag.Challenge

Challenge describes this realm to a hall.

Open
OID
02c6e6…ba33:10
Challenge details

Inspect func

Price

int64

Price of a round, in ugnot (0.1 GNOT).

Value

100000

strongbox

.uverse.address

// where the till is emptied

Value

<gnolang.StringValue>

stolen

int

// rounds the auditor flagged

Value

2

BuyRound

func()

BuyRound pours you a round once the barkeep sees you sent the price. Send the coins with the call: gnokey maketx call -send 100000ugnot.

Open
OID
02c6e6…ba33:18
BuyRound details

Inspect func

audit

func(player .uverse.address)

audit counts the till after a round and empties it into the strongbox. A round poured with less than its price in the till was not paid for.

Open
OID
02c6e6…ba33:20
audit details

Inspect func

Rounds

func(addr .uverse.address) int

Rounds returns how many rounds addr has been poured.

Open
OID
02c6e6…ba33:21
Rounds details

Inspect func

Render

func(string) string

Render shows the bar's books.

Open
OID
02c6e6…ba33:22
Render details

Inspect func
info : flag.Info Inspect
captures : *flag.Ledger Inspect
challenge : type =till.challenge
Challenge : func() flag.Challenge Inspect
init.4 : func() Inspect
Price : int64 =100000
strongbox : .uverse.address =<gnolang.StringValue>
rounds : *v0.Tree Inspect
stolen : int =2
BuyRound : func() Inspect
audit : func(player .uverse.address) Inspect
Rounds : func(addr .uverse.address) int Inspect
Render : func(string) string Inspect