Documentation ¶
Index ¶
- type Address
- type Data
- type Hash
- type Number
- type UnscaledNumber
- func (u UnscaledNumber) Big() *big.Int
- func (u UnscaledNumber) Hex() string
- func (u UnscaledNumber) Scale(decimals int) *big.Float
- func (u UnscaledNumber) ScaleStr(d int) string
- func (u *UnscaledNumber) Scan(v interface{}) error
- func (u UnscaledNumber) String() string
- func (u UnscaledNumber) Value() (sqlDriver.Value, error)
- type UsdNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address string
Address to designate a wallet
func AddressFromString ¶
func (*Address) UnmarshalJSON ¶
type Data ¶
type Data string
Data to designate a large byte array
func DataFromBytes ¶
func DataFromString ¶
type Number ¶
Number that represents something informational (ie, a large block number)
func EmptyNumber ¶
func EmptyNumber() Number
func NumberFromBase10 ¶
func NumberFromBig ¶
func NumberFromHex ¶
func NumberFromInt32 ¶
func NumberFromInt64 ¶
func NumberFromUint64 ¶
type UnscaledNumber ¶
UnscaledNumber that's representing a large number that needs to be divided by the decimals
func EmptyUnscaledNumber ¶
func EmptyUnscaledNumber() UnscaledNumber
func UnscaledNumberFromBase10 ¶
func UnscaledNumberFromBase10(v string) (*UnscaledNumber, error)
func UnscaledNumberFromBig ¶
func UnscaledNumberFromBig(v *big.Int) UnscaledNumber
func UnscaledNumberFromHex ¶
func UnscaledNumberFromHex(v string) (*UnscaledNumber, error)
func UnscaledNumberFromInt64 ¶
func UnscaledNumberFromInt64(v int64) UnscaledNumber
func (UnscaledNumber) Big ¶
func (u UnscaledNumber) Big() *big.Int
func (UnscaledNumber) Hex ¶
func (u UnscaledNumber) Hex() string
func (UnscaledNumber) Scale ¶
func (u UnscaledNumber) Scale(decimals int) *big.Float
Scale a number for visualisation or low-stakes math.
func (UnscaledNumber) ScaleStr ¶
func (u UnscaledNumber) ScaleStr(d int) string
ScaleStr to show a user or to send over the graph, scaling with 4 decimal places.
func (*UnscaledNumber) Scan ¶
func (u *UnscaledNumber) Scan(v interface{}) error
func (UnscaledNumber) String ¶
func (u UnscaledNumber) String() string
String the UnscaledNumber, printing its base 10 form
Click to show internal directories.
Click to hide internal directories.