query

package
v4.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(protoAddr string) (net.Conn, error)

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

func ProtocolAndAddress(listenAddr string) (string, string)

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 NewQueryClient(grpcEndpoint string) (*Client, error)

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 (c *Client) QueryAllBalances(address string) (sdk.Coins, error)

func (*Client) QueryExchangeRates

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

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)

func (*Client) QueryProposal

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

Jump to

Keyboard shortcuts

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