From 42ff568627391cce6033a29e075f9fc12ba050d5 Mon Sep 17 00:00:00 2001 From: Brian Woods Date: Mon, 9 May 2022 17:08:08 -0600 Subject: [PATCH] feat: added update-clent and IBC update proposals (#860) ## Description Adds the update-client proposal handler as well as the IBC update proposal handler. Both are critical for managing IBC connections. Specifically, update-client unfreezes stuck client connections and, as a consequence, stuck tokens. app.go has 3 changed lines that add these features. closes: #859 ---- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [x] added appropriate labels to the PR - [x] targeted the correct branch (see [PR Targeting](https://github.com/umee-network/umee/blob/main/CONTRIBUTING.md#pr-targeting)) - [x] provided a link to the relevant issue or specification - [x] added a changelog entry to `CHANGELOG.md` - [x] reviewed "Files changed" and left comments if necessary - [x] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) (cherry picked from commit dde7206752e7637dc2fc406952e5191364e2d520) --- CHANGELOG.md | 8 ++++++-- app/app.go | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9636cdd5dc..025c3f24b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,13 +46,17 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] +### Features + +- [860](https://github.com/umee-network/umee/pull/860) Add IBC upgrade and upgrade-client gov proposals. + ### Improvements - [866](https://github.com/umee-network/umee/pull/866) Make the x/oracle keeper's GetExchangeRateBase method more efficient. ### API Breaking -- [870](https://github.com/umee-network/umee/pull/870) chore: Move proto v1beta1 to v1. +- [870](https://github.com/umee-network/umee/pull/870) Move proto v1beta1 to v1. ## [v2.0.1](https://github.com/umee-network/umee/releases/tag/v2.0.1) - 2022-04-25 @@ -62,7 +66,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Bug Fixes -- [829](https://github.com/umee-network/umee/pull/829) Fix `umeed tx leverage liquidate` command args +- [829](https://github.com/umee-network/umee/pull/829) Fix `umeed tx leverage liquidate` command args. ### Improvements diff --git a/app/app.go b/app/app.go index 982fedac64..db5b388d98 100644 --- a/app/app.go +++ b/app/app.go @@ -82,6 +82,7 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v2/modules/apps/transfer/types" ibc "github.com/cosmos/ibc-go/v2/modules/core" ibcclient "github.com/cosmos/ibc-go/v2/modules/core/02-client" + ibcclientclient "github.com/cosmos/ibc-go/v2/modules/core/02-client/client" ibcclienttypes "github.com/cosmos/ibc-go/v2/modules/core/02-client/types" ibcporttypes "github.com/cosmos/ibc-go/v2/modules/core/05-port/types" ibchost "github.com/cosmos/ibc-go/v2/modules/core/24-host" @@ -918,6 +919,8 @@ func getGovProposalHandlers() []govclient.ProposalHandler { upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, leverageclient.ProposalHandler, + ibcclientclient.UpdateClientProposalHandler, + ibcclientclient.UpgradeProposalHandler, } }