token

package
v1.12.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AN = zsw.AN
View Source
var ActN = zsw.ActN
View Source
var PN = zsw.PN

Functions

func NewCreate

func NewCreate(issuer zsw.AccountName, maxSupply zsw.Asset) *zsw.Action

func NewIssue

func NewIssue(to zsw.AccountName, quantity zsw.Asset, memo string) *zsw.Action

func NewTransfer

func NewTransfer(from, to zsw.AccountName, quantity zsw.Asset, memo string) *zsw.Action

Types

type Create

type Create struct {
	Issuer        zsw.AccountName `json:"issuer"`
	MaximumSupply zsw.Asset       `json:"maximum_supply"`
}

Create represents the `create` struct on the `zswhq.token` contract.

type Issue

type Issue struct {
	To       zsw.AccountName `json:"to"`
	Quantity zsw.Asset       `json:"quantity"`
	Memo     string          `json:"memo"`
}

Issue represents the `issue` struct on the `zswhq.token` contract.

type Transfer

type Transfer struct {
	From     zsw.AccountName `json:"from"`
	To       zsw.AccountName `json:"to"`
	Quantity zsw.Asset       `json:"quantity"`
	Memo     string          `json:"memo"`
}

Transfer represents the `transfer` struct on `zswhq.token` contract.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL