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

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/moul/advent/v0"

oracle

.uverse.address

Value

<gnolang.StringValue>

SetOracle

func(signer .uverse.address)
Open
OID
03faac…2f11:14
SetOracle details

Inspect func

Publish

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

Publish opens one immutable 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
03faac…2f11:15
Publish details

Inspect func

Submit

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

Submit publicly records the commitment and its encrypted random salt.

Open
OID
03faac…2f11:16
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
03faac…2f11:17
Review details

Inspect func

requireDoor

func(day int) *v0.challenge
Open
OID
03faac…2f11:19
requireDoor details

Inspect func

lowerHex

func(s string, size int) bool
Open
OID
03faac…2f11:20
lowerHex details

Inspect func

Calendar

func() string

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

Open
OID
03faac…2f11:21
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
03faac…2f11:22
Attempts details

Inspect func

Progress

func(player string) string

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

Open
OID
03faac…2f11:23
Progress details

Inspect func

Leaders

func() string

Leaders returns the top 24 addresses with their confirmed solves.

Open
OID
03faac…2f11:24
Leaders details

Inspect func

app

untyped string

Value

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

renderCalendar

func() string
Open
OID
03faac…2f11:29
renderCalendar details

Inspect func

renderDoor

func(day int) string
Open
OID
03faac…2f11:30
renderDoor details

Inspect func

renderSeal

func(day int, id int) string
Open
OID
03faac…2f11:31
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/moul/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
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
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