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

gnomic state

Back to all declarations

tokenName

untyped string

Value

"Gnomic"

tokenSymbol

untyped string

Value

"GNOMIC"

tokenDecimals

untyped bigint

Value

(6 <untyped> bigint)

initialSupply

int64

Value

21000000

maxSupply

int64

Value

21000000

tokenDescription

untyped string

Value

"Fixed supply of 21 million, distributed to GNOT holders on gno.land."

tokenLogoURI

untyped string

Value

"https://gnomic.wtf/icon-512.png"

tokenWebsite

untyped string

Value

"https://gnomic.wtf"

tokenTwitter

untyped string

Value

""

ownerAddress

untyped string

Empty = the owner is the address that runs the deploy.

Value

"g1z0c0wrmwpzpd0gq4q67hl9508dtgv4epr0z5ml"

unit

int64

Value

1000000

hardCap

int64

Value

21000000000000

totalMinted

int64

Value

21000000000000

tokenKey

string

Value

"gno.land/r/nym-thegnomic001/gnomic.GNOMIC"

deployHeight

int64

Value

173069

realmAddr

.uverse.address

Value

<gnolang.StringValue>

Name

func() string

Name returns the token name.

Open
OID
052d9e…5708:15
Name details

Inspect func

Symbol

func() string

Symbol returns the ticker.

Open
OID
052d9e…5708:16
Symbol details

Inspect func

Decimals

func() int

Decimals returns the precision.

Open
OID
052d9e…5708:17
Decimals details

Inspect func

TotalSupply

func() int64

TotalSupply returns the circulating supply in base units.

Open
OID
052d9e…5708:18
TotalSupply details

Inspect func

MaxSupply

func() int64

MaxSupply returns the hard ceiling in base units: it caps the cumulative amount ever minted, not the circulating supply.

Open
OID
052d9e…5708:19
MaxSupply details

Inspect func

TotalMinted

func() int64

TotalMinted returns the cumulative amount ever minted. It never goes down, not even after a Burn: hardCap - TotalMinted() is the remaining headroom.

Open
OID
052d9e…5708:20
TotalMinted details

Inspect func

Burned

func() int64

Burned returns the total destroyed: cumulative minted minus circulating.

Open
OID
052d9e…5708:21
Burned details

Inspect func

Holders

func() int

Holders returns the number of addresses with a non-zero balance.

Open
OID
052d9e…5708:22
Holders details

Inspect func

BalanceOf

func(owner .uverse.address) int64

BalanceOf returns the balance of owner in base units.

Open
OID
052d9e…5708:23
BalanceOf details

Inspect func

Allowance

func(owner .uverse.address, spender .uverse.address) int64

Allowance returns how much spender may draw from owner.

Open
OID
052d9e…5708:24
Allowance details

Inspect func

TokenKey

func() string

TokenKey returns the token's key in the GRC20 registry ("\<pkgpath>.\<SYMBOL>"), to be used with r/nt/grc20reg and with GnoSwap.

Open
OID
052d9e…5708:25
TokenKey details

Inspect func

RealmAddress

func() .uverse.address
Open
OID
052d9e…5708:26
RealmAddress details

Inspect func

Transfer

func(to .uverse.address, amount int64)

Transfer sends amount (base units) from the caller to to.

Open
OID
052d9e…5708:28
Transfer details

Inspect func

Approve

func(spender .uverse.address, amount int64)

Approve authorises spender to draw up to amount from the caller.

Open
OID
052d9e…5708:29
Approve details

Inspect func

TransferFrom

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

TransferFrom moves amount from from to to, consuming the caller's allowance.

Open
OID
052d9e…5708:30
TransferFrom details

Inspect func

Burn

func(amount int64)

Burn destroys amount of the caller's tokens, reducing the supply.

Open
OID
052d9e…5708:31
Burn details

Inspect func

Mint

func(to .uverse.address, amount int64)

Mint creates amount (base units) in favour of to. Owner only, and never beyond maxSupply. After DropOwnership this function is unusable forever: the supply becomes immutable upwards.

Open
OID
052d9e…5708:32
Mint details

Inspect func

TransferOwnership

func(newOwner .uverse.address)

TransferOwnership hands administration over to newOwner.

Open
OID
052d9e…5708:33
TransferOwnership details

Inspect func

DropOwnership

func()

DropOwnership gives up administration for good: no future mint will ever be possible. The operation cannot be undone.

Open
OID
052d9e…5708:34
DropOwnership details

Inspect func

format

func(v int64) string

format turns base units into a readable decimal string. The sign is applied at the end rather than by negating v: for |v| \< unit the whole part is 0, so the minus would be lost (format(-500000) gave "0.5"). Negating v directly is no good either, because -math.MinInt64 overflows; instead the whole part and the remainder are negated, both safe in magnitude.

Open
OID
052d9e…5708:38
format details

Inspect func

mulOrPanic

func(a int64, b int64) int64
Open
OID
052d9e…5708:40
mulOrPanic details

Inspect func

checkErr

func(err .uverse.error)
Open
OID
052d9e…5708:41
checkErr details

Inspect func
tokenName : untyped string ="Gnomic"
tokenSymbol : untyped string ="GNOMIC"
tokenDecimals : untyped bigint =(6 <untyped> bigint)
initialSupply : int64 =21000000
maxSupply : int64 =21000000
tokenDescription : untyped string ="Fixed supply of 21 million, distributed to GNOT holders on gno.land."
tokenLogoURI : untyped string ="https://gnomic.wtf/icon-512.png"
tokenWebsite : untyped string ="https://gnomic.wtf"
tokenTwitter : untyped string =""
ownerAddress : untyped string ="g1z0c0wrmwpzpd0gq4q67hl9508dtgv4epr0z5ml"
Token : *v0.Token Inspect
Ownable : *v0.Ownable Inspect
privateLedger : *v0.PrivateLedger Inspect
userTeller : *v0.fnTeller Inspect
unit : int64 =1000000
hardCap : int64 =21000000000000
totalMinted : int64 =21000000000000
tokenKey : string ="gno.land/r/nym-thegnomic001/gnomic.GNOMIC"
deployHeight : int64 =173069
realmAddr : .uverse.address =<gnolang.StringValue>
init.20 : func() Inspect
Name : func() string Inspect
Symbol : func() string Inspect
Decimals : func() int Inspect
TotalSupply : func() int64 Inspect
MaxSupply : func() int64 Inspect
TotalMinted : func() int64 Inspect
Burned : func() int64 Inspect
Holders : func() int Inspect
BalanceOf : func(owner .uverse.address) int64 Inspect
Allowance : func(owner .uverse.address, spender .uverse.address) int64 Inspect
TokenKey : func() string Inspect
RealmAddress : func() .uverse.address Inspect
Owner : func() .uverse.address Inspect
Transfer : func(to .uverse.address, amount int64) Inspect
Approve : func(spender .uverse.address, amount int64) Inspect
TransferFrom : func(from .uverse.address, to .uverse.address, amount int64) Inspect
Burn : func(amount int64) Inspect
Mint : func(to .uverse.address, amount int64) Inspect
TransferOwnership : func(newOwner .uverse.address) Inspect
DropOwnership : func() Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
mintStatus : func() string Inspect
format : func(v int64) string Inspect
pow10 : func(n int) int64 Inspect
mulOrPanic : func(a int64, b int64) int64 Inspect
checkErr : func(err .uverse.error) Inspect