Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handler for
ChanUpgradeTry
(#3628)
* added validateProposedUpgradeFields function and CheckIsOpen helper function * added unit test for CheckIsOpen * adding unit tests for ValidateProposedUpgradeFields * fix linter * update to use errorsmod instead of sdk errors * added upgrade verification function and unit tests * improved variable naming * re-arranged order of test functions * refactor chan open init * removed commented out code * update ChanUpgradeTry and Write functions * rename ValidateProposedUpgradeFields to ValidateUpgradeFields * refactoring to use new upgrade type * removed unused functions and tests * remove unnecessary upgrade prefix * update msgs and msg server * update to merge * addressing PR feedback * delete unnecessary code * fix linter * fixed logging messages * wip: pr comments * pr feedback: use connection id instead of channel id * pr feedback: refactor MsgChannelUpgradeInitResponse to contain Upgrade instead of just version * pr feedback: adjusting error messages and test case names * add testing * rm spacing * lint * lint * adding wip test for chan upgrade try * update so that last seq send is set internally * rm merged code * refactored init test to use fields and timeout * correctly use channel on chain b * fix lintert * update return values * update tests * update response type * lint * rm deepEqual check for proposed/counterparty proposed fields * allow zero proof heights * update version modification in msg_server * rm arguments * update re new spec changes and PR comments * channel version * update per pr comments * update per spec * wip * wip * add channel state to flushingupgrade method * rm msg server code, update upgrade handler to include flushing * update tests * pr comments * pr comments * remove flushing upgrade handshake logic * update event attribute key * update attribute key ordering * rm redundant event emitter * update tests to rm testing for conditional * pr comments * update test * wip method, missing flushStatus enum * add enum * add flushstatus enum to channel * update flush status enum comment * add WriteUpgradeTry method, update event emitter to include flush status * rm msg server code, update godoc * rm e2e * wrap err * update after merge * update * wip testing * wip test update * update tests * lint * use QueryChannelUpgradeProofs * add errorsmod import --------- Co-authored-by: Colin Axnér <25233464+colin-axner@users.noreply.github.com> Co-authored-by: Cian Hatton <cianhatton@gmail.com> Co-authored-by: Cian Hatton <cian@interchain.io> Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
- Loading branch information