query

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

QueryClient is an object that can be used to send queries to the Ojo node

func NewClient

func NewClient(grpcEndpoint string) (*Client, error)

NewQueryClient returns a new instance of the QueryClient

func (*Client) AirdropQueryClient

func (c *Client) AirdropQueryClient() airdroptypes.QueryClient

AirdropQueryClient returns the govtypes.QueryClient initialized with the clients grpc connection

func (*Client) AuthQueryClient

func (c *Client) AuthQueryClient() authtypes.QueryClient

AuthQueryClient returns the authtypes.QueryClient initialized with the clients grpc connection

func (*Client) BankQueryClient added in v0.2.0

func (c *Client) BankQueryClient() banktypes.QueryClient

GovQueryClient returns the govtypes.QueryClient initialized with the clients grpc connection

func (*Client) GovQueryClient

func (c *Client) GovQueryClient() govtypes.QueryClient

GovQueryClient returns the govtypes.QueryClient initialized with the clients grpc connection

func (*Client) OracleQueryClient

func (c *Client) OracleQueryClient() oracletypes.QueryClient

OracleQueryClient returns the oracletypes.QueryClient initialized with the clients grpc connection

func (*Client) QueryAirdropAccount added in v0.2.0

func (c *Client) QueryAirdropAccount(address string) (*airdroptypes.AirdropAccount, error)

func (*Client) QueryAirdropParams

func (c *Client) QueryAirdropParams() (*airdroptypes.Params, error)

QueryAirdropParams sends a grpc query to fetch the current airdrop params

func (*Client) QueryBalance added in v0.2.0

func (c *Client) QueryBalance(address string, denom string) (math.Int, error)

func (*Client) QueryExchangeRates

func (c *Client) QueryExchangeRates() ([]sdk.DecCoin, error)

QueryExchangeRates returns the exchange rates from the oracle module

func (*Client) QueryGovAccount

func (c *Client) QueryGovAccount() (account authtypes.ModuleAccount, err error)

QueryGovAccount returns the gov module account for the chain

func (*Client) QueryMedianDeviations

func (c *Client) QueryMedianDeviations() (oracletypes.PriceStamps, error)

func (*Client) QueryMedians

func (c *Client) QueryMedians() (oracletypes.PriceStamps, error)

QueryMedians returns the medians from the oracle module

func (*Client) QueryParams

func (c *Client) QueryParams() (oracletypes.Params, error)

QueryParams returns the params from the oracle module

func (*Client) QueryProposal

func (c *Client) QueryProposal(proposalID uint64) (*govtypes.Proposal, error)

QueryProposal sends a grpc query with the given proposalID and returns the govtypes.Proposal object

Jump to

Keyboard shortcuts

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