keeper

package
v4.0.0-...-f2bff69 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	ics4Wrapper types.ICS4Wrapper,
	channelKeeper types.ChannelKeeper,
	portKeeper types.PortKeeper,
	scopedKeeper capabilitykeeper.ScopedKeeper,
	bankKeeper types.BankKeeper,

) *Keeper

func (Keeper) AuthenticateCapability

func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool

AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function

func (Keeper) BindPort

func (k Keeper) BindPort(ctx sdk.Context, portID string) error

BindPort defines a wrapper function for the port Keeper's function in order to expose it to module's InitGenesis function

func (Keeper) ChanCloseInit

func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error

ChanCloseInit defines a wrapper function for the channel Keeper's function.

func (Keeper) ClaimCapability

func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error

ClaimCapability allows the IBC app module to claim a capability that core IBC passes to it

func (Keeper) Deposit

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis exports ibc-transfer module's portID and denom trace info into its genesis state.

func (Keeper) GetAllInterchainLiquidityPool

func (k Keeper) GetAllInterchainLiquidityPool(ctx sdk.Context) (list []types.InterchainLiquidityPool)

GetAllInterchainLiquidityPool returns all interchainLiquidityPool

func (Keeper) GetAllInterchainMarketMaker

func (k Keeper) GetAllInterchainMarketMaker(ctx sdk.Context) (list []types.InterchainMarketMaker)

GetAllInterchainMarketMaker returns all interchainMarketMaker

func (Keeper) GetBalance

func (k Keeper) GetBalance(ctx sdk.Context, sender sdk.AccAddress) sdk.Coin

func (Keeper) GetInterchainLiquidityPool

func (k Keeper) GetInterchainLiquidityPool(
	ctx sdk.Context,
	poolId string,

) (val types.InterchainLiquidityPool, found bool)

GetInterchainLiquidityPool returns a interchainLiquidityPool from its index

func (Keeper) GetInterchainMarketMaker

func (k Keeper) GetInterchainMarketMaker(
	ctx sdk.Context,
	poolId string,

) (val types.InterchainMarketMaker, found bool)

GetInterchainMarketMaker returns a interchainMarketMaker from its index

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetPort

func (k Keeper) GetPort(ctx sdk.Context) string

GetPort returns the portID for the IBC app module. Used in ExportGenesis

func (Keeper) GetSwapEnabled

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

GetSwapEnabled retrieves the send enabled boolean from the paramstore

func (Keeper) GetSwapMaxFeeRate

func (k Keeper) GetSwapMaxFeeRate(ctx sdk.Context) uint32

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)

InitGenesis initializes the ibc-transfer state and binds to PortID.

func (Keeper) IsBound

func (k Keeper) IsBound(ctx sdk.Context, portID string) bool

IsBound checks if the IBC app module is already bound to the desired port

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) OnAcknowledgementPacket

func (k Keeper) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, data *types.IBCSwapDataPacket, ack channeltypes.Acknowledgement) error

func (Keeper) OnCreatePoolAcknowledged

func (k Keeper) OnCreatePoolAcknowledged(ctx sdk.Context, msg *types.MsgCreatePoolRequest)

func (Keeper) OnCreatePoolReceived

func (k Keeper) OnCreatePoolReceived(ctx sdk.Context, msg *types.MsgCreatePoolRequest, destPort, destChannel string) (*string, error)

func (Keeper) OnDepositReceived

func (k Keeper) OnDepositReceived(ctx sdk.Context, msg *types.MsgDepositRequest) (*types.MsgDepositResponse, error)

func (Keeper) OnRecvPacket

func (k Keeper) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IBCSwapDataPacket) (interface{}, error)

func (Keeper) OnSingleDepositAcknowledged

func (k Keeper) OnSingleDepositAcknowledged(ctx sdk.Context, req *types.MsgDepositRequest, res *types.MsgDepositResponse) error

func (Keeper) OnSwapAcknowledged

func (k Keeper) OnSwapAcknowledged(ctx sdk.Context, req *types.MsgSwapRequest, res *types.MsgSwapResponse) error

func (Keeper) OnSwapReceived

func (k Keeper) OnSwapReceived(ctx sdk.Context, msg *types.MsgSwapRequest) (*types.MsgSwapResponse, error)

func (Keeper) OnTimeoutPacket

func (k Keeper) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, data *types.IBCSwapDataPacket) error

func (Keeper) OnWithdrawAcknowledged

func (k Keeper) OnWithdrawAcknowledged(ctx sdk.Context, req *types.MsgWithdrawRequest, res *types.MsgWithdrawResponse) error

func (Keeper) OndWithdrawReceive

func (k Keeper) OndWithdrawReceive(ctx sdk.Context, msg *types.MsgWithdrawRequest) (*types.MsgWithdrawResponse, error)

func (Keeper) Params

func (Keeper) RemoveInterchainLiquidityPool

func (k Keeper) RemoveInterchainLiquidityPool(
	ctx sdk.Context,
	poolId string,

)

RemoveInterchainLiquidityPool removes a interchainLiquidityPool from the store

func (Keeper) RemoveInterchainMarketMaker

func (k Keeper) RemoveInterchainMarketMaker(
	ctx sdk.Context,
	poolId string,

)

RemoveInterchainMarketMaker removes a interchainMarketMaker from the store

func (Keeper) SendIBCSwapPacket

func (k Keeper) SendIBCSwapPacket(
	ctx sdk.Context,
	sourcePort,
	sourceChannel string,
	timeoutHeight clienttypes.Height,
	timeoutTimestamp uint64,
	swapPacket types.IBCSwapDataPacket,
) error

func (Keeper) SetInterchainLiquidityPool

func (k Keeper) SetInterchainLiquidityPool(ctx sdk.Context, interchainLiquidityPool types.InterchainLiquidityPool)

SetInterchainLiquidityPool set a specific interchainLiquidityPool in the store from its index

func (Keeper) SetInterchainMarketMaker

func (k Keeper) SetInterchainMarketMaker(ctx sdk.Context, interchainMarketMaker types.InterchainMarketMaker)

SetInterchainMarketMaker set a specific interchainMarketMaker in the store from its index

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetPort

func (k Keeper) SetPort(ctx sdk.Context, portID string)

SetPort sets the portID for the IBC app module. Used in InitGenesis

func (Keeper) SingleDepositTest

func (k Keeper) SingleDepositTest(ctx sdk.Context, sender sdk.AccAddress) sdk.Coin

Jump to

Keyboard shortcuts

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