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") ErrNodeNotSynced = errors.New("rpc node is not catching up") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Query() QueryClient Tx() broadcaster.Client NodeSyncInfo(context.Context) (*tmrpc.SyncInfo, error) }
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.
type QueryClient ¶
type QueryClient interface { dtypes.QueryClient mtypes.QueryClient ptypes.QueryClient atypes.QueryClient ctypes.QueryClient }
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 ¶
func NewQueryClientFromCtx(cctx sdkclient.Context) QueryClient
Click to show internal directories.
Click to hide internal directories.