Documentation ¶
Index ¶
- type ClientKeeper
- type Keeper
- func (k Keeper) AcknowledgePacket(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) ChanOpenAck(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) ChanOpenConfirm(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) ChanOpenFinalize(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) ChanOpenTry(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) ClientState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) ConnOpenAck(ctx sdk.Context, connectionID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) ConnOpenConfirm(ctx sdk.Context, connectionID string, upstreamClientID string, ...) error
- func (k Keeper) ConnOpenFinalize(ctx sdk.Context, connectionID string, upstreamClientID string, ...) error
- func (k Keeper) ConnOpenTry(ctx sdk.Context, connectionID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetIBCCommitmentPrefix() exported.Prefix
- func (k Keeper) GetProxyChannel(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) (channeltypes.Channel, bool)
- func (k Keeper) GetProxyClientConsensusState(ctx sdk.Context, upstreamPrefix exported.Prefix, ...) (exported.ConsensusState, bool)
- func (k Keeper) GetProxyClientState(ctx sdk.Context, upstreamPrefix exported.Prefix, ...) (exported.ClientState, bool)
- func (k Keeper) GetProxyCommitmentPrefix() exported.Prefix
- func (k Keeper) GetProxyConnection(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) (connectiontypes.ConnectionEnd, bool)
- func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
- func (k *Keeper) ProxyAcknowledgePacket(goCtx context.Context, msg *types.MsgProxyAcknowledgePacket) (*types.MsgProxyAcknowledgePacketResponse, error)
- func (k *Keeper) ProxyChannelOpenAck(goCtx context.Context, msg *types.MsgProxyChannelOpenAck) (*types.MsgProxyChannelOpenAckResponse, error)
- func (k *Keeper) ProxyChannelOpenConfirm(goCtx context.Context, msg *types.MsgProxyChannelOpenConfirm) (*types.MsgProxyChannelOpenConfirmResponse, error)
- func (k *Keeper) ProxyChannelOpenFinalize(goCtx context.Context, msg *types.MsgProxyChannelOpenFinalize) (*types.MsgProxyChannelOpenFinalizeResponse, error)
- func (k *Keeper) ProxyChannelOpenTry(goCtx context.Context, msg *types.MsgProxyChannelOpenTry) (*types.MsgProxyChannelOpenTryResponse, error)
- func (k *Keeper) ProxyClientState(goCtx context.Context, msg *types.MsgProxyClientState) (*types.MsgProxyClientStateResponse, error)
- func (k Keeper) ProxyClientStore(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) sdk.KVStore
- func (k *Keeper) ProxyConnectionOpenAck(goCtx context.Context, msg *types.MsgProxyConnectionOpenAck) (*types.MsgProxyConnectionOpenAckResponse, error)
- func (k *Keeper) ProxyConnectionOpenConfirm(goCtx context.Context, msg *types.MsgProxyConnectionOpenConfirm) (*types.MsgProxyConnectionOpenConfirmResponse, error)
- func (k *Keeper) ProxyConnectionOpenFinalize(goCtx context.Context, msg *types.MsgProxyConnectionOpenFinalize) (*types.MsgProxyConnectionOpenFinalizeResponse, error)
- func (k *Keeper) ProxyConnectionOpenTry(goCtx context.Context, msg *types.MsgProxyConnectionOpenTry) (*types.MsgProxyConnectionOpenTryResponse, error)
- func (k *Keeper) ProxyRecvPacket(goCtx context.Context, msg *types.MsgProxyRecvPacket) (*types.MsgProxyRecvPacketResponse, error)
- func (k Keeper) ProxyStore(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string) sdk.KVStore
- func (k Keeper) RecvPacket(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) SetProxyChannel(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) error
- func (k Keeper) SetProxyClientConsensusState(ctx sdk.Context, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) SetProxyClientState(ctx sdk.Context, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) SetProxyConnection(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) error
- func (k Keeper) SetProxyNextSequenceRecv(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) error
- func (k Keeper) SetProxyPacketAcknowledgement(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) error
- func (k Keeper) SetProxyPacketCommitment(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) error
- func (k Keeper) SetProxyPacketReceiptAbsence(ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, ...) error
- func (k Keeper) VerifyAndProxyChannelState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyAndProxyClientConsensusState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyAndProxyClientState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyAndProxyConnectionState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyAndProxyNextSequenceRecv(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyAndProxyPacketAcknowledgement(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyAndProxyPacketCommitment(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyAndProxyPacketReceiptAbsence(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyChannelState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyClientConsensusState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyClientState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyConnectionState(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyNextSequenceRecv(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyPacketAcknowledgement(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyPacketCommitment(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
- func (k Keeper) VerifyPacketReceiptAbsence(ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientKeeper ¶
type ClientKeeper struct {
connectiontypes.ClientKeeper
}
ClientKeeper override `ValidateSelfClient` in the keeper of ibc-client Original method doesn't yet support a consensus state for a general client
func NewClientKeeper ¶
func NewClientKeeper(k connectiontypes.ClientKeeper) ClientKeeper
func (ClientKeeper) ValidateSelfClient ¶
func (k ClientKeeper) ValidateSelfClient(ctx sdk.Context, clientState exported.ClientState) error
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, proxyStoreKey, ibcStoreKey sdk.StoreKey, clientKeeper types.ClientKeeper) Keeper
func (Keeper) AcknowledgePacket ¶
func (k Keeper) AcknowledgePacket( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, packet exported.PacketI, acknowledgement []byte, proof []byte, proofHeight exported.Height, ) error
upstream: chainA, downstream: chainB
func (Keeper) ChanOpenAck ¶
func (k Keeper) ChanOpenAck( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, order channeltypes.Order, connectionHops []string, upstreamPortID string, upstreamChannelID string, downstreamPortID string, downstreamChannelID string, version string, proofTry []byte, proofHeight exported.Height, ) error
source: downstream, counterparty: upstream
func (Keeper) ChanOpenConfirm ¶
func (k Keeper) ChanOpenConfirm( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, upstreamPortID string, upstreamChannelID string, downstreamChannelID string, proofAck []byte, proofHeight exported.Height, ) error
source: downstream, counterparty: upstream
func (Keeper) ChanOpenFinalize ¶
func (k Keeper) ChanOpenFinalize( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, upstreamPortID string, upstreamChannelID string, proofConfirm []byte, proofHeight exported.Height, ) error
source: downstream, counterparty: upstream
func (Keeper) ChanOpenTry ¶
func (k Keeper) ChanOpenTry( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, order channeltypes.Order, connectionHops []string, upstreamPortID string, upstreamChannelID string, downstreamPortID string, version string, proofInit []byte, proofHeight exported.Height, ) error
upstream: chainA, downstream: chainB
func (Keeper) ClientState ¶
func (k Keeper) ClientState( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, counterpartyClientID string, clientState exported.ClientState, expectedConsensusState exported.ConsensusState, proofClient []byte, proofConsensus []byte, proofHeight exported.Height, consensusHeight exported.Height, ) error
caller: B CONTRACT: upstream is A, downstream is B, we are proxy(P)
func (Keeper) ConnOpenAck ¶
func (k Keeper) ConnOpenAck( ctx sdk.Context, connectionID string, upstreamPrefix exported.Prefix, connectionEnd connectiontypes.ConnectionEnd, downstreamClientState exported.ClientState, downstreamConsensusState exported.ConsensusState, proxyClientState exported.ClientState, proofTry []byte, proofClient []byte, proofConsensus []byte, proofHeight exported.Height, consensusHeight exported.Height, proofProxyClient []byte, proofProxyConsensus []byte, proofProxyHeight exported.Height, proxyConsensusHeight exported.Height, ) error
upstream: chainA, downstream: chainB
func (Keeper) ConnOpenConfirm ¶
func (k Keeper) ConnOpenConfirm( ctx sdk.Context, connectionID string, upstreamClientID string, upstreamPrefix exported.Prefix, counterpartyConnectionID string, proofAck []byte, proofHeight exported.Height, ) error
upstream: chainA, downstream: chainB
func (Keeper) ConnOpenFinalize ¶
func (k Keeper) ConnOpenFinalize( ctx sdk.Context, connectionID string, upstreamClientID string, upstreamPrefix exported.Prefix, proofConfirm []byte, proofHeight exported.Height, ) error
upstream: chainA, downstream: chainB
func (Keeper) ConnOpenTry ¶
func (k Keeper) ConnOpenTry( ctx sdk.Context, connectionID string, upstreamPrefix exported.Prefix, connection connectiontypes.ConnectionEnd, downstreamClientState exported.ClientState, downstreamConsensusState exported.ConsensusState, proxyClientState exported.ClientState, proofInit []byte, proofClient []byte, proofConsensus []byte, proofHeight exported.Height, consensusHeight exported.Height, proofProxyClient []byte, proofProxyConsensus []byte, proofProxyHeight exported.Height, proxyConsensusHeight exported.Height, ) error
upstream: chainA, downstream: chainB
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) GetIBCCommitmentPrefix ¶
func (Keeper) GetProxyChannel ¶
func (Keeper) GetProxyClientConsensusState ¶
func (Keeper) GetProxyClientState ¶
func (Keeper) GetProxyCommitmentPrefix ¶
GetCommitmentPrefix returns the IBC connection store prefix as a commitment Prefix
func (Keeper) GetProxyConnection ¶
func (k Keeper) GetProxyConnection( ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, connectionID string, ) (connectiontypes.ConnectionEnd, bool)
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
func (*Keeper) ProxyAcknowledgePacket ¶
func (k *Keeper) ProxyAcknowledgePacket(goCtx context.Context, msg *types.MsgProxyAcknowledgePacket) (*types.MsgProxyAcknowledgePacketResponse, error)
ProxyAcknowledgePacket implements types.MsgServer
func (*Keeper) ProxyChannelOpenAck ¶
func (k *Keeper) ProxyChannelOpenAck(goCtx context.Context, msg *types.MsgProxyChannelOpenAck) (*types.MsgProxyChannelOpenAckResponse, error)
ProxyChannelOpenAck implements types.MsgServer
func (*Keeper) ProxyChannelOpenConfirm ¶
func (k *Keeper) ProxyChannelOpenConfirm(goCtx context.Context, msg *types.MsgProxyChannelOpenConfirm) (*types.MsgProxyChannelOpenConfirmResponse, error)
ProxyChannelOpenConfirm implements types.MsgServer
func (*Keeper) ProxyChannelOpenFinalize ¶
func (k *Keeper) ProxyChannelOpenFinalize(goCtx context.Context, msg *types.MsgProxyChannelOpenFinalize) (*types.MsgProxyChannelOpenFinalizeResponse, error)
ProxyChannelOpenFinalize implements types.MsgServer
func (*Keeper) ProxyChannelOpenTry ¶
func (k *Keeper) ProxyChannelOpenTry(goCtx context.Context, msg *types.MsgProxyChannelOpenTry) (*types.MsgProxyChannelOpenTryResponse, error)
ProxyConnectionOpenTry implements types.MsgServer
func (*Keeper) ProxyClientState ¶
func (k *Keeper) ProxyClientState(goCtx context.Context, msg *types.MsgProxyClientState) (*types.MsgProxyClientStateResponse, error)
ProxyClientState implements types.MsgServer
func (Keeper) ProxyClientStore ¶
func (*Keeper) ProxyConnectionOpenAck ¶
func (k *Keeper) ProxyConnectionOpenAck(goCtx context.Context, msg *types.MsgProxyConnectionOpenAck) (*types.MsgProxyConnectionOpenAckResponse, error)
ProxyConnectionOpenAck implements types.MsgServer
func (*Keeper) ProxyConnectionOpenConfirm ¶
func (k *Keeper) ProxyConnectionOpenConfirm(goCtx context.Context, msg *types.MsgProxyConnectionOpenConfirm) (*types.MsgProxyConnectionOpenConfirmResponse, error)
ProxyConnectionOpenConfirm implements types.MsgServer
func (*Keeper) ProxyConnectionOpenFinalize ¶
func (k *Keeper) ProxyConnectionOpenFinalize(goCtx context.Context, msg *types.MsgProxyConnectionOpenFinalize) (*types.MsgProxyConnectionOpenFinalizeResponse, error)
ProxyConnectionOpenFinalize implements types.MsgServer
func (*Keeper) ProxyConnectionOpenTry ¶
func (k *Keeper) ProxyConnectionOpenTry(goCtx context.Context, msg *types.MsgProxyConnectionOpenTry) (*types.MsgProxyConnectionOpenTryResponse, error)
ProxyConnectionOpenTry implements types.MsgServer
func (*Keeper) ProxyRecvPacket ¶
func (k *Keeper) ProxyRecvPacket(goCtx context.Context, msg *types.MsgProxyRecvPacket) (*types.MsgProxyRecvPacketResponse, error)
ProxyRecvPacket implements types.MsgServer
func (Keeper) ProxyStore ¶
func (Keeper) RecvPacket ¶
func (k Keeper) RecvPacket( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, packet exported.PacketI, proof []byte, proofHeight exported.Height, ) error
upstream: chainA, downstream: chainB
func (Keeper) SetProxyChannel ¶
func (Keeper) SetProxyClientConsensusState ¶
func (Keeper) SetProxyClientState ¶
func (Keeper) SetProxyConnection ¶
func (k Keeper) SetProxyConnection( ctx sdk.Context, upstreamPrefix exported.Prefix, upstreamClientID string, connectionID string, connectionEnd connectiontypes.ConnectionEnd, ) error
func (Keeper) SetProxyNextSequenceRecv ¶
func (Keeper) SetProxyPacketAcknowledgement ¶
func (Keeper) SetProxyPacketCommitment ¶
func (Keeper) SetProxyPacketReceiptAbsence ¶
func (Keeper) VerifyAndProxyChannelState ¶
func (Keeper) VerifyAndProxyClientConsensusState ¶
func (Keeper) VerifyAndProxyClientState ¶
func (Keeper) VerifyAndProxyConnectionState ¶
func (Keeper) VerifyAndProxyNextSequenceRecv ¶
func (Keeper) VerifyAndProxyPacketAcknowledgement ¶
func (Keeper) VerifyAndProxyPacketCommitment ¶
func (Keeper) VerifyAndProxyPacketReceiptAbsence ¶
func (Keeper) VerifyChannelState ¶
func (Keeper) VerifyClientConsensusState ¶
func (Keeper) VerifyClientState ¶
func (Keeper) VerifyConnectionState ¶
func (Keeper) VerifyNextSequenceRecv ¶
func (k Keeper) VerifyNextSequenceRecv( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, connection exported.ConnectionI, height exported.Height, proof []byte, portID, channelID string, nextSequenceRecv uint64, ) error
VerifyNextSequenceRecv verifies a proof of the next sequence number to be received of the specified channel at the specified port.
func (Keeper) VerifyPacketAcknowledgement ¶
func (k Keeper) VerifyPacketAcknowledgement( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, connection exported.ConnectionI, height exported.Height, proof []byte, portID, channelID string, sequence uint64, acknowledgement []byte, ) error
VerifyPacketAcknowledgement verifies a proof of an incoming packet acknowledgement at the specified port, specified channel, and specified sequence.
func (Keeper) VerifyPacketCommitment ¶
func (k Keeper) VerifyPacketCommitment( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, connection exported.ConnectionI, height exported.Height, proof []byte, portID, channelID string, sequence uint64, commitmentBytes []byte, ) error
VerifyPacketCommitment verifies a proof of an outgoing packet commitment at the specified port, specified channel, and specified sequence.
func (Keeper) VerifyPacketReceiptAbsence ¶
func (k Keeper) VerifyPacketReceiptAbsence( ctx sdk.Context, upstreamClientID string, upstreamPrefix exported.Prefix, connection exported.ConnectionI, height exported.Height, proof []byte, portID, channelID string, sequence uint64, ) error
VerifyPacketReceiptAbsence verifies a proof of the absence of an incoming packet receipt at the specified port, specified channel, and specified sequence.