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.

fishseason state

Back to all declarations

unit

int64

Value

1000000

places

untyped bigint

Value

(20 <untyped> bigint)

startUnix

int64

Value

1792108800

seasonAddr

.uverse.address

Value

<gnolang.StringValue>

prizeWhole

[20]int64

Whole FISH for places 1 through 20. The sum is 100,000.

Open
OID
0e4684…51e2:5
prizeWhole details

Inspect array

inited

bool

Value

true

admin

.uverse.address

Value

<gnolang.StringValue>

self

.uverse.address

Value

<gnolang.StringValue>

endUnix

int64

Value

1797465600

sealed

bool

Value

false

clockUnix

int64

clockUnix stays 0 on chain. The test in this package sets it. No call writes it.

Value

0

Init

func()

Init records the deploy wallet as admin. It does not move FISH. No coins.

Open
OID
0e4684…51e2:16
Init details

Inspect func

SetEnd

func(unix int64)

SetEnd stores the close, as Unix seconds. The deploy wallet only, and only before seal. No coins.

Open
OID
0e4684…51e2:18
SetEnd details

Inspect func

SetPlace

func(place int, who .uverse.address)

SetPlace posts one winner. Places are 1 through 20. The same address cannot take two places. No coins.

Open
OID
0e4684…51e2:19
SetPlace details

Inspect func

ClearPlace

func(place int)

ClearPlace removes one unsealed place. No coins.

Open
OID
0e4684…51e2:20
ClearPlace details

Inspect func

Seal

func()

Seal freezes the end and the places. At least one place must be posted. No coins.

Open
OID
0e4684…51e2:21
Seal details

Inspect func

Pay

func()

Pay sends each unpaid posted prize from the season wallet to that winner. The board must be sealed and the close must have passed. No coins. fishtoken must list this realm as a distributor, and the season wallet must have approved this realm for the FISH. A second pay of the same place does nothing.

Open
OID
0e4684…51e2:22
Pay details

Inspect func

TransferAdmin

func(next .uverse.address)

TransferAdmin hands the board to next. Posted places stay. No coins.

Open
OID
0e4684…51e2:23
TransferAdmin details

Inspect func

SeasonWallet

func() .uverse.address
Open
OID
0e4684…51e2:30
SeasonWallet details

Inspect func

PlaceOf

func(place int) .uverse.address
Open
OID
0e4684…51e2:31
PlaceOf details

Inspect func

requireAdmin

func(caller .uverse.address)
Open
OID
0e4684…51e2:40
requireAdmin details

Inspect func

requireUser

func() .uverse.address
Open
OID
0e4684…51e2:41
requireUser details

Inspect func
unit : int64 =1000000
places : untyped bigint =(20 <untyped> bigint)
startUnix : int64 =1792108800
seasonAddr : .uverse.address =<gnolang.StringValue>
prizeWhole : [20]int64 Inspect
inited : bool =true
admin : .uverse.address =<gnolang.StringValue>
self : .uverse.address =<gnolang.StringValue>
endUnix : int64 =1797465600
sealed : bool =false
winner : [20].uverse.address Inspect
paid : [20]bool Inspect
clockUnix : int64 =0
Init : func() Inspect
SetEnd : func(unix int64) Inspect
SetPlace : func(place int, who .uverse.address) Inspect
ClearPlace : func(place int) Inspect
Seal : func() Inspect
Pay : func() Inspect
TransferAdmin : func(next .uverse.address) Inspect
Version : func() string Inspect
Admin : func() .uverse.address Inspect
Realm : func() .uverse.address Inspect
Start : func() int64 Inspect
End : func() int64 Inspect
Sealed : func() bool Inspect
SeasonWallet : func() .uverse.address Inspect
PlaceOf : func(place int) .uverse.address Inspect
PrizeOf : func(place int) int64 Inspect
PaidOf : func(place int) bool Inspect
Due : func() int64 Inspect
Render : func(path string) string Inspect
nowUnix : func() int64 Inspect
slotOf : func(place int) int Inspect
filled : func() int Inspect
requireReady : func() Inspect
requireAdmin : func(caller .uverse.address) Inspect
requireUser : func() .uverse.address Inspect
takeExact : func(n int64) Inspect