asset

package
v0.90.0-pre Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(assetType byte, name string, amount int, precision byte, owner, admin, issuer []byte)

Create registers a new asset on the blockchain.

func GetAdmin

func GetAdmin(a Asset) []byte

GetAdmin returns the admin of the given asset.

func GetAmount

func GetAmount(a Asset) int

GetAmount returns the amount of the given asset.

func GetAssetID

func GetAssetID(a Asset) []byte

GetAssetID returns the id of the given asset.

func GetAssetType

func GetAssetType(a Asset) byte

GetAssetType returns the type of the given asset.

func GetAvailable

func GetAvailable(a Asset) int

GetAvailable returns the available of the given asset.

func GetIssuer

func GetIssuer(a Asset) []byte

GetIssuer returns the issuer of the given asset.

func GetOwner

func GetOwner(a Asset) []byte

GetOwner returns the owner of the given asset.

func GetPrecision

func GetPrecision(a Asset) byte

GetPrecision returns the precision of the given asset.

func Renew

func Renew(asset Asset, years int)

Renew renews the existence of an asset by the given years.

Types

type Asset

type Asset struct{}

Asset stubs a NEO asset type.

Jump to

Keyboard shortcuts

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