types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransItem

type TransItem struct {
	Address btypes.Address `json:"addr"` // 账户地址
	QOS     btypes.BigInt  `json:"qos"`  // QOS
	QSCs    types.QSCs     `json:"qscs"` // QSCs
}

func (TransItem) IsValid

func (item TransItem) IsValid() (bool, error)

valid QSC、QSCs

type TransItems

type TransItems []TransItem

func (TransItems) IsEmpty

func (items TransItems) IsEmpty() bool

empty check

func (TransItems) IsValid

func (items TransItems) IsValid() (bool, error)

not empty and QOS、QSCs

func (TransItems) Match

func (items TransItems) Match(itemsB TransItems) (bool, error)

total QOS、QSCs in items and itemsB are equal

Jump to

Keyboard shortcuts

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