Documentation ¶
Index ¶
- func DeriveIntermediateSender(channel, originalSender, bech32Prefix string) (string, error)
- func GeneratePacketAckValue(packet channeltypes.Packet, contract string) ([]byte, error)
- func GetPacketAckKey(channel string, packetSequence uint64) []byte
- func GetPacketCallbackKey(channel string, packetSequence uint64) []byte
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewSuccessAckError(ctx sdk.Context, err error, errorContent []byte, errorContexts ...string) channeltypes.Acknowledgement
- type Keeper
- func (k Keeper) DeletePacketAckActor(ctx sdk.Context, channel string, packetSequence uint64)
- func (k Keeper) DeletePacketCallback(ctx sdk.Context, channel string, packetSequence uint64)
- func (k Keeper) EmitIBCAck(ctx sdk.Context, sender, channel string, packetSequence uint64) ([]byte, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetPacketAckActor(ctx sdk.Context, channel string, packetSequence uint64) (string, string)
- func (k Keeper) GetPacketCallback(ctx sdk.Context, channel string, packetSequence uint64) string
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) IsInAllowList(ctx sdk.Context, contract string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) StorePacketAckActor(ctx sdk.Context, packet channeltypes.Packet, contract string)
- func (k Keeper) StorePacketCallback(ctx sdk.Context, channel string, packetSequence uint64, contract string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveIntermediateSender ¶
DeriveIntermediateSender derives the sender address to be used when calling wasm hooks
func GeneratePacketAckValue ¶
func GeneratePacketAckValue(packet channeltypes.Packet, contract string) ([]byte, error)
func GetPacketAckKey ¶
func GetPacketCallbackKey ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewSuccessAckError ¶
func NewSuccessAckError(ctx sdk.Context, err error, errorContent []byte, errorContexts ...string) channeltypes.Acknowledgement
NewSuccessAckError creates a new success acknowledgement that represents an error. This is useful for notifying the sender that an error has occurred in a way that does not allow the received tokens to be reverted (which means they shouldn't be released by the sender's ics20 escrow)
Types ¶
type Keeper ¶
type Keeper struct { ContractKeeper *wasmkeeper.PermissionedKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( storeKey storetypes.StoreKey, paramSpace paramtypes.Subspace, channelKeeper types.ChannelKeeper, contractKeeper *wasmkeeper.PermissionedKeeper, ) Keeper
NewKeeper returns a new instance of the x/ibchooks keeper
func (Keeper) DeletePacketAckActor ¶
DeletePacketAckActor deletes the ack actor from storage once it has been used
func (Keeper) DeletePacketCallback ¶
DeletePacketCallback deletes the callback from storage once it has been processed
func (Keeper) EmitIBCAck ¶
func (k Keeper) EmitIBCAck(ctx sdk.Context, sender, channel string, packetSequence uint64) ([]byte, error)
EmitIBCAck emits an event that the IBC packet has been acknowledged
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) GetPacketAckActor ¶
func (k Keeper) GetPacketAckActor(ctx sdk.Context, channel string, packetSequence uint64) (string, string)
GetPacketAckActor returns the bech32 addr of the contract that is allowed to send an ack for the packet and the packet hash
func (Keeper) GetPacketCallback ¶
GetPacketCallback returns the bech32 addr of the contract that is expecting a callback from a packet
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
func (Keeper) IsInAllowList ¶
IsInAllowList checks the params to see if the contract is in the KeyAsyncAckAllowList param
func (Keeper) StorePacketAckActor ¶
StorePacketAckActor stores which contract is allowed to send an ack for the packet