Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrClientNotFound is a new error with message "Client not found" ErrClientNotFound = errors.New("Client not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Query() QueryClient Tx() broadcaster.Client }
Client interface pre-defined with query and tx interfaces
func NewClient ¶
func NewClient( log log.Logger, cctx sdkclient.Context, txf tx.Factory, info keyring.Info, qclient QueryClient, ) Client
NewClient creates new client instance to interface with tendermint.
func NewClientWithBroadcaster ¶ added in v0.9.1
type QueryClient ¶
type QueryClient interface { dtypes.QueryClient mtypes.QueryClient ptypes.QueryClient atypes.QueryClient ctypes.QueryClient // TODO: implement with search parameters ActiveLeasesForProvider(id sdk.AccAddress) ([]mtypes.QueryLeaseResponse, error) }
QueryClient interface includes query clients of deployment, market and provider modules
func NewQueryClient ¶
func NewQueryClient( dclient dtypes.QueryClient, mclient mtypes.QueryClient, pclient ptypes.QueryClient, aclient atypes.QueryClient, cclient ctypes.QueryClient, ) QueryClient
NewQueryClient creates new query client instance
func NewQueryClientFromCtx ¶ added in v0.9.3
func NewQueryClientFromCtx(cctx sdkclient.Context) QueryClient
Click to show internal directories.
Click to hide internal directories.