keeper

package
v1.7.0-browser Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkable added in v1.6.7

type Checkable interface {
	GetIbcEnabled(ctx sdk.Context) bool
}

type FacadedKeeper added in v1.6.7

type FacadedKeeper struct {
	*common.SelectorStrategy
	V2Keeper *Keeper
}

func NewFacadedKeeper added in v1.6.7

func NewFacadedKeeper(v2Keeper *Keeper) *FacadedKeeper

func (*FacadedKeeper) Acknowledgement added in v1.6.7

func (*FacadedKeeper) Channel added in v1.6.7

func (*FacadedKeeper) ChannelClientState added in v1.6.7

func (*FacadedKeeper) ChannelCloseConfirm added in v1.6.7

func (*FacadedKeeper) ChannelCloseInit added in v1.6.7

func (*FacadedKeeper) ChannelConsensusState added in v1.6.7

func (*FacadedKeeper) ChannelOpenAck added in v1.6.7

func (*FacadedKeeper) ChannelOpenConfirm added in v1.6.7

func (*FacadedKeeper) ChannelOpenInit added in v1.6.7

func (*FacadedKeeper) ChannelOpenTry added in v1.6.7

func (*FacadedKeeper) Channels added in v1.6.7

func (*FacadedKeeper) ConnectionChannels added in v1.6.7

func (*FacadedKeeper) ConnectionOpenAck added in v1.6.7

func (*FacadedKeeper) ConnectionOpenConfirm added in v1.6.7

func (*FacadedKeeper) ConnectionOpenInit added in v1.6.7

func (*FacadedKeeper) ConnectionOpenTry added in v1.6.7

func (*FacadedKeeper) CreateClient added in v1.6.7

func (*FacadedKeeper) GetIbcEnabled added in v1.6.7

func (f *FacadedKeeper) GetIbcEnabled(ctx sdk.Context) bool

func (*FacadedKeeper) GetPacketCommitment added in v1.6.7

func (f *FacadedKeeper) GetPacketCommitment(ctx sdk.Context, portID, channelID string, sequence uint64) []byte

func (*FacadedKeeper) GetPacketReceipt added in v1.6.7

func (f *FacadedKeeper) GetPacketReceipt(ctx sdk.Context, portID, channelID string, sequence uint64) (string, bool)

func (*FacadedKeeper) NextSequenceReceive added in v1.6.7

func (*FacadedKeeper) PacketAcknowledgement added in v1.6.7

func (*FacadedKeeper) PacketAcknowledgements added in v1.6.7

func (*FacadedKeeper) PacketCommitment added in v1.6.7

func (*FacadedKeeper) PacketCommitments added in v1.6.7

func (*FacadedKeeper) PacketReceipt added in v1.6.7

func (*FacadedKeeper) RecvPacket added in v1.6.7

func (*FacadedKeeper) RegisterKeeper added in v1.6.7

func (f *FacadedKeeper) RegisterKeeper(factories ...common.SelectorFactory)

func (*FacadedKeeper) SubmitMisbehaviour added in v1.6.7

func (*FacadedKeeper) Timeout added in v1.6.7

func (*FacadedKeeper) TimeoutOnClose added in v1.6.7

func (*FacadedKeeper) UnreceivedAcks added in v1.6.7

func (*FacadedKeeper) UnreceivedPackets added in v1.6.7

func (*FacadedKeeper) UpdateClient added in v1.6.7

func (*FacadedKeeper) UpgradeClient added in v1.6.7

type IBCServerKeeper added in v1.6.7

type IBCServerKeeper interface {
	channeltyeps.QueryServer
	channeltyeps.MsgServer
	clienttypes.MsgServer
	connectiontypes.MsgServer

	Checkable

	GetPacketReceipt(ctx sdk.Context, portID, channelID string, sequence uint64) (string, bool)
	GetPacketCommitment(ctx sdk.Context, portID, channelID string, sequence uint64) []byte
}

type Keeper

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

	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(
	proxy *codec.CodecProxy,
	key sdk.StoreKey, paramSpace paramtypes.Subspace,
	stakingKeeper clienttypes.StakingKeeper, upgradeKeeper clienttypes.UpgradeKeeper,
	scopedKeeper *capabilitykeeper.ScopedKeeper,
	registry types2.InterfaceRegistry,
) *Keeper

NewKeeper creates a new ibc Keeper

func (Keeper) Acknowledgement

Acknowledgement defines a rpc handler method for MsgAcknowledgement.

func (Keeper) AppVersion added in v1.5.4

AppVersion implements the IBC QueryServer interface

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.

func (Keeper) ChannelOpenConfirm

ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.

func (Keeper) ChannelOpenInit

ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.

func (Keeper) ChannelOpenTry

ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.

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.CodecProxy

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

Connections implements the IBC QueryServer interface

func (Keeper) ConsensusState

ConsensusState implements the IBC QueryServer interface

func (Keeper) ConsensusStateHeights added in v1.6.7

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

func (k Keeper) GetIbcEnabled(ctx sdk.Context) bool

GetIbcEnabled retrieves the ibc enabled boolean from the param store

func (Keeper) GetPacketCommitment added in v1.6.7

func (k Keeper) GetPacketCommitment(ctx sdk.Context, portID, channelID string, sequence uint64) []byte

func (Keeper) GetPacketReceipt added in v1.6.7

func (k Keeper) GetPacketReceipt(ctx sdk.Context, portID, channelID string, sequence uint64) (string, bool)

/

func (Keeper) GetParams

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

GetParams returns the total set of ibc parameters.

func (Keeper) NextSequenceReceive

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

RecvPacket defines a rpc handler method for MsgRecvPacket.

func (Keeper) SetParams

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

SetParams sets the total set of ibc parameters.

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.

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

UpdateClient defines a rpc handler method for MsgUpdateClient.

func (Keeper) UpgradeClient

UpgradeClient defines a rpc handler method for MsgUpgradeClient.

func (Keeper) UpgradedClientState added in v1.5.4

UpgradedClientState 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) Migrate1to2

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

Migrate1to2 migrates from version 1 to 2. This migration prunes: - migrates solo machine client state from protobuf definition v1 to v2 - prunes solo machine consensus states - prunes expired tendermint consensus states - adds ProcessedHeight and Iteration keys for unexpired tendermint consensus states

type V4Keeper added in v1.6.7

type V4Keeper struct {
	*Keeper
}

func NewV4Keeper added in v1.6.7

func NewV4Keeper(keeper *Keeper) *V4Keeper

func (V4Keeper) Acknowledgement added in v1.6.7

func (V4Keeper) ChannelOpenAck added in v1.6.7

func (V4Keeper) ChannelOpenConfirm added in v1.6.7

func (V4Keeper) ChannelOpenInit added in v1.6.7

func (V4Keeper) ChannelOpenTry added in v1.6.7

func (V4Keeper) ConnectionOpenAck added in v1.6.7

func (V4Keeper) ConnectionOpenTry added in v1.6.7

ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.

func (V4Keeper) RecvPacket added in v1.6.7

RecvPacket defines a rpc handler method for MsgRecvPacket.

func (V4Keeper) Timeout added in v1.6.7

func (V4Keeper) TimeoutOnClose added in v1.6.7

Jump to

Keyboard shortcuts

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