-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: close, reopen, and automatically reopen ICA channels
- adds .reopen() method to IcaAccountKit['holder'] to re-establish an ICA channel using the original requestedRemoteAddress. it's intended to be used internally to automatically re-establish a channel, but also exposed to holders if they wish to re-open their account after calling .close(). includes corresponding 'ReopenAccount' invitationMaker on CosmosOrchestrationAccount. - performs cleanup after a connection is closed - namely resetting localAddr, remoteAddr, and connection in state. chainAddress and port are preserved. - adds logic to onClose() handler to automatically re-establish the ICA channel. This handler is only called when external factors force a channel closure (iow - if .close() is called by the holder, this will not fire) - updates network-fakes.ts to cache mockChainAddresses based on PortID:ConnectionID to mimic ICS-27 protocol - refs: #9192 - refs: #9068
- Loading branch information
1 parent
a1bfef3
commit 9cc6ae2
Showing
7 changed files
with
179 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ classDiagram | |
executeTx() | ||
executeEncodedTx() | ||
close() | ||
reopen() | ||
} | ||
class ICQConnection { | ||
port: Port | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters