Documentation ¶
Index ¶
- func Connect(protoAddr string) (net.Conn, error)
- func ProtocolAndAddress(listenAddr string) (string, string)
- type Client
- func (c *Client) BankQueryClient() banktypes.QueryClient
- func (c *Client) GovQueryClient() govtypes.QueryClient
- func (c *Client) OracleQueryClient() oracletypes.QueryClient
- func (c *Client) QueryAllBalances(address string) (sdk.Coins, error)
- func (c *Client) QueryExchangeRates() ([]sdk.DecCoin, error)
- func (c *Client) QueryMedianDeviations() (oracletypes.Prices, error)
- func (c *Client) QueryMedians() (oracletypes.Prices, 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 ¶
func Connect ¶
Connect dials the given address and returns a net.Conn. The protoAddr argument should be prefixed with the protocol, eg. "tcp://127.0.0.1:8080" or "unix:///tmp/test.sock".
func ProtocolAndAddress ¶
ProtocolAndAddress splits an address into the protocol and address components. For instance, "tcp://127.0.0.1:8080" will be split into "tcp" and "127.0.0.1:8080". If the address has no protocol prefix, the default is "tcp".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewQueryClient ¶
func (*Client) BankQueryClient ¶
func (c *Client) BankQueryClient() banktypes.QueryClient
func (*Client) GovQueryClient ¶
func (c *Client) GovQueryClient() govtypes.QueryClient
func (*Client) OracleQueryClient ¶
func (c *Client) OracleQueryClient() oracletypes.QueryClient
func (*Client) QueryAllBalances ¶
func (*Client) QueryMedianDeviations ¶
func (c *Client) QueryMedianDeviations() (oracletypes.Prices, error)
func (*Client) QueryMedians ¶
func (c *Client) QueryMedians() (oracletypes.Prices, error)
func (*Client) QueryParams ¶
func (c *Client) QueryParams() (oracletypes.Params, error)
Click to show internal directories.
Click to hide internal directories.