erc20detailed

package
v0.0.0-...-d8468af Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailedTokenInterface

type DetailedTokenInterface interface {
	GetName(stub shim.ChaincodeStubInterface) (string, error)

	GetSymbol(stub shim.ChaincodeStubInterface) (string, error)

	GetDecimals(stub shim.ChaincodeStubInterface) (string, error)
}

DetailedTokenInterface implements Name, Symbol & Decimal

type Token

type Token struct{}

Token detailed implementation of DetailedTokenInterface

func (*Token) GetDecimals

func (t *Token) GetDecimals(stub shim.ChaincodeStubInterface) (string, error)

GetDecimals returns the "decimals" value of the token, default to 0 if not set in the initial stage.

The decimals are only for visualization purposes. All the operations are done using the smallest and indivisible token unit, just as on Ethereum all the operations are done in wei.

func (*Token) GetName

func (t *Token) GetName(stub shim.ChaincodeStubInterface) (string, error)

GetName returns the name of the token

func (*Token) GetSymbol

func (t *Token) GetSymbol(stub shim.ChaincodeStubInterface) (string, error)

GetSymbol returns the symbol of the token

Jump to

Keyboard shortcuts

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