keeper

package
v9.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// implements gRPC QueryServer interface
	types.QueryServer

	ClientKeeper     clientkeeper.Keeper
	ConnectionKeeper connectionkeeper.Keeper
	ChannelKeeper    channelkeeper.Keeper
	PortKeeper       *portkeeper.Keeper
	Router           *porttypes.Router
	// contains filtered or unexported fields
}

Keeper defines each ICS keeper for IBC

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec, key storetypes.StoreKey, paramSpace types.ParamSubspace,
	stakingKeeper clienttypes.StakingKeeper, upgradeKeeper clienttypes.UpgradeKeeper,
	scopedKeeper capabilitykeeper.ScopedKeeper, authority string,
) *Keeper

NewKeeper creates a new ibc Keeper

func (Keeper) Acknowledgement

Acknowledgement defines a rpc handler method for MsgAcknowledgement.

func (Keeper) Channel

Channel implements the IBC QueryServer interface

func (Keeper) ChannelClientState

ChannelClientState implements the IBC QueryServer interface

func (Keeper) ChannelCloseConfirm

ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.

func (Keeper) ChannelCloseInit

ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.

func (Keeper) ChannelConsensusState

ChannelConsensusState implements the IBC QueryServer interface

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

ChannelParams implements the IBC QueryServer interface

func (Keeper) ChannelUpgradeAck

ChannelUpgradeAck defines a rpc handler method for MsgChannelUpgradeAck.

func (Keeper) ChannelUpgradeCancel

ChannelUpgradeCancel defines a rpc handler method for MsgChannelUpgradeCancel.

func (Keeper) ChannelUpgradeConfirm

ChannelUpgradeConfirm defines a rpc handler method for MsgChannelUpgradeConfirm.

func (Keeper) ChannelUpgradeInit

ChannelUpgradeInit defines a rpc handler method for MsgChannelUpgradeInit.

func (Keeper) ChannelUpgradeOpen

ChannelUpgradeOpen defines a rpc handler method for MsgChannelUpgradeOpen.

func (Keeper) ChannelUpgradeTimeout

ChannelUpgradeTimeout defines a rpc handler method for MsgChannelUpgradeTimeout.

func (Keeper) ChannelUpgradeTry

ChannelUpgradeTry defines a rpc handler method for MsgChannelUpgradeTry.

func (Keeper) Channels

Channels implements the IBC QueryServer interface

func (Keeper) ClientConnections

ClientConnections implements the IBC QueryServer interface

func (Keeper) ClientParams

ClientParams implements the IBC QueryServer interface

func (Keeper) ClientState

ClientState implements the IBC QueryServer interface

func (Keeper) ClientStates

ClientStates implements the IBC QueryServer interface

func (Keeper) ClientStatus

ClientStatus implements the IBC QueryServer interface

func (Keeper) Codec

func (k Keeper) Codec() codec.BinaryCodec

Codec returns the IBC module codec.

func (Keeper) Connection

Connection implements the IBC QueryServer interface

func (Keeper) ConnectionChannels

ConnectionChannels implements the IBC QueryServer interface

func (Keeper) ConnectionClientState

ConnectionClientState implements the IBC QueryServer interface

func (Keeper) ConnectionConsensusState

ConnectionConsensusState implements the IBC QueryServer interface

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

ConnectionParams implements the IBC QueryServer interface

func (Keeper) Connections

Connections implements the IBC QueryServer interface

func (Keeper) ConsensusState

ConsensusState implements the IBC QueryServer interface

func (Keeper) ConsensusStateHeights

ConsensusStateHeights implements the IBC QueryServer interface

func (Keeper) ConsensusStates

ConsensusStates implements the IBC QueryServer interface

func (Keeper) CreateClient

CreateClient defines a rpc handler method for MsgCreateClient.

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

NextSequenceReceive implements the IBC QueryServer interface

func (Keeper) NextSequenceSend

NextSequenceSend implements the IBC QueryServer interface

func (Keeper) PacketAcknowledgement

PacketAcknowledgement implements the IBC QueryServer interface

func (Keeper) PacketAcknowledgements

PacketAcknowledgements implements the IBC QueryServer interface

func (Keeper) PacketCommitment

PacketCommitment implements the IBC QueryServer interface

func (Keeper) PacketCommitments

PacketCommitments implements the IBC QueryServer interface

func (Keeper) PacketReceipt

PacketReceipt implements the IBC QueryServer interface

func (Keeper) PruneAcknowledgements

PruneAcknowledgements defines a rpc handler method for MsgPruneAcknowledgements.

func (Keeper) RecoverClient

RecoverClient defines a rpc handler method for MsgRecoverClient.

func (Keeper) RecvAggregatePacket added in v9.2.0

RecvAggregatePacket AggregatePacket defines a rpc handler method for AggregatePacket

func (Keeper) RecvPacket

RecvPacket defines a rpc handler method for MsgRecvPacket.

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

SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. Warning: DEPRECATED This handler is redudant 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) UnreceivedAcks

UnreceivedAcks implements the IBC QueryServer interface

func (Keeper) UnreceivedPackets

UnreceivedPackets implements the IBC QueryServer interface

func (Keeper) UpdateChannelParams

UpdateChannelParams defines a rpc handler method for MsgUpdateParams.

func (Keeper) UpdateClient

UpdateClient defines a rpc handler method for MsgUpdateClient.

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

Upgrade implements the IBC QueryServer interface

func (Keeper) UpgradeClient

UpgradeClient defines a rpc handler method for MsgUpgradeClient.

func (Keeper) UpgradeError

UpgradeError implements the IBC QueryServer interface

func (Keeper) UpgradedClientState

UpgradedClientState implements the IBC QueryServer interface

func (Keeper) UpgradedConsensusState

UpgradedConsensusState implements the IBC QueryServer interface

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator is a struct for handling in-place store migrations.

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate2to3

func (m Migrator) Migrate2to3(ctx sdk.Context) error

Migrate2to3 migrates from version 2 to 3. See 02-client keeper function Migrate2to3.

Jump to

Keyboard shortcuts

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