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...
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.
21
func Approve
crossing ActionApprove lets spender move up to amount from the caller. This replaces the previous allowance.
func BalanceOf
Actionfunc BuyTaxBps
Actionfunc Decimals
Actionfunc Draw
crossing ActionDraw 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 ActionInit mints the fixed supply once and seals the ledger. The five treasuries must be distinct.
func Name
Actionfunc Render
func Sealed
Actionfunc SellTaxBps
Actionfunc SetBuyTaxBps
crossing ActionSetBuyTaxBps stores the buy tax for a later pool. The cap is 500 bps. This does not tax wallets.
func SetSellTaxBps
crossing ActionSetSellTaxBps stores the sell tax for a later pool. The cap is 1000 bps. This does not tax wallets.
func SetSpender
crossing ActionSetSpender records the fish realm once. A later call cannot replace it.
func Symbol
Actionfunc TokenID
Actionfunc TotalSupply
Actionfunc Transfer
crossing ActionTransfer moves FISH from the caller to to. The amount is not taxed.
func TransferAdmin
crossing ActionTransferAdmin hands the tax hook to next. Balances stay where they are.
func TransferFrom
crossing ActionTransferFrom moves amount from owner to to, using the caller's allowance. The amount is not taxed.