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.
Click to show internal directories.
Click to hide internal directories.