Versions in this module Expand all Collapse all v0 v0.2.5 Jul 6, 2023 Changes in this version + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func NewQuerier(keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier + func NewQueryServerImpl(k Keeper) types.QueryServer + type Keeper struct + Maccs map[string]bool + func NewKeeper(cdc codec.Codec, key storetypes.StoreKey, sk types.BankKeeper, ...) Keeper + func (k Keeper) ClaimAtomicSwap(ctx sdk.Context, from sdk.AccAddress, swapID []byte, randomNumber []byte) error + func (k Keeper) CreateAtomicSwap(ctx sdk.Context, randomNumberHash []byte, timestamp int64, heightSpan uint64, ...) error + func (k Keeper) CreateNewAssetSupply(ctx sdk.Context, denom string) types.AssetSupply + func (k Keeper) DecrementCurrentAssetSupply(ctx sdk.Context, coin sdk.Coin) error + func (k Keeper) DecrementIncomingAssetSupply(ctx sdk.Context, coin sdk.Coin) error + func (k Keeper) DecrementOutgoingAssetSupply(ctx sdk.Context, coin sdk.Coin) error + func (k Keeper) DeleteClosedAtomicSwapsFromLongtermStorage(ctx sdk.Context) + func (k Keeper) GetAllAssetSupplies(ctx sdk.Context) (supplies types.AssetSupplies) + func (k Keeper) GetAllAtomicSwaps(ctx sdk.Context) (atomicSwaps types.AtomicSwaps) + func (k Keeper) GetAsset(ctx sdk.Context, denom string) (types.AssetParam, error) + func (k Keeper) GetAssetByCoinID(ctx sdk.Context, coinID int64) (types.AssetParam, bool) + func (k Keeper) GetAssetSupply(ctx sdk.Context, denom string) (types.AssetSupply, bool) + func (k Keeper) GetAssets(ctx sdk.Context) (types.AssetParams, bool) + func (k Keeper) GetAtomicSwap(ctx sdk.Context, swapID []byte) (types.AtomicSwap, bool) + func (k Keeper) GetAuthorizedAddresses(ctx sdk.Context) []sdk.AccAddress + func (k Keeper) GetDeputyAddress(ctx sdk.Context, denom string) (sdk.AccAddress, error) + func (k Keeper) GetFixedFee(ctx sdk.Context, denom string) (sdkmath.Int, error) + func (k Keeper) GetMaxBlockLock(ctx sdk.Context, denom string) (uint64, error) + func (k Keeper) GetMaxSwapAmount(ctx sdk.Context, denom string) (sdkmath.Int, error) + func (k Keeper) GetMinBlockLock(ctx sdk.Context, denom string) (uint64, error) + func (k Keeper) GetMinSwapAmount(ctx sdk.Context, denom string) (sdkmath.Int, error) + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPreviousBlockTime(ctx sdk.Context) (blockTime time.Time, found bool) + func (k Keeper) GetSupplyLimit(ctx sdk.Context, denom string) (types.SupplyLimit, error) + func (k Keeper) IncrementCurrentAssetSupply(ctx sdk.Context, coin sdk.Coin) error + func (k Keeper) IncrementIncomingAssetSupply(ctx sdk.Context, coin sdk.Coin) error + func (k Keeper) IncrementOutgoingAssetSupply(ctx sdk.Context, coin sdk.Coin) error + func (k Keeper) InsertIntoByBlockIndex(ctx sdk.Context, atomicSwap types.AtomicSwap) + func (k Keeper) InsertIntoLongtermStorage(ctx sdk.Context, atomicSwap types.AtomicSwap) + func (k Keeper) IterateAssetSupplies(ctx sdk.Context, cb func(supply types.AssetSupply) (stop bool)) + func (k Keeper) IterateAtomicSwaps(ctx sdk.Context, cb func(atomicSwap types.AtomicSwap) (stop bool)) + func (k Keeper) IterateAtomicSwapsByBlock(ctx sdk.Context, inclusiveCutoffTime uint64, ...) + func (k Keeper) IterateAtomicSwapsLongtermStorage(ctx sdk.Context, inclusiveCutoffTime uint64, ...) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) RefundAtomicSwap(ctx sdk.Context, from sdk.AccAddress, swapID []byte) error + func (k Keeper) RemoveAtomicSwap(ctx sdk.Context, swapID []byte) + func (k Keeper) RemoveFromByBlockIndex(ctx sdk.Context, atomicSwap types.AtomicSwap) + func (k Keeper) RemoveFromLongtermStorage(ctx sdk.Context, atomicSwap types.AtomicSwap) + func (k Keeper) SetAsset(ctx sdk.Context, asset types.AssetParam) + func (k Keeper) SetAssetSupply(ctx sdk.Context, supply types.AssetSupply, denom string) + func (k Keeper) SetAtomicSwap(ctx sdk.Context, atomicSwap types.AtomicSwap) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetPreviousBlockTime(ctx sdk.Context, blockTime time.Time) + func (k Keeper) UpdateExpiredAtomicSwaps(ctx sdk.Context) + func (k Keeper) UpdateTimeBasedSupplyLimits(ctx sdk.Context) + func (k Keeper) ValidateLiveAsset(ctx sdk.Context, coin sdk.Coin) error