Skip to content

Commit

Permalink
fixup! docs: ica channel closing flows
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Aug 8, 2024
1 parent 16dd28b commit fe0211e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions packages/boot/tools/ibc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,29 @@ sequenceDiagram
CC->>R: ChanCloseInit(PortID, ChannelID)
R->>HC: ChanCloseConfirm(PortID, ChannelID)
HC->>HC: CloseChannel(PortID, ChannelID)
HC-->>R: OnChanCloseConfirm
R->>CC: ChanCloseAck
HC->>HC: OnChanCloseConfirm(portID, channelID)
HC-->>R: Success
R->>CC: ChanCloseConfirm
CC->>CC: CloseChannel(PortID, ChannelID)
```
Mock Testing:
- on `ChanCloseInit`, return `ChanCloseAck`
- on `ChanCloseInit`, return `ChanCloseConfirm`

### ICA Channel Closing (from Host)
### ICA Channel Closing (from Host - Unexpected closure)

```mermaid
sequenceDiagram
participant CC as Controller Chain
participant R as Relayer
participant HC as Host Chain
HC->>R: ChanCloseInit(PortID, ChannelID)
HC-->>R: Channel closed unexpectedly
R->>CC: ChanCloseConfirm(PortID, ChannelID)
CC->>CC: CloseChannel(PortID, ChannelID)
CC-->>R: OnChanCloseConfirm
R->>HC: ChanCloseAck
HC->>HC: CloseChannel(PortID, ChannelID)
CC->>CC: OnChanCloseConfirm
CC-->>R: Acknowledge closure
Note over CC: Handle unexpected closure
Note over HC: Unexpected channel closure (e.g., timeout in ORDERED channel)
```
Mock Testing:
- `ChanCloseConfirm` event is emitted
Expand Down

0 comments on commit fe0211e

Please sign in to comment.