Documentation
¶
Index ¶
- func BuildApproveKey(from string, to string) []byte
- func GetApproveMapperStoreKey() string
- func RegisterCodec(cdc *amino.Codec)
- type Approve
- func (tx Approve) CalcGas() btypes.BigInt
- func (tx Approve) Equals(approve Approve) bool
- func (tx Approve) GetGasPayer() btypes.Address
- func (tx Approve) GetSignData() (ret []byte)
- func (tx Approve) GetSigner() []btypes.Address
- func (tx Approve) IsGT(qos btypes.BigInt, qscs types.QSCs) bool
- func (tx Approve) IsGTE(qos btypes.BigInt, qscs types.QSCs) bool
- func (tx Approve) IsNotNegative() bool
- func (tx Approve) IsPositive() bool
- func (tx Approve) Minus(qos btypes.BigInt, qscs types.QSCs) (a Approve)
- func (tx Approve) Negative() (a Approve)
- func (tx Approve) Plus(qos btypes.BigInt, qscs types.QSCs) (a Approve)
- func (tx Approve) String() string
- func (tx Approve) ValidateData(ctx context.Context) bool
- type ApproveCancelTx
- func (tx ApproveCancelTx) CalcGas() btypes.BigInt
- func (tx ApproveCancelTx) Exec(ctx context.Context) (result btypes.Result, crossTxQcps *txs.TxQcp)
- func (tx ApproveCancelTx) GetGasPayer() btypes.Address
- func (tx ApproveCancelTx) GetSignData() (ret []byte)
- func (tx ApproveCancelTx) GetSigner() []btypes.Address
- func (tx ApproveCancelTx) ValidateData(ctx context.Context) bool
- type ApproveCreateTx
- type ApproveDecreaseTx
- type ApproveIncreaseTx
- type ApproveMapper
- type ApproveUseTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildApproveKey ¶
func GetApproveMapperStoreKey ¶
func GetApproveMapperStoreKey() string
func RegisterCodec ¶
Types ¶
type Approve ¶
type Approve struct {
From btypes.Address `json:"from"` // 授权账号
To btypes.Address `json:"to"` // 被授权账号
QOS btypes.BigInt `json:"qos"` // QOS
QSCs types.QSCs `json:"qscs"` // QSCs
}
授权 Common 结构
func NewApprove ¶
func (Approve) GetGasPayer ¶
Gas Payer 授权账号,使用授权:被授权账号
type ApproveCancelTx ¶
type ApproveCancelTx struct {
From btypes.Address `json:"from"` // 授权账号
To btypes.Address `json:"to"` // 被授权账号
}
取消授权 Tx
func (ApproveCancelTx) GetGasPayer ¶
func (tx ApproveCancelTx) GetGasPayer() btypes.Address
Gas Payer:被授权账号
func (ApproveCancelTx) GetSigner ¶
func (tx ApproveCancelTx) GetSigner() []btypes.Address
签名账号:被授权账号
func (ApproveCancelTx) ValidateData ¶
func (tx ApproveCancelTx) ValidateData(ctx context.Context) bool
type ApproveCreateTx ¶
type ApproveCreateTx struct {
Approve
}
创建授权
func (ApproveCreateTx) ValidateData ¶
func (tx ApproveCreateTx) ValidateData(ctx context.Context) bool
type ApproveDecreaseTx ¶
type ApproveDecreaseTx struct {
Approve
}
减少授权
func (ApproveDecreaseTx) ValidateData ¶
func (tx ApproveDecreaseTx) ValidateData(ctx context.Context) bool
type ApproveIncreaseTx ¶
type ApproveIncreaseTx struct {
Approve
}
增加授权
func (ApproveIncreaseTx) ValidateData ¶
func (tx ApproveIncreaseTx) ValidateData(ctx context.Context) bool
type ApproveMapper ¶
type ApproveMapper struct {
*mapper.BaseMapper
}
func NewApproveMapper ¶
func NewApproveMapper() *ApproveMapper
func (*ApproveMapper) Copy ¶
func (mapper *ApproveMapper) Copy() mapper.IMapper
func (*ApproveMapper) DeleteApprove ¶
删除授权
func (*ApproveMapper) GetApprove ¶
获取授权
func (*ApproveMapper) SaveApprove ¶
func (mapper *ApproveMapper) SaveApprove(approve Approve) error
保存授权
type ApproveUseTx ¶
type ApproveUseTx struct {
Approve
}
使用授权
func (ApproveUseTx) GetGasPayer ¶
func (tx ApproveUseTx) GetGasPayer() btypes.Address
func (ApproveUseTx) GetSigner ¶
func (tx ApproveUseTx) GetSigner() []btypes.Address
func (ApproveUseTx) ValidateData ¶
func (tx ApproveUseTx) ValidateData(ctx context.Context) bool
Click to show internal directories.
Click to hide internal directories.