Documentation ¶
Index ¶
- func QuerierAllClientConnections(ctx sdk.Context, req abci.RequestQuery, k Keeper) ([]byte, error)
- func QuerierClientConnections(ctx sdk.Context, req abci.RequestQuery, k Keeper) ([]byte, error)
- func QuerierConnections(ctx sdk.Context, req abci.RequestQuery, k Keeper) ([]byte, error)
- type Keeper
- func (k Keeper) ConnOpenAck(ctx sdk.Context, connectionID string, version string, ...) error
- func (k Keeper) ConnOpenConfirm(ctx sdk.Context, connectionID string, proofAck commitmentexported.Proof, ...) error
- func (k Keeper) ConnOpenInit(ctx sdk.Context, connectionID, clientID string, ...) error
- func (k Keeper) ConnOpenTry(ctx sdk.Context, connectionID string, counterparty types.Counterparty, ...) error
- func (k Keeper) GetAllClientConnectionPaths(ctx sdk.Context) []types.ConnectionPaths
- func (k Keeper) GetAllConnections(ctx sdk.Context) (connections []types.ConnectionEnd)
- func (k Keeper) GetClientConnectionPaths(ctx sdk.Context, clientID string) ([]string, bool)
- func (k Keeper) GetCommitmentPrefix() commitmentexported.Prefix
- func (k Keeper) GetConnection(ctx sdk.Context, connectionID string) (types.ConnectionEnd, bool)
- func (k Keeper) GetTimestampAtHeight(ctx sdk.Context, connection types.ConnectionEnd, height uint64) (uint64, error)
- func (k Keeper) IterateConnections(ctx sdk.Context, cb func(types.ConnectionEnd) bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetClientConnectionPaths(ctx sdk.Context, clientID string, paths []string)
- func (k Keeper) SetConnection(ctx sdk.Context, connectionID string, connection types.ConnectionEnd)
- func (k Keeper) VerifyChannelState(ctx sdk.Context, connection exported.ConnectionI, height uint64, ...) error
- func (k Keeper) VerifyClientConsensusState(ctx sdk.Context, connection exported.ConnectionI, height uint64, ...) error
- func (k Keeper) VerifyConnectionState(ctx sdk.Context, connection exported.ConnectionI, height uint64, ...) error
- func (k Keeper) VerifyNextSequenceRecv(ctx sdk.Context, connection exported.ConnectionI, height uint64, ...) error
- func (k Keeper) VerifyPacketAcknowledgement(ctx sdk.Context, connection exported.ConnectionI, height uint64, ...) error
- func (k Keeper) VerifyPacketAcknowledgementAbsence(ctx sdk.Context, connection exported.ConnectionI, height uint64, ...) error
- func (k Keeper) VerifyPacketCommitment(ctx sdk.Context, connection exported.ConnectionI, height uint64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QuerierAllClientConnections ¶
QuerierAllClientConnections defines the sdk.Querier to query the connections paths for clients.
func QuerierClientConnections ¶
QuerierClientConnections defines the sdk.Querier to query the client connections
func QuerierConnections ¶
QuerierConnections defines the sdk.Querier to query all the connections.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper defines the IBC connection keeper
func NewKeeper ¶
func NewKeeper(aminoCdc *codec.Codec, cdc codec.Marshaler, key sdk.StoreKey, ck types.ClientKeeper) Keeper
NewKeeper creates a new IBC connection Keeper instance
func (Keeper) ConnOpenAck ¶
func (k Keeper) ConnOpenAck( ctx sdk.Context, connectionID string, version string, proofTry commitmentexported.Proof, proofConsensus commitmentexported.Proof, proofHeight uint64, consensusHeight uint64, ) error
ConnOpenAck relays acceptance of a connection open attempt from chain B back to chain A (this code is executed on chain A).
NOTE: Identifiers are checked on msg validation.
func (Keeper) ConnOpenConfirm ¶
func (k Keeper) ConnOpenConfirm( ctx sdk.Context, connectionID string, proofAck commitmentexported.Proof, proofHeight uint64, ) error
ConnOpenConfirm confirms opening of a connection on chain A to chain B, after which the connection is open on both chains (this code is executed on chain B).
NOTE: Identifiers are checked on msg validation.
func (Keeper) ConnOpenInit ¶
func (k Keeper) ConnOpenInit( ctx sdk.Context, connectionID, clientID string, counterparty types.Counterparty, ) error
ConnOpenInit initialises a connection attempt on chain A.
NOTE: Identifiers are checked on msg validation.
func (Keeper) ConnOpenTry ¶
func (k Keeper) ConnOpenTry( ctx sdk.Context, connectionID string, counterparty types.Counterparty, clientID string, counterpartyVersions []string, proofInit commitmentexported.Proof, proofConsensus commitmentexported.Proof, proofHeight uint64, consensusHeight uint64, ) error
ConnOpenTry relays notice of a connection attempt on chain A to chain B (this code is executed on chain B).
NOTE:
- Here chain A acts as the counterparty
- Identifiers are checked on msg validation
func (Keeper) GetAllClientConnectionPaths ¶
func (k Keeper) GetAllClientConnectionPaths(ctx sdk.Context) []types.ConnectionPaths
GetAllClientConnectionPaths returns all stored clients connection id paths. It will ignore the clients that haven't initialized a connection handshake since no paths are stored.
func (Keeper) GetAllConnections ¶
func (k Keeper) GetAllConnections(ctx sdk.Context) (connections []types.ConnectionEnd)
GetAllConnections returns all stored ConnectionEnd objects.
func (Keeper) GetClientConnectionPaths ¶
GetClientConnectionPaths returns all the connection paths stored under a particular client
func (Keeper) GetCommitmentPrefix ¶
func (k Keeper) GetCommitmentPrefix() commitmentexported.Prefix
GetCommitmentPrefix returns the IBC connection store prefix as a commitment Prefix
func (Keeper) GetConnection ¶
GetConnection returns a connection with a particular identifier
func (Keeper) GetTimestampAtHeight ¶
func (k Keeper) GetTimestampAtHeight(ctx sdk.Context, connection types.ConnectionEnd, height uint64) (uint64, error)
GetTimestampAtHeight returns the timestamp in nanoseconds of the consensus state at the given height.
func (Keeper) IterateConnections ¶
IterateConnections provides an iterator over all ConnectionEnd objects. For each ConnectionEnd, cb will be called. If the cb returns true, the iterator will close and stop.
func (Keeper) SetClientConnectionPaths ¶
SetClientConnectionPaths sets the connections paths for client
func (Keeper) SetConnection ¶
SetConnection sets a connection to the store
func (Keeper) VerifyChannelState ¶
func (k Keeper) VerifyChannelState( ctx sdk.Context, connection exported.ConnectionI, height uint64, proof commitmentexported.Proof, portID, channelID string, channel channelexported.ChannelI, ) error
VerifyChannelState verifies a proof of the channel state of the specified channel end, under the specified port, stored on the target machine.
func (Keeper) VerifyClientConsensusState ¶
func (k Keeper) VerifyClientConsensusState( ctx sdk.Context, connection exported.ConnectionI, height uint64, consensusHeight uint64, proof commitmentexported.Proof, consensusState clientexported.ConsensusState, ) error
VerifyClientConsensusState verifies a proof of the consensus state of the specified client stored on the target machine.
func (Keeper) VerifyConnectionState ¶
func (k Keeper) VerifyConnectionState( ctx sdk.Context, connection exported.ConnectionI, height uint64, proof commitmentexported.Proof, connectionID string, connectionEnd exported.ConnectionI, ) error
VerifyConnectionState verifies a proof of the connection state of the specified connection end stored on the target machine.
func (Keeper) VerifyNextSequenceRecv ¶
func (k Keeper) VerifyNextSequenceRecv( ctx sdk.Context, connection exported.ConnectionI, height uint64, proof commitmentexported.Proof, 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, connection exported.ConnectionI, height uint64, proof commitmentexported.Proof, 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) VerifyPacketAcknowledgementAbsence ¶
func (k Keeper) VerifyPacketAcknowledgementAbsence( ctx sdk.Context, connection exported.ConnectionI, height uint64, proof commitmentexported.Proof, portID, channelID string, sequence uint64, ) error
VerifyPacketAcknowledgementAbsence verifies a proof of the absence of an incoming packet acknowledgement at the specified port, specified channel, and specified sequence.
func (Keeper) VerifyPacketCommitment ¶
func (k Keeper) VerifyPacketCommitment( ctx sdk.Context, connection exported.ConnectionI, height uint64, proof commitmentexported.Proof, 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.