Documentation
¶
Index ¶
Constants ¶
View Source
const (
QueryGet = "get"
)
View Source
const (
TableKey = "fill"
)
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func RegisterRoutes ¶
Types ¶
type Fill ¶
type Fill struct {
OrderID store.EntityID `json:"order_id"`
Owner sdk.AccAddress `json:"owner"`
Pair string `json:"pair"`
Direction matcheng.Direction `json:"direction"`
QtyFilled sdk.Uint `json:"qty_filled"`
QtyUnfilled sdk.Uint `json:"qty_unfilled"`
BlockNumber int64 `json:"block_number"`
Price sdk.Uint `json:"price"`
}
type IteratorCB ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) IterOverBlockNumbers ¶
func (k Keeper) IterOverBlockNumbers(start int64, end int64, cb IteratorCB)
func (Keeper) OnFillEvent ¶
type QueryRequest ¶
type QueryRequest struct {
Owner sdk.AccAddress
StartBlock int64
EndBlock int64
}
type QueryResult ¶
type QueryResult struct {
Fills []Fill
}
type RESTFill ¶
type RESTFill struct {
BlockInclusion embedded.BlockInclusion `json:"block_inclusion"`
QuantityFilled sdk.Uint `json:"quantity_filled"`
QuantityUnfilled sdk.Uint `json:"quantity_unfilled"`
Direction matcheng.Direction `json:"direction"`
OrderID store.EntityID `json:"order_id"`
Pair string `json:"pair"`
Price sdk.Uint `json:"price"`
Owner sdk.AccAddress `json:"owner"`
}
type RESTQueryResult ¶
type RESTQueryResult struct {
Fills []RESTFill `json:"fills"`
}
Click to show internal directories.
Click to hide internal directories.