account

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtoQOSAccount

func ProtoQOSAccount() account.Account

func RegisterCodec

func RegisterCodec(cdc *go_amino.Codec)

为包内定义结构注册codec

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) GetQOS

func (accnt *QOSAccount) GetQOS() btypes.BigInt

获得账户QOS的数量

func (*QOSAccount) GetQSC

func (accnt *QOSAccount) GetQSC(QSCName string) *types.QSC

获取账户的名为QSCName的币的数量

func (*QOSAccount) RemoveQSCByName

func (accnt *QOSAccount) RemoveQSCByName(QSCName string) error

删除账户中名为QSCName的币

func (*QOSAccount) SetQOS

func (accnt *QOSAccount) SetQOS(amount btypes.BigInt) error

设置账户QOS的数量

func (*QOSAccount) SetQSC

func (accnt *QOSAccount) SetQSC(newQSC *types.QSC) error

设置账户的名为QSCName的币

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL