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

tokenfactory state

Back to all declarations

creationFee

int64

// 40 GNOT

Value

40000000

nextTokenID

v0.ID

Value

<zero>

feeRecipient

.uverse.address

Value

<gnolang.StringValue>

instance

type

Value

tokenfactory.instance

CreationFee

func() int64

CreationFee returns the token creation fee in ugnot.

Open
OID
0e9f08…3b0d:7
CreationFee details

Inspect func

FeeRecipient

func() .uverse.address
Open
OID
0e9f08…3b0d:9
FeeRecipient details

Inspect func

CreateToken

func(name string, symbol string, decimals int, initialSupply int64) string

CreateToken creates a new GRC20 token. initialSupply is expressed in the token's smallest unit. Example: decimals = 6 initialSupply = 1000000000000 => 1,000,000 tokens. A direct user call must attach exactly 40 GNOT.

Open
OID
0e9f08…3b0d:10
CreateToken details

Inspect func

Bank

func(symbol string) *v0.Token

Bank returns the GRC20 token instance.

Open
OID
0e9f08…3b0d:11
Bank details

Inspect func

TokenID

func(symbol string) string

TokenID returns the unique GRC20 token ID.

Open
OID
0e9f08…3b0d:12
TokenID details

Inspect func

TotalSupply

func(symbol string) int64

TotalSupply returns the total token supply.

Open
OID
0e9f08…3b0d:13
TotalSupply details

Inspect func

BalanceOf

func(symbol string, owner .uverse.address) int64

BalanceOf returns the token balance of an address.

Open
OID
0e9f08…3b0d:14
BalanceOf details

Inspect func

Mint

func(symbol string, to .uverse.address, amount int64)

Mint allows the token owner to mint additional tokens.

Open
OID
0e9f08…3b0d:15
Mint details

Inspect func

Burn

func(symbol string, from .uverse.address, amount int64)

Burn allows the token owner to burn tokens.

Open
OID
0e9f08…3b0d:16
Burn details

Inspect func

TransferTokenOwnership

func(symbol string, newOwner .uverse.address)

TransferTokenOwnership transfers administration of a token to another address.

Open
OID
0e9f08…3b0d:17
TransferTokenOwnership details

Inspect func

DropTokenOwnership

func(symbol string)

DropTokenOwnership permanently removes the administrator of the token.

Open
OID
0e9f08…3b0d:18
DropTokenOwnership details

Inspect func

mustGetInstance

func(symbol string) *tokenfactory.instance
Open
OID
0e9f08…3b0d:19
mustGetInstance details

Inspect func

checkErr

func(err .uverse.error)
Open
OID
0e9f08…3b0d:20
checkErr details

Inspect func
creationFee : int64 =40000000
instances : v0.Tree Inspect
nextTokenID : v0.ID =<zero>
feeRecipient : .uverse.address =<gnolang.StringValue>
instance : type =tokenfactory.instance
CreationFee : func() int64 Inspect
FeeRecipient : func() .uverse.address Inspect
CreateToken : func(name string, symbol string, decimals int, initialSupply int64) string Inspect
Bank : func(symbol string) *v0.Token Inspect
TokenID : func(symbol string) string Inspect
TotalSupply : func(symbol string) int64 Inspect
BalanceOf : func(symbol string, owner .uverse.address) int64 Inspect
Mint : func(symbol string, to .uverse.address, amount int64) Inspect
Burn : func(symbol string, from .uverse.address, amount int64) Inspect
TransferTokenOwnership : func(symbol string, newOwner .uverse.address) Inspect
DropTokenOwnership : func(symbol string) Inspect
mustGetInstance : func(symbol string) *tokenfactory.instance Inspect
checkErr : func(err .uverse.error) Inspect