Documentation ¶
Index ¶
- type Querier
- func (q Querier) EstimateSwapExactAmountIn(ctx sdk.Context, req queryproto.EstimateSwapExactAmountInRequest) (*queryproto.EstimateSwapExactAmountInResponse, error)
- func (q Querier) EstimateSwapExactAmountOut(ctx sdk.Context, req queryproto.EstimateSwapExactAmountOutRequest) (*queryproto.EstimateSwapExactAmountOutResponse, error)
- func (q Querier) NumPools(ctx sdk.Context, _ queryproto.NumPoolsRequest) (*queryproto.NumPoolsResponse, error)
- func (q Querier) Params(ctx sdk.Context, req queryproto.ParamsRequest) (*queryproto.ParamsResponse, error)
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 (Querier) EstimateSwapExactAmountIn ¶
func (q Querier) EstimateSwapExactAmountIn(ctx sdk.Context, req queryproto.EstimateSwapExactAmountInRequest) (*queryproto.EstimateSwapExactAmountInResponse, error)
EstimateSwapExactAmountIn estimates input token amount for a swap.
func (Querier) EstimateSwapExactAmountOut ¶
func (q Querier) EstimateSwapExactAmountOut(ctx sdk.Context, req queryproto.EstimateSwapExactAmountOutRequest) (*queryproto.EstimateSwapExactAmountOutResponse, error)
EstimateSwapExactAmountOut estimates token output amount for a swap.
func (Querier) NumPools ¶
func (q Querier) NumPools(ctx sdk.Context, _ queryproto.NumPoolsRequest) (*queryproto.NumPoolsResponse, error)
NumPools returns total number of pools.
func (Querier) Params ¶
func (q Querier) Params(ctx sdk.Context, req queryproto.ParamsRequest, ) (*queryproto.ParamsResponse, error)
Directories ¶
Path | Synopsis |
---|---|
Package queryproto is a reverse proxy.
|
Package queryproto is a reverse proxy. |
Click to show internal directories.
Click to hide internal directories.