client

package
v19.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 11 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) 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.

type QuerierV2 added in v19.2.0

type QuerierV2 struct {
	K poolmanager.Keeper
}

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

func NewV2Querier added in v19.2.0

func NewV2Querier(k poolmanager.Keeper) QuerierV2

func (QuerierV2) SpotPriceV2 added in v19.2.0

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