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 ¶
- Variables
- func NewAccountQuerier(deps depinject.Config) (client.AccountQueryClient, error)
- func NewApplicationQuerier(deps depinject.Config) (client.ApplicationQueryClient, error)
- func NewBankQuerier(deps depinject.Config) (client.BankQueryClient, error)
- func NewProofQuerier(deps depinject.Config) (client.ProofQueryClient, error)
- func NewServiceQuerier(deps depinject.Config) (client.ServiceQueryClient, error)
- func NewSessionQuerier(deps depinject.Config) (client.SessionQueryClient, error)
- func NewSharedQuerier(deps depinject.Config) (client.SharedQueryClient, error)
- func NewSupplierQuerier(deps depinject.Config) (client.SupplierQueryClient, error)
Constants ¶
This section is empty.
Variables ¶
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.