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.

fishlive state

Back to all declarations

denom

untyped string

Value

"ugnot"

mintFee

int64

Value

150000000

stakeMin

int64

Value

10000000

quietMs

int64

Value

5000

capFish

untyped bigint

Value

(128 <untyped> bigint)

fish

type

Value

fishlive.fish

inited

bool

Value

false

self

.uverse.address

Value

<zero>

lpSink

.uverse.address

Value

<zero>

team

.uverse.address

Value

<zero>

burn

.uverse.address

Value

<zero>

minted

int

Value

0

roster

[]fishlive.fish

Value

<zero>

Init

func(lp .uverse.address, crew .uverse.address, ash .uverse.address)

Init records three GNOT sinks. They must be distinct. Call once, from an EOA, with no coins. Mint is 60/20/10 and the last tenth joins team. Kill cheer also joins team.

Open
OID
02159c…afc8:22
Init details

Inspect func

CommitMint

func() int

CommitMint sells one unrevealed fish for 150 GNOT. The fee leaves this realm in the same call.

Open
OID
02159c…afc8:24
CommitMint details

Inspect func

RevealMint

func(id int)

RevealMint assigns rarity, trait, and the species name. Entropy is the commit height plus two.

Open
OID
02159c…afc8:25
RevealMint details

Inspect func

Register

func(id int, stake int64)

Register seats one revealed fish. The attached coins are the stake.

Open
OID
02159c…afc8:26
Register details

Inspect func

Leave

func(id int)

Leave returns the seated stake once 5 seconds have passed since Register.

Open
OID
02159c…afc8:27
Leave details

Inspect func

Settle

func(id int, target int)

Settle pays the smaller stake to the killer's books. The NFT stays. HP falls to 30% and must heal. The caller has to own the killer. This realm does not check who bit whom.

Open
OID
02159c…afc8:28
Settle details

Inspect func

Heal

func(id int)

Heal clears mustHeal outside the sea so Register can run again.

Open
OID
02159c…afc8:29
Heal details

Inspect func

Roll

func(caller .uverse.address, commitH int64, entropyH int64, id int) (rarity string, trait string, bite int, hp int, speed int)

Roll is the reveal hash. entropyH must be commitH+2. Trait adds 12%, half up.

Open
OID
02159c…afc8:30
Roll details

Inspect func

TokensOf

func(owner string) string
Open
OID
02159c…afc8:41
TokensOf details

Inspect func

gate

func(pay int64) .uverse.address
Open
OID
02159c…afc8:57
gate details

Inspect func

payMint

func(fee int64, rlm .uverse.realm)
Open
OID
02159c…afc8:58
payMint details

Inspect func

splitKill

func(covered int64) (killer int64, lp int64, crew int64, buyback int64)
Open
OID
02159c…afc8:59
splitKill details

Inspect func

send

func(to .uverse.address, amt int64, rlm .uverse.realm)
Open
OID
02159c…afc8:60
send details

Inspect func

mustFish

func(id int) *fishlive.fish
Open
OID
02159c…afc8:62
mustFish details

Inspect func

pending

func(who .uverse.address) int
Open
OID
02159c…afc8:63
pending details

Inspect func

seated

func(who .uverse.address) bool
Open
OID
02159c…afc8:64
seated details

Inspect func

nameTaken

func(name string) bool
Open
OID
02159c…afc8:66
nameTaken details

Inspect func
denom : untyped string ="ugnot"
mintFee : int64 =150000000
stakeMin : int64 =10000000
quietMs : int64 =5000
capFish : untyped bigint =(128 <untyped> bigint)
hpBase : [6]int Inspect
biteBase : [6]int Inspect
spdBase : [6]int Inspect
species : [6]string Inspect
rarities : [6]string Inspect
traits : [3]string Inspect
fish : type =fishlive.fish
inited : bool =false
self : .uverse.address =<zero>
lpSink : .uverse.address =<zero>
team : .uverse.address =<zero>
burn : .uverse.address =<zero>
minted : int =0
roster : []fishlive.fish =<zero>
Init : func(lp .uverse.address, crew .uverse.address, ash .uverse.address) Inspect
CommitMint : func() int Inspect
RevealMint : func(id int) Inspect
Register : func(id int, stake int64) Inspect
Leave : func(id int) Inspect
Settle : func(id int, target int) Inspect
Heal : func(id int) Inspect
Roll : func(caller .uverse.address, commitH int64, entropyH int64, id int) (rarity string, trait string, bite int, hp int, speed int) Inspect
Realm : func() .uverse.address Inspect
Version : func() string Inspect
Name : func() string Inspect
Symbol : func() string Inspect
MintPrice : func() int64 Inspect
StakeMin : func() int64 Inspect
Minted : func() int Inspect
Height : func() int64 Inspect
OwnerOf : func(id string) string Inspect
TokenURI : func(id string) string Inspect
TokensOf : func(owner string) string Inspect
TraitOf : func(id int) string Inspect
RarityOf : func(id int) string Inspect
SizeOf : func(id int) string Inspect
BoutsOf : func(id int) int Inspect
InMatch : func(id int) bool Inspect
PoolOf : func(id int) int64 Inspect
Revealed : func(id int) bool Inspect
MustHeal : func(id int) bool Inspect
CommitOf : func(id int) int64 Inspect
HpOf : func(id int) int Inspect
BiteOf : func(id int) int Inspect
SpeedOf : func(id int) int Inspect
NameOf : func(id int) string Inspect
Pending : func(owner string) int Inspect
Render : func(path string) string Inspect
gate : func(pay int64) .uverse.address Inspect
payMint : func(fee int64, rlm .uverse.realm) Inspect
splitKill : func(covered int64) (killer int64, lp int64, crew int64, buyback int64) Inspect
send : func(to .uverse.address, amt int64, rlm .uverse.realm) Inspect
grow : func() int Inspect
mustFish : func(id int) *fishlive.fish Inspect
pending : func(who .uverse.address) int Inspect
seated : func(who .uverse.address) bool Inspect
pickName : func(tier int) string Inspect
nameTaken : func(name string) bool Inspect
tierOf : func(rarity string) int Inspect
takeExact : func(n int64) Inspect
atoi : func(s string) int Inspect