Versions in this module Expand all Collapse all v17 v17.0.0 Aug 17, 2023 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 NewStableswapMsgServerImpl(keeper *Keeper) stableswap.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) SetIncentivesKeeper(incentivesKeeper types.IncentivesKeeper) + func (k *Keeper) SetPoolIncentivesKeeper(poolIncentivesKeeper types.PoolIncentivesKeeper) + func (k *Keeper) SetPoolManager(poolManager types.PoolManager) + func (k Keeper) BurnPoolShareFromAccount(ctx sdk.Context, pool poolmanagertypes.PoolI, addr sdk.AccAddress, ...) error + func (k Keeper) CalcInAmtGivenOut(ctx sdk.Context, poolI poolmanagertypes.PoolI, tokenOut sdk.Coin, ...) (tokenIn sdk.Coin, err error) + func (k Keeper) CalcOutAmtGivenIn(ctx sdk.Context, poolI poolmanagertypes.PoolI, tokenIn sdk.Coin, ...) (tokenOut sdk.Coin, err error) + func (k Keeper) CalculateSpotPrice(ctx sdk.Context, poolID uint64, quoteAssetDenom string, baseAssetDenom string) (spotPrice sdk.Dec, err error) + func (k Keeper) CreateCanonicalConcentratedLiquidityPoolAndMigrationLink(ctx sdk.Context, cfmmPoolId uint64, desiredDenom0 string, spreadFactor sdk.Dec, ...) (poolmanagertypes.PoolI, error) + func (k Keeper) CreateConcentratedPoolFromCFMM(ctx sdk.Context, cfmmPoolIdToLinkWith uint64, desiredDenom0 string, ...) (poolmanagertypes.PoolI, 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) GetAllMigrationInfo(ctx sdk.Context) (gammmigration.MigrationRecords, error) + func (k Keeper) GetCFMMPool(ctx sdk.Context, poolId uint64) (types.CFMMPoolI, error) + func (k Keeper) GetDenomLiquidity(ctx sdk.Context, denom string) sdk.Int + func (k Keeper) GetLinkedBalancerPoolID(ctx sdk.Context, concentratedPoolId uint64) (uint64, error) + func (k Keeper) GetLinkedConcentratedPoolID(ctx sdk.Context, balancerPoolId uint64) (uint64, error) + func (k Keeper) GetNextPoolId(ctx sdk.Context) uint64 + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPool(ctx sdk.Context, poolId uint64) (poolmanagertypes.PoolI, error) + func (k Keeper) GetPoolAndPoke(ctx sdk.Context, poolId uint64) (types.CFMMPoolI, error) + func (k Keeper) GetPoolDenoms(ctx sdk.Context, poolId uint64) ([]string, error) + func (k Keeper) GetPoolType(ctx sdk.Context, poolId uint64) (poolmanagertypes.PoolType, error) + func (k Keeper) GetPools(ctx sdk.Context) ([]poolmanagertypes.PoolI, error) + func (k Keeper) GetPoolsAndPoke(ctx sdk.Context) (res []types.CFMMPoolI, err error) + func (k Keeper) GetTotalLiquidity(ctx sdk.Context) (sdk.Coins, error) + func (k Keeper) GetTotalPoolLiquidity(ctx sdk.Context, poolId uint64) (sdk.Coins, error) + func (k Keeper) GetTotalPoolShares(ctx sdk.Context, poolId uint64) (sdk.Int, error) + func (k Keeper) HandleReplaceMigrationRecordsProposal(ctx sdk.Context, p *types.ReplaceMigrationRecordsProposal) error + func (k Keeper) HandleSetScalingFactorControllerProposal(ctx sdk.Context, p *types.SetScalingFactorControllerProposal) error + func (k Keeper) HandleUpdateMigrationRecordsProposal(ctx sdk.Context, p *types.UpdateMigrationRecordsProposal) error + func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState, unpacker codectypes.AnyUnpacker) + func (k Keeper) InitializePool(ctx sdk.Context, pool poolmanagertypes.PoolI, sender sdk.AccAddress) (err error) + 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, ...) (sharesOut 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 poolmanagertypes.PoolI) ([]byte, error) + func (k Keeper) MigrateUnlockedPositionFromBalancerToConcentrated(ctx sdk.Context, sender sdk.AccAddress, sharesToMigrate sdk.Coin, ...) (cltypes.CreateFullRangePositionData, superfluidtypes.MigrationPoolIDs, error) + func (k Keeper) MintPoolShareToAccount(ctx sdk.Context, pool poolmanagertypes.PoolI, addr sdk.AccAddress, ...) error + func (k Keeper) OverwriteMigrationRecordsAndRedirectDistrRecords(ctx sdk.Context, migrationInfo gammmigration.MigrationRecords) error + func (k Keeper) OverwritePoolV15MigrationUnsafe(ctx sdk.Context, pool poolmanagertypes.PoolI) error + func (k Keeper) RecordTotalLiquidityDecrease(ctx sdk.Context, coins sdk.Coins) + func (k Keeper) RecordTotalLiquidityIncrease(ctx sdk.Context, coins sdk.Coins) + func (k Keeper) ReplaceMigrationRecords(ctx sdk.Context, records []gammmigration.BalancerToConcentratedPoolLink) error + func (k Keeper) SetMigrationRecords(ctx sdk.Context, migrationInfo gammmigration.MigrationRecords) + func (k Keeper) SwapExactAmountIn(ctx sdk.Context, sender sdk.AccAddress, pool poolmanagertypes.PoolI, ...) (tokenOutAmount sdk.Int, err error) + func (k Keeper) SwapExactAmountOut(ctx sdk.Context, sender sdk.AccAddress, pool poolmanagertypes.PoolI, ...) (tokenInAmount sdk.Int, err error) + func (k Keeper) UnmarshalPool(bz []byte) (types.CFMMPoolI, error) + func (k Keeper) UpdateMigrationRecords(ctx sdk.Context, records []gammmigration.BalancerToConcentratedPoolLink) error + func (k Keeper) ValidatePermissionlessPoolCreationEnabled(ctx sdk.Context) error + type Querier struct + func NewQuerier(k Keeper) Querier + func (q Querier) CFMMConcentratedPoolLinks(ctx context.Context, req *types.QueryCFMMConcentratedPoolLinksRequest) (*types.QueryCFMMConcentratedPoolLinksResponse, error) + func (q Querier) CalcExitPoolCoinsFromShares(ctx context.Context, req *types.QueryCalcExitPoolCoinsFromSharesRequest) (*types.QueryCalcExitPoolCoinsFromSharesResponse, error) + func (q Querier) CalcJoinPoolNoSwapShares(ctx context.Context, req *types.QueryCalcJoinPoolNoSwapSharesRequest) (*types.QueryCalcJoinPoolNoSwapSharesResponse, error) + func (q Querier) CalcJoinPoolShares(ctx context.Context, req *types.QueryCalcJoinPoolSharesRequest) (*types.QueryCalcJoinPoolSharesResponse, error) + func (q Querier) ConcentratedPoolIdLinkFromCFMM(ctx context.Context, req *types.QueryConcentratedPoolIdLinkFromCFMMRequest) (*types.QueryConcentratedPoolIdLinkFromCFMMResponse, error) + 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) PoolType(ctx context.Context, req *types.QueryPoolTypeRequest) (*types.QueryPoolTypeResponse, error) + func (q Querier) Pools(ctx context.Context, req *types.QueryPoolsRequest) (*types.QueryPoolsResponse, error) + func (q Querier) PoolsWithFilter(ctx context.Context, req *types.QueryPoolsWithFilterRequest) (*types.QueryPoolsWithFilterResponse, 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) + type QuerierV2 struct + func NewV2Querier(k Keeper) QuerierV2 + func (q QuerierV2) SpotPrice(ctx context.Context, req *v2types.QuerySpotPriceRequest) (*v2types.QuerySpotPriceResponse, error) v17.0.0-rc0 Aug 15, 2023 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/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/v8 github.com/osmosis-labs/osmosis/v9