Documentation
¶
Index ¶
- type Keeper
- func (k Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (k Keeper) ChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) error
- func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capability.Capability, name string) error
- func (k Keeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
- func (k Keeper) GetCapability(ctx sdk.Context, name string) (*capability.Capability, bool)
- func (k Keeper) GetChannel(ctx sdk.Context, portID, channelID string) (channeltypes.Channel, bool)
- func (k Keeper) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
- func (k Keeper) SendPacket(ctx sdk.Context, packet ibcexported.PacketI) error
- func (k Keeper) TimeoutExecuted(ctx sdk.Context, packet ibcexported.PacketI) error
- func (k Keeper) WriteAcknowledgement(ctx sdk.Context, packet ibcexported.PacketI, acknowledgement []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct { PushAction vm.ActionPusher // 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.Codec, key sdk.StoreKey, channelKeeper types.ChannelKeeper, portKeeper types.PortKeeper, bankKeeper bankkeeper.Keeper, scopedKeeper capabilitykeeper.ScopedKeeper, pushAction vm.ActionPusher, ) Keeper
NewKeeper creates a new dIBC Keeper instance
func (Keeper) BindPort ¶
BindPort defines a wrapper function for the port Keeper's function in order to expose it to the vibc IBC handler.
func (Keeper) ChanCloseInit ¶
ChanCloseInit defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.
func (Keeper) ChanOpenInit ¶
func (k Keeper) ChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, rPortID, version string, ) error
ChanOpenInit defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.
func (Keeper) ClaimCapability ¶
func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capability.Capability, name string) error
ClaimCapability allows the vibc module to claim a capability that IBC module passes to it
func (Keeper) GetBalance ¶
func (Keeper) GetCapability ¶
func (k Keeper) GetCapability(ctx sdk.Context, name string) (*capability.Capability, bool)
func (Keeper) GetChannel ¶
GetChannel defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.
func (Keeper) GetNextSequenceSend ¶
GetNextSequenceSend defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.
func (Keeper) SendPacket ¶
SendPacket defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.
func (Keeper) TimeoutExecuted ¶
TimeoutExecuted defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.
func (Keeper) WriteAcknowledgement ¶
func (k Keeper) WriteAcknowledgement(ctx sdk.Context, packet ibcexported.PacketI, acknowledgement []byte) error
WriteAcknowledgement defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.