keeper

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultParamspace = types.ModuleName
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

/ creates a querier for swap REST endpoints

func ParamKeyTable

func ParamKeyTable() params.KeyTable

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper of the validator store

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, paramSpace types.ParamSubspace, coinKeeper coin.Keeper,
	accountKeeper auth.AccountKeeper, supplyKeeper supply.Keeper) Keeper

func (Keeper) CheckBalance

func (k Keeper) CheckBalance(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) (bool, error)

func (Keeper) CheckPoolFunds

func (k Keeper) CheckPoolFunds(ctx sdk.Context, coins sdk.Coins) (bool, error)

func (Keeper) GetAllSwaps

func (k Keeper) GetAllSwaps(ctx sdk.Context) types.Swaps

func (Keeper) GetChain

func (k Keeper) GetChain(ctx sdk.Context, chainNumber int) (types.Chain, bool)

func (Keeper) GetLockedFunds

func (k Keeper) GetLockedFunds(ctx sdk.Context) sdk.Coins

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

func (Keeper) GetPool

func (k Keeper) GetPool(ctx sdk.Context) exported.ModuleAccountI

func (Keeper) GetSwap

func (k Keeper) GetSwap(ctx sdk.Context, hash types.Hash) (types.Swap, bool)

func (Keeper) HasChain

func (k Keeper) HasChain(ctx sdk.Context, chainNumber int) bool

func (Keeper) HasSwap

func (k Keeper) HasSwap(ctx sdk.Context, hash types.Hash) bool

func (Keeper) HasSwapV2

func (k Keeper) HasSwapV2(ctx sdk.Context, hash types.Hash) bool

func (Keeper) IsMigratedToUpdatedPrefixes added in v1.2.12

func (k Keeper) IsMigratedToUpdatedPrefixes(ctx sdk.Context) bool

func (Keeper) LockFunds

func (k Keeper) LockFunds(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error

func (Keeper) LockedTimeIn

func (k Keeper) LockedTimeIn(ctx sdk.Context) (res time.Duration)

func (Keeper) LockedTimeOut

func (k Keeper) LockedTimeOut(ctx sdk.Context) (res time.Duration)

func (Keeper) MigrateToUpdatedPrefixes added in v1.2.12

func (k Keeper) MigrateToUpdatedPrefixes(ctx sdk.Context) error

func (Keeper) SetChain

func (k Keeper) SetChain(ctx sdk.Context, chainNumber int, chain types.Chain)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

set the params

func (Keeper) SetSwap

func (k Keeper) SetSwap(ctx sdk.Context, swap types.Swap)

func (Keeper) SetSwapV2

func (k Keeper) SetSwapV2(ctx sdk.Context, hash types.Hash)

func (Keeper) UnlockFunds

func (k Keeper) UnlockFunds(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL