token

package
v0.0.0-...-b2c0fe3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewCreate

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

func NewIssue

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

func NewTransfer

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

Types

type Create

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

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

type Issue

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

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

type Transfer

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

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

Jump to

Keyboard shortcuts

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