client

package
v15.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Querier

type Querier struct {
	cl.Keeper
}

Querier defines a wrapper around the x/concentrated-liquidity keeper providing gRPC method handlers.

func NewQuerier

func NewQuerier(k cl.Keeper) Querier

func (Querier) ClaimableSpreadRewards added in v15.8.0

func (Querier) LiquidityNetInDirection

LiquidityNetInDirection returns an array of LiquidityDepthWithRange, which contains the range(lower tick and upper tick) and the liquidity amount in the range.

func (Querier) LiquidityPerTickRange

LiquidityPerTickRange returns the amount of liquidity per every tick range existing within the given pool. The amounts are returned as a slice of ranges with their liquidity depths.

func (Querier) Params

Params returns module params

func (Querier) PoolAccumulatorRewards added in v15.8.0

PoolAccumulatorRewards returns pool accumulator rewards. It includes global spread reward growth and global uptime growth accumulator values.

func (Querier) Pools

func (q Querier) Pools(
	ctx sdk.Context,
	req clquery.PoolsRequest,
) (*clquery.PoolsResponse, error)

Pools returns all concentrated pools in existence.

func (Querier) PositionById

PositionById returns a position with the specified id. The position is broken down by: - the position itself - the underlying assets - the claimable fees - the claimable incentives - the incentives that would be forfeited if the position was closed now

func (Querier) TickAccumulatorTrackers added in v15.8.0

TickAccumulatorTrackers returns tick accumulator trackers. It includes spread reward growth in the opposite direction of last traversal and uptime tracker values.

func (Querier) UserPositions

UserPositions returns positions of a specified address. Each position is broken down by: - the position itself - the underlying assets - the claimable fees - the claimable incentives - the incentives that would be forfeited if the position was closed now

Directories

Path Synopsis
Package queryproto is a reverse proxy.
Package queryproto is a reverse proxy.

Jump to

Keyboard shortcuts

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