-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: store software upgrade plan and refresh data at upgrade height #467
Conversation
Codecov Report
@@ Coverage Diff @@
## cosmos/v0.44.x #467 +/- ##
=================================================
Coverage ? 57.40%
=================================================
Files ? 19
Lines ? 1444
Branches ? 0
=================================================
Hits ? 829
Misses ? 511
Partials ? 104 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@huichiaotsou Can you also add a handler to remove the software upgrade details from software_upgrade_plan
table after the upgrade height has been passed?
Co-authored-by: Magic Cat <37407870+MonikaCat@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great job @huichiaotsou! 👏
…orbole#467) Closes: #XXXX jira: https://forbole.atlassian.net/browse/BDU-604 Background: Sifchain hard-coded `validator minimum commission` in a new release and updated it with `software upgrade`. Without any `MsgEditValidator` involved, the `validator commission %` could not be updated and were then incorrect. This PR stores `software upgrade proposal's upgrade plan` and uses the `upgrade` module to check if there's an upgrade plan at each height, if yes it will proceed with neccessary updates of data. Currently it's only updating the validator infos (the rest of the data I believe we have `periodic task` or `handle block` which should be enough). We can add more in the future if similar cases pop up. --- *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 - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed *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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
…46) feat: store software upgrade plan and refresh data at upgrade height (forbole#467) Closes: #XXXX jira: https://forbole.atlassian.net/browse/BDU-604 Background: Sifchain hard-coded `validator minimum commission` in a new release and updated it with `software upgrade`. Without any `MsgEditValidator` involved, the `validator commission %` could not be updated and were then incorrect. This PR stores `software upgrade proposal's upgrade plan` and uses the `upgrade` module to check if there's an upgrade plan at each height, if yes it will proceed with neccessary updates of data. Currently it's only updating the validator infos (the rest of the data I believe we have `periodic task` or `handle block` which should be enough). We can add more in the future if similar cases pop up. --- *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 - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed *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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) Co-authored-by: Aaron <76254323+huichiaotsou@users.noreply.github.com>
* build(deps): bump github.com/go-co-op/gocron from 1.15.1 to 1.16.1 (#441) Bumps [github.com/go-co-op/gocron](https://github.com/go-co-op/gocron) from 1.15.1 to 1.16.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/go-co-op/gocron/releases">github.com/go-co-op/gocron's releases</a>.</em></p> <blockquote> <h2>v1.16.1</h2> <h2>What's Changed</h2> <ul> <li>Optimize job setTimer by <a href="https://github.com/fufuok"><code>@fufuok</code></a> in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/363">go-co-op/gocron#363</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/fufuok"><code>@fufuok</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/363">go-co-op/gocron#363</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/go-co-op/gocron/compare/v1.16.0...v1.16.1">https://github.com/go-co-op/gocron/compare/v1.16.0...v1.16.1</a></p> <h2>v1.16.0</h2> <h2>What's Changed</h2> <ul> <li>Fix data race in lastRun by <a href="https://github.com/seunghyupoh3517"><code>@seunghyupoh3517</code></a> in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/359">go-co-op/gocron#359</a></li> <li>expose custom time method to allow for easy testing by <a href="https://github.com/JohnRoesler"><code>@JohnRoesler</code></a> in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/360">go-co-op/gocron#360</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/go-co-op/gocron/compare/v1.15.1...v1.16.0">https://github.com/go-co-op/gocron/compare/v1.15.1...v1.16.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/go-co-op/gocron/commit/22fc237055852f9f0e1eb2c774efb62f47764ac8"><code>22fc237</code></a> Optimize job setTimer (<a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/363">#363</a>)</li> <li><a href="https://github.com/go-co-op/gocron/commit/c667f3306226194b58309064b860b535c22d52e6"><code>c667f33</code></a> expose custom time method to allow for easy testing (<a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/360">#360</a>)</li> <li><a href="https://github.com/go-co-op/gocron/commit/2764428a4e85c7437ed651c2dfeb8a5fa7e88016"><code>2764428</code></a> Fix data race in lastRun (<a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/359">#359</a>)</li> <li>See full diff in <a href="https://github.com/go-co-op/gocron/compare/v1.15.1...v1.16.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/go-co-op/gocron&package-manager=go_modules&previous-version=1.15.1&new-version=1.16.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * chore: release v3.2.0 * build(deps): bump github.com/go-co-op/gocron from 1.16.1 to 1.16.2 (#446) Bumps [github.com/go-co-op/gocron](https://github.com/go-co-op/gocron) from 1.16.1 to 1.16.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/go-co-op/gocron/releases">github.com/go-co-op/gocron's releases</a>.</em></p> <blockquote> <h2>v1.16.2</h2> <h2>What's Changed</h2> <ul> <li>Stops all jobs when stopping scheduler (fix <a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/367">#367</a>) by <a href="https://github.com/pma9"><code>@pma9</code></a> in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/368">go-co-op/gocron#368</a></li> <li>fix deadlock when starting / stopping the scheduler by <a href="https://github.com/JohnRoesler"><code>@JohnRoesler</code></a> in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/369">go-co-op/gocron#369</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/pma9"><code>@pma9</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/368">go-co-op/gocron#368</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/go-co-op/gocron/compare/v1.16.1...v1.16.2">https://github.com/go-co-op/gocron/compare/v1.16.1...v1.16.2</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/go-co-op/gocron/commit/772979fa51c50da0c1d4922f7196cfda9ea570aa"><code>772979f</code></a> fix deadlock when starting / stopping the scheduler (<a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/369">#369</a>)</li> <li><a href="https://github.com/go-co-op/gocron/commit/08a53efad778e10c5be90b33d8423e7131ed2030"><code>08a53ef</code></a> Stops all jobs when stopping scheduler (fix <a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/367">#367</a>) (<a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/368">#368</a>)</li> <li>See full diff in <a href="https://github.com/go-co-op/gocron/compare/v1.16.1...v1.16.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/go-co-op/gocron&package-manager=go_modules&previous-version=1.16.1&new-version=1.16.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * build(deps): bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 (#447) Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.2 to 1.13.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/prometheus/client_golang/releases">github.com/prometheus/client_golang's releases</a>.</em></p> <blockquote> <h2>## 1.13.0 / 2022-08-06</h2> <ul> <li>[CHANGE] Minimum required Go version is now 1.17 (we also test client_golang against the new 1.19 version).</li> <li>[ENHANCEMENT] Added <code>prometheus.TransactionalGatherer</code> interface for <code>promhttp.Handler</code> use which allows using low allocation update techniques for custom collectors. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/989">#989</a></li> <li>[ENHANCEMENT] Added exemplar support to <code>prometheus.NewConstHistogram</code>. See <a href="https://github.com/prometheus/client_golang/blob/HEAD/prometheus/examples_test.go#L602"><code>ExampleNewConstHistogram_WithExemplar</code></a> example on how to use it. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/986">#986</a></li> <li>[ENHANCEMENT] <code>prometheus/push.Pusher</code> now has context-aware methods that pass context to HTTP requests. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1028">#1028</a></li> <li>[ENHANCEMENT] <code>prometheus/push.Pusher</code> has now <code>Error</code> method that retrieve last error. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1075">#1075</a></li> <li>[ENHANCEMENT] <code>testutil.GatherAndCompare</code> provides now readable diff on failed comparisons. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/998">#998</a></li> <li>[ENHANCEMENT] Query API now supports timeouts. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1014">#1014</a></li> <li>[ENHANCEMENT] New <code>MetricVec</code> method <code>DeletePartialMatch(labels Labels)</code> for deleting all metrics that match provided labels. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1013">#1013</a></li> <li>[ENHANCEMENT] <code>api.Config</code> now accepts passing custom <code>*http.Client</code>. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1025">#1025</a></li> <li>[BUGFIX] Raise exemplar labels limit from 64 to 128 bytes as specified in OpenMetrics spec. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1091">#1091</a></li> <li>[BUGFIX] Allow adding exemplar to +Inf bucket to const histograms. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1094">#1094</a></li> <li>[ENHANCEMENT] Most <code>promhttp.Instrument*</code> middlewares now support adding exemplars to metrics. This allows hooking those to your tracing middleware that retrieves trace ID and puts it in exemplar if present. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1055">#1055</a></li> <li>[ENHANCEMENT] Added <code>testutil.ScrapeAndCompare</code> method. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1043">#1043</a></li> <li>[BUGFIX] Fixed <code>GopherJS</code> build support. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/897">#897</a></li> <li>[ENHANCEMENT] :warning: Added way to specify what <code>runtime/metrics</code> <code>collectors.NewGoCollector</code> should use. See <a href="https://github.com/prometheus/client_golang/blob/HEAD/prometheus/collectors/go_collector_latest_test.go#L263"><code>ExampleGoCollector_WithAdvancedGoMetrics</code></a>. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1102">#1102</a></li> </ul> <h2>New Contributors ❤️</h2> <ul> <li><a href="https://github.com/alissa-tung"><code>@alissa-tung</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1000">prometheus/client_golang#1000</a></li> <li><a href="https://github.com/wperron"><code>@wperron</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/986">prometheus/client_golang#986</a></li> <li><a href="https://github.com/zhijian-pro"><code>@zhijian-pro</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1005">prometheus/client_golang#1005</a></li> <li><a href="https://github.com/dohnto"><code>@dohnto</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1021">prometheus/client_golang#1021</a></li> <li><a href="https://github.com/tatsuhiro-t"><code>@tatsuhiro-t</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1028">prometheus/client_golang#1028</a></li> <li><a href="https://github.com/sourikghosh"><code>@sourikghosh</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/998">prometheus/client_golang#998</a></li> <li><a href="https://github.com/josephwoodward"><code>@josephwoodward</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1014">prometheus/client_golang#1014</a></li> <li><a href="https://github.com/stone-z"><code>@stone-z</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1013">prometheus/client_golang#1013</a></li> <li><a href="https://github.com/yolossn"><code>@yolossn</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1025">prometheus/client_golang#1025</a></li> <li><a href="https://github.com/xrstf"><code>@xrstf</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1039">prometheus/client_golang#1039</a></li> <li><a href="https://github.com/dependabot"><code>@dependabot</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1051">prometheus/client_golang#1051</a></li> <li><a href="https://github.com/sazary"><code>@sazary</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1056">prometheus/client_golang#1056</a></li> <li><a href="https://github.com/oiooj"><code>@oiooj</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1075">prometheus/client_golang#1075</a></li> <li><a href="https://github.com/fredr"><code>@fredr</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1095">prometheus/client_golang#1095</a></li> <li><a href="https://github.com/inosato"><code>@inosato</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1096">prometheus/client_golang#1096</a></li> <li><a href="https://github.com/arun-shopify"><code>@arun-shopify</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/1094">prometheus/client_golang#1094</a></li> <li><a href="https://github.com/paralin"><code>@paralin</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/prometheus/client_golang/pull/897">prometheus/client_golang#897</a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md">github.com/prometheus/client_golang's changelog</a>.</em></p> <blockquote> <h2>1.13.0 / 2022-08-05</h2> <ul> <li>[CHANGE] Minimum required Go version is now 1.17 (we also test client_golang against new 1.19 version).</li> <li>[ENHANCEMENT] Added <code>prometheus.TransactionalGatherer</code> interface for <code>promhttp.Handler</code> use which allows using low allocation update techniques for custom collectors. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/989">#989</a></li> <li>[ENHANCEMENT] Added exemplar support to <code>prometheus.NewConstHistogram</code>. See <a href="https://github.com/prometheus/client_golang/blob/main/prometheus/examples_test.go#L602"><code>ExampleNewConstHistogram_WithExemplar</code></a> example on how to use it. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/986">#986</a></li> <li>[ENHANCEMENT] <code>prometheus/push.Pusher</code> has now context aware methods that pass context to HTTP request. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1028">#1028</a></li> <li>[ENHANCEMENT] <code>prometheus/push.Pusher</code> has now <code>Error</code> method that retrieve last error. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1075">#1075</a></li> <li>[ENHANCEMENT] <code>testutil.GatherAndCompare</code> provides now readable diff on failed comparisons. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/998">#998</a></li> <li>[ENHANCEMENT] Query API now supports timeouts. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1014">#1014</a></li> <li>[ENHANCEMENT] New <code>MetricVec</code> method <code>DeletePartialMatch(labels Labels)</code> for deleting all metrics that match provided labels. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1013">#1013</a></li> <li>[ENHANCEMENT] <code>api.Config</code> now accepts passing custom <code>*http.Client</code>. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1025">#1025</a></li> <li>[BUGFIX] Raise exemplar labels limit from 64 to 128 bytes as specified in OpenMetrics spec. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1091">#1091</a></li> <li>[BUGFIX] Allow adding exemplar to +Inf bucket to const histograms. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1094">#1094</a></li> <li>[ENHANCEMENT] Most <code>promhttp.Instrument*</code> middlewares now supports adding exemplars to metrics. This allows hooking those to your tracing middleware that retrieves trace ID and put it in exemplar if present. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1055">#1055</a></li> <li>[ENHANCEMENT] Added <code>testutil.ScrapeAndCompare</code> method. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1043">#1043</a></li> <li>[BUGFIX] Fixed <code>GopherJS</code> build support. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/897">#897</a></li> <li>[ENHANCEMENT] :warning: Added way to specify what <code>runtime/metrics</code> <code>collectors.NewGoCollector</code> should use. See <a href="https://github.com/prometheus/client_golang/blob/main/prometheus/collectors/go_collector_latest_test.go#L263"><code>ExampleGoCollector_WithAdvancedGoMetrics</code></a>. <a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1102">#1102</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/prometheus/client_golang/commit/64435fc00ac419bb878a3f9c9658e8353c19a7cd"><code>64435fc</code></a> Cut 1.13.0 (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1110">#1110</a>)</li> <li><a href="https://github.com/prometheus/client_golang/commit/5b7e8b2e6716df0ceda9df81feb15910c7efa150"><code>5b7e8b2</code></a> collectors.GoCollector: Added rule support for granular metric configuration....</li> <li><a href="https://github.com/prometheus/client_golang/commit/d44fbbefdd19086a786a7e4a6e215bfc88468ec5"><code>d44fbbe</code></a> Fix build against GopherJS (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/897">#897</a>)</li> <li><a href="https://github.com/prometheus/client_golang/commit/1638da9ae43be6ff5ad522ca402712e26b4a19c7"><code>1638da9</code></a> testutil: Add ScrapeAndCompare (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1043">#1043</a>)</li> <li><a href="https://github.com/prometheus/client_golang/commit/c576b951ad94df7cb97d1b3b6f5cdb49315f5721"><code>c576b95</code></a> Generate new Go runtime metrics for go 1.19 (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1105">#1105</a>)</li> <li><a href="https://github.com/prometheus/client_golang/commit/618194de6ad3db637313666104533639011b470d"><code>618194d</code></a> fix assorted oddities found by golangci-lint (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1040">#1040</a>)</li> <li><a href="https://github.com/prometheus/client_golang/commit/c7488be2e4081d3afa59e63e221587546c58badf"><code>c7488be</code></a> Added exemplar support to http middleware. (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1055">#1055</a>)</li> <li><a href="https://github.com/prometheus/client_golang/commit/3faf3bae7076031e56adc1f76d0c2d817410597e"><code>3faf3ba</code></a> Fixed support for unordered input of exemplars. (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1100">#1100</a>)</li> <li><a href="https://github.com/prometheus/client_golang/commit/44ce5e1ee5015df547c585135d683fbab114dc82"><code>44ce5e1</code></a> Ensure tests verify request params (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1047">#1047</a>)</li> <li><a href="https://github.com/prometheus/client_golang/commit/807b1ee73c2079346d041019cffb933fa43aaf3d"><code>807b1ee</code></a> explicitly add +inf bucket in withExemplarsMetric (<a href="https://github-redirect.dependabot.com/prometheus/client_golang/issues/1094">#1094</a>)</li> <li>Additional commits viewable in <a href="https://github.com/prometheus/client_golang/compare/v1.12.2...v1.13.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/prometheus/client_golang&package-manager=go_modules&previous-version=1.12.2&new-version=1.13.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * fix: remove tombstone from `validator_status` (already exists in `validator_singing_info`) (#443) ## Description Closes: #XXXX Removing `tombstone status` from `validator_status` because: - it makes the code cleaner as `tombstone status` is already stored in `validator_singing_info` - it saves grpc calls for each validator at each block - the front-end `graphQL` does not query it from `validator_status` table anyways c.f. #411 --- ### 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... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] 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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) * build(ci): replace DOCKERHUB_TOKEN with DOCKERHUB_PASSWORD * build: go v1.18 (#452) ## Description Closes: #XXXX --- ### 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... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] 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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) * build(deps): bump github.com/go-co-op/gocron from 1.16.2 to 1.16.3 (#456) Bumps [github.com/go-co-op/gocron](https://github.com/go-co-op/gocron) from 1.16.2 to 1.16.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/go-co-op/gocron/releases">github.com/go-co-op/gocron's releases</a>.</em></p> <blockquote> <h2>v1.16.3</h2> <h2>What's Changed</h2> <ul> <li>Protect job.RunCount() with mutex by <a href="https://github.com/seunghyupoh3517"><code>@seunghyupoh3517</code></a> in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/375">go-co-op/gocron#375</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/go-co-op/gocron/compare/v1.16.2...v1.16.3">https://github.com/go-co-op/gocron/compare/v1.16.2...v1.16.3</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/go-co-op/gocron/commit/0099be01d75f8cde9cb14d6fc5beff1cfc10bd72"><code>0099be0</code></a> Protect job.RunCount() with mutex (<a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/375">#375</a>)</li> <li>See full diff in <a href="https://github.com/go-co-op/gocron/compare/v1.16.2...v1.16.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/go-co-op/gocron&package-manager=go_modules&previous-version=1.16.2&new-version=1.16.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * feat: updated staking pool values (#455) ## Description Closes: [BDU-484](https://forbole.atlassian.net/browse/BDU-484) --- ### 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 - [ ] added `!` to the type prefix if API or client breaking change - [x] targeted the correct branch - [x] provided a link to the relevant issue or specification - [x] added a changelog entry to `CHANGELOG.md` - [x] included comments for [documenting Go code](https://blog.golang.org/godoc) - [x] updated the relevant documentation or specification - [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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) * build(deps): bump github.com/go-co-op/gocron from 1.16.3 to 1.17.0 (#459) Bumps [github.com/go-co-op/gocron](https://github.com/go-co-op/gocron) from 1.16.3 to 1.17.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/go-co-op/gocron/releases">github.com/go-co-op/gocron's releases</a>.</em></p> <blockquote> <h2>v1.17.0</h2> <h2>What's Changed</h2> <ul> <li>bump go to 1.19 by <a href="https://github.com/JohnRoesler"><code>@JohnRoesler</code></a> in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/380">go-co-op/gocron#380</a></li> <li>add CustomTimer allowing overriding of the time.AfterFunc by <a href="https://github.com/JohnRoesler"><code>@JohnRoesler</code></a> in <a href="https://github-redirect.dependabot.com/go-co-op/gocron/pull/381">go-co-op/gocron#381</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/go-co-op/gocron/compare/v1.16.3...v1.17.0">https://github.com/go-co-op/gocron/compare/v1.16.3...v1.17.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/go-co-op/gocron/commit/3272c219ee7d6de6f435f182c91fd52f7da8ca98"><code>3272c21</code></a> add CustomTimer allowing overriding of the time.AfterFunc (<a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/381">#381</a>)</li> <li><a href="https://github.com/go-co-op/gocron/commit/5d9071a9a1151486688cdfabb10ec994b1f3803f"><code>5d9071a</code></a> bump go to 1.19 (<a href="https://github-redirect.dependabot.com/go-co-op/gocron/issues/380">#380</a>)</li> <li>See full diff in <a href="https://github.com/go-co-op/gocron/compare/v1.16.3...v1.17.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/go-co-op/gocron&package-manager=go_modules&previous-version=1.16.3&new-version=1.17.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * feat: add daily refetch module (#454) ## Description Closes: BDU-479 --- ### 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 - [ ] added `!` to the type prefix if API or client breaking change - [x] targeted the correct branch - [x] provided a link to the relevant issue or specification - [x] added a changelog entry to `CHANGELOG.md` - [x] included comments for [documenting Go code](https://blog.golang.org/godoc) - [x] updated the relevant documentation or specification - [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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) * build(deps): bump github.com/rs/zerolog from 1.27.0 to 1.28.0 (#460) Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.27.0 to 1.28.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rs/zerolog/commit/d894f123bc5c2a887c95e90218b9410563141d67"><code>d894f12</code></a> pass program counter to CallerMarshalFunc (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/457">#457</a>)</li> <li><a href="https://github.com/rs/zerolog/commit/4099072c03f2f4e61fa08f70adf9a25983f0cd8e"><code>4099072</code></a> Support extra arbitrary data at the end of console log (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/416">#416</a>)</li> <li><a href="https://github.com/rs/zerolog/commit/4c85986254a5d411779c1ec553a12094042f56a0"><code>4c85986</code></a> Unixnano time format support (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/454">#454</a>)</li> <li><a href="https://github.com/rs/zerolog/commit/43be3013864af78038c42de900a4d78eae0f1d22"><code>43be301</code></a> Bump actions/cache from 3.0.1 to 3.0.5 (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/453">#453</a>)</li> <li><a href="https://github.com/rs/zerolog/commit/afdf9978ec10b0f5a240f174fcdc6e58e06f0dca"><code>afdf997</code></a> Revert "remove fields written into "PartsOrder" (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/383">#383</a>)"</li> <li><a href="https://github.com/rs/zerolog/commit/14d6629e41683140550f25e6706381efda008968"><code>14d6629</code></a> hlog: adds ProtoHandler (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/396">#396</a>)</li> <li><a href="https://github.com/rs/zerolog/commit/dbdec88d16a2f50ebbdf3a055fe501e075968c91"><code>dbdec88</code></a> Use everywhere InterfaceMarshalFunc (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/414">#414</a>)</li> <li><a href="https://github.com/rs/zerolog/commit/b30730fab2c86649b5e93525f114cfdd3a98c866"><code>b30730f</code></a> Show local time in console (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/415">#415</a>)</li> <li><a href="https://github.com/rs/zerolog/commit/68a6bd49b5bdd0ddc4293bdf503462ea2a3c151e"><code>68a6bd4</code></a> Bump github.com/rs/xid from 1.3.0 to 1.4.0 (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/430">#430</a>)</li> <li><a href="https://github.com/rs/zerolog/commit/5c08a2724f6816f006445ecf6464ae4d932c529a"><code>5c08a27</code></a> Bump actions/cache from 2 to 3.0.1 (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/432">#432</a>)</li> <li>Additional commits viewable in <a href="https://github.com/rs/zerolog/compare/v1.27.0...v1.28.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/rs/zerolog&package-manager=go_modules&previous-version=1.27.0&new-version=1.28.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * fix: parse gov genesis with `doc.InitialHeight` instead of height 1 (#461) ## Description Closes: #XXXX jira: https://forbole.atlassian.net/browse/BDU-544 --- ### 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 - [ ] added `!` to the type prefix if API or client breaking change - [x] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [x] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) * build(deps): bump github.com/lib/pq from 1.10.6 to 1.10.7 (#463) Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.6 to 1.10.7. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lib/pq/commit/d5affd5073b06f745459768de35356df2e5fd91d"><code>d5affd5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/lib/pq/issues/1088">#1088</a> from kelvich/sni_support</li> <li><a href="https://github.com/lib/pq/commit/d65e6ae4bdd1c86b16cd6d2bcff4fe970dc697b4"><code>d65e6ae</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/lib/pq/issues/1083">#1083</a> from nhooyr/fix-receiver-51e2</li> <li><a href="https://github.com/lib/pq/commit/957fc0b40156534f8dd356bc81679d7e1365242b"><code>957fc0b</code></a> Set SNI for TSL connections</li> <li><a href="https://github.com/lib/pq/commit/89fee896440712bc328c9087ea185c3990053f31"><code>89fee89</code></a> Use pointer receiver on pq.Error.Error()</li> <li>See full diff in <a href="https://github.com/lib/pq/compare/v1.10.6...v1.10.7">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/lib/pq&package-manager=go_modules&previous-version=1.10.6&new-version=1.10.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * build(deps): bump forbole/juno to v3.4.0 (#462) ## Description Closes: #XXXX --- ### 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... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] 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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) * fix: get open proposal ids in deposit/voting period by block time instead of current time (#465) ## Description Closes: #XXXX --- ### 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 - [ ] added `!` to the type prefix if API or client breaking change - [x] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [x] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) * build(deps): bump amannn/action-semantic-pull-request from 4.5.0 to 4.6.0 (#471) Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 4.5.0 to 4.6.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/amannn/action-semantic-pull-request/releases">amannn/action-semantic-pull-request's releases</a>.</em></p> <blockquote> <h2>v4.6.0</h2> <h2><a href="https://github.com/amannn/action-semantic-pull-request/compare/v4.5.0...v4.6.0">4.6.0</a> (2022-09-26)</h2> <h3>Features</h3> <ul> <li>Provide error messages as <code>outputs.error_message</code> (<a href="https://github-redirect.dependabot.com/amannn/action-semantic-pull-request/issues/194">#194</a>) (<a href="https://github.com/amannn/action-semantic-pull-request/commit/880a3c061c0dea01e977cefe26fb0e0d06b3d1a9">880a3c0</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md">amannn/action-semantic-pull-request's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/amannn/action-semantic-pull-request/compare/v4.5.0...v4.6.0">4.6.0</a> (2022-09-26)</h2> <h3>Features</h3> <ul> <li>Provide error messages as <code>outputs.error_message</code> (<a href="https://github-redirect.dependabot.com/amannn/action-semantic-pull-request/issues/194">#194</a>) (<a href="https://github.com/amannn/action-semantic-pull-request/commit/880a3c061c0dea01e977cefe26fb0e0d06b3d1a9">880a3c0</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/amannn/action-semantic-pull-request/commit/505e44b4f33b4c801f063838b3f053990ee46ea7"><code>505e44b</code></a> chore: Release 4.6.0 [skip ci]</li> <li><a href="https://github.com/amannn/action-semantic-pull-request/commit/880a3c061c0dea01e977cefe26fb0e0d06b3d1a9"><code>880a3c0</code></a> feat: Provide error messages as <code>outputs.error_message</code> (<a href="https://github-redirect.dependabot.com/amannn/action-semantic-pull-request/issues/194">#194</a>)</li> <li><a href="https://github.com/amannn/action-semantic-pull-request/commit/4682b170e7c31dfbef288e994fe07853755229b4"><code>4682b17</code></a> Remove dependabot [skip ci]</li> <li><a href="https://github.com/amannn/action-semantic-pull-request/commit/348e2e6922130ee27d6d6a0a3b284890776d1f80"><code>348e2e6</code></a> ci: Configure semantic-release for main branch</li> <li><a href="https://github.com/amannn/action-semantic-pull-request/commit/076b6354550c9b8724a688472d49b409a1e7be34"><code>076b635</code></a> ci: Use main branch</li> <li><a href="https://github.com/amannn/action-semantic-pull-request/commit/8dec7ce4f66d5c34613f3b540ab9460a8d2e6294"><code>8dec7ce</code></a> docs: Suggest using the new Github option for consistent commit titles</li> <li>See full diff in <a href="https://github.com/amannn/action-semantic-pull-request/compare/v4.5.0...v4.6.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=amannn/action-semantic-pull-request&package-manager=github_actions&previous-version=4.5.0&new-version=4.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * build(deps): bump Dockerfile Go version to 1.18 (backport #466) (#474) This is an automatic backport of pull request #466 done by [Mergify](https://mergify.com). --- <details> <summary>Mergify commands and options</summary> <br /> More conditions and actions can be found in the [documentation](https://docs.mergify.com/). You can also trigger Mergify actions by commenting on this pull request: - `@Mergifyio refresh` will re-evaluate the rules - `@Mergifyio rebase` will rebase this PR on its base branch - `@Mergifyio update` will merge the base branch into this PR - `@Mergifyio backport <destination>` will backport this PR on `<destination>` branch Additionally, on Mergify [dashboard](https://dashboard.mergify.com/) you can: - look at your merge queues - generate the Mergify configuration with the config editor. Finally, you can contact us on https://mergify.com </details> Co-authored-by: Rick Mak <rick.mak@gmail.com> * feat: store software upgrade plan and refresh data at upgrade height (#467) ## Description Closes: #XXXX jira: https://forbole.atlassian.net/browse/BDU-604 Background: Sifchain hard-coded `validator minimum commission` in a new release and updated it with `software upgrade`. Without any `MsgEditValidator` involved, the `validator commission %` could not be updated and were then incorrect. This PR stores `software upgrade proposal's upgrade plan` and uses the `upgrade` module to check if there's an upgrade plan at each height, if yes it will proceed with neccessary updates of data. Currently it's only updating the validator infos (the rest of the data I believe we have `periodic task` or `handle block` which should be enough). We can add more in the future if similar cases pop up. --- ### 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 - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] 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 API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) * build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0 (#478) Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.5.0 to 1.6.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/spf13/cobra/releases">github.com/spf13/cobra's releases</a>.</em></p> <blockquote> <h2>v1.6.0</h2> <h3>Summer 2022 Release</h3> <p>Some exciting changes make their way to Cobra! Command completions continue to get better and better (including adding <code>--help</code> and <code>--version</code> automatic flags to the completions list). Grouping is now possible in your help output as well! And you can now use the <code>OnFinalize</code> method to cleanup things when all "work" is done. Checkout the full changelog below:</p> <hr /> <h4>Features 🌠</h4> <ul> <li>Add groups for commands in help: <a href="https://github.com/aawsome"><code>@aawsome</code></a> <a href="https://github.com/marckhouzam"><code>@marckhouzam</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1003">#1003</a></li> <li>Support for case-insensitive command names: <a href="https://github.com/YuviGold"><code>@YuviGold</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1802">#1802</a></li> <li>Expose <code>ValidateRequiredFlags</code> and <code>ValidateFlagGroups</code>: <a href="https://github.com/skeetwu"><code>@skeetwu</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1760">#1760</a></li> <li>Add <code>--version</code> flag to help output: <a href="https://github.com/fnickels"><code>@fnickels</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1707">#1707</a></li> <li>Add <code>--help</code> and <code>--version</code> flag in completions: <a href="https://github.com/marckhouzam"><code>@marckhouzam</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1813">#1813</a></li> <li>Add <code>OnFinalize</code> method: <a href="https://github.com/yann-soubeyrand"><code>@yann-soubeyrand</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1788">#1788</a></li> <li>Allow user to add completion for powershell alias: <a href="https://github.com/marckhouzam"><code>@marckhouzam</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1621">#1621</a></li> <li>Make <code>InitDefaultcompletionCmd</code> public: <a href="https://github.com/gssbzn"><code>@gssbzn</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1467">#1467</a></li> </ul> <h4>Deprecation 👎🏼</h4> <ul> <li><code>ExactValidArgs</code> is deprecated (but not being removed entirely). This is abit nuanced, so checkout <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1643">#1643</a> for further information and the <a href="https://github.com/spf13/cobra/blob/main/user_guide.md">updated <code>user_guide.md</code></a> on how this may affect you (and how you can take advantage of the <em>correct</em> behavior in the validators): <a href="https://github.com/umarcor"><code>@umarcor</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1643">#1643</a></li> </ul> <h4>Bug fixes 🐛</h4> <ul> <li>Fix (bash-v2) <code>activeHelp</code> length check syntax: <a href="https://github.com/scop"><code>@scop</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1762">#1762</a></li> <li>Fix correct command path in <code>see_also</code> for yaml documentation: <a href="https://github.com/zregvart"><code>@zregvart</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1771">#1771</a></li> <li>Fix showing flags that shadow parent persistent flag in child help messaging: <a href="https://github.com/brianpursley"><code>@brianpursley</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1776">#1776</a></li> </ul> <h4>Dependencies 🗳️</h4> <ul> <li>Upgrade to use <code>gopkg.in/yaml.v3</code>: <a href="https://github.com/tklauser"><code>@tklauser</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1766">#1766</a></li> </ul> <h4>Testing 🤔</h4> <ul> <li>Test on Golang 1.19: <a href="https://github.com/umarcor"><code>@umarcor</code></a> & <a href="https://github.com/jpmcb"><code>@jpmcb</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1782">#1782</a></li> <li>Renamed powershell completion tests: <a href="https://github.com/marckhouzam"><code>@marckhouzam</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1803">#1803</a></li> <li>Use <code>action/setup-go</code> cache: <a href="https://github.com/umarcor"><code>@umarcor</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1783">#1783</a></li> <li>Add <code>workflow_dispatch</code> to CI actions: <a href="https://github.com/umarcor"><code>@umarcor</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1387">#1387</a></li> <li>Add minimum GitHub token permissions for workflows: <a href="https://github.com/varunsh-coder"><code>@varunsh-coder</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1792">#1792</a></li> </ul> <h4>Docs ✏️</h4> <ul> <li>Fixup spelling for GitHub CLI: <a href="https://github.com/eltociear"><code>@eltociear</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1744">#1744</a></li> <li>Clarify <code>SetContext</code> documentation: <a href="https://github.com/katexochen"><code>@katexochen</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1748">#1748</a></li> <li>Instruct user to <code>go install</code> for binary: <a href="https://github.com/marckhouzam"><code>@marckhouzam</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1726">#1726</a></li> <li>User guide cleanup: <a href="https://github.com/marckhouzam"><code>@marckhouzam</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1656">#1656</a></li> <li>Document option to hide the default completion command: <a href="https://github.com/marckhouzam"><code>@marckhouzam</code></a> <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1779">#1779</a></li> </ul> <h4>Misc 💭</h4> <ul> <li>Add KubeVirt, CloudQuery, Cilium, Okteto, Zitadel, Allero to projects using cobra: <a href="https://github.com/maiqueb"><code>@maiqueb</code></a> <a hre…
Description
Closes: #XXXX
jira: https://forbole.atlassian.net/browse/BDU-604
Background:
Sifchain hard-coded
validator minimum commission
in a new release and updated it withsoftware upgrade
. Without anyMsgEditValidator
involved, thevalidator commission %
could not be updated and were then incorrect.This PR stores
software upgrade proposal's upgrade plan
and uses theupgrade
module to check if there's an upgrade plan at each height, if yes it will proceed with neccessary updates of data. Currently it's only updating the validator infos (the rest of the data I believe we haveperiodic task
orhandle block
which should be enough). We can add more in the future if similar cases pop up.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...
!
to the type prefix if API or client breaking changeCHANGELOG.md
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...
!
in the type prefix if API or client breaking change