Skip to content Search Apps Documentation Source Content 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.

shots package

Overview

Package shots is a pay-to-play penalty shootout against the chain.

A creator opens a game by choosing its keeper and ball constants and seeding the pot. A challenger joins an open game by paying its entry fee into the pot, then plays a shootout: in every round they take a kick (TakeShot) and then keep against the chain's kick (SubmitKeeperPlan). Five kicks each, finishing early when one side cannot be caught, then sudden death. Win, and the whole pot is paid out; lose, and the entry fee stays in the pot for the next challenger.

Every kick is played out in the transaction that makes it: the player's choices are completed by 32 bytes derived from the block's timestamp (the chain's move and the mishit), and the outcome is penalty.SimulateShot of the ten inputs, recorded so anyone can re-run it. See impl/v1 for what that entropy does and does not guarantee.

This realm's path and entry points are permanent. The rules engine is an implementation realm behind an upgradeable proxy (gno.land/p/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/upgradeable/v0); the games and their pots live here and survive every upgrade.

Function

Forget

func Forget(cur realm)
Ask AI Claude ChatGPT

Forget drops the rollback history. Authority only.

Command

# 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/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/shots" -func "Forget" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/shots" -func "Forget" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx