From 95b4919ef3144c7d63478c2345dacb9e551c2e9b Mon Sep 17 00:00:00 2001 From: Aditya Sripal Date: Wed, 9 Mar 2022 17:18:35 +0100 Subject: [PATCH] add verifyPacketReceipt to ICS3 --- spec/core/ics-003-connection-semantics/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/core/ics-003-connection-semantics/README.md b/spec/core/ics-003-connection-semantics/README.md index a95f5158a..c0fcbc0dc 100644 --- a/spec/core/ics-003-connection-semantics/README.md +++ b/spec/core/ics-003-connection-semantics/README.md @@ -203,6 +203,19 @@ function verifyPacketReceiptAbsence( return client.verifyPacketReceiptAbsence(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier) } +// OPTIONAL: verifyPacketReceipt is only required to support new channel types beyond ORDERED and UNORDERED. +function verifyPacketReceipt( + connection: ConnectionEnd, + height: Height, + proof: CommitmentProof, + portIdentifier: Identifier, + channelIdentifier: Identifier, + sequence: uint64, + receipt: bytes) { + client = queryClient(connection.clientIdentifier) + return client.verifyPacketReceipt(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier, sequence, receipt) +} + function verifyNextSequenceRecv( connection: ConnectionEnd, height: Height,