keeper

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllInvariants

func AllInvariants(k Keeper) sdk.Invariant

AllInvariants runs all invariants of the module.

func MissingVerifiedClientIDInvariant

func MissingVerifiedClientIDInvariant(k Keeper) sdk.Invariant

MissingVerifiedClientIDInvariant checks if any of the clientIDs in `VerifiedClientID` does not have a corresponding entry in `LaunchIDFromVerifiedClientID`

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func (k Keeper) AddVerifiedClientID(ctx sdk.Context, launchID uint64, clientID string)

AddVerifiedClientID add a specific verifiedClientID without duplication in the store from its launch id

func (Keeper) BindPort

func (k Keeper) BindPort(ctx sdk.Context, portID string) error

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

func (k Keeper) ClearVerifiedClientIDs(ctx sdk.Context, launchID uint64)

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) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetPort

func (k Keeper) GetPort(ctx sdk.Context) string

GetPort returns the portID for the module. Used in ExportGenesis

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) IsBound

func (k Keeper) IsBound(ctx sdk.Context, portID string) bool

IsBound checks if the module is already bound to the desired port

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

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 (Keeper) RegisterProviderClientIDFromChannelID

func (k Keeper) RegisterProviderClientIDFromChannelID(ctx sdk.Context, channelID string) error

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) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetPort

func (k Keeper) SetPort(ctx sdk.Context, portID string)

SetPort sets the portID for the module. Used in InitGenesis

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) VerifyClientIDFromConnID added in v0.3.0

func (k Keeper) VerifyClientIDFromConnID(ctx sdk.Context, connID string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL