client

package
v0.8.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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")

	// ErrBroadcastTx is used when a broadcast fails due to tendermint errors
	ErrBroadcastTx = errors.New("broadcast tx error")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	Query() QueryClient
	Tx() TxClient
}

Client interface pre-defined with query and tx interfaces

func NewClient

func NewClient(
	log log.Logger,
	cctx ccontext.CLIContext,
	txbldr auth.TxBuilder,
	info keys.Info,
	passphrase string,
	qclient QueryClient,
) Client

NewClient creates new client instance to interface with terndermint.

type QueryClient

type QueryClient interface {
	dquery.Client
	mquery.Client
	pquery.Client

	// TODO: implement with search parameters
	ActiveLeasesForProvider(id sdk.AccAddress) (mquery.Leases, error)
}

QueryClient interface includes query clients of deployment, market and provider modules

func NewQueryClient

func NewQueryClient(
	dclient dquery.Client,
	mclient mquery.Client,
	pclient pquery.Client,
) QueryClient

NewQueryClient creates new query client instance

type TxClient

type TxClient interface {
	Broadcast(...sdk.Msg) error
}

TxClient interface

Jump to

Keyboard shortcuts

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