Versions in this module Expand all Collapse all v1 v1.0.3 Nov 20, 2023 Changes in this version type Alter + Timestamp string type Amount + func (a *Amount) Float64() float64 + func (a *Amount) S() string type WEI + func (wei WEI) S() string v1.0.2 Oct 25, 2023 v1.0.1 Oct 25, 2023 v1.0.0 Oct 25, 2023 Changes in this version + func CoinCodeVerify(cStr string) *errors.Error + type Account struct + Balance *Amount + Coin Code + Owner AccountOwner + type AccountLead struct + Coin Code + Owner AccountOwner + type AccountOwner = ki.ADR + const ISSUER + type Alter struct + AccountOwner AccountOwner + AlterType AlterType + Amount *Amount + Coin Code + ID AlterID + Side AccountOwner + Yin yn.YID + type AlterID string + func (a AlterID) S() string + type AlterType string + const DEC + const INC + type Amount struct + Left int64 + Right int64 + Wei WEI + func NewAmount(wei WEI, left int64, right int64) (*Amount, *errors.Error) + func NewAmountFloat64(wei WEI, fVal float64) (*Amount, *errors.Error) + func (a *Amount) Dec(decAmount *Amount) *Amount + func (a *Amount) Inc(incAmount *Amount) *Amount + func (a *Amount) Int64Round() int64 + func (a *Amount) Lt(b *Amount) bool + func (a *Amount) Lte(b *Amount) bool + func (a *Amount) String() string + type Code string + const HTC + const HTG + const NilCoinCode + func CoinCodeOf(cStr string) (Code, *errors.Error) + func (c Code) S() string + type Coin struct + Balance *Amount + Circulation *Amount + Code Code + Issuance *Amount + Issuer vn.ID + Wei WEI + type WEI int8 + const DefaultWei + const MaxWei