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.

fishcoin package

Overview

Package shoaltoken is the Shoal FISH ledger. Init mints a fixed supply and no later call can mint. Wallet Transfer, Approve, and TransferFrom move the full amount. BuyTaxBps and SellTaxBps are stored for a later pool realm. They do not tax a wallet transfer, a cheer, a season reward, or a community claim.

The symbol is FISH, the same letters as the fish NFT collection. A wallet that keys only on the symbol can confuse the two. The chain identity is TokenID: the realm path, the symbol, and the sequence.

Deployed on onyx-1 at gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/shoal/shoaltoken. An earlier copy remains at gno.land/r/g10ragdr3cjqkael8rslpw4y6rlelhev4h0fswcx/shoaltoken. Init is a separate call. It does not register this token.

Function

Draw

func Draw(cur realm, owner, to address, amount int64) int64
Ask AI Claude ChatGPT

Draw moves min(amount, balance, allowance) from owner to to. Only the recorded spender may call it. The owner must have approved that spender. A short balance or allowance moves nothing and does not panic. This does not mint.

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/g10ragdr3cjqkael8rslpw4y6rlelhev4h0fswcx/fishcoin" -func "Draw" -args $'' -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/g10ragdr3cjqkael8rslpw4y6rlelhev4h0fswcx/fishcoin" -func "Draw" -args $'' -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