Documentation ¶
Index ¶
- type Client
- func (c *Client) AirdropQueryClient() airdroptypes.QueryClient
- func (c *Client) AuthQueryClient() authtypes.QueryClient
- func (c *Client) GovQueryClient() govtypes.QueryClient
- func (c *Client) OracleQueryClient() oracletypes.QueryClient
- func (c *Client) QueryAirdropParams() (*airdroptypes.Params, error)
- func (c *Client) QueryExchangeRates() ([]sdk.DecCoin, error)
- func (c *Client) QueryGovAccount() (account authtypes.ModuleAccount, err error)
- func (c *Client) QueryMedianDeviations() (oracletypes.PriceStamps, error)
- func (c *Client) QueryMedians() (oracletypes.PriceStamps, error)
- func (c *Client) QueryParams() (oracletypes.Params, error)
- func (c *Client) QueryProposal(proposalID uint64) (*govtypes.Proposal, error)
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 (*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) 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) QueryAirdropParams ¶
func (c *Client) QueryAirdropParams() (*airdroptypes.Params, error)
QueryAirdropParams sends a grpc query to fetch the current airdrop params
func (*Client) QueryExchangeRates ¶
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