query

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeasePath

func LeasePath(id types.LeaseID) string

LeasePath return lease path of given lease id for queries

func NewQuerier

func NewQuerier(keeper keeper.Keeper) sdk.Querier

NewQuerier creates and returns a new market querier instance

func OrderPath

func OrderPath(id types.OrderID) string

OrderPath return order path of given order id for queries

Types

type Bid

type Bid types.Bid

Bid type

func (Bid) String

func (obj Bid) String() string

type Bids

type Bids []Bid

Bids - Slice of Bid Struct

func (Bids) String

func (obj Bids) String() string

type Client

type Client interface {
	Orders(filters types.OrderFilters) (Orders, error)
	Order(id types.OrderID) (Order, error)
	Bids(filters types.BidFilters) (Bids, error)
	Bid(id types.BidID) (Bid, error)
	Leases(filters types.LeaseFilters) (Leases, error)
	Lease(id types.LeaseID) (Lease, error)
}

Client interface

func NewClient

func NewClient(ctx context.CLIContext, key string) Client

NewClient creates a client instance with provided context and key

type Lease

type Lease types.Lease

Lease type

func (Lease) String

func (obj Lease) String() string

type Leases

type Leases []Lease

Leases - Slice of Lease Struct

func (Leases) String

func (obj Leases) String() string

type Order

type Order types.Order

Order type

func (Order) String

func (obj Order) String() string

type Orders

type Orders []Order

Orders - Slice of Order Struct

func (Orders) String

func (obj Orders) String() string

type RawClient

type RawClient interface {
	Orders(filters types.OrderFilters) ([]byte, error)
	Order(id types.OrderID) ([]byte, error)
	Bids(filters types.BidFilters) ([]byte, error)
	Bid(id types.BidID) ([]byte, error)
	Leases(filters types.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

Jump to

Keyboard shortcuts

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