var Token, Ownable, privateLedger, userTeller, unit, hardCap, totalMinted, tokenKey, deployHeight, realmAddr
1var (
2 // Token is the public handle on the token: other realms can read it, but
3 // cannot mutate balances (the PrivateLedger stays private).
4 Token *grc20.Token
5
6 // Ownable holds the administrative authority (mint / administrative burn).
7 Ownable *ownable.Ownable
8
9 privateLedger *grc20.PrivateLedger
10 userTeller grc20.Teller
11
12 // unit = 10^tokenDecimals, the conversion factor between whole units and
13 // base units.
14 unit int64
15
16 // hardCap = maxSupply * unit, expressed in base units.
17 hardCap int64
18
19 // totalMinted is the CUMULATIVE amount ever minted, and never goes down.
20 //
21 // The ceiling is checked against this figure rather than against circulating
22 // supply, because Burn lowers supply: checking that, burning would reopen
23 // minting headroom and "21 million" would become an instantaneous limit
24 // instead of a final one. With the cumulative counter burned tokens are gone
25 // for good, which is what a fixed supply is supposed to mean.
26 totalMinted int64
27
28 // tokenKey is the canonical key in the GRC20 registry: "<pkgpath>.<SYMBOL>".
29 // It is the identifier used by GnoSwap and friends.
30 tokenKey string
31
32 deployHeight int64
33 realmAddr address
34)