Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

fishtoken source realm

Package fishtoken is the unreleased GnoFish FISH ledger. Init mints a fixed supply once. No later call can mint. Whil...

Overview

Package fishtoken is the unreleased GnoFish FISH ledger. Init mints a fixed supply once. No later call can mint. While transfers are closed, a normal wallet cannot send FISH, so it cannot fund a pool or sell through a market. The deploy wallet opens transfers. The five treasury wallets, the deploy wallet, and a reward realm the deploy wallet has granted may still send. This realm has no pool and no trade. Public-sale FISH is minted to the deploy wallet. fishtoken-1.

Functions 22

func Approve

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

Approve sets the spender allowance. It does not move FISH and does not open trading. No coins from an EOA.

func GrantDistributor

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

GrantDistributor lets that realm pay FISH to users while transfers are closed. The deploy wallet only. No coins.

func GrantMover

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

GrantMover lets that wallet send FISH while transfers are closed. The deploy wallet only. No coins.

func Init

crossing Action
1func Init(cur realm)
source

Init mints the fixed supply once. The caller is the deploy wallet and receives the public-sale FISH. No coins.

func RevokeDistributor

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

RevokeDistributor removes that reward realm. The deploy wallet only. No coins.

func RevokeMover

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

RevokeMover removes that wallet from the closed-transfer list. The deploy wallet only. No coins.

func SetTransfers

crossing Action
1func SetTransfers(cur realm, next bool)
source

SetTransfers opens or closes ordinary wallet sends. The deploy wallet only. No coins.

func Transfer

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

Transfer sends FISH from the caller to to. A closed ledger rejects an ordinary wallet. Listed wallets and granted reward realms may still send.

func TransferAdmin

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

TransferAdmin hands the switch to next. Balances stay where they are. No coins.

func TransferFrom

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

TransferFrom sends FISH using the caller's allowance. While closed, only a granted reward realm may pull, and only from its own balance or from a listed wallet.

Imports 5

Source Files 2