Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) ActivateChain(goCtx context.Context, msg *types.MsgActivateChain) (*types.MsgActivateChainResponse, error)
- func (k Keeper) ActiveSwaps(c context.Context, req *types.QueryActiveSwapsRequest) (*types.QueryActiveSwapsResponse, error)
- func (k Keeper) CheckBalance(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) (bool, error)
- func (k Keeper) CheckPoolFunds(ctx sdk.Context, coins sdk.Coins) bool
- func (k Keeper) DeactivateChain(goCtx context.Context, msg *types.MsgDeactivateChain) (*types.MsgDeactivateChainResponse, error)
- func (k *Keeper) GetChain(ctx sdk.Context, chainNumber uint32) (types.Chain, bool)
- func (k Keeper) GetLockedFunds(ctx sdk.Context) sdk.Coins
- func (k *Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) HasChain(ctx sdk.Context, chainNumber uint32) bool
- func (k Keeper) HasSwap(ctx sdk.Context, hash types.Hash) bool
- func (k Keeper) InitializeSwap(goCtx context.Context, msg *types.MsgInitializeSwap) (*types.MsgInitializeSwapResponse, error)
- func (k Keeper) LockFunds(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error
- func (k Keeper) Pool(c context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error)
- func (k Keeper) RedeemSwap(goCtx context.Context, msg *types.MsgRedeemSwap) (*types.MsgRedeemSwapResponse, error)
- func (k *Keeper) SetChain(ctx sdk.Context, chain *types.Chain)
- func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSwap(ctx sdk.Context, hash types.Hash)
- func (k Keeper) Swap(c context.Context, req *types.QuerySwapRequest) (*types.QuerySwapResponse, error)
- func (k Keeper) UnlockFunds(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine.
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey store.StoreKey, ps paramtypes.Subspace, accountKeeper auth.AccountKeeperI, bankKeeper bank.Keeper, ) *Keeper
NewKeeper creates new Keeper instance.
func (Keeper) ActivateChain ¶
func (k Keeper) ActivateChain(goCtx context.Context, msg *types.MsgActivateChain) (*types.MsgActivateChainResponse, error)
func (Keeper) ActiveSwaps ¶
func (k Keeper) ActiveSwaps(c context.Context, req *types.QueryActiveSwapsRequest) (*types.QueryActiveSwapsResponse, error)
func (Keeper) CheckBalance ¶
func (k Keeper) CheckBalance(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) (bool, error)
Returns true if account balance enought to send coins
func (Keeper) CheckPoolFunds ¶
func (Keeper) DeactivateChain ¶
func (k Keeper) DeactivateChain(goCtx context.Context, msg *types.MsgDeactivateChain) (*types.MsgDeactivateChainResponse, error)
func (Keeper) InitializeSwap ¶
func (k Keeper) InitializeSwap(goCtx context.Context, msg *types.MsgInitializeSwap) (*types.MsgInitializeSwapResponse, error)
func (Keeper) Pool ¶
func (k Keeper) Pool(c context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error)
func (Keeper) RedeemSwap ¶
func (k Keeper) RedeemSwap(goCtx context.Context, msg *types.MsgRedeemSwap) (*types.MsgRedeemSwapResponse, error)
func (Keeper) Swap ¶
func (k Keeper) Swap(c context.Context, req *types.QuerySwapRequest) (*types.QuerySwapResponse, error)
func (Keeper) UnlockFunds ¶
Click to show internal directories.
Click to hide internal directories.