Documentation ¶
Index ¶
- func GetCurrentTick(ctx context.Context, client poolmanager.QueryClient, poolID uint64) (int64, error)
- func GetSpotPrice(ctx context.Context, client poolmanager.QueryClient, poolConfig types.Pool) (string, error)
- func GetSpotPrices(ctx context.Context, poolManagerClient poolmanager.QueryClient, ...) (string, string, error)
- func GetTotalPoolLiquidity(ctx context.Context, client poolmanager.QueryClient, poolID uint64) (*poolmanager.TotalPoolLiquidityResponse, error)
- func GetUserPositions(ctx context.Context, client cl.QueryClient, poolConfig types.Pool, user string) (*cl.UserPositionsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentTick ¶
func GetCurrentTick(ctx context.Context, client poolmanager.QueryClient, poolID uint64) (int64, error)
func GetSpotPrice ¶
func GetSpotPrice(ctx context.Context, client poolmanager.QueryClient, poolConfig types.Pool) (string, error)
func GetSpotPrices ¶
func GetSpotPrices(ctx context.Context, poolManagerClient poolmanager.QueryClient, config types.GetConfigResponse) (string, string, error)
func GetTotalPoolLiquidity ¶
func GetTotalPoolLiquidity(ctx context.Context, client poolmanager.QueryClient, poolID uint64) (*poolmanager.TotalPoolLiquidityResponse, error)
func GetUserPositions ¶
func GetUserPositions(ctx context.Context, client cl.QueryClient, poolConfig types.Pool, user string) (*cl.UserPositionsResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.