Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCodeSpace btypes.CodespaceType = "bank" CodeInvalidInput btypes.CodeType = 201 // 基础数据输入有误 CodeSenderAccountNotExists btypes.CodeType = 202 // 转出账户不存在 CodeSenderAccountCoinsNotEnough btypes.CodeType = 203 // 转出账户余额不足 )
Transfer errors reserve 200 ~ 299.
Variables ¶
View Source
var ( // 事件类型 EventTypeTransfer = "transfer" // 转账 EventTypeSend = "send" // 发送 EventTypeReceive = "receive" // 接收 EventTypeInvariantCheck = types.EventTypeInvariantCheck // 数据检查 EventTypeRelease = "release" // 锁定释放 // 事件参数 AttributeKeyModule = "bank" // 模块名 AttributeKeyAddress = "address" // 账户地址 AttributeKeyQOS = "qos" // QOS AttributeKeyQSCs = "qscs" // QSC代币 AttributeKeySender = "sender" // 数据检查发送账户地址 AttributeKeyHeight = "height" // 高度 )
Functions ¶
func ErrInvalidInput ¶
Types ¶
type GenesisState ¶
type GenesisState struct { Accounts []*qtypes.QOSAccount `json:"accounts"` LockInfo *LockInfo `json:"lock_info"` }
创世状态
func NewGenesisState ¶
func NewGenesisState(accounts []*qtypes.QOSAccount, info *LockInfo) GenesisState
type LockInfo ¶ added in v0.0.8
type LockInfo struct { LockedAccount types.AccAddress `json:"locked_account"` // 锁定账户地址 Receiver types.AccAddress `json:"receiver"` // 接收账户地址 TotalAmount types.BigInt `json:"total_amount"` // 总锁定QOS ReleasedAmount types.BigInt `json:"released_amount"` // 已释放QOS ReleaseTime time.Time `json:"release_time"'` // 下一次释放时间 ReleaseInterval int64 `json:"release_interval"` // 释放间隔,以天为单位 ReleaseTimes int64 `json:"release_times"` // 释放次数 }
锁定-释放账户信息
func NewLockInfo ¶ added in v0.0.8
type TransItem ¶
type TransItems ¶
type TransItems []TransItem
Click to show internal directories.
Click to hide internal directories.