package
Version:
v1.0.98
Opens a new window with list of versions in this module.
Published: Sep 4, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
InvalidRequest - create error messages that are needed when validating request input
Balance represents an amount of tokens.
ToBalance converts ZCN tokens to Balance.
String implements fmt.Stringer interface.
ToToken converts the Balance to ZCN tokens.
type Error struct {
Code string `json:"code,omitempty"`
Msg string `json:"msg"`
}
Error type for a new application error
NewError - create a new error
A Key represents an identifier. It can be a pool ID, client ID, smart
contract address, etc.
A Size represents a size in bytes.
String implements fmt.Stringer interface
Timestamp represents Unix time (e.g. in seconds)
ToTime converts the Timestamp to standard time.Time
Within ensures a given timestamp is within certain number of seconds
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.