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

xgns state

Back to all declarations

tokenID

untyped bigint

Value

(0 <untyped> bigint)

TotalSupply

func() int64

TotalSupply returns the total supply of xGNS tokens. Returns: - supply: total xGNS token supply

Open
OID
04bcbb…f121:10
TotalSupply details

Inspect func

BalanceOf

func(owner .uverse.address) int64

BalanceOf returns token balance for address. Parameters: - owner: address to check balance for Returns: - balance: token balance amount

Open
OID
04bcbb…f121:11
BalanceOf details

Inspect func

Render

func(path string) string

Render returns a formatted representation of the token state. Parameters: - path: render path for specific views Returns: - output: formatted token state representation

Open
OID
04bcbb…f121:12
Render details

Inspect func

Mint

func(to .uverse.address, amount int64)

Mint mints tokens to an address. Parameters: - cur: current realm context; callers use cross(cur) when crossing into this realm. - to: recipient address receiving the newly minted tokens. - amount: number of xGNS token units to mint. Only callable by governance staker contract.

Open
OID
04bcbb…f121:13
Mint details

Inspect func

Burn

func(from .uverse.address, amount int64)

Burn burns tokens from an address. Parameters: - cur: current realm context; callers use cross(cur) when crossing into this realm. - from: address whose xGNS balance is burned. - amount: number of xGNS token units to burn. Only callable by governance staker contract.

Open
OID
04bcbb…f121:14
Burn details

Inspect func

SupplyInfo

func() (totalIssued int64, issuedByDelegate int64, issuedByDepositGns int64, err .uverse.error)

SupplyInfo returns supply breakdown information. Returns: - totalIssued: total xGNS tokens issued - issuedByDelegate: tokens issued through governance delegation - issuedByDepositGns: tokens issued through launchpad deposit - err: nil when the launchpad address is registered; an error when it cannot be found.

Open
OID
04bcbb…f121:15
SupplyInfo details

Inspect func

checkErr

func(err .uverse.error)
Open
OID
04bcbb…f121:16
checkErr details

Inspect func
tokenID : untyped bigint =(0 <untyped> bigint)
admin : *v0.Ownable Inspect
token : *v0.Token Inspect
ledger : *v0.PrivateLedger Inspect
init.4 : func() Inspect
TotalSupply : func() int64 Inspect
BalanceOf : func(owner .uverse.address) int64 Inspect
Render : func(path string) string Inspect
Mint : func(to .uverse.address, amount int64) Inspect
Burn : func(from .uverse.address, amount int64) Inspect
SupplyInfo : func() (totalIssued int64, issuedByDelegate int64, issuedByDepositGns int64, err .uverse.error) Inspect
checkErr : func(err .uverse.error) Inspect