client

package
v23.0.11-iavl-v1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Querier

type Querier struct {
	K poolmanager.Keeper
}

func NewQuerier

func NewQuerier(k poolmanager.Keeper) Querier

func (Querier) AllPools

func (Querier) EstimateSwapExactAmountIn

EstimateSwapExactAmountIn estimates input token amount for a swap.

func (Querier) EstimateSwapExactAmountInWithPrimitiveTypes

EstimateSwapExactAmountInWithPrimitiveTypes runs same logic with EstimateSwapExactAmountIn but instead takes array of primitive types in the request to support query through grpc-gateway.

func (Querier) EstimateSwapExactAmountOut

EstimateSwapExactAmountOut estimates token output amount for a swap.

func (Querier) EstimateSwapExactAmountOutWithPrimitiveTypes

EstimateSwapExactAmountOut estimates token output amount for a swap.

func (Querier) EstimateTradeBasedOnPriceImpact

EstimateTradeBasedOnPriceImpact returns the input and output amount of coins for a pool trade based on external price and maximum price impact.

func (Querier) ListPoolsByDenom

ListPoolsByDenom returns a list of pools filtered by denom

func (Querier) NumPools

NumPools returns total number of pools.

func (Querier) Params

func (Querier) Pool

Pool returns the pool specified by id.

func (Querier) SpotPrice

SpotPrice returns the spot price of the pool with the given quote and base asset denoms. 18 decimals.

func (Querier) TotalLiquidity

TotalLiquidity returns the total liquidity across all pools.

func (Querier) TotalPoolLiquidity

TotalPoolLiquidity returns the total liquidity of the pool.

func (Querier) TotalVolumeForPool

TotalVolumeForPool returns the total volume of the pool.

func (Querier) TradingPairTakerFee

TradingPairTakerFee returns the taker fee for the given trading pair

type QuerierV2

type QuerierV2 struct {
	K poolmanager.Keeper
}

QuerierV2 defines a wrapper around the x/poolmanager keeper providing gRPC method handlers for v2 queries.

func NewV2Querier

func NewV2Querier(k poolmanager.Keeper) QuerierV2

func (QuerierV2) SpotPriceV2

SpotPriceV2 returns the spot price of the pool with the given quote and base asset denoms. 36 decimals.

Directories

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

Jump to

Keyboard shortcuts

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