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.

v1 state

Back to all declarations

MinDeposit

untyped bigint

// ugnot to seed a pot (1 GNOT)

Value

(1000000 <untyped> bigint)

MinEntryFee

untyped bigint

// ugnot (0.1 GNOT)

Value

(100000 <untyped> bigint)

DefaultTimeout

untyped bigint

// blocks a challenger may sit idle

Value

(1000 <untyped> bigint)

MinTimeout

untyped bigint

Value

(30 <untyped> bigint)

MaxTimeout

untyped bigint

Value

(200000 <untyped> bigint)

engine

type

Value

v1.engine

Instance

func() shots.Impl

Instance returns the implementation, for a caller that registers it explicitly rather than relying on init.

Open
OID
03db7a…f04b:6
Instance details

Inspect func

entropy

func(g v0.Game, s v0.Session, blockTime int64) v0.Seed

entropy is the kick's 32-byte seed: SHA-256 of the block time and the kick's identity (see the package comment for what that does and does not guarantee).

Open
OID
03db7a…f04b:9
entropy details

Inspect func

mustGame

func(st *shots.StateRef, id uint64) v0.Game
Open
OID
03db7a…f04b:10
mustGame details

Inspect func

session

func(st *shots.StateRef, id uint64, no int) (v0.Session, bool)

session reads the live session of a game as this realm's own copy.

Open
OID
03db7a…f04b:11
session details

Inspect func

ownGame

func(g v0.Game) v0.Game

ownGame and ownSession rebuild values read through shots.Store in this realm. What Store hands back was allocated by the shots realm, and the VM refuses writes to another realm's objects (a pointer-method update such as Shootout.Record trips its cross-realm check), so the engine only ever mutates copies it built itself; PutGame/PutSession copy them back.

Open
OID
03db7a…f04b:12
ownGame details

Inspect func

ownSession

func(s v0.Session) v0.Session
Open
OID
03db7a…f04b:13
ownSession details

Inspect func

mustPlayersSession

func(st *shots.StateRef, gameID uint64, player .uverse.address) (v0.Game, v0.Session)
Open
OID
03db7a…f04b:14
mustPlayersSession details

Inspect func
MinDeposit : untyped bigint =(1000000 <untyped> bigint)
MinEntryFee : untyped bigint =(100000 <untyped> bigint)
DefaultTimeout : untyped bigint =(1000 <untyped> bigint)
MinTimeout : untyped bigint =(30 <untyped> bigint)
MaxTimeout : untyped bigint =(200000 <untyped> bigint)
engine : type =v1.engine
instance : *v1.engine Inspect
Instance : func() shots.Impl Inspect
init.8 : func() Inspect
entropy : func(g v0.Game, s v0.Session, blockTime int64) v0.Seed Inspect
mustGame : func(st *shots.StateRef, id uint64) v0.Game Inspect
session : func(st *shots.StateRef, id uint64, no int) (v0.Session, bool) Inspect
ownGame : func(g v0.Game) v0.Game Inspect
ownSession : func(s v0.Session) v0.Session Inspect
mustPlayersSession : func(st *shots.StateRef, gameID uint64, player .uverse.address) (v0.Game, v0.Session) Inspect
itoa : func(n int64) string Inspect
u64 : func(n uint64) string Inspect