query

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package query provides interfaces used to query the state of the blockchain. These interfaces abstract the underlying request/response types and provide a single method to query for a specific piece of information from the chain.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueryAccountNotFound            = sdkerrors.Register(codespace, 1, "account not found")
	ErrQueryUnableToDeserializeAccount = sdkerrors.Register(codespace, 2, "unable to deserialize account")
	ErrQueryRetrieveSession            = sdkerrors.Register(codespace, 3, "error while trying to retrieve a session")
	ErrQueryPubKeyNotFound             = sdkerrors.Register(codespace, 4, "account pub key not found")
	ErrQuerySessionParams              = sdkerrors.Register(codespace, 5, "unable to query session params")
	ErrQueryRetrieveService            = sdkerrors.Register(codespace, 6, "error while trying to retrieve a service")
	ErrQueryBalanceNotFound            = sdkerrors.Register(codespace, 7, "balance not found")
)

Functions

func NewAccountQuerier

func NewAccountQuerier(deps depinject.Config) (client.AccountQueryClient, error)

NewAccountQuerier returns a new instance of a client.AccountQueryClient by injecting the dependecies provided by the depinject.Config.

Required dependencies: - clientCtx

func NewApplicationQuerier

func NewApplicationQuerier(deps depinject.Config) (client.ApplicationQueryClient, error)

NewApplicationQuerier returns a new instance of a client.ApplicationQueryClient by injecting the dependecies provided by the depinject.Config

Required dependencies: - clientCtx

func NewBankQuerier added in v0.0.10

func NewBankQuerier(deps depinject.Config) (client.BankQueryClient, error)

NewBankQuerier returns a new instance of a client.BankQueryClient by injecting the dependecies provided by the depinject.Config.

Required dependencies: - clientCtx

func NewProofQuerier added in v0.0.3

func NewProofQuerier(deps depinject.Config) (client.ProofQueryClient, error)

NewProofQuerier returns a new instance of a client.ProofQueryClient by injecting the dependecies provided by the depinject.Config.

Required dependencies: - grpc.ClientConn

func NewServiceQuerier added in v0.0.8

func NewServiceQuerier(deps depinject.Config) (client.ServiceQueryClient, error)

NewServiceQuerier returns a new instance of a client.ServiceQueryClient by injecting the dependecies provided by the depinject.Config.

Required dependencies: - clientCtx (grpc.ClientConn)

func NewSessionQuerier

func NewSessionQuerier(deps depinject.Config) (client.SessionQueryClient, error)

NewSessionQuerier returns a new instance of a client.SessionQueryClient by injecting the dependecies provided by the depinject.Config.

Required dependencies: - clientCtx (grpc.ClientConn)

func NewSharedQuerier added in v0.0.3

func NewSharedQuerier(deps depinject.Config) (client.SharedQueryClient, error)

NewSharedQuerier returns a new instance of a client.SharedQueryClient by injecting the dependecies provided by the depinject.Config.

Required dependencies: - clientCtx (grpc.ClientConn) - client.BlockQueryClient

func NewSupplierQuerier

func NewSupplierQuerier(deps depinject.Config) (client.SupplierQueryClient, error)

NewSupplierQuerier returns a new instance of a client.SupplierQueryClient by injecting the dependecies provided by the depinject.Config.

Required dependencies: - grpc.ClientConn

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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