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.

fishbay state

Back to all declarations

denom

untyped string

Value

"ugnot"

unit

int64

Value

1000000

mintFee

int64

Value

1000000

stakeMin

int64

Value

1000000

biteStat

untyped bigint

Value

(69 <untyped> bigint)

hpStat

untyped bigint

Value

(88 <untyped> bigint)

seatMax

untyped bigint

Value

(16 <untyped> bigint)

swimmer

type

Value

fishbay.swimmer

inited

bool

Value

true

self

.uverse.address

Value

<gnolang.StringValue>

reserve

.uverse.address

Value

<gnolang.StringValue>

upgrade

.uverse.address

Value

<gnolang.StringValue>

lpSink

.uverse.address

Value

<gnolang.StringValue>

team

.uverse.address

Value

<gnolang.StringValue>

burn

.uverse.address

Value

<gnolang.StringValue>

minted

int

Value

2

Init

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

Init records the FISH reserve and the four GNOT sinks. The reserve must not also be a sink. Upgrade and burn may be the same address. Call this once, from an EOA, with no coins.

Open
OID
01aede…1d1c:30
Init details

Inspect func

Mint

func(name string) int

Mint sells one trial fish for 1 GNOT. The fee leaves this realm in the same call.

Open
OID
01aede…1d1c:32
Mint details

Inspect func

Register

func(id int, stake int64)

Register seats a fish. The attached coins are the stake and must be at least 1 GNOT.

Open
OID
01aede…1d1c:33
Register details

Inspect func

Leave

func(id int)

Leave returns the seated stake to the owner. A fish that is already out of the bay cannot leave.

Open
OID
01aede…1d1c:34
Leave details

Inspect func

Bite

func(id int, target int) int

Bite deals flat damage. A kill pays the smaller stake and draws 1 FISH per 1 GNOT of that stake.

Open
OID
01aede…1d1c:35
Bite details

Inspect func

Strike

func(bite int, hpMax int) int

Strike is the damage formula. Size and rarity are not inputs.

Open
OID
01aede…1d1c:36
Strike details

Inspect func

OwnerOf

func(id int) .uverse.address
Open
OID
01aede…1d1c:43
OwnerOf details

Inspect func

payFish

func(to .uverse.address, covered int64) int64
Open
OID
01aede…1d1c:49
payFish details

Inspect func

splitKill

func(covered int64) (killer int64, lp int64, crew int64, buyback int64)
Open
OID
01aede…1d1c:50
splitKill details

Inspect func

payMint

func(fee int64, rlm .uverse.realm)
Open
OID
01aede…1d1c:51
payMint details

Inspect func

send

func(to .uverse.address, amt int64, rlm .uverse.realm)
Open
OID
01aede…1d1c:52
send details

Inspect func

mustFish

func(id int) *fishbay.swimmer
Open
OID
01aede…1d1c:53
mustFish details

Inspect func

ownerSeated

func(who .uverse.address) bool
Open
OID
01aede…1d1c:54
ownerSeated details

Inspect func

validName

func(name string) bool
Open
OID
01aede…1d1c:56
validName details

Inspect func
denom : untyped string ="ugnot"
unit : int64 =1000000
mintFee : int64 =1000000
stakeMin : int64 =1000000
biteStat : untyped bigint =(69 <untyped> bigint)
hpStat : untyped bigint =(88 <untyped> bigint)
seatMax : untyped bigint =(16 <untyped> bigint)
swimmer : type =fishbay.swimmer
inited : bool =true
self : .uverse.address =<gnolang.StringValue>
reserve : .uverse.address =<gnolang.StringValue>
upgrade : .uverse.address =<gnolang.StringValue>
lpSink : .uverse.address =<gnolang.StringValue>
team : .uverse.address =<gnolang.StringValue>
burn : .uverse.address =<gnolang.StringValue>
minted : int =2
roster : [17]fishbay.swimmer Inspect
Init : func(who .uverse.address, up .uverse.address, lp .uverse.address, crew .uverse.address, ash .uverse.address) Inspect
Mint : func(name string) int Inspect
Register : func(id int, stake int64) Inspect
Leave : func(id int) Inspect
Bite : func(id int, target int) int Inspect
Strike : func(bite int, hpMax int) int Inspect
Realm : func() .uverse.address Inspect
Reserve : func() .uverse.address Inspect
Version : func() string Inspect
MintPrice : func() int64 Inspect
StakeMin : func() int64 Inspect
Minted : func() int Inspect
OwnerOf : func(id int) .uverse.address Inspect
PoolOf : func(id int) int64 Inspect
HpOf : func(id int) int Inspect
InSea : func(id int) bool Inspect
MustHeal : func(id int) bool Inspect
Render : func(path string) string Inspect
payFish : func(to .uverse.address, covered int64) int64 Inspect
splitKill : func(covered int64) (killer int64, lp int64, crew int64, buyback int64) Inspect
payMint : func(fee int64, rlm .uverse.realm) Inspect
send : func(to .uverse.address, amt int64, rlm .uverse.realm) Inspect
mustFish : func(id int) *fishbay.swimmer Inspect
ownerSeated : func(who .uverse.address) bool Inspect
downHP : func(hpMax int) int Inspect
validName : func(name string) bool Inspect
requireInit : func() Inspect
takeExact : func(n int64) Inspect