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 package

Overview

Package seafish is the tradable person-versus-person sea. CommitMint pays 150 GNOT and the whole fee goes to the wallet that called Init. RevealMint, once the chain is at least two blocks later, rolls rarity and trait from sha256 of the caller, the commit height, that fixed height plus two, and the id. Waiting longer does not change the roll. The player does not pass trait, size, or rarity. The revealed fish is a GRC721 owned by that player. TokenURI is the https portrait. Swim stays off chain. Register locks at least 10 GNOT. Leave returns it after 5 seconds. Settle pays one covered stake: 80% winner, 10% liquidity, 10% team. Dust stays with the team. There is no machine fish and no FISH draw. A seated, staked, or healing fish cannot be listed or transferred. List, UpdatePrice, Cancel, and Buy are the Nomaq trade. Buy pays the ask, in full, to the seller. RegisterCollection publishes the slug on bazaarv5. fishsea, fishnft, gnofish, and fishlive stay as deployed. This package does not move them. seafish-1. The mint cap is 10000. One wallet still seats only one fish.

Function

Approve

func Approve(cur realm, to address, id int)
Ask AI Claude ChatGPT

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

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/seafish" -func "Approve" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "https://rpc.gno.land" ADDRESSgnokey query -remote "https://rpc.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/seafish" -func "Approve" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land" call.tx