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 source realm

Package shoaltoken is the Shoal FISH ledger. Init mints a fixed supply and no later call can mint. Wallet Transfer, A...

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.

Functions 21

func Approve

crossing Action
1func Approve(cur realm, spender address, amount int64)
source

Approve lets spender move up to amount from the caller. This replaces the previous allowance.

func Draw

crossing Action
1func Draw(cur realm, owner, to address, amount int64) int64
source

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.

func Init

crossing Action
1func Init(cur realm, season, liquidity, ecosystem, community, team address)
source

Init mints the fixed supply once and seals the ledger. The five treasuries must be distinct.

func SetBuyTaxBps

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

SetBuyTaxBps stores the buy tax for a later pool. The cap is 500 bps. This does not tax wallets.

func SetSellTaxBps

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

SetSellTaxBps stores the sell tax for a later pool. The cap is 1000 bps. This does not tax wallets.

func SetSpender

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

SetSpender records the fish realm once. A later call cannot replace it.

func Transfer

crossing Action
1func Transfer(cur realm, to address, amount int64)
source

Transfer moves FISH from the caller to to. The amount is not taxed.

func TransferAdmin

crossing Action
1func TransferAdmin(cur realm, next address)
source

TransferAdmin hands the tax hook to next. Balances stay where they are.

func TransferFrom

crossing Action
1func TransferFrom(cur realm, owner, to address, amount int64)
source

TransferFrom moves amount from owner to to, using the caller's allowance. The amount is not taxed.

Dependencies

Source Files 2