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.

fishmark source realm

Package fishmark is a second trial FISH ledger for the fishbay realm. Init mints a fixed supply and no later call can...

Overview

Package fishmark is a second trial FISH ledger for the fishbay realm. Init mints a fixed supply and no later call can mint. Wallet transfers are not taxed. The symbol is FISH. TokenID is the chain identity, because fishcoin and the NFT collection use the same letters. SetSpender can be called only after Init, and only once. Point it at fishbay after that realm's Realm() is known. Do not point it at shoal/fish.

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