Documentation ¶
Index ¶
- type Client
- func (c *Client) AirdropQueryClient() airdroptypes.QueryClient
- func (c *Client) AuthQueryClient() authtypes.QueryClient
- func (c *Client) BankQueryClient() banktypes.QueryClient
- func (c *Client) GasEstimateClient() gasestimatetypes.QueryClient
- func (c *Client) GetGasEstimate(ctx context.Context, network string) (int64, error)
- func (c *Client) GmpQueryClient() gmptypes.QueryClient
- func (c *Client) GovQueryClient() govtypes.QueryClient
- func (c *Client) OracleQueryClient() oracletypes.QueryClient
- func (c *Client) QueryAirdropAccount(address string) (*airdroptypes.AirdropAccount, error)
- func (c *Client) QueryAirdropParams() (*airdroptypes.Params, error)
- func (c *Client) QueryBalance(address string, denom string) (math.Int, 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) QueryPayments() (*gmptypes.AllPaymentsResponse, 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) 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) GasEstimateClient ¶ added in v0.5.0
func (c *Client) GasEstimateClient() gasestimatetypes.QueryClient
GovQueryClient returns the govtypes.QueryClient initialized with the clients grpc connection
func (*Client) GetGasEstimate ¶ added in v0.5.0
func (*Client) GmpQueryClient ¶ added in v0.5.0
func (c *Client) GmpQueryClient() gmptypes.QueryClient
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 (*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
func (*Client) QueryPayments ¶ added in v0.5.0
func (c *Client) QueryPayments() (*gmptypes.AllPaymentsResponse, error)