Skip to content

Commit 57bc98c

Browse files
committed
polish
1 parent 0dafbe9 commit 57bc98c

File tree

1 file changed

+5
-15
lines changed
  • spec/core/v2/ics-004-channel-and-packet-semantics

1 file changed

+5
-15
lines changed

spec/core/v2/ics-004-channel-and-packet-semantics/README.md

+5-15
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ kind: instantiation
77
requires: 2, 24, packet-data
88
version compatibility: ibc-go v10.0.0
99
author: Stefano Angieri <[email protected]>, Aditya Sripal <[email protected]>
10-
created: 2019-03-07
11-
modified: 2019-08-25
10+
created: 2024-10-15
11+
modified: 2024-10-15
1212
---
1313

14-
TODO :
15-
16-
- Rename file
17-
- Improve conditions set / think about more condition an proper presentation
18-
- Review Ack and Timeout carefully
19-
2014
## Synopsis
2115

2216
This standard defines the channel and packet semantics necessary for state machines implementing the Inter-Blockchain Communication (IBC) protocol version 2 to enable secure, verifiable, and efficient cross-chain messaging.
@@ -113,7 +107,7 @@ An application may not need to return an acknowledgment after processing relevan
113107

114108
If the receiver chain returns the `SENTINEL_ACKNOWLEDGMENT`, the sender chain will execute the `acknowledgePacket` handler without triggering the `onAcknowledgePacket` callback.
115109

116-
As we will see later, the presence in the provable store of the acknowledgement is a prerequisite for executing the `acknowledgePacket` handler. If the receiver chain does not write the acknowledgement, will be impossible for the sender chain to execute `acknowledgePacket` to delete the packet commitment.
110+
As we will see later, the presence in the provable store of the acknowledgement is a prerequisite for executing the `acknowledgePacket` handler. If the receiver chain does not write the acknowledgement, will be impossible for the sender chain to execute `acknowledgePacket` and delete the packet commitment.
117111

118112
> **Example**: In the multi-data packet world, if a packet within 3 payloads intended for 3 different application is sent out, the expectation is that each payload is processed in the same order in which it was placed in the packet. Similarly, the `appAcknowledgement` array is expected to be populated within the same order.
119113
@@ -134,7 +128,7 @@ The registration of the client in the local `IBCRouter` is responsibility of the
134128
- The `MAX_TIMEOUT_DELTA` is intendend as the max, absolute, difference between `currentTimestamp` and `timeoutTimestamp` that can be given in input to `sendPacket`.
135129

136130
```typescript
137-
const MAX_TIMEOUT_DELTA = Implementation specific // We recommend MAX_TIMEOUT_DELTA = TDB
131+
const MAX_TIMEOUT_DELTA = Implementation specific // We recommend MAX_TIMEOUT_DELTA = 24h
138132
```
139133

140134
Additionally, the ICS-04 specification defines a set of conditions that the implementations of the IBC protocol version 2 MUST adhere to. These conditions ensure the proper execution of the function handlers by establishing requirements before execution `pre-conditions`, the conditions that MUST trigger errors during execution `error-conditions`, expected outcomes after succesful execution `post-conditions-on-success`, and expected outcomes after error execution `post-conditions-on-error`.
@@ -374,10 +368,6 @@ function registerChannel(
374368
abortTransactionUnless(msg.signer()===channelCreator[channelId])
375369

376370
// Channel manipulation
377-
/* NEED DISCUSSION : Do we want to allow multiple call to this function?
378-
If not than we have to impose the check
379-
abortTransactionUnless(channel.counterpartyChannelId===null)
380-
*/
381371
channel.counterpartyChannelId=counterpartyChannelId
382372

383373
// Local Store
@@ -1029,7 +1019,7 @@ Future updates of this specification will enable the atomic processing of multip
10291019

10301020
## History
10311021

1032-
Oct X, 2024 - [Draft submitted](https://github.com/cosmos/ibc/pull/1148)
1022+
Oct 15, 2024 - [Draft submitted](https://github.com/cosmos/ibc/pull/1148)
10331023

10341024
## Copyright
10351025

0 commit comments

Comments
 (0)