Documentation ¶
Index ¶
- func IsNotFound(err error) bool
- type Client
- func (c *Client) GetAllBalances(ctx context.Context, address string) (sdk.Coins, error)
- func (c *Client) GetAllPools(ctx context.Context) (liqtypes.Pools, error)
- func (c *Client) GetBaseAccountInfo(ctx context.Context, address string) (authtypes.BaseAccount, error)
- func (c *Client) GetLiquidityQueryClient() liqtypes.QueryClient
- func (c *Client) GetPool(ctx context.Context, poolId uint64) (liqtypes.Pool, error)
- func (c *Client) GetPoolReserves(ctx context.Context, reservePoolDenoms []string) (sdk.Dec, sdk.Dec, error)
- func (c *Client) GetTxClient() sdktx.ServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps GRPC client connection.
func NewClient ¶
func NewClient(grpcURL string, cfg config.CoinMarketCapConfig) (*Client, error)
NewClient creates GRPC client.
func (*Client) GetAllBalances ¶
GetAllBalances returns all account balances.
func (*Client) GetAllPools ¶
GetAllPools returns all existing pools.
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() liqtypes.QueryClient
GetLiquidityQueryClient returns a object of queryClient
func (*Client) GetPoolReserves ¶
func (c *Client) GetPoolReserves(ctx context.Context, reservePoolDenoms []string) (sdk.Dec, sdk.Dec, error)
GetPoolReserves returns pool reserves of the pool.
func (*Client) GetTxClient ¶
func (c *Client) GetTxClient() sdktx.ServiceClient
GetTxClient returns an object of service client.
Click to show internal directories.
Click to hide internal directories.