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.

fish source realm

Package fish is the Shoal collection. Each fish is a GRC721 on this realm. List, cancel, buy, and Bite live here too....

Overview

Package fish is the Shoal collection. Each fish is a GRC721 on this realm. List, cancel, buy, and Bite live here too. Gno cannot pull a foreign token into Bazaar, so the book is not a second package.

Deployed on onyx-1 at gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/shoal/fish. Init does not call bazaarv2 Reserve or Register. The older fish and fish2 packages stay as they were.

Functions 65

func Bite

crossing Action
1func Bite(cur realm, id, target int)
source

Bite is one user call and takes no payment. The hit test is sector-center reach plus a 42 degree mouth cone. A miss does not start cooldown. Members of the same party cannot bite each other. A killing blow pays the smaller Pool X and leaves the NFT at 30% HP. The killer share is split by HP removed. Empty cheer pays the team sink. A new kill does not drop watch shards. Buyback GNOT that cannot buy one FISH from the reserve burns. Spent GNOT joins liquidity.

func Cheer

crossing Action
1func Cheer(cur realm, id int)
source

Cheer locks ugnot on a fish already in the sea. The deposit comes back when that fish leaves or is downed. It does not change bite.

func Init

crossing Action
1func Init(cur realm, name, symbol, images string, royalty int64, upgrade, lp, burn, team, protocol, season address)
source

func SetArt

crossing Action
1func SetArt(cur realm, image string)
source

SetArt sets one https image on every unburned fish. The creator may call it again.

func SetFishReserve

crossing Action
1func SetFishReserve(cur realm, who address)
source

SetFishReserve names the address whose FISH allowance pays a kill. The reserve must approve this realm. This does not mint FISH.

func SetMintFee

crossing Action
1func SetMintFee(cur realm, next int64)
source

SetMintFee changes the next mint price. The default is 50 GNOT.

func SetStakeMin

crossing Action
1func SetStakeMin(cur realm, next int64)
source

SetStakeMin changes the sea floor. There is no product maximum. stakeCeil stays the integer ceiling.

func Upgrade

crossing Action
1func Upgrade(cur realm, keep, food int) int
source

Upgrade spends 15 FISH to step two played Common fish to Uncommon. The FISH fee burns. The team takes none of it. No GNOT moves. Higher tiers stay closed until a commit-reveal roll exists.

Dependencies

Source Files 6