Documentation ¶
Index ¶
- Variables
- func LeasePath(id types.LeaseID) string
- func NewQuerier(keeper keeper.Keeper) sdk.Querier
- func OrderPath(id types.OrderID) string
- func ParseLeasePath(parts []string) (types.LeaseID, error)
- type Bid
- type BidFilters
- type Bids
- type Client
- type Lease
- type LeaseFilters
- type Leases
- type Order
- type OrderFilters
- type Orders
- type RawClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPath = errors.New("query: invalid path") ErrStateValue = errors.New("query: invalid state value") )
Functions ¶
func NewQuerier ¶
NewQuerier creates and returns a new market querier instance
Types ¶
type BidFilters ¶ added in v0.7.3
type BidFilters struct { Owner sdk.AccAddress // State flag value given StateFlagVal string // Actual state value decoded from BidStateMap State types.BidState }
BidFilters defines flags for bid list filter
type Client ¶
type Client interface { Orders(filters OrderFilters) (Orders, error) Order(id types.OrderID) (Order, error) Bids(filters BidFilters) (Bids, error) Bid(id types.BidID) (Bid, error) Leases(filters LeaseFilters) (Leases, error) Lease(id types.LeaseID) (Lease, error) }
Client interface
type LeaseFilters ¶ added in v0.7.3
type LeaseFilters struct { Owner sdk.AccAddress // State flag value given StateFlagVal string // Actual state value decoded from LeaseStateMap State types.LeaseState }
LeaseFilters defines flags for lease list filter
type OrderFilters ¶ added in v0.7.3
type OrderFilters struct { Owner sdk.AccAddress // State flag value given StateFlagVal string // Actual state value decoded from OrderStateMap State types.OrderState }
OrderFilters defines flags for order list filter
type RawClient ¶
type RawClient interface { Orders(filters OrderFilters) ([]byte, error) Order(id types.OrderID) ([]byte, error) Bids(filters BidFilters) ([]byte, error) Bid(id types.BidID) ([]byte, error) Leases(filters LeaseFilters) ([]byte, error) Lease(id types.LeaseID) ([]byte, error) }
RawClient interface
func NewRawClient ¶
func NewRawClient(ctx context.CLIContext, key string) RawClient
NewRawClient creates a raw client instance with provided context and key
Click to show internal directories.
Click to hide internal directories.