keeper

package
v10.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 25 Imported by: 62

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	ClientKeeper     *clientkeeper.Keeper
	ClientV2Keeper   *clientv2keeper.Keeper
	ConnectionKeeper *connectionkeeper.Keeper
	ChannelKeeper    *channelkeeper.Keeper
	ChannelKeeperV2  *channelkeeperv2.Keeper
	PortKeeper       *portkeeper.Keeper
	// contains filtered or unexported fields
}

Keeper defines each ICS keeper for IBC

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec, storeService corestore.KVStoreService, paramSpace types.ParamSubspace,
	upgradeKeeper clienttypes.UpgradeKeeper, authority string,
) *Keeper

NewKeeper creates a new ibc Keeper

func (*Keeper) Acknowledgement

Acknowledgement defines a rpc handler method for MsgAcknowledgement.

func (*Keeper) ChannelCloseConfirm

ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.

func (*Keeper) ChannelCloseInit

ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.

func (*Keeper) ChannelOpenAck

ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. ChannelOpenAck will perform 04-channel checks, route to the application callback, and write an OpenAck channel into state upon successful execution.

func (*Keeper) ChannelOpenConfirm

ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. ChannelOpenConfirm will perform 04-channel checks, route to the application callback, and write an OpenConfirm channel into state upon successful execution.

func (*Keeper) ChannelOpenInit

ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. ChannelOpenInit will perform 04-channel checks, route to the application callback, and write an OpenInit channel into state upon successful execution.

func (*Keeper) ChannelOpenTry

ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. ChannelOpenTry will perform 04-channel checks, route to the application callback, and write an OpenTry channel into state upon successful execution.

func (*Keeper) Codec

func (k *Keeper) Codec() codec.BinaryCodec

Codec returns the IBC module codec.

func (*Keeper) ConnectionOpenAck

ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.

func (*Keeper) ConnectionOpenConfirm

ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm.

func (*Keeper) ConnectionOpenInit

ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.

func (*Keeper) ConnectionOpenTry

ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.

func (*Keeper) CreateClient

CreateClient defines a rpc handler method for MsgCreateClient. NOTE: The raw bytes of the concrete types encoded into protobuf.Any is passed to the client keeper. The 02-client handler will route to the appropriate light client module based on client type and it is the responsibility of the light client module to unmarshal and interpret the proto encoded bytes. Backwards compatibility with older versions of ibc-go is maintained through the light client module reconstructing and encoding the expected concrete type to the protobuf.Any for proof verification.

func (*Keeper) DeleteClientCreator added in v10.1.0

DeleteClientCreator defines an rpc handler method for MsgDeleteClientCreator for the 02-client v1 submodule.

func (*Keeper) GetAuthority

func (k *Keeper) GetAuthority() string

GetAuthority returns the ibc module's authority.

func (*Keeper) IBCSoftwareUpgrade

IBCSoftwareUpgrade defines a rpc handler method for MsgIBCSoftwareUpgrade.

func (*Keeper) RecoverClient

RecoverClient defines a rpc handler method for MsgRecoverClient.

func (*Keeper) RecvPacket

RecvPacket defines a rpc handler method for MsgRecvPacket.

func (*Keeper) RegisterCounterparty

RegisterCounterparty will register the IBC v2 counterparty info for the given client id it must be called by the same relayer that called CreateClient

func (*Keeper) SetRouter

func (k *Keeper) SetRouter(rtr *porttypes.Router)

SetRouter sets the Router in IBC Keeper and seals it. The method panics if there is an existing router that's already sealed.

func (*Keeper) SetRouterV2

func (k *Keeper) SetRouterV2(rtr *api.Router)

SetRouterV2 sets the v2 router for the IBC Keeper.

func (*Keeper) SubmitMisbehaviour

SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. Warning: DEPRECATED This handler is redundant as `MsgUpdateClient` is now capable of handling both a Header and a Misbehaviour

func (*Keeper) Timeout

Timeout defines a rpc handler method for MsgTimeout.

func (*Keeper) TimeoutOnClose

TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.

func (*Keeper) UpdateClient

UpdateClient defines a rpc handler method for MsgUpdateClient.

func (*Keeper) UpdateClientConfig added in v10.1.0

UpdateClientConfig defines an rpc handler method for MsgUpdateClientConfig for the 02-client v2 submodule.

func (*Keeper) UpdateClientParams

UpdateClientParams defines a rpc handler method for MsgUpdateParams.

func (*Keeper) UpdateConnectionParams

UpdateConnectionParams defines a rpc handler method for MsgUpdateParams for the 03-connection submodule.

func (*Keeper) UpgradeClient

UpgradeClient defines a rpc handler method for MsgUpgradeClient. NOTE: The raw bytes of the concrete types encoded into protobuf.Any is passed to the client keeper. The 02-client handler will route to the appropriate light client module based on client identifier and it is the responsibility of the light client module to unmarshal and interpret the proto encoded bytes. Backwards compatibility with older versions of ibc-go is maintained through the light client module reconstructing and encoding the expected concrete type to the protobuf.Any for proof verification.

type PacketHandler

type PacketHandler interface {
	RecvPacket(
		ctx sdk.Context,
		packet channeltypes.Packet,
		proof []byte,
		proofHeight exported.Height) (string, error)

	WriteAcknowledgement(
		ctx sdk.Context,
		packet exported.PacketI,
		acknowledgement exported.Acknowledgement,
	) error

	AcknowledgePacket(
		ctx sdk.Context,
		packet channeltypes.Packet,
		acknowledgement []byte,
		proof []byte,
		proofHeight exported.Height,
	) (string, error)

	TimeoutPacket(
		ctx sdk.Context,
		packet channeltypes.Packet,
		proof []byte,
		proofHeight exported.Height,
		nextSequenceRecv uint64,
	) (string, error)
}

Jump to

Keyboard shortcuts

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