Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCancelOrderTx ¶ added in v1.0.5
IsCancelOrderTx check if this transaction has cancel mov order input
func IsMatchedTx ¶ added in v1.0.5
IsMatchedTx check if this transaction has trade mov order input
Types ¶
type MovDatabaseState ¶
MovDatabaseState is object to record DB image status
type Order ¶
type Order struct { FromAssetID *bc.AssetID ToAssetID *bc.AssetID Utxo *MovUtxo RatioNumerator int64 RatioDenominator int64 }
Order store all the order information
func NewOrderFromInput ¶ added in v1.0.5
NewOrderFromInput convert txoutput to order
func NewOrderFromOutput ¶ added in v1.0.5
NewOrderFromOutput convert txinput to order
func (*Order) Cmp ¶ added in v1.1.0
Cmp first compare the rate, if rate is equals, then compare the utxo hash
type OrderSlice ¶ added in v1.0.5
type OrderSlice []*Order
OrderSlice is define for order's sort
func (OrderSlice) Len ¶ added in v1.0.5
func (o OrderSlice) Len() int
func (OrderSlice) Less ¶ added in v1.0.5
func (o OrderSlice) Less(i, j int) bool
func (OrderSlice) Swap ¶ added in v1.0.5
func (o OrderSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.