Documentation ¶
Index ¶
- func GetTaskIDBytes(id uint64) []byte
- func GetTaskIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendTask(ctx sdk.Context, task types.Task) uint64
- func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
- func (k Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) GetAllTask(ctx sdk.Context) (list []types.Task)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPort(ctx sdk.Context) string
- func (k Keeper) GetTask(ctx sdk.Context, id uint64) (val types.Task, found bool)
- func (k Keeper) GetTaskCount(ctx sdk.Context) uint64
- func (k Keeper) IsBound(ctx sdk.Context, portID string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) OnAcknowledgementIbcTaskPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IbcTaskPacketData, ...) error
- func (k Keeper) OnRecvIbcTaskPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IbcTaskPacketData) (packetAck types.IbcTaskPacketAck, err error)
- func (k Keeper) OnTimeoutIbcTaskPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IbcTaskPacketData) error
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveTask(ctx sdk.Context, id uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPort(ctx sdk.Context, portID string)
- func (k Keeper) SetTask(ctx sdk.Context, task types.Task)
- func (k Keeper) SetTaskCount(ctx sdk.Context, count uint64)
- func (k Keeper) Task(goCtx context.Context, req *types.QueryGetTaskRequest) (*types.QueryGetTaskResponse, error)
- func (k Keeper) TaskAll(goCtx context.Context, req *types.QueryAllTaskRequest) (*types.QueryAllTaskResponse, error)
- func (k Keeper) TransmitIbcTaskPacket(ctx sdk.Context, packetData types.IbcTaskPacketData, ...) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTaskIDBytes ¶
GetTaskIDBytes returns the byte representation of the ID
func GetTaskIDFromBytes ¶
GetTaskIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
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, memKey storetypes.StoreKey, ps paramtypes.Subspace, channelKeeper types.ChannelKeeper, portKeeper types.PortKeeper, scopedKeeper exported.ScopedKeeper, ) *Keeper
func (Keeper) AppendTask ¶
AppendTask appends a task in the store with a new id and update the count
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 ¶
BindPort defines a wrapper function for the port Keeper's function in order to expose it to module's InitGenesis function
func (Keeper) ChanCloseInit ¶
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) GetAllTask ¶
GetAllTask returns all task
func (Keeper) GetTaskCount ¶
GetTaskCount get the total number of task
func (Keeper) OnAcknowledgementIbcTaskPacket ¶
func (k Keeper) OnAcknowledgementIbcTaskPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IbcTaskPacketData, ack channeltypes.Acknowledgement) error
OnAcknowledgementIbcTaskPacket responds to the the success or failure of a packet acknowledgement written on the receiving chain.
func (Keeper) OnRecvIbcTaskPacket ¶
func (k Keeper) OnRecvIbcTaskPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IbcTaskPacketData) (packetAck types.IbcTaskPacketAck, err error)
OnRecvIbcTaskPacket processes packet reception
func (Keeper) OnTimeoutIbcTaskPacket ¶
func (k Keeper) OnTimeoutIbcTaskPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IbcTaskPacketData) error
OnTimeoutIbcTaskPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveTask ¶
RemoveTask removes a task from the store
func (Keeper) SetTaskCount ¶
SetTaskCount set the total number of task
func (Keeper) Task ¶
func (k Keeper) Task(goCtx context.Context, req *types.QueryGetTaskRequest) (*types.QueryGetTaskResponse, error)
func (Keeper) TaskAll ¶
func (k Keeper) TaskAll(goCtx context.Context, req *types.QueryAllTaskRequest) (*types.QueryAllTaskResponse, error)
func (Keeper) TransmitIbcTaskPacket ¶
func (k Keeper) TransmitIbcTaskPacket( ctx sdk.Context, packetData types.IbcTaskPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, ) (uint64, error)
TransmitIbcTaskPacket transmits the packet over IBC with the specified source port and source channel