Documentation
¶
Index ¶
- func ProtoQOSAccount() account.Account
- func RegisterCodec(cdc *go_amino.Codec)
- type QOSAccount
- func (acc *QOSAccount) GetProto() account.Account
- func (accnt *QOSAccount) GetQOS() btypes.BigInt
- func (accnt *QOSAccount) GetQSC(QSCName string) *types.QSC
- func (accnt *QOSAccount) RemoveQSCByName(QSCName string) error
- func (accnt *QOSAccount) SetQOS(amount btypes.BigInt) error
- func (accnt *QOSAccount) SetQSC(newQSC *types.QSC) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtoQOSAccount ¶
Types ¶
type QOSAccount ¶
type QOSAccount struct {
account.BaseAccount `json:"base_account"` // inherits BaseAccount
QOS btypes.BigInt `json:"qos"` // coins in public chain
QSCs types.QSCs `json:"qscs"` // varied QSCs
}
QOSAccount定义基本账户之上的QOS和QSC
func NewQOSAccount ¶ added in v0.0.2
func NewQOSAccount() *QOSAccount
func (*QOSAccount) GetProto ¶
func (acc *QOSAccount) GetProto() account.Account
func (*QOSAccount) GetQSC ¶
func (accnt *QOSAccount) GetQSC(QSCName string) *types.QSC
获取账户的名为QSCName的币的数量
func (*QOSAccount) RemoveQSCByName ¶
func (accnt *QOSAccount) RemoveQSCByName(QSCName string) error
删除账户中名为QSCName的币
Click to show internal directories.
Click to hide internal directories.