Versions in this module Expand all Collapse all v3 v3.0.0 Mar 22, 2024 Changes in this version + func AllInvariants(k Keeper) sdk.Invariant + func AvailableReserveInvariant(k Keeper) sdk.Invariant + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) + func ReserveInvariant(k Keeper) sdk.Invariant + func SupplyInvariant(k Keeper) sdk.Invariant + type Keeper struct + BankKeeper bankkeeper.Keeper + StakingKeeper stakingkeeper.Keeper + func NewKeeper(cdc codec.BinaryCodec, bankKeeper bankkeeper.Keeper, ...) Keeper + func (k Keeper) AddBuyOrder(ctx sdk.Context, bondDid string, bo types.BuyOrder, ...) + func (k Keeper) AddSellOrder(ctx sdk.Context, bondDid string, so types.SellOrder, ...) + func (k Keeper) AddSwapOrder(ctx sdk.Context, bondDid string, so types.SwapOrder) + func (k Keeper) BatchExists(ctx sdk.Context, bondDid string) bool + func (k Keeper) BondDidExists(ctx sdk.Context, bondToken string) bool + func (k Keeper) BondExists(ctx sdk.Context, bondDid string) bool + func (k Keeper) CancelUnfulfillableBuys(ctx sdk.Context, bondDid string) (cancelledOrders int) + func (k Keeper) CancelUnfulfillableOrders(ctx sdk.Context, bondDid string) (cancelledOrders int) + func (k Keeper) CheckIfBuyOrderFulfillableAtPrice(ctx sdk.Context, bondDid string, bo types.BuyOrder, prices sdk.DecCoins) error + func (k Keeper) DepositIntoReserve(ctx sdk.Context, bondDid string, from sdk.AccAddress, amount sdk.Coins) error + func (k Keeper) DepositOutcomePayment(ctx sdk.Context, bondDid string, from sdk.AccAddress, amount sdk.Coins) error + func (k Keeper) DepositReserveFromModule(ctx sdk.Context, bondDid string, fromModule string, amount sdk.Coins) error + func (k Keeper) GetAvailableReserve(ctx sdk.Context, bondDid string) sdk.Coins + func (k Keeper) GetBatchBuySellPrices(ctx sdk.Context, bondDid string, batch types.Batch) (buyPricesPT, sellPricesPT sdk.DecCoins, err error) + func (k Keeper) GetBond(ctx sdk.Context, bondDid string) (bond types.Bond, found bool) + func (k Keeper) GetBondDid(ctx sdk.Context, bondToken string) (bondDid string, found bool) + func (k Keeper) GetBondIterator(ctx sdk.Context) sdk.Iterator + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetReserveBalances(ctx sdk.Context, bondDid string) sdk.Coins + func (k Keeper) GetSupplyAdjustedForAlphaEdit(ctx sdk.Context, bondDid string) sdk.Coin + func (k Keeper) GetSupplyAdjustedForBuy(ctx sdk.Context, bondDid string) sdk.Coin + func (k Keeper) GetSupplyAdjustedForSell(ctx sdk.Context, bondDid string) sdk.Coin + func (k Keeper) GetUpdatedBatchPricesAfterBuy(ctx sdk.Context, bondDid string, bo types.BuyOrder) (buyPrices, sellPrices sdk.DecCoins, err error) + func (k Keeper) GetUpdatedBatchPricesAfterSell(ctx sdk.Context, bondDid string, so types.SellOrder) (buyPrices, sellPrices sdk.DecCoins, err error) + func (k Keeper) HandleBondingFunctionAlphaUpdate(ctx sdk.Context, bondDid string) + func (k Keeper) LastBatchExists(ctx sdk.Context, bondDid string) bool + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MoveOutcomePaymentToReserve(ctx sdk.Context, bondDid string) + func (k Keeper) MustGetBatch(ctx sdk.Context, bondDid string) types.Batch + func (k Keeper) MustGetBond(ctx sdk.Context, bondDid string) types.Bond + func (k Keeper) MustGetBondByKey(ctx sdk.Context, key []byte) types.Bond + func (k Keeper) MustGetLastBatch(ctx sdk.Context, bondDid string) types.Batch + func (k Keeper) PerformBuyAtPrice(ctx sdk.Context, bondDid string, bo types.BuyOrder, prices sdk.DecCoins) (err error) + func (k Keeper) PerformBuyOrders(ctx sdk.Context, bondDid string) + func (k Keeper) PerformOrders(ctx sdk.Context, bondDid string) + func (k Keeper) PerformSellAtPrice(ctx sdk.Context, bondDid string, so types.SellOrder, prices sdk.DecCoins) (err error) + func (k Keeper) PerformSellOrders(ctx sdk.Context, bondDid string) + func (k Keeper) PerformSwap(ctx sdk.Context, bondDid string, so types.SwapOrder) (err error, ok bool) + func (k Keeper) PerformSwapOrders(ctx sdk.Context, bondDid string) + func (k Keeper) ReservedBondToken(ctx sdk.Context, bondToken string) bool + func (k Keeper) SetBatch(ctx sdk.Context, bondDid string, batch types.Batch) + func (k Keeper) SetBond(ctx sdk.Context, bondDid string, bond types.Bond) + func (k Keeper) SetBondDid(ctx sdk.Context, bondToken string, bondDid string) + func (k Keeper) SetBondState(ctx sdk.Context, bondDid string, newState string) + func (k Keeper) SetCurrentSupply(ctx sdk.Context, bondDid string, currentSupply sdk.Coin) + func (k Keeper) SetLastBatch(ctx sdk.Context, bondDid string, batch types.Batch) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) UpdateAlpha(ctx sdk.Context, bondDid string) + func (k Keeper) WithdrawFromReserve(ctx sdk.Context, bondDid string, to sdk.AccAddress, amount sdk.Coins) error + type Querier struct + func NewQuerier(k Keeper) Querier + func (q Querier) AlphaMaximums(c context.Context, req *types.QueryAlphaMaximumsRequest) (*types.QueryAlphaMaximumsResponse, error) + func (q Querier) AvailableReserve(c context.Context, req *types.QueryAvailableReserveRequest) (*types.QueryAvailableReserveResponse, error) + func (q Querier) Batch(c context.Context, req *types.QueryBatchRequest) (*types.QueryBatchResponse, error) + func (q Querier) Bond(c context.Context, req *types.QueryBondRequest) (*types.QueryBondResponse, error) + func (q Querier) Bonds(c context.Context, _ *types.QueryBondsRequest) (*types.QueryBondsResponse, error) + func (q Querier) BondsDetailed(c context.Context, _ *types.QueryBondsDetailedRequest) (*types.QueryBondsDetailedResponse, error) + func (q Querier) BuyPrice(c context.Context, req *types.QueryBuyPriceRequest) (*types.QueryBuyPriceResponse, error) + func (q Querier) CurrentPrice(c context.Context, req *types.QueryCurrentPriceRequest) (*types.QueryCurrentPriceResponse, error) + func (q Querier) CurrentReserve(c context.Context, req *types.QueryCurrentReserveRequest) (*types.QueryCurrentReserveResponse, error) + func (q Querier) CustomPrice(c context.Context, req *types.QueryCustomPriceRequest) (*types.QueryCustomPriceResponse, error) + func (q Querier) LastBatch(c context.Context, req *types.QueryLastBatchRequest) (*types.QueryLastBatchResponse, error) + func (q Querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (q Querier) SellReturn(c context.Context, req *types.QuerySellReturnRequest) (*types.QuerySellReturnResponse, error) + func (q Querier) SwapReturn(c context.Context, req *types.QuerySwapReturnRequest) (*types.QuerySwapReturnResponse, error) v3.0.0-rc.0 Mar 22, 2024 Other modules containing this package github.com/ixofoundation/ixo-blockchain