Documentation
¶
Index ¶
- func CoinCodeVerify(cStr string) *errors.Error
- type Account
- type AccountLead
- type AccountOwner
- type Alter
- type AlterID
- type AlterType
- type Amount
- func (a *Amount) Dec(decAmount *Amount) *Amount
- func (a *Amount) Float64() float64
- 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) S() string
- func (a *Amount) String() string
- type Code
- type Coin
- type WEI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoinCodeVerify ¶
Types ¶
type Account ¶
type Account struct {
Owner AccountOwner `bson:"owner" json:"owner"`
Coin Code `bson:"code" json:"code"`
Balance *Amount `bson:"balance" json:"balance"`
}
type AccountLead ¶
type AccountLead struct {
Owner AccountOwner `bson:"owner" json:"owner"`
Coin Code `bson:"coin" json:"coin"`
}
type Alter ¶
type Alter struct {
ID AlterID `bson:"id" json:"id"`
AlterType AlterType `bson:"alter_type" json:"alter_type"`
AccountOwner AccountOwner `bson:"account_owner" json:"account_owner"`
Side AccountOwner `bson:"side" json:"side"`
Coin Code `bson:"coin" json:"coin"`
Amount *Amount `bson:"amount" json:"amount"`
Yin yn.YID `bson:"yin" json:"yin"`
//Summary string `bson:"summary" json:"summary"`
Timestamp string `bson:"timestamp" json:"timestamp"`
}
type Amount ¶
type Amount struct {
Wei WEI `bson:"wei" json:"wei"`
Left int64 `bson:"left" json:"left"`
Right int64 `bson:"right" json:"right"`
}
func (*Amount) Int64Round ¶
Click to show internal directories.
Click to hide internal directories.