Versions in this module Expand all Collapse all v1 v1.0.0 Mar 22, 2018 Changes in this version + var INT128_LIMIT = new(big.Int).SetBytes([]byte{ ... }) + type HumanAmount struct + func NewHumanFromRaw(n *RawAmount) *HumanAmount + func NewHumanFromString(n string, base UnitBase) *HumanAmount + func (n *HumanAmount) ConvertToBase(base UnitBase, scale int) (string, error) + func (n *HumanAmount) ConvertToRawAmount() (*RawAmount, error) + type RawAmount struct + func NewRawFromBytes(b []byte) (*RawAmount, error) + func NewRawFromHex(h string) (*RawAmount, error) + func NewRawFromString(s string) (*RawAmount, error) + func (a *RawAmount) Add(b *RawAmount) *RawAmount + func (a *RawAmount) Compare(b *RawAmount) int + func (a *RawAmount) Divide(b *RawAmount) *RawAmount + func (a *RawAmount) IsValid() bool + func (a *RawAmount) Multiply(b *RawAmount) *RawAmount + func (a *RawAmount) Subtract(b *RawAmount) *RawAmount + func (a *RawAmount) ToBytes() []byte + func (a *RawAmount) ToHex() string + func (a *RawAmount) ToString() string + func (d *RawAmount) MarshalJSON() ([]byte, error) + func (d *RawAmount) UnmarshalJSON(data []byte) (err error) + type UnitBase int + const GigaXRB + const KiloXRB + const MegaXRB + const MicroXRB + const MiliXRB + const RAW + const XRB