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.

v0 state

Back to all declarations

Days

untyped bigint

Value

(24 <untyped> bigint)

ReviewLimit

untyped bigint

Value

(16 <untyped> bigint)

PageLimit

untyped bigint

Value

(32 <untyped> bigint)

organizer

.uverse.address

Value

<gnolang.StringValue>

pending

untyped bigint

Value

(1 <untyped> bigint)

missed

untyped bigint

Value

(2 <untyped> bigint)

solved

untyped bigint

Value

(3 <untyped> bigint)

attempt

type

Value

v0.attempt

challenge

type

Value

v0.challenge

self

string

Value

"gno.land/r/g1f4k94fjje9tpeekkrnyv2qc7stwxdqp9vcfjg8/advent/v0"

oracle

.uverse.address

Value

<gnolang.StringValue>

SetOracle

func(signer .uverse.address)
Open
OID
0fcd3d…5f79:51
SetOracle details

Inspect func

Publish

func(day int, title string, clue string, publicKey string, reviewFrom int64)

Publish opens a case. The RSA-2048 SPKI public key is pinned for that case so that rotating the key for a new door leaves old doors playable.

Open
OID
0fcd3d…5f79:52
Publish details

Inspect func

openDoor

func(day int, title string, clue string, publicKey string, reviewFrom int64)
Open
OID
0fcd3d…5f79:53
openDoor details

Inspect func

UpdateClue

func(day int, clue string)

UpdateClue corrects the text of an open door while keeping its review schedule, oracle key and submissions intact.

Open
OID
0fcd3d…5f79:54
UpdateClue details

Inspect func

Submit

func(day int, commitment string, sealedSalt string) int

Submit publicly records the commitment and its encrypted random salt.

Open
OID
0fcd3d…5f79:56
Submit details

Inspect func

Review

func(day int, start int, verdicts string)

Review records one verdict per consecutive attempt, starting at the first pending ID. A stale batch fails before it can apply verdicts to other guesses.

Open
OID
0fcd3d…5f79:57
Review details

Inspect func

requireDoor

func(day int) *v0.challenge
Open
OID
0fcd3d…5f79:59
requireDoor details

Inspect func

lowerHex

func(s string, size int) bool
Open
OID
0fcd3d…5f79:60
lowerHex details

Inspect func

Calendar

func() string

Calendar returns tab-separated rows for open doors, with title and clue in base64.

Open
OID
0fcd3d…5f79:61
Calendar details

Inspect func

Attempts

func(day int, start int) string

Attempts returns one bounded page of the public record, starting at a 1-based ID.

Open
OID
0fcd3d…5f79:62
Attempts details

Inspect func

Progress

func(player string) string

Progress lists the latest status of an address across all 24 doors.

Open
OID
0fcd3d…5f79:63
Progress details

Inspect func

Leaders

func() string

Leaders returns the top 24 addresses with their confirmed solves.

Open
OID
0fcd3d…5f79:64
Leaders details

Inspect func

app

untyped string

Value

"https://moul.github.io/gno-contracts/advent/"

renderCalendar

func() string
Open
OID
0fcd3d…5f79:71
renderCalendar details

Inspect func

renderDoor

func(day int) string
Open
OID
0fcd3d…5f79:72
renderDoor details

Inspect func

renderSeal

func(day int, id int) string
Open
OID
0fcd3d…5f79:73
renderSeal details

Inspect func
Days : untyped bigint =(24 <untyped> bigint)
ReviewLimit : untyped bigint =(16 <untyped> bigint)
PageLimit : untyped bigint =(32 <untyped> bigint)
organizer : .uverse.address =<gnolang.StringValue>
pending : untyped bigint =(1 <untyped> bigint)
missed : untyped bigint =(2 <untyped> bigint)
solved : untyped bigint =(3 <untyped> bigint)
attempt : type =v0.attempt
challenge : type =v0.challenge
self : string ="gno.land/r/g1f4k94fjje9tpeekkrnyv2qc7stwxdqp9vcfjg8/advent/v0"
days : [24]*v0.challenge Inspect
oracle : .uverse.address =<gnolang.StringValue>
board : *v0.Board Inspect
caller : func() .uverse.address Inspect
SetOracle : func(signer .uverse.address) Inspect
Publish : func(day int, title string, clue string, publicKey string, reviewFrom int64) Inspect
openDoor : func(day int, title string, clue string, publicKey string, reviewFrom int64) Inspect
UpdateClue : func(day int, clue string) Inspect
assertClue : func(clue string) Inspect
Submit : func(day int, commitment string, sealedSalt string) int Inspect
Review : func(day int, start int, verdicts string) Inspect
doors : func(day int) *v0.challenge Inspect
requireDoor : func(day int) *v0.challenge Inspect
lowerHex : func(s string, size int) bool Inspect
Calendar : func() string Inspect
Attempts : func(day int, start int) string Inspect
Progress : func(player string) string Inspect
Leaders : func() string Inspect
leaders : func() []v0.Entry Inspect
init.29 : func() Inspect
app : untyped string ="https://moul.github.io/gno-contracts/advent/"
Render : func(path string) string Inspect
renderCalendar : func() string Inspect
renderDoor : func(day int) string Inspect
renderSeal : func(day int, id int) string Inspect
renderScores : func() string Inspect
verdict : func(status int) string Inspect
dayNumber : func(day int) string Inspect
solveCount : func(n int) string Inspect
route : func(path string) string Inspect
doorURL : func(day int) string Inspect