Documentation
¶
Index ¶
- Constants
- func NewConvert(title, symbol string, supports []string) db.ExecConvert
- type MS
- type MSLimit
- type MSOwner
- type MSRecord
- type MSUpdateLimitRecord
- type MSUpdateOwnerRecord
- type MSUpdateTxCount
- type MSUpdateTxCountRecord
- type MSUpdateWeight
- type MSUpdateWeightRecord
- type SigList
- type SigListRecord
- type SigTx
- type SigTxRecord
- type SymbolLimit
- type TxAccountOperate
- type TxOwnerOperate
- type TxTransferOperate
Constants ¶
View Source
const ( StatusCreated = "created" StatusRevoked = "revoked" StatusDone = "done" )
status
View Source
const ( RAccountX = "account" RTransactionX = "transaction" RMultiSignatureX = "multi_signature" )
Support DB record keys
View Source
const ( MSDBX = "multisig" MSTxDBX = "sig_tx" MSListDBX = "sig_list" DefaultType = "_doc" MSTypeLimitX = "limit" MSTypeOwnerX = "owner" MSTypeAccountX = "account" )
db
View Source
const ( SigTxTypeOwner = "owner" SigTxTypeAccount = "account" SigTxTypeTransfer = "transfer" )
Sig Tx Type
Variables ¶
This section is empty.
Functions ¶
func NewConvert ¶
func NewConvert(title, symbol string, supports []string) db.ExecConvert
NewConvert create TODO gen flags 暂时没有用上
Types ¶
type MS ¶
type MS struct {
CreateAddr string `json:"create_address"`
MultiSigAddr string `json:"multi_signature_address"`
TxCount uint64 `json:"tx_count"`
RequiredWeight uint64 `json:"required_weight"`
Type string `json:"type"`
}
MS short for Multi Signature
type MSLimit ¶
type MSLimit struct {
MultiSigAddr string `json:"multi_signature_address"`
Symbol string `json:"symbol"`
Execer string `json:"execer"`
DailyLimit uint64 `json:"daily_limit"`
SpentToday uint64 `json:"spent_today"`
LastDay int64 `json:"last_day"`
Type string `json:"type"`
}
MSLimit limit with MS address
type MSOwner ¶
type MSOwner struct {
MultiSigAddr string `json:"multi_signature_address"`
Address string `json:"address"`
Weight uint64 `json:"weight"`
Type string `json:"type"`
}
MSOwner owner with MultiSigAddr
type MSUpdateLimitRecord ¶
MSUpdateLimitRecord MSUpdateLimitRecord
type MSUpdateOwnerRecord ¶
MSUpdateOwnerRecord MSUpdateOwnerRecord
type MSUpdateTxCount ¶
type MSUpdateTxCount struct {
Address string `json:"multi_signature_address"`
TxCount uint64 `json:"tx_count"`
}
MSUpdateTxCount MultiSignature Update TxCount
type MSUpdateTxCountRecord ¶
MSUpdateTxCountRecord MSUpdateTxCountRecord
type MSUpdateWeight ¶
type MSUpdateWeight struct {
Address string `json:"multi_signature_address"`
RequiredWeight uint64 `json:"required_weight"`
}
MSUpdateWeight MSUpdateWeight Update weight
type MSUpdateWeightRecord ¶
MSUpdateWeightRecord MSUpdateWeight
type SigList ¶
type SigList struct {
Address string `json:"multi_signature_address"`
TxID uint64 `json:"tx_id"`
Owner string `json:"address"`
Weight uint64 `json:"weight"`
// 角色和状态: 是否为创建者,是否是促成交易执行的
Creator bool `json:"creator"`
Executed bool `json:"executed"`
TxHash string `json:"tx_hash"`
}
SigList 不包括撤销的
type SigListRecord ¶
SigListRecord SigListRecord
type SigTx ¶
type SigTx struct {
TxHash string `json:"tx_hash"`
// 不同类型的多重签名
Type string `json:"type"`
Address string `json:"multi_signature_address"`
TxID uint64 `json:"tx_id"`
Detail interface{} `json:"detail"`
}
SigTx SigTx
type SigTxRecord ¶
SigTxRecord db record
type SymbolLimit ¶
type SymbolLimit struct {
Symbol string `json:"symbol"`
Execer string `json:"execer"`
DailyLimit uint64 `json:"daily_limit"`
}
SymbolLimit SymbolLimit
type TxAccountOperate ¶
type TxAccountOperate struct {
DailyLimit *SymbolLimit `json:"dailyLimit,omitempty"`
NewRequiredWeight uint64 `json:"new_required_weight,omitempty"`
Operate string `json:"operate"`
}
TxAccountOperate TxAccountOperate
Click to show internal directories.
Click to hide internal directories.