Versions in this module Expand all Collapse all v8 v8.0.1 May 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 PoolProductConstantInvariant(keeper Keeper) sdk.Invariant + func PoolTotalWeightInvariant(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, tokenInDenom, tokenOutDenom string) (sdk.Dec, error) + func (k Keeper) CalculateSpotPriceWithSwapFee(ctx sdk.Context, poolId uint64, tokenInDenom, tokenOutDenom string) (sdk.Dec, error) + func (k Keeper) CleanupBalancerPool(ctx sdk.Context, poolIds []uint64, excludedModules []string) (err error) + func (k Keeper) CreateBalancerPool(ctx sdk.Context, sender sdk.AccAddress, BalancerPoolParams balancer.PoolParams, ...) (uint64, error) + func (k Keeper) DeleteLegacyTotalLiquidity(ctx sdk.Context) + func (k Keeper) DeletePool(ctx sdk.Context, poolId uint64) error + func (k Keeper) EstimateSwapExactAmountIn(ctx context.Context, req *types.QuerySwapExactAmountInRequest) (*types.QuerySwapExactAmountInResponse, error) + func (k Keeper) EstimateSwapExactAmountOut(ctx context.Context, req *types.QuerySwapExactAmountOutRequest) (*types.QuerySwapExactAmountOutResponse, error) + func (k Keeper) ExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount sdk.Int, ...) (exitCoins sdk.Coins, err error) + func (k Keeper) ExitSwapExternAmountOut(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) GetDenomLiquidity(ctx sdk.Context, denom string) sdk.Int + func (k Keeper) GetLegacyTotalLiquidity(ctx sdk.Context) sdk.Coins + func (k Keeper) GetNextPoolNumberAndIncrement(ctx sdk.Context) uint64 + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPool(ctx sdk.Context, poolId uint64) (types.PoolI, error) + func (k Keeper) GetPools(ctx sdk.Context) (res []types.PoolI, err error) + func (k Keeper) GetTotalLiquidity(ctx sdk.Context) sdk.Coins + func (k Keeper) IterateDenomLiquidity(ctx sdk.Context, cb func(sdk.Coin) bool) + func (k Keeper) JoinPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareOutAmount sdk.Int, ...) (err error) + func (k Keeper) JoinSwapExternAmountIn(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokenIn sdk.Coin, ...) (shareOutAmount sdk.Int, err 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) NumPools(ctx context.Context, req *types.QueryNumPoolsRequest) (*types.QueryNumPoolsResponse, error) + func (k Keeper) Pool(ctx context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error) + func (k Keeper) PoolAssets(ctx context.Context, req *types.QueryPoolAssetsRequest) (*types.QueryPoolAssetsResponse, error) + func (k Keeper) PoolParams(ctx context.Context, req *types.QueryPoolParamsRequest) (*types.QueryPoolParamsResponse, error) + func (k Keeper) Pools(ctx context.Context, req *types.QueryPoolsRequest) (*types.QueryPoolsResponse, error) + func (k Keeper) RecordTotalLiquidityDecrease(ctx sdk.Context, coins sdk.Coins) + func (k Keeper) RecordTotalLiquidityIncrease(ctx sdk.Context, coins sdk.Coins) + func (k Keeper) SetDenomLiquidity(ctx sdk.Context, denom string, amount sdk.Int) + func (k Keeper) SetLegacyTotalLiquidity(ctx sdk.Context, coins sdk.Coins) + func (k Keeper) SetNextPoolNumber(ctx sdk.Context, poolNumber uint64) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetPool(ctx sdk.Context, pool types.PoolI) error + func (k Keeper) SetTotalLiquidity(ctx sdk.Context, coins sdk.Coins) + func (k Keeper) SpotPrice(ctx context.Context, req *types.QuerySpotPriceRequest) (*types.QuerySpotPriceResponse, error) + func (k Keeper) SwapExactAmountIn(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokenIn sdk.Coin, ...) (tokenOutAmount sdk.Int, spotPriceAfter sdk.Dec, err error) + func (k Keeper) SwapExactAmountOut(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, tokenInDenom string, ...) (tokenInAmount sdk.Int, spotPriceAfter sdk.Dec, err error) + func (k Keeper) TotalLiquidity(ctx context.Context, req *types.QueryTotalLiquidityRequest) (*types.QueryTotalLiquidityResponse, error) + func (k Keeper) TotalShares(ctx context.Context, req *types.QueryTotalSharesRequest) (*types.QueryTotalSharesResponse, error) + func (k Keeper) UnmarshalPool(bz []byte) (types.PoolI, error) Other modules containing this package github.com/osmosis-labs/osmosis github.com/osmosis-labs/osmosis/v10 github.com/osmosis-labs/osmosis/v11 github.com/osmosis-labs/osmosis/v12 github.com/osmosis-labs/osmosis/v13 github.com/osmosis-labs/osmosis/v14 github.com/osmosis-labs/osmosis/v15 github.com/osmosis-labs/osmosis/v16 github.com/osmosis-labs/osmosis/v17 github.com/osmosis-labs/osmosis/v19 github.com/osmosis-labs/osmosis/v20 github.com/osmosis-labs/osmosis/v21 github.com/osmosis-labs/osmosis/v22 github.com/osmosis-labs/osmosis/v23 github.com/osmosis-labs/osmosis/v24 github.com/osmosis-labs/osmosis/v25 github.com/osmosis-labs/osmosis/v26 github.com/osmosis-labs/osmosis/v27 github.com/osmosis-labs/osmosis/v28 github.com/osmosis-labs/osmosis/v6 github.com/osmosis-labs/osmosis/v7 github.com/osmosis-labs/osmosis/v9