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
- 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) SetParam(ctx sdk.Context, key []byte, value interface{})
- 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 ¶ added in v0.0.5
DeriveIntermediateSender derives the sender address to be used when calling wasm hooks
func GeneratePacketAckValue ¶ added in v0.0.8
func GeneratePacketAckValue(packet channeltypes.Packet, contract string) ([]byte, error)
func GetPacketAckKey ¶ added in v0.0.8
func GetPacketCallbackKey ¶ added in v0.0.8
func NewMsgServerImpl ¶ added in v0.0.8
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) GetPacketAckActor ¶ added in v0.0.8
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) GetParams ¶ added in v0.0.8
GetParams returns the total set of the module's parameters.
func (Keeper) InitGenesis ¶ added in v0.0.8
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
func (Keeper) IsInAllowList ¶ added in v0.0.8
IsInAllowList checks the params to see if the contract is in the KeyAsyncAckAllowList param
func (Keeper) SetParam ¶ added in v0.0.10
SetParam sets a specific ibc-hooks module's parameter with the provided parameter.
func (Keeper) SetParams ¶ added in v0.0.8
SetParams sets the module's parameters with the provided parameters.
func (Keeper) StorePacketAckActor ¶ added in v0.0.8
StorePacketAckActor stores which contract is allowed to send an ack for the packet