client

package
v17.1.0-20230810231343... Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

func (Querier) TotalLiquidity

TotalLiquidity returns the total liquidity across all pools.

func (Querier) TotalPoolLiquidity

TotalPoolLiquidity returns the total liquidity of the pool.

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