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.

seafish state

Back to all declarations

denom

untyped string

Value

"ugnot"

mintFee

int64

Value

150000000

stakeMin

int64

Value

10000000

quietMs

int64

Value

5000

maxMint

untyped bigint

Value

(10000 <untyped> bigint)

maxAsk

int64

Value

100000000000000

listCap

untyped bigint

Value

(50 <untyped> bigint)

slug

untyped string

Value

"seafish"

imageIPFS

untyped string

Value

"ipfs://bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/"

imageHTTPS

untyped string

Value

"https://gateway.pinata.cloud/ipfs/bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/"

cover

untyped string

Value

"https://gateway.pinata.cloud/ipfs/bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/common-fish.jpg"

fish

type

Value

seafish.fish

inited

bool

Value

true

market

bool

Value

true

self

.uverse.address

Value

<gnolang.StringValue>

mintTo

.uverse.address

Value

<gnolang.StringValue>

lpSink

.uverse.address

Value

<gnolang.StringValue>

team

.uverse.address

Value

<gnolang.StringValue>

minted

int

Value

2

shown

int

Value

1

seq

v0.ID

Value

<zero>

Init

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

Init records the caller as the mint wallet, plus liquidity and team. Those three must be distinct. Call once, from an EOA, with no coins.

Open
OID
052aa5…fd78:31
Init details

Inspect func

CommitMint

func() int

CommitMint sells one unrevealed fish for 150 GNOT. The fee leaves this realm in the same call. The player owns the fish. The GRC721 is minted at RevealMint, when the portrait exists.

Open
OID
052aa5…fd78:33
CommitMint details

Inspect func

RevealMint

func(id int)

RevealMint assigns rarity, trait, the species name, and the portrait. Entropy is the commit height plus two. The NFT is minted to the caller.

Open
OID
052aa5…fd78:34
RevealMint details

Inspect func

Register

func(id int, stake int64)

Register seats one revealed fish the caller still owns. The attached coins are the stake. A listed fish, or a second fish from a wallet that is already seated, is refused.

Open
OID
052aa5…fd78:35
Register details

Inspect func

Leave

func(id int)

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

Open
OID
052aa5…fd78:36
Leave details

Inspect func

Settle

func(id int, target int)

Settle pays the smaller stake. 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
052aa5…fd78:37
Settle details

Inspect func

Heal

func(id int)

Heal clears mustHeal outside the sea so Register, List, and Transfer can run again.

Open
OID
052aa5…fd78:38
Heal details

Inspect func

Transfer

func(to .uverse.address, id int)

Transfer moves a fish the caller owns. A seated, staked, healing, or listed fish stays put.

Open
OID
052aa5…fd78:39
Transfer details

Inspect func

TransferFrom

func(from .uverse.address, to .uverse.address, id int)

TransferFrom moves a fish. The caller must own it or be approved for it.

Open
OID
052aa5…fd78:40
TransferFrom details

Inspect func

Approve

func(to .uverse.address, id int)

Approve lets to move this fish once. The caller must own it. The call sends no coins.

Open
OID
052aa5…fd78:41
Approve details

Inspect func

SetApprovalForAll

func(operator .uverse.address, approved bool)

SetApprovalForAll lets operator move every fish of the caller, or revokes it.

Open
OID
052aa5…fd78:42
SetApprovalForAll details

Inspect func

List

func(id int, priceUgnot int64)

List escrows the fish to this realm and puts it on sale. The caller sends no coins. Refused while the fish is seated, still holds a stake, or must heal.

Open
OID
052aa5…fd78:43
List details

Inspect func

UpdatePrice

func(id int, priceUgnot int64)

UpdatePrice changes the ask of a fish the caller is selling.

Open
OID
052aa5…fd78:44
UpdatePrice details

Inspect func

Cancel

func(id int)

Cancel returns a listed fish to its seller. The call sends no coins.

Open
OID
052aa5…fd78:45
Cancel details

Inspect func

Buy

func(id int)

Buy pays the ask, in full, to the seller and gives the fish to the buyer.

Open
OID
052aa5…fd78:46
Buy details

Inspect func

RegisterCollection

func()

RegisterCollection publishes this realm on bazaarv5. The caller must be the Init wallet, the same wallet that reserved slug seafish, and must send no coins. Call it once, after Init.

Open
OID
052aa5…fd78:47
RegisterCollection 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
052aa5…fd78:48
Roll details

Inspect func

Liquidity

func() .uverse.address
Open
OID
052aa5…fd78:51
Liquidity details

Inspect func

TokensOf

func(owner .uverse.address) string
Open
OID
052aa5…fd78:84
TokensOf details

Inspect func

OwnerOf

func(tid v0.TokenID) (.uverse.address, .uverse.error)
Open
OID
052aa5…fd78:86
OwnerOf details

Inspect func

BalanceOf

func(addr .uverse.address) (int64, .uverse.error)
Open
OID
052aa5…fd78:87
BalanceOf details

Inspect func

GetApproved

func(tid v0.TokenID) (.uverse.address, .uverse.error)
Open
OID
052aa5…fd78:89
GetApproved details

Inspect func

IsApprovedForAll

func(owner .uverse.address, operator .uverse.address) bool
Open
OID
052aa5…fd78:90
IsApprovedForAll details

Inspect func

TokenByIndex

func(index int64) (v0.TokenID, .uverse.error)
Open
OID
052aa5…fd78:91
TokenByIndex details

Inspect func

TokenOfOwnerByIndex

func(owner .uverse.address, index int64) (v0.TokenID, .uverse.error)
Open
OID
052aa5…fd78:92
TokenOfOwnerByIndex details

Inspect func

TokenURI

func(tid v0.TokenID) (string, .uverse.error)

TokenURI is the https image Adena puts in an img tag.

Open
OID
052aa5…fd78:93
TokenURI details

Inspect func

TokenMetadata

func(tid v0.TokenID) (string, .uverse.error)

TokenMetadata is the JSON Adena reads. Attribute keys are traitType.

Open
OID
052aa5…fd78:94
TokenMetadata details

Inspect func

gate

func(pay int64) .uverse.address
Open
OID
052aa5…fd78:96
gate details

Inspect func

payMint

func(fee int64, rlm .uverse.realm)
Open
OID
052aa5…fd78:97
payMint details

Inspect func

splitKill

func(covered int64) (killer int64, lp int64, crew int64)
Open
OID
052aa5…fd78:98
splitKill details

Inspect func

send

func(to .uverse.address, amt int64, rlm .uverse.realm)
Open
OID
052aa5…fd78:99
send details

Inspect func

mustFish

func(id int) *seafish.fish
Open
OID
052aa5…fd78:102
mustFish details

Inspect func

revealedFish

func(id int) *seafish.fish
Open
OID
052aa5…fd78:103
revealedFish details

Inspect func

pending

func(who .uverse.address) int
Open
OID
052aa5…fd78:104
pending details

Inspect func

seated

func(who .uverse.address) bool
Open
OID
052aa5…fd78:105
seated details

Inspect func

nameTaken

func(name string) bool
Open
OID
052aa5…fd78:108
nameTaken details

Inspect func

move

func(from .uverse.address, to .uverse.address, id int)
Open
OID
052aa5…fd78:110
move details

Inspect func

ledgerMove

func(spender .uverse.address, from .uverse.address, to .uverse.address, id int)
Open
OID
052aa5…fd78:111
ledgerMove details

Inspect func

byToken

func(tid v0.TokenID) (*seafish.fish, .uverse.error)
Open
OID
052aa5…fd78:113
byToken details

Inspect func

speciesOf

func(rarity string) string
Open
OID
052aa5…fd78:114
speciesOf details

Inspect func

attr

func(key string, value string) string
Open
OID
052aa5…fd78:115
attr details

Inspect func
denom : untyped string ="ugnot"
mintFee : int64 =150000000
stakeMin : int64 =10000000
quietMs : int64 =5000
maxMint : untyped bigint =(10000 <untyped> bigint)
maxAsk : int64 =100000000000000
listCap : untyped bigint =(50 <untyped> bigint)
slug : untyped string ="seafish"
imageIPFS : untyped string ="ipfs://bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/"
imageHTTPS : untyped string ="https://gateway.pinata.cloud/ipfs/bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/"
cover : untyped string ="https://gateway.pinata.cloud/ipfs/bafybeifdmgbtq3nf7xuepvygotk6ulk4wo7xshsi2yr4xukglsdpzz7p2i/common-fish.jpg"
hpBase : [6]int Inspect
biteBase : [6]int Inspect
spdBase : [6]int Inspect
species : [6]string Inspect
rarities : [6]string Inspect
portrait : [6]string Inspect
traits : [3]string Inspect
fish : type =seafish.fish
inited : bool =true
market : bool =true
self : .uverse.address =<gnolang.StringValue>
mintTo : .uverse.address =<gnolang.StringValue>
lpSink : .uverse.address =<gnolang.StringValue>
team : .uverse.address =<gnolang.StringValue>
minted : int =2
shown : int =1
roster : []seafish.fish (len=3) Inspect
token : *v0.Token Inspect
ledger : *v0.PrivateLedger Inspect
teller : *v0.fnTeller Inspect
indexed : *v0.Enumerable Inspect
seq : v0.ID =<zero>
Init : func(lp .uverse.address, crew .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
Transfer : func(to .uverse.address, id int) Inspect
TransferFrom : func(from .uverse.address, to .uverse.address, id int) Inspect
Approve : func(to .uverse.address, id int) Inspect
SetApprovalForAll : func(operator .uverse.address, approved bool) Inspect
List : func(id int, priceUgnot int64) Inspect
UpdatePrice : func(id int, priceUgnot int64) Inspect
Cancel : func(id int) Inspect
Buy : func(id int) Inspect
RegisterCollection : func() 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
MintTo : func() .uverse.address Inspect
Liquidity : func() .uverse.address Inspect
Team : func() .uverse.address Inspect
Version : func() string Inspect
Name : func() string Inspect
GrcName : func() string Inspect
Symbol : func() string Inspect
GrcSymbol : func() string Inspect
MintPrice : func() int64 Inspect
StakeMin : func() int64 Inspect
MaxMint : func() int Inspect
Minted : func() int Inspect
Shown : func() int Inspect
MarketOpen : func() bool Inspect
Height : func() int64 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
Listed : func(id int) bool Inspect
PriceOf : func(id int) int64 Inspect
ImageOf : func(id int) string Inspect
SellerOf : func(id int) string Inspect
ItemLine : func(id int) string Inspect
ListOpen : func() string Inspect
TokensOf : func(owner .uverse.address) string Inspect
Pending : func(owner string) int Inspect
OwnerOf : func(tid v0.TokenID) (.uverse.address, .uverse.error) Inspect
BalanceOf : func(addr .uverse.address) (int64, .uverse.error) Inspect
TotalSupply : func() int64 Inspect
GetApproved : func(tid v0.TokenID) (.uverse.address, .uverse.error) Inspect
IsApprovedForAll : func(owner .uverse.address, operator .uverse.address) bool Inspect
TokenByIndex : func(index int64) (v0.TokenID, .uverse.error) Inspect
TokenOfOwnerByIndex : func(owner .uverse.address, index int64) (v0.TokenID, .uverse.error) Inspect
TokenURI : func(tid v0.TokenID) (string, .uverse.error) Inspect
TokenMetadata : func(tid v0.TokenID) (string, .uverse.error) 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) Inspect
send : func(to .uverse.address, amt int64, rlm .uverse.realm) Inspect
noteSupply : func() Inspect
grow : func() int Inspect
mustFish : func(id int) *seafish.fish Inspect
revealedFish : func(id int) *seafish.fish Inspect
pending : func(who .uverse.address) int Inspect
seated : func(who .uverse.address) bool Inspect
busy : func(row *seafish.fish) bool Inspect
pickName : func(tier int) string Inspect
nameTaken : func(name string) bool Inspect
tierOf : func(rarity string) int Inspect
move : func(from .uverse.address, to .uverse.address, id int) Inspect
ledgerMove : func(spender .uverse.address, from .uverse.address, to .uverse.address, id int) Inspect
tidOf : func(id int) v0.TokenID Inspect
byToken : func(tid v0.TokenID) (*seafish.fish, .uverse.error) Inspect
speciesOf : func(rarity string) string Inspect
attr : func(key string, value string) string Inspect
takeExact : func(n int64) Inspect