Versions in this module Expand all Collapse all v1 v1.7.4 Apr 15, 2023 v1.7.3 Apr 15, 2023 Changes in this version + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier + func ParamKeyTable() paramstypes.KeyTable + type Keeper struct + func NewKeeper(cdc codec.Codec, key storetypes.StoreKey, paramSpace paramstypes.Subspace, ...) Keeper + func (k Keeper) AddHTLCToExpiredQueue(ctx sdk.Context, expirationHeight uint64, id tmbytes.HexBytes) + func (k Keeper) AssetParams(ctx sdk.Context) (res []types.AssetParam) + func (k Keeper) AssetSupplies(c context.Context, request *types.QueryAssetSuppliesRequest) (*types.QueryAssetSuppliesResponse, error) + func (k Keeper) AssetSupply(c context.Context, request *types.QueryAssetSupplyRequest) (*types.QueryAssetSupplyResponse, error) + func (k Keeper) ClaimHTLC(ctx sdk.Context, id tmbytes.HexBytes, secret tmbytes.HexBytes) (string, bool, types.SwapDirection, error) + func (k Keeper) CreateHTLC(ctx sdk.Context, sender sdk.AccAddress, to sdk.AccAddress, ...) (id tmbytes.HexBytes, err 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) DeleteHTLCFromExpiredQueue(ctx sdk.Context, expirationHeight uint64, id tmbytes.HexBytes) + func (k Keeper) EnsureModuleAccountPermissions(ctx sdk.Context) error + func (k Keeper) GetAllAssetSupplies(ctx sdk.Context) (supplies []types.AssetSupply) + func (k Keeper) GetAsset(ctx sdk.Context, denom string) (types.AssetParam, error) + func (k Keeper) GetAssetSupply(ctx sdk.Context, denom string) (assetSupply types.AssetSupply, found bool) + func (k Keeper) GetAssets(ctx sdk.Context) ([]types.AssetParam, 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) (sdk.Int, error) + func (k Keeper) GetHTLC(ctx sdk.Context, id tmbytes.HexBytes) (htlc types.HTLC, found bool) + func (k Keeper) GetHTLCAccount(ctx sdk.Context) authtypes.ModuleAccountI + func (k Keeper) GetMaxBlockLock(ctx sdk.Context, denom string) (uint64, error) + func (k Keeper) GetMaxSwapAmount(ctx sdk.Context, denom string) (sdk.Int, error) + func (k Keeper) GetMinBlockLock(ctx sdk.Context, denom string) (uint64, error) + func (k Keeper) GetMinSwapAmount(ctx sdk.Context, denom string) (sdk.Int, error) + func (k Keeper) GetParams(ctx sdk.Context) 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) HTLC(c context.Context, request *types.QueryHTLCRequest) (*types.QueryHTLCResponse, error) + func (k Keeper) HasHTLC(ctx sdk.Context, id tmbytes.HexBytes) bool + 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) IterateAssetSupplies(ctx sdk.Context, cb func(supply types.AssetSupply) (stop bool)) + func (k Keeper) IterateHTLCExpiredQueueByHeight(ctx sdk.Context, height uint64, ...) + func (k Keeper) IterateHTLCs(ctx sdk.Context, op func(id tmbytes.HexBytes, h types.HTLC) (stop bool)) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Keeper) RefundHTLC(ctx sdk.Context, h types.HTLC, id tmbytes.HexBytes) error + 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) SetHTLC(ctx sdk.Context, htlc types.HTLC, id tmbytes.HexBytes) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetPreviousBlockTime(ctx sdk.Context, blockTime time.Time) + func (k Keeper) UpdateTimeBasedSupplyLimits(ctx sdk.Context) + func (k Keeper) ValidateLiveAsset(ctx sdk.Context, coin sdk.Coin) error