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.

v1 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)

homeAdmin

.uverse.address

Value

<gnolang.StringValue>

onyxAgent

.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

v1.attempt

challenge

type

Value

v1.challenge

self

string

Value

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

organizer

.uverse.address

Value

<gnolang.StringValue>

publisher

.uverse.address

Value

<gnolang.StringValue>

oracle

.uverse.address

Value

<gnolang.StringValue>

carryingOver

bool

Value

false

organizerForChain

func() .uverse.address
Open
OID
08c9bd…6031:15
organizerForChain details

Inspect func

Publisher

func() .uverse.address
Open
OID
08c9bd…6031:17
Publisher details

Inspect func

SetPublisher

func(signer .uverse.address)

SetPublisher delegates publishing and clue corrections to another account.

Open
OID
08c9bd…6031:18
SetPublisher details

Inspect func

SetOracle

func(signer .uverse.address)
Open
OID
08c9bd…6031:20
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
08c9bd…6031:21
Publish details

Inspect func

openDoor

func(day int, title string, clue string, publicKey string, reviewFrom int64)
Open
OID
08c9bd…6031:22
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
08c9bd…6031:23
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
08c9bd…6031:25
Submit details

Inspect func

ReplaceGuess

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

ReplaceGuess reseals the caller's current guess while it awaits review.

Open
OID
08c9bd…6031:26
ReplaceGuess details

Inspect func

assertSeal

func(commitment string, sealedSalt string)
Open
OID
08c9bd…6031:27
assertSeal details

Inspect func

Review

func(day int, start int, verdicts string, snapshot 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
08c9bd…6031:29
Review details

Inspect func

requireDoor

func(day int) *v1.challenge
Open
OID
08c9bd…6031:31
requireDoor details

Inspect func

lowerHex

func(s string, size int) bool
Open
OID
08c9bd…6031:32
lowerHex details

Inspect func

Calendar

func() string

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

Open
OID
08c9bd…6031:33
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
08c9bd…6031:34
Attempts details

Inspect func

Progress

func(player string) string

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

Open
OID
08c9bd…6031:35
Progress details

Inspect func

Leaders

func() string

Leaders returns the top 24 addresses with their confirmed solves.

Open
OID
08c9bd…6031:36
Leaders details

Inspect func

CarryOver

func(player .uverse.address, commitment string, sealedSalt string)

CarryOver records a pending seal from the first deployment on Onyx.

Open
OID
08c9bd…6031:40
CarryOver details

Inspect func

FinishCarryOver

func()

FinishCarryOver closes imports and opens regular submissions and reviews.

Open
OID
08c9bd…6031:41
FinishCarryOver details

Inspect func

app

untyped string

Value

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

renderCalendar

func() string
Open
OID
08c9bd…6031:45
renderCalendar details

Inspect func

renderDoor

func(day int) string
Open
OID
08c9bd…6031:46
renderDoor details

Inspect func

renderSeal

func(day int, id int) string
Open
OID
08c9bd…6031:47
renderSeal details

Inspect func
Days : untyped bigint =(24 <untyped> bigint)
ReviewLimit : untyped bigint =(16 <untyped> bigint)
PageLimit : untyped bigint =(32 <untyped> bigint)
homeAdmin : .uverse.address =<gnolang.StringValue>
onyxAgent : .uverse.address =<gnolang.StringValue>
pending : untyped bigint =(1 <untyped> bigint)
missed : untyped bigint =(2 <untyped> bigint)
solved : untyped bigint =(3 <untyped> bigint)
attempt : type =v1.attempt
challenge : type =v1.challenge
self : string ="gno.land/r/g1f4k94fjje9tpeekkrnyv2qc7stwxdqp9vcfjg8/advent/v1"
days : [24]*v1.challenge Inspect
organizer : .uverse.address =<gnolang.StringValue>
publisher : .uverse.address =<gnolang.StringValue>
oracle : .uverse.address =<gnolang.StringValue>
board : *v0.Board Inspect
carryingOver : bool =false
organizerForChain : func() .uverse.address Inspect
Publisher : func() .uverse.address Inspect
SetPublisher : func(signer .uverse.address) 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
ReplaceGuess : func(day int, commitment string, sealedSalt string) int Inspect
assertSeal : func(commitment string, sealedSalt string) Inspect
assertReady : func() Inspect
Review : func(day int, start int, verdicts string, snapshot string) Inspect
doors : func(day int) *v1.challenge Inspect
requireDoor : func(day int) *v1.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.39 : func() Inspect
CarryOver : func(player .uverse.address, commitment string, sealedSalt string) Inspect
FinishCarryOver : 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