Attempts
Attempts returns one bounded page of the public record, starting at a 1-based ID.
Command
gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/advent/v2.Attempts(,)"
Result
Package advent is Gnoël, an on-chain advent calendar with sealed guesses.
Attempts returns one bounded page of the public record, starting at a 1-based ID.
gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/advent/v2.Attempts(,)"
Calendar returns tab-separated rows for open doors, with title and clue in base64.
gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/advent/v2.Calendar()"
CarryOver records a pending seal from the first deployment on Onyx.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "CarryOver" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "CarryOver" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
FinishCarryOver closes imports and opens regular submissions and reviews.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "FinishCarryOver" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "FinishCarryOver" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
Leaders returns the top 24 addresses with their confirmed solves.
gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/advent/v2.Leaders()"
Progress lists the latest status of an address across all 24 doors.
gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/advent/v2.Progress()"
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.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "Publish" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "Publish" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
Render prepends the release banner, "" while this version is the latest or unlisted, so an old copy tells its readers where the game moved.
gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/advent/v2.Render()"
ReplaceGuess reseals the caller's current guess while it awaits review.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "ReplaceGuess" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "ReplaceGuess" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
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.
It asks only that this version be readable, not writable: past a deprecation sunset no new guess gets in, but the seals already sent are still owed a verdict. A yanked or vulnerable version refuses it too.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "Review" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "Review" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "SetOracle" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "SetOracle" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
SetPublisher delegates publishing and clue corrections to another account. Like SetOracle it ignores the release status: rotating a leaked key must still work on a version that is yanked or vulnerable.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "SetPublisher" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "SetPublisher" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
Submit publicly records the commitment and its encrypted random salt.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "Submit" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "Submit" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
UpdateClue corrects the text of an open door while keeping its review schedule, oracle key and submissions intact.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "UpdateClue" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "dev" -remote "tcp://127.0.0.1:18899" ADDRESSgnokey query -remote "tcp://127.0.0.1:18899" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/advent/v2" -func "UpdateClue" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://127.0.0.1:18899" call.tx
Evaluate any read-only Gno expression against gno.land/r/moul/advent/v2, for example a function call with arguments.
// Enter an expression above