Versions in this module Expand all Collapse all v0 v0.0.1 Dec 29, 2024 Changes in this version + const MaxNanoPAC + const NanoPACPerPAC + type Amount int64 + func FromString(str string) (Amount, error) + func NewAmount(pac float64) (Amount, error) + func (a *Amount) Scan(src any) error + func (a *Amount) UnmarshalYAML(unmarshal func(any) error) error + func (a Amount) Format(u Unit) string + func (a Amount) MulF64(f float64) Amount + func (a Amount) String() string + func (a Amount) ToNanoPAC() int64 + func (a Amount) ToPAC() float64 + func (a Amount) ToPactusAmount() amount.Amount + func (a Amount) ToUnit(u Unit) float64 + func (a Amount) Value() (driver.Value, error) + type Unit int + const UnitKiloPAC + const UnitMegaPAC + const UnitMicroPAC + const UnitMilliPAC + const UnitNanoPAC + const UnitPAC + func (u Unit) String() string