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.

shoaltoken state

Back to all declarations

unit

int64

Value

1000000

supplyWhole

int64

Value

100000000

seasonWhole

int64

Value

43000000

liquidityWhole

int64

Value

20000000

ecosystemWhole

int64

Value

15000000

communityWhole

int64

Value

12000000

teamWhole

int64

Value

10000000

maxBuyTaxBps

int64

Value

500

maxSellTaxBps

int64

Value

1000

defaultBuyTax

int64

Value

200

defaultSellTax

int64

Value

400

token

*v0.Token

Value

<zero>

ledger

*v0.PrivateLedger

Value

<zero>

admin

*v0.Ownable

Value

<zero>

inited

bool

Value

false

sealed

bool

Value

false

spender

.uverse.address

Value

<zero>

spenderSet

bool

Value

false

buyTaxBps

int64

Value

200

sellTaxBps

int64

Value

400

Init

func(season .uverse.address, liquidity .uverse.address, ecosystem .uverse.address, community .uverse.address, team .uverse.address)

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

Open
OID
07a59a…3825:12
Init details

Inspect func

Transfer

func(to .uverse.address, amount int64)

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

Open
OID
07a59a…3825:14
Transfer details

Inspect func

Approve

func(spender .uverse.address, amount int64)

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

Open
OID
07a59a…3825:15
Approve details

Inspect func

TransferFrom

func(owner .uverse.address, to .uverse.address, amount int64)

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

Open
OID
07a59a…3825:16
TransferFrom details

Inspect func

SetBuyTaxBps

func(next int64)

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

Open
OID
07a59a…3825:17
SetBuyTaxBps details

Inspect func

SetSellTaxBps

func(next int64)

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

Open
OID
07a59a…3825:18
SetSellTaxBps details

Inspect func

TransferAdmin

func(next .uverse.address)

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

Open
OID
07a59a…3825:19
TransferAdmin details

Inspect func

BalanceOf

func(who .uverse.address) int64
Open
OID
07a59a…3825:24
BalanceOf details

Inspect func

Allowance

func(owner .uverse.address, spender .uverse.address) int64
Open
OID
07a59a…3825:25
Allowance details

Inspect func

SetSpender

func(who .uverse.address)

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

Open
OID
07a59a…3825:32
SetSpender details

Inspect func

Draw

func(owner .uverse.address, to .uverse.address, amount int64) int64

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.

Open
OID
07a59a…3825:33
Draw details

Inspect func

credit

func(led *v0.PrivateLedger, who .uverse.address, amount int64)
Open
OID
07a59a…3825:36
credit details

Inspect func

requireUser

func() .uverse.address
Open
OID
07a59a…3825:39
requireUser details

Inspect func

distinct

func(xs [].uverse.address) bool
Open
OID
07a59a…3825:41
distinct details

Inspect func
unit : int64 =1000000
supplyWhole : int64 =100000000
seasonWhole : int64 =43000000
liquidityWhole : int64 =20000000
ecosystemWhole : int64 =15000000
communityWhole : int64 =12000000
teamWhole : int64 =10000000
maxBuyTaxBps : int64 =500
maxSellTaxBps : int64 =1000
defaultBuyTax : int64 =200
defaultSellTax : int64 =400
token : *v0.Token =<zero>
ledger : *v0.PrivateLedger =<zero>
admin : *v0.Ownable =<zero>
inited : bool =false
sealed : bool =false
spender : .uverse.address =<zero>
spenderSet : bool =false
buyTaxBps : int64 =200
sellTaxBps : int64 =400
Init : func(season .uverse.address, liquidity .uverse.address, ecosystem .uverse.address, community .uverse.address, team .uverse.address) Inspect
Transfer : func(to .uverse.address, amount int64) Inspect
Approve : func(spender .uverse.address, amount int64) Inspect
TransferFrom : func(owner .uverse.address, to .uverse.address, amount int64) Inspect
SetBuyTaxBps : func(next int64) Inspect
SetSellTaxBps : func(next int64) Inspect
TransferAdmin : func(next .uverse.address) Inspect
Name : func() string Inspect
Symbol : func() string Inspect
Decimals : func() int Inspect
TotalSupply : func() int64 Inspect
BalanceOf : func(who .uverse.address) int64 Inspect
Allowance : func(owner .uverse.address, spender .uverse.address) int64 Inspect
TokenID : func() string Inspect
BuyTaxBps : func() int64 Inspect
SellTaxBps : func() int64 Inspect
Version : func() string Inspect
Sealed : func() bool Inspect
Spender : func() .uverse.address Inspect
SetSpender : func(who .uverse.address) Inspect
Draw : func(owner .uverse.address, to .uverse.address, amount int64) int64 Inspect
Admin : func() .uverse.address Inspect
Render : func(path string) string Inspect
credit : func(led *v0.PrivateLedger, who .uverse.address, amount int64) Inspect
must : func(err .uverse.error) Inspect
requireReady : func() Inspect
requireUser : func() .uverse.address Inspect
takeExact : func(n int64) Inspect
distinct : func(xs [].uverse.address) bool Inspect