Documentation ¶
Index ¶
- func IsNotFound(err error) bool
- type Client
- func (c *Client) BroadcastTx(ctx context.Context, txBytes []byte) (*tx.BroadcastTxResponse, error)
- func (c *Client) GetAllPools(ctx context.Context) (liquiditytypes.Pools, error)
- func (c *Client) GetAuthQueryClient() authtypes.QueryClient
- func (c *Client) GetBalance(ctx context.Context, address string, denom string) (*sdktypes.Coin, error)
- func (c *Client) GetBankQueryClient() banktypes.QueryClient
- func (c *Client) GetBaseAccountInfo(ctx context.Context, address string) (authtypes.BaseAccount, error)
- func (c *Client) GetLiquidityQueryClient() liquiditytypes.QueryClient
- func (c *Client) GetPool(ctx context.Context, poolId uint64) (liquiditytypes.Pool, error)
- func (c *Client) GetTxClient() tx.ServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
*grpc.ClientConn
}
Client wraps GRPC client connection.
func (*Client) BroadcastTx ¶
BroadcastTx broadcasts transaction.
func (*Client) GetAllPools ¶
GetAllPools returns all existing pools.
func (*Client) GetAuthQueryClient ¶
func (c *Client) GetAuthQueryClient() authtypes.QueryClient
GetAuthQueryClient returns a object of queryClient
func (*Client) GetBalance ¶
func (c *Client) GetBalance(ctx context.Context, address string, denom string) (*sdktypes.Coin, error)
GetBalance returns balance of a given account for staking denom.
func (*Client) GetBankQueryClient ¶
func (c *Client) GetBankQueryClient() banktypes.QueryClient
GetBankQueryClient returns a object of queryClient.
func (*Client) GetBaseAccountInfo ¶
func (c *Client) GetBaseAccountInfo(ctx context.Context, address string) (authtypes.BaseAccount, error)
GetBaseAccountInfo returns base account information
func (*Client) GetLiquidityQueryClient ¶
func (c *Client) GetLiquidityQueryClient() liquiditytypes.QueryClient
GetLiquidityQueryClient returns a object of queryClient
func (*Client) GetTxClient ¶
func (c *Client) GetTxClient() tx.ServiceClient
GetTxClient returns an object of ServiceClient.
Click to show internal directories.
Click to hide internal directories.