Versions in this module Expand all Collapse all v11 v11.0.0 Aug 29, 2022 Changes in this version + func AllInvariants(keeper Keeper, bk types.BankKeeper) sdk.Invariant + func NewBalancerMsgServerImpl(keeper *Keeper) balancer.MsgServer + func NewMsgServerImpl(keeper *Keeper) types.MsgServer + func PoolAccountInvariant(keeper Keeper, bk types.BankKeeper) sdk.Invariant + func RegisterInvariants(ir sdk.InvariantRegistry, keeper Keeper, bk types.BankKeeper) + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramSpace paramtypes.Subspace, ...) Keeper + func (k *Keeper) SetHooks(gh types.GammHooks) *Keeper + func (k Keeper) BurnPoolShareFromAccount(ctx sdk.Context, pool types.PoolI, addr sdk.AccAddress, amount sdk.Int) error + func (k Keeper) CalculateSpotPrice(ctx sdk.Context, poolID uint64, baseAssetDenom string, quoteAssetDenom string) (sdk.Dec, error) + func (k Keeper) CreatePool(ctx sdk.Context, msg types.CreatePoolMsg) (uint64, error) + func (k Keeper) DeletePool(ctx sdk.Context, poolId uint64) error + func (k Keeper) ExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount sdk.Int, ...) (exitCoins sdk.Coins, err error) + func (k Keeper) ExitSwapExactAmountOut(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokenOut sdk.Coin, ...) (shareInAmount sdk.Int, err error) + func (k Keeper) ExitSwapShareAmountIn(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokenOutDenom string, ...) (tokenOutAmount sdk.Int, err error) + func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState + func (k Keeper) GetDenomLiquidity(ctx sdk.Context, denom string) sdk.Int + func (k Keeper) GetNextPoolId(ctx sdk.Context) uint64 + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPoolAndPoke(ctx sdk.Context, poolId uint64) (types.PoolI, error) + func (k Keeper) GetPoolDenoms(ctx sdk.Context, poolId uint64) ([]string, error) + func (k Keeper) GetPoolsAndPoke(ctx sdk.Context) (res []types.PoolI, err error) + func (k Keeper) GetTotalLiquidity(ctx sdk.Context) sdk.Coins + func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState, unpacker codectypes.AnyUnpacker) + func (k Keeper) IterateDenomLiquidity(ctx sdk.Context, cb func(sdk.Coin) bool) + func (k Keeper) JoinPoolNoSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareOutAmount sdk.Int, ...) (tokenIn sdk.Coins, sharesOut sdk.Int, err error) + func (k Keeper) JoinSwapExactAmountIn(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokensIn sdk.Coins, ...) (sdk.Int, error) + func (k Keeper) JoinSwapShareAmountOut(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokenInDenom string, ...) (tokenInAmount sdk.Int, err error) + func (k Keeper) MarshalPool(pool types.PoolI) ([]byte, error) + func (k Keeper) MintPoolShareToAccount(ctx sdk.Context, pool types.PoolI, addr sdk.AccAddress, amount sdk.Int) error + func (k Keeper) MultihopSwapExactAmountIn(ctx sdk.Context, sender sdk.AccAddress, routes []types.SwapAmountInRoute, ...) (tokenOutAmount sdk.Int, err error) + func (k Keeper) MultihopSwapExactAmountOut(ctx sdk.Context, sender sdk.AccAddress, routes []types.SwapAmountOutRoute, ...) (tokenInAmount sdk.Int, err error) + func (k Keeper) RecordTotalLiquidityDecrease(ctx sdk.Context, coins sdk.Coins) + func (k Keeper) RecordTotalLiquidityIncrease(ctx sdk.Context, coins sdk.Coins) + func (k Keeper) SwapExactAmountIn(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokenIn sdk.Coin, ...) (sdk.Int, error) + func (k Keeper) SwapExactAmountOut(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokenInDenom string, ...) (tokenInAmount sdk.Int, err error) + func (k Keeper) UnmarshalPool(bz []byte) (types.PoolI, error) + type Querier struct + func NewQuerier(k Keeper) Querier + func (q Querier) EstimateSwapExactAmountIn(ctx context.Context, req *types.QuerySwapExactAmountInRequest) (*types.QuerySwapExactAmountInResponse, error) + func (q Querier) EstimateSwapExactAmountOut(ctx context.Context, req *types.QuerySwapExactAmountOutRequest) (*types.QuerySwapExactAmountOutResponse, error) + func (q Querier) NumPools(ctx context.Context, _ *types.QueryNumPoolsRequest) (*types.QueryNumPoolsResponse, error) + func (q Querier) Pool(ctx context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error) + func (q Querier) PoolParams(ctx context.Context, req *types.QueryPoolParamsRequest) (*types.QueryPoolParamsResponse, error) + func (q Querier) Pools(ctx context.Context, req *types.QueryPoolsRequest) (*types.QueryPoolsResponse, error) + func (q Querier) SpotPrice(ctx context.Context, req *types.QuerySpotPriceRequest) (*types.QuerySpotPriceResponse, error) + func (q Querier) TotalLiquidity(ctx context.Context, _ *types.QueryTotalLiquidityRequest) (*types.QueryTotalLiquidityResponse, error) + func (q Querier) TotalPoolLiquidity(ctx context.Context, req *types.QueryTotalPoolLiquidityRequest) (*types.QueryTotalPoolLiquidityResponse, error) + func (q Querier) TotalShares(ctx context.Context, req *types.QueryTotalSharesRequest) (*types.QueryTotalSharesResponse, error)