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.

fishduel 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)

reach

untyped bigint

Value

(2 <untyped> bigint)

hitGap

int64

Value

2400

cellMs

int64

Value

320

quietMs

int64

Value

60000

seatMax

untyped bigint

Value

(8 <untyped> bigint)

box

untyped bigint

Value

(32 <untyped> bigint)

stepCap

untyped bigint

Value

(16 <untyped> bigint)

packMax

untyped bigint

Value

(2400 <untyped> bigint)

swimmer

type

Value

fishduel.swimmer

note

type

Value

fishduel.note

inited

bool

Value

true

self

.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

openBout

int

Value

1

boutOpen

bool

Value

false

seatMilli

int64

Value

1791474156000

seatHeight

int64

Value

257417

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. The mint fee is 60/20/10 and the last tenth joins team. Kill cheer also joins team.

Open
OID
064825…03d9:33
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
064825…03d9:35
Mint details

Inspect func

Register

func(id int, stake int64, pub string)

Register seats a fish and binds its mark key. The attached coins are the stake.

Open
OID
064825…03d9:36
Register details

Inspect func

Leave

func(id int)

Leave returns the seated stake. While the other fish is seated, Leave waits 60 seconds.

Open
OID
064825…03d9:37
Leave details

Inspect func

Settle

func(id int, target int, pack string)

Settle pays a kill from six notes, killer then victim, three samples, separated by slashes.

Open
OID
064825…03d9:38
Settle details

Inspect func

Strike

func(bite int, hpMax int) int

Strike is floor(bite \* 100 / (hpMax + 100)), at least 1.

Open
OID
064825…03d9:39
Strike details

Inspect func

OwnerOf

func(id int) .uverse.address
Open
OID
064825…03d9:50
OwnerOf details

Inspect func

gate

func(pay int64) .uverse.address
Open
OID
064825…03d9:57
gate details

Inspect func

checkNotes

func(id int, target int, got [3][2]fishduel.note)
Open
OID
064825…03d9:58
checkNotes details

Inspect func

signed

func(id int, n fishduel.note) bool
Open
OID
064825…03d9:59
signed details

Inspect func

parseNote

func(raw string) fishduel.note
Open
OID
064825…03d9:61
parseNote details

Inspect func

gap

func(ax int, az int, bx int, bz int) int
Open
OID
064825…03d9:63
gap details

Inspect func

splitKill

func(covered int64) (killer int64, lp int64, crew int64, buyback int64)
Open
OID
064825…03d9:65
splitKill details

Inspect func

payMint

func(fee int64, rlm .uverse.realm)
Open
OID
064825…03d9:66
payMint details

Inspect func

send

func(to .uverse.address, amt int64, rlm .uverse.realm)
Open
OID
064825…03d9:67
send details

Inspect func

mustFish

func(id int) *fishduel.swimmer
Open
OID
064825…03d9:68
mustFish details

Inspect func

seated

func(who .uverse.address) bool
Open
OID
064825…03d9:69
seated details

Inspect func

otherSeated

func(id int) bool
Open
OID
064825…03d9:71
otherSeated details

Inspect func

validName

func(name string) bool
Open
OID
064825…03d9:72
validName details

Inspect func

mustHex

func(s string, n int) []uint8
Open
OID
064825…03d9:75
mustHex 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)
reach : untyped bigint =(2 <untyped> bigint)
hitGap : int64 =2400
cellMs : int64 =320
quietMs : int64 =60000
seatMax : untyped bigint =(8 <untyped> bigint)
box : untyped bigint =(32 <untyped> bigint)
stepCap : untyped bigint =(16 <untyped> bigint)
packMax : untyped bigint =(2400 <untyped> bigint)
swimmer : type =fishduel.swimmer
note : type =fishduel.note
inited : bool =true
self : .uverse.address =<gnolang.StringValue>
lpSink : .uverse.address =<gnolang.StringValue>
team : .uverse.address =<gnolang.StringValue>
burn : .uverse.address =<gnolang.StringValue>
minted : int =2
openBout : int =1
boutOpen : bool =false
seatMilli : int64 =1791474156000
seatHeight : int64 =257417
roster : [9]fishduel.swimmer Inspect
Init : func(lp .uverse.address, crew .uverse.address, ash .uverse.address) Inspect
Mint : func(name string) int Inspect
Register : func(id int, stake int64, pub string) Inspect
Leave : func(id int) Inspect
Settle : func(id int, target int, pack string) Inspect
Strike : func(bite int, hpMax int) int Inspect
Realm : func() .uverse.address Inspect
Version : func() string Inspect
MintPrice : func() int64 Inspect
StakeMin : func() int64 Inspect
Minted : func() int Inspect
Bout : func() int Inspect
BoutOpen : func() bool Inspect
SeatHeight : func() int64 Inspect
Height : func() int64 Inspect
Now : func() int64 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
Ended : func(id int) bool Inspect
MarkOf : func(id int) string Inspect
Render : func(path string) string Inspect
gate : func(pay int64) .uverse.address Inspect
checkNotes : func(id int, target int, got [3][2]fishduel.note) Inspect
signed : func(id int, n fishduel.note) bool Inspect
canon : func(n fishduel.note) string Inspect
parseNote : func(raw string) fishduel.note Inspect
stepMax : func(dt int64) int Inspect
gap : func(ax int, az int, bx int, bz int) int Inspect
inBox : func(x int, z int) bool 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) *fishduel.swimmer Inspect
seated : func(who .uverse.address) bool Inspect
seatedCount : func() int Inspect
otherSeated : func(id int) bool Inspect
validName : func(name string) bool Inspect
requireInit : func() Inspect
takeExact : func(n int64) Inspect
mustHex : func(s string, n int) []uint8 Inspect
atoi : func(s string) int Inspect
atoi64 : func(s string) int64 Inspect