types

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 NewApprove(from btypes.Address, to btypes.Address, qos btypes.BigInt, qscs types.QSCs) Approve

func (Approve) Equals

func (approve Approve) Equals(approveB Approve) bool

重写Equals

func (Approve) GetSignData

func (approve Approve) GetSignData() (ret []byte)

签名字节

func (Approve) IsGT

func (approve Approve) IsGT(qos btypes.BigInt, qscs types.QSCs) bool

是否大于

func (Approve) IsGTE

func (approve Approve) IsGTE(qos btypes.BigInt, qscs types.QSCs) bool

是否大于等于

func (Approve) IsNotNegative

func (approve Approve) IsNotNegative() bool

是否为非负值

func (Approve) IsPositive

func (approve Approve) IsPositive() bool

是否为正值

func (Approve) IsValid

func (approve Approve) IsValid() (bool, error)

func (Approve) Minus

func (approve Approve) Minus(qos btypes.BigInt, qscs types.QSCs) Approve

Minus

func (Approve) Negative

func (approve Approve) Negative() Approve

返回相反值

func (Approve) Plus

func (approve Approve) Plus(qos btypes.BigInt, qscs types.QSCs) Approve

Plus

func (Approve) String

func (approve Approve) String() string

输出字符串

Jump to

Keyboard shortcuts

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