Documentation ¶
Index ¶
- func AllInvariants(k Keeper) sdk.Invariant
- func MissingVerifiedClientIDInvariant(k Keeper) sdk.Invariant
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- type Keeper
- func (k Keeper) AddVerifiedClientID(ctx sdk.Context, launchID uint64, clientID string)
- func (k Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) ClearVerifiedClientIDs(ctx sdk.Context, launchID uint64)
- func (k Keeper) GetAllLaunchIDFromChannelID(ctx sdk.Context) (list []types.LaunchIDFromChannelID)
- func (k Keeper) GetAllLaunchIDFromVerifiedClientID(ctx sdk.Context) (list []types.LaunchIDFromVerifiedClientID)
- func (k Keeper) GetAllMonitoringHistory(ctx sdk.Context) (list []types.MonitoringHistory)
- func (k Keeper) GetAllProviderClientID(ctx sdk.Context) (list []types.ProviderClientID)
- func (k Keeper) GetAllVerifiedClientID(ctx sdk.Context) (list []types.VerifiedClientID)
- func (k Keeper) GetLaunchIDFromChannelID(ctx sdk.Context, channelID string) (val types.LaunchIDFromChannelID, found bool)
- func (k Keeper) GetLaunchIDFromVerifiedClientID(ctx sdk.Context, clientID string) (val types.LaunchIDFromVerifiedClientID, found bool)
- func (k Keeper) GetMonitoringHistory(ctx sdk.Context, launchID uint64) (val types.MonitoringHistory, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPort(ctx sdk.Context) string
- func (k Keeper) GetProviderClientID(ctx sdk.Context, launchID uint64) (val types.ProviderClientID, found bool)
- func (k Keeper) GetVerifiedClientID(ctx sdk.Context, launchID uint64) (val types.VerifiedClientID, found bool)
- func (k Keeper) IsBound(ctx sdk.Context, portID string) bool
- func (k Keeper) LaunchIDFromChannelID(c context.Context, req *types.QueryGetLaunchIDFromChannelIDRequest) (*types.QueryGetLaunchIDFromChannelIDResponse, error)
- func (k Keeper) LaunchIDFromChannelIDAll(c context.Context, req *types.QueryAllLaunchIDFromChannelIDRequest) (*types.QueryAllLaunchIDFromChannelIDResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MonitoringHistory(c context.Context, req *types.QueryGetMonitoringHistoryRequest) (*types.QueryGetMonitoringHistoryResponse, error)
- func (k Keeper) OnAcknowledgementMonitoringPacket(_ sdk.Context, _ channeltypes.Packet, _ spntypes.MonitoringPacket, ...) error
- func (k Keeper) OnRecvMonitoringPacket(ctx sdk.Context, packet channeltypes.Packet, data spntypes.MonitoringPacket) (packetAck spntypes.MonitoringPacketAck, err error)
- func (k Keeper) OnTimeoutMonitoringPacket(_ sdk.Context, _ channeltypes.Packet, _ spntypes.MonitoringPacket) error
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ProviderClientID(c context.Context, req *types.QueryGetProviderClientIDRequest) (*types.QueryGetProviderClientIDResponse, error)
- func (k Keeper) ProviderClientIDAll(c context.Context, req *types.QueryAllProviderClientIDRequest) (*types.QueryAllProviderClientIDResponse, error)
- func (k Keeper) RegisterProviderClientIDFromChannelID(ctx sdk.Context, channelID string) error
- func (k Keeper) SetLaunchIDFromChannelID(ctx sdk.Context, launchIDFromChannelID types.LaunchIDFromChannelID)
- func (k Keeper) SetLaunchIDFromVerifiedClientID(ctx sdk.Context, ...)
- func (k Keeper) SetMonitoringHistory(ctx sdk.Context, monitoringHistory types.MonitoringHistory)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPort(ctx sdk.Context, portID string)
- func (k Keeper) SetProviderClientID(ctx sdk.Context, providerClientID types.ProviderClientID)
- func (k Keeper) SetVerifiedClientID(ctx sdk.Context, verifiedClientID types.VerifiedClientID)
- func (k Keeper) VerifiedClientIds(goCtx context.Context, req *types.QueryGetVerifiedClientIdsRequest) (*types.QueryGetVerifiedClientIdsResponse, error)
- func (k Keeper) VerifyClientIDFromConnID(ctx sdk.Context, connID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllInvariants ¶
AllInvariants runs all invariants of the module.
func MissingVerifiedClientIDInvariant ¶
MissingVerifiedClientIDInvariant checks if any of the clientIDs in `VerifiedClientID` does not have a corresponding entry in `LaunchIDFromVerifiedClientID`
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
RegisterInvariants registers all module invariants
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, clientKeeper types.ClientKeeper, connectionKeeper types.ConnectionKeeper, channelKeeper types.ChannelKeeper, portKeeper types.PortKeeper, scopedKeeper capabilitykeeper.ScopedKeeper, launchKeeper types.LaunchKeeper, rewardKeeper types.RewardKeeper, ) *Keeper
func (Keeper) AddVerifiedClientID ¶
AddVerifiedClientID add a specific verifiedClientID without duplication in the store from its launch id
func (Keeper) BindPort ¶
BindPort defines a wrapper function for the ort Keeper's function in order to expose it to module's InitGenesis function
func (Keeper) ClaimCapability ¶
func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
ClaimCapability allows the transfer module that can claim a capability that IBC module passes to it
func (Keeper) ClearVerifiedClientIDs ¶
ClearVerifiedClientIDs removes a set of verifiedClientID in the store from its launch ID
func (Keeper) GetAllLaunchIDFromChannelID ¶
func (k Keeper) GetAllLaunchIDFromChannelID(ctx sdk.Context) (list []types.LaunchIDFromChannelID)
GetAllLaunchIDFromChannelID returns all launchIDFromChannelID
func (Keeper) GetAllLaunchIDFromVerifiedClientID ¶
func (k Keeper) GetAllLaunchIDFromVerifiedClientID(ctx sdk.Context) (list []types.LaunchIDFromVerifiedClientID)
GetAllLaunchIDFromVerifiedClientID returns all launchIDFromVerifiedClientID
func (Keeper) GetAllMonitoringHistory ¶
func (k Keeper) GetAllMonitoringHistory(ctx sdk.Context) (list []types.MonitoringHistory)
GetAllMonitoringHistory returns all monitoringHistory
func (Keeper) GetAllProviderClientID ¶
func (k Keeper) GetAllProviderClientID(ctx sdk.Context) (list []types.ProviderClientID)
GetAllProviderClientID returns all providerClientID
func (Keeper) GetAllVerifiedClientID ¶
func (k Keeper) GetAllVerifiedClientID(ctx sdk.Context) (list []types.VerifiedClientID)
GetAllVerifiedClientID returns all verifiedClientID
func (Keeper) GetLaunchIDFromChannelID ¶
func (k Keeper) GetLaunchIDFromChannelID( ctx sdk.Context, channelID string, ) (val types.LaunchIDFromChannelID, found bool)
GetLaunchIDFromChannelID returns a launchIDFromChannelID from its index
func (Keeper) GetLaunchIDFromVerifiedClientID ¶
func (k Keeper) GetLaunchIDFromVerifiedClientID( ctx sdk.Context, clientID string, ) (val types.LaunchIDFromVerifiedClientID, found bool)
GetLaunchIDFromVerifiedClientID returns a launchIDFromVerifiedClientID from its index
func (Keeper) GetMonitoringHistory ¶
func (k Keeper) GetMonitoringHistory( ctx sdk.Context, launchID uint64, ) (val types.MonitoringHistory, found bool)
GetMonitoringHistory returns a monitoringHistory from its index
func (Keeper) GetProviderClientID ¶
func (k Keeper) GetProviderClientID(ctx sdk.Context, launchID uint64) (val types.ProviderClientID, found bool)
GetProviderClientID returns a providerClientID from its index
func (Keeper) GetVerifiedClientID ¶
func (k Keeper) GetVerifiedClientID( ctx sdk.Context, launchID uint64, ) (val types.VerifiedClientID, found bool)
GetVerifiedClientID returns a verifiedClientID from its launch id
func (Keeper) LaunchIDFromChannelID ¶
func (k Keeper) LaunchIDFromChannelID(c context.Context, req *types.QueryGetLaunchIDFromChannelIDRequest) (*types.QueryGetLaunchIDFromChannelIDResponse, error)
func (Keeper) LaunchIDFromChannelIDAll ¶
func (k Keeper) LaunchIDFromChannelIDAll(c context.Context, req *types.QueryAllLaunchIDFromChannelIDRequest) (*types.QueryAllLaunchIDFromChannelIDResponse, error)
func (Keeper) MonitoringHistory ¶
func (k Keeper) MonitoringHistory(c context.Context, req *types.QueryGetMonitoringHistoryRequest) (*types.QueryGetMonitoringHistoryResponse, error)
func (Keeper) OnAcknowledgementMonitoringPacket ¶
func (k Keeper) OnAcknowledgementMonitoringPacket( _ sdk.Context, _ channeltypes.Packet, _ spntypes.MonitoringPacket, _ channeltypes.Acknowledgement, ) error
OnAcknowledgementMonitoringPacket responds to the the success or failure of a packet acknowledgement written on the receiving chain.
func (Keeper) OnRecvMonitoringPacket ¶
func (k Keeper) OnRecvMonitoringPacket( ctx sdk.Context, packet channeltypes.Packet, data spntypes.MonitoringPacket, ) (packetAck spntypes.MonitoringPacketAck, err error)
OnRecvMonitoringPacket processes packet reception
func (Keeper) OnTimeoutMonitoringPacket ¶
func (k Keeper) OnTimeoutMonitoringPacket( _ sdk.Context, _ channeltypes.Packet, _ spntypes.MonitoringPacket, ) error
OnTimeoutMonitoringPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ProviderClientID ¶
func (k Keeper) ProviderClientID(c context.Context, req *types.QueryGetProviderClientIDRequest) (*types.QueryGetProviderClientIDResponse, error)
func (Keeper) ProviderClientIDAll ¶
func (k Keeper) ProviderClientIDAll(c context.Context, req *types.QueryAllProviderClientIDRequest) (*types.QueryAllProviderClientIDResponse, error)
func (Keeper) RegisterProviderClientIDFromChannelID ¶
RegisterProviderClientIDFromChannelID registers the verified client ID for the provider this operation should be performed at OnChanOpenAck
func (Keeper) SetLaunchIDFromChannelID ¶
func (k Keeper) SetLaunchIDFromChannelID(ctx sdk.Context, launchIDFromChannelID types.LaunchIDFromChannelID)
SetLaunchIDFromChannelID set a specific launchIDFromChannelID in the store from its index
func (Keeper) SetLaunchIDFromVerifiedClientID ¶
func (k Keeper) SetLaunchIDFromVerifiedClientID(ctx sdk.Context, launchIDFromVerifiedClientID types.LaunchIDFromVerifiedClientID)
SetLaunchIDFromVerifiedClientID set a specific launchIDFromVerifiedClientID in the store from its index
func (Keeper) SetMonitoringHistory ¶
func (k Keeper) SetMonitoringHistory(ctx sdk.Context, monitoringHistory types.MonitoringHistory)
SetMonitoringHistory set a specific monitoringHistory in the store from its index
func (Keeper) SetProviderClientID ¶
func (k Keeper) SetProviderClientID(ctx sdk.Context, providerClientID types.ProviderClientID)
SetProviderClientID set a specific providerClientID in the store from its index
func (Keeper) SetVerifiedClientID ¶
func (k Keeper) SetVerifiedClientID(ctx sdk.Context, verifiedClientID types.VerifiedClientID)
SetVerifiedClientID set a specific verifiedClientID in the store from its launch id
func (Keeper) VerifiedClientIds ¶
func (k Keeper) VerifiedClientIds(goCtx context.Context, req *types.QueryGetVerifiedClientIdsRequest) (*types.QueryGetVerifiedClientIdsResponse, error)
func (Keeper) VerifyClientIDFromConnID ¶ added in v0.3.0
VerifyClientIDFromConnID verifies if the client ID associated with the provided connection ID is a verified client ID and if no connection is yet established with the provider chain this operation should be performed at OnChanOpenInit handshake phase
Source Files ¶
- grpc.go
- grpc_launch_id_from_channel_id.go
- grpc_monitoring_history.go
- grpc_params.go
- grpc_provider_client_id.go
- grpc_verified_client_ids.go
- handshake.go
- invariants.go
- keeper.go
- launch_id_from_channel_id.go
- launch_id_from_verified_client_id.go
- monitoring_history.go
- monitoring_packet.go
- msg.go
- msg_create_client.go
- params.go
- provider_client_id.go
- verified_client_id.go