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 package

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.

Function

Bite

func Bite(cur realm, id, target int)
Ask AI Claude ChatGPT

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.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/shoal/fish" -func "Bite" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/shoal/fish" -func "Bite" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx