Skip to content

Commit

Permalink
build: Sync upstream changes to testnet [DEV-1859] (#53)
Browse files Browse the repository at this point in the history
* 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 &quot;remove fields written into &quot;PartsOrder&quot; (<a href="https://github-redirect.dependabot.com/rs/zerolog/issues/383">#383</a>)&quot;</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 &quot;work&quot; 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> &amp; <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…
  • Loading branch information
9 people authored Oct 27, 2022
1 parent 48a2f90 commit 33ff173
Show file tree
Hide file tree
Showing 38 changed files with 335 additions and 1,097 deletions.
23 changes: 12 additions & 11 deletions .github/linters/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- unused
- depguard
- dogsled
- gocritic
- gofmt
- goimports
- golint
- revive
- gosec
- gosimple
- govet
- ineffassign
- maligned
- misspell
- nakedret
- scopelint
- exportloopref
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
Expand All @@ -39,10 +37,10 @@ issues:
- gosec
- text: "comment on exported var"
linters:
- golint
- revive
- text: "don't use an underscore in package name"
linters:
- golint
- revive
- text: "ST1003:"
linters:
- stylecheck
Expand All @@ -57,11 +55,14 @@ issues:
linters-settings:
dogsled:
max-blank-identifiers: 3
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
require-specific: false
misspell:
ignore-words:
- cheqd
govet:
enable:
- fieldalignment
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- uses: actions/checkout@v3
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ jobs:

steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version-file: ./go.mod
cache: true

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.28
version: latest
args: --config .github/linters/.golangci.yaml

super-lint:
Expand All @@ -57,7 +62,4 @@ jobs:
VALIDATE_DOCKERFILE_HADOLINT: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_JSONC: true
VALIDATE_OPENAPI: true
VALIDATE_PYTHON_PYLINT: true
VALIDATE_XML: true
VALIDATE_YAML: true
24 changes: 23 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,44 @@
### STAGE 1: Build BDJuno pre-requisites ###
###############################################################

FROM golang:1.17-alpine AS builder
FROM golang:1.18-alpine AS builder

RUN apk update && apk add --no-cache make git bash

WORKDIR /go/src/github.com/forbole/bdjuno
COPY . ./

######################################################
## Enabe the lines below if chain supports cosmwasm ##
## module to properly build docker image ##
######################################################
#RUN apk update && apk add --no-cache ca-certificates build-base git
#ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
#ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
#RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 9ecb037336bd56076573dc18c26631a9d2099a7f2b40dc04b6cae31ffb4c8f9a
#RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 6e4de7ba9bad4ae9679c7f9ecf7e283dd0160e71567c6a7be6ae47c81ebe7f32
## Copy the library you want to the final location that will be found by the linker flag `-lwasmvm_muslc`
#RUN cp /lib/libwasmvm_muslc.$(uname -m).a /lib/libwasmvm_muslc.a
RUN go mod download && make build

##################################################
## Enabe line below if chain supports cosmwasm ##
## module to properly build docker image ##
##################################################
#RUN LINK_STATICALLY=true BUILD_TAGS="muslc" make build


###############################################################
### STAGE 2: Copy chain-specific BDJuno config ###
###############################################################

FROM alpine:3.16 AS bdjuno

##################################################
## Enabe line below if chain supports cosmwasm ##
## module to properly build docker image ##
##################################################
#RUN apk update && apk add --no-cache ca-certificates build-base
RUN apk update && apk add --no-cache bash ca-certificates curl

# Copy BDJuno binary
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ LD_FLAGS = -X github.com/forbole/juno/v3/cmd.Version=$(VERSION) \
-X github.com/forbole/juno/v3/cmd.Commit=$(COMMIT)
BUILD_FLAGS := -ldflags '$(LD_FLAGS)'

ifeq ($(LINK_STATICALLY),true)
LD_FLAGS += -linkmode=external -extldflags "-Wl,-z,muldefs -static"
endif

build_tags += $(BUILD_TAGS)
build_tags := $(strip $(build_tags))

BUILD_FLAGS := -ldflags '$(LD_FLAGS)' -tags "$(build_tags)"

###############################################################################
### Build ###
Expand Down
4 changes: 2 additions & 2 deletions cmd/migrate/v1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type Token struct {

type TokenUnit struct {
Denom string `toml:"denom"`
Exponent int `toml:"exponent"`
Aliases []string `toml:"aliases"`
PriceID string `toml:"price_id"`
Aliases []string `toml:"aliases"`
Exponent int `toml:"exponent"`
}

type DistributionConfig struct {
Expand Down
11 changes: 4 additions & 7 deletions cmd/migrate/v3/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ package v3

import (
"fmt"
"io/ioutil"
"os"

"github.com/forbole/bdjuno/v3/modules/actions"

parsecmdtypes "github.com/forbole/juno/v3/cmd/parse/types"

"gopkg.in/yaml.v3"

junov3 "github.com/forbole/juno/v3/cmd/migrate/v3"
parsecmdtypes "github.com/forbole/juno/v3/cmd/parse/types"
"github.com/forbole/juno/v3/types/config"
"gopkg.in/yaml.v3"
)

// RunMigration runs the migrations from v2 to v3
Expand Down Expand Up @@ -39,7 +36,7 @@ func RunMigration(parseConfig *parsecmdtypes.Config) error {
return fmt.Errorf("error while serializing config: %s", err)
}

err = ioutil.WriteFile(config.GetConfigFilePath(), bz, 0o600)
err = os.WriteFile(config.GetConfigFilePath(), bz, 0o600)
if err != nil {
return fmt.Errorf("error while writing v3 config: %s", err)
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/migrate/v3/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package v3

import (
"fmt"
"io/ioutil"
"os"
"path"

Expand All @@ -19,7 +18,7 @@ func GetConfig() (Config, error) {
return Config{}, fmt.Errorf("config file does not exist")
}

bz, err := ioutil.ReadFile(file)
bz, err := os.ReadFile(file)
if err != nil {
return Config{}, fmt.Errorf("error while reading config files: %s", err)
}
Expand Down
Loading

0 comments on commit 33ff173

Please sign in to comment.