Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- 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 ibctypes.Order, connectionHops []string, ...) error
- func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capability.Capability, name string) error
- func (k Keeper) ExportEgresses(ctx sdk.Context) []types.Egress
- 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) GetEgress(ctx sdk.Context, addr sdk.AccAddress) types.Egress
- func (k Keeper) GetKeys(ctx sdk.Context, path string) types.Keys
- func (k Keeper) GetMailbox(ctx sdk.Context, peer string) types.Storage
- func (k Keeper) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
- func (k Keeper) GetPeersIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetStorage(ctx sdk.Context, path string) types.Storage
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) PacketExecuted(ctx sdk.Context, packet channelexported.PacketI, acknowledgement []byte) error
- func (k Keeper) SendPacket(ctx sdk.Context, packet channelexported.PacketI) error
- func (k Keeper) SetEgress(ctx sdk.Context, egress types.Egress) error
- func (k Keeper) SetMailbox(ctx sdk.Context, peer string, mailbox types.Storage)
- func (k Keeper) SetStorage(ctx sdk.Context, path string, storage types.Storage)
- func (k Keeper) TimeoutExecuted(ctx sdk.Context, packet channelexported.PacketI) error
Constants ¶
const ( QueryEgress = "egress" QueryMailbox = "mailbox" QueryStorage = "storage" QueryKeys = "keys" )
query endpoints supported by the swingset Querier
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
type Keeper struct { // CallToController dispatches a message to the controlling process CallToController func(ctx sdk.Context, str string) (string, error) // 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, accountKeeper auth.AccountKeeper, bankKeeper bank.Keeper, scopedKeeper capability.ScopedKeeper, ) Keeper
NewKeeper creates a new IBC transfer Keeper instance
func (Keeper) BindPort ¶
BindPort defines a wrapper function for the port Keeper's function in order to expose it to the SwingSet IBC handler.
func (Keeper) ChanCloseInit ¶
ChanCloseInit defines a wrapper function for the channel Keeper's function in order to expose it to the SwingSet IBC handler.
func (Keeper) ChanOpenInit ¶
func (k Keeper) ChanOpenInit(ctx sdk.Context, order ibctypes.Order, connectionHops []string, portID, channelID, rPortID, rChannelID, version string, ) error
ChanOpenInit defines a wrapper function for the channel Keeper's function in order to expose it to the SwingSet IBC handler.
func (Keeper) ClaimCapability ¶
func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capability.Capability, name string) error
ClaimCapability allows the SwingSet module to claim a capability that IBC module passes to it
func (Keeper) ExportEgresses ¶
ExportEgresses fetches all egresses
func (Keeper) GetBalance ¶
func (Keeper) GetCapability ¶
func (k Keeper) GetCapability(ctx sdk.Context, name string) (*capability.Capability, bool)
func (Keeper) GetMailbox ¶
GetMailbox gets the entire mailbox struct for a peer
func (Keeper) GetNextSequenceSend ¶
GetNextSequenceSend defines a wrapper function for the channel Keeper's function in order to expose it to the SwingSet IBC handler.
func (Keeper) GetPeersIterator ¶
GetPeersIterator works over all peers in which the keys are the peers and the values are the mailbox
func (Keeper) GetStorage ¶
GetStorage gets generic storage
func (Keeper) PacketExecuted ¶
func (k Keeper) PacketExecuted(ctx sdk.Context, packet channelexported.PacketI, acknowledgement []byte) error
PacketExecuted defines a wrapper function for the channel Keeper's function in order to expose it to the SwingSet IBC handler.
func (Keeper) SendPacket ¶
SendPacket defines a wrapper function for the channel Keeper's function in order to expose it to the SwingSet IBC handler.
func (Keeper) SetMailbox ¶
SetMailbox sets the entire mailbox struct for a peer
func (Keeper) SetStorage ¶
SetStorage sets the entire generic storage for a path
func (Keeper) TimeoutExecuted ¶
TimeoutExecuted defines a wrapper function for the channel Keeper's function in order to expose it to the SwingSet IBC handler.