Skip to content
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

Sync feature with main branch #6346

Merged
merged 99 commits into from
May 21, 2024
Merged

Sync feature with main branch #6346

merged 99 commits into from
May 21, 2024

Conversation

chatton
Copy link
Contributor

@chatton chatton commented May 21, 2024

Description

This PR pulls in all changes in main to the feature branch

NOTE: I have temporarily enabled merge commits for this PR, we must not squash and merge this PR otherwise we'll need to start over.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

dependabot bot and others added 30 commits April 8, 2024 11:41
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.62.1 to 1.63.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/grpc/grpc-go/releases">google.golang.org/grpc's releases</a>.</em></p>
<blockquote>
<h2>Release 1.63.0</h2>
<h1>Behavior Changes</h1>
<ul>
<li>grpc: Return canonical target string from <code>resolver.Address.String()</code> (experimental) (<a href="https://github.com/grpc/grpc-go/issues/6923">#6923</a>)</li>
<li>client &amp; server: when using write buffer pooling, use input value for buffer size instead of size*2 (<a href="https://github.com/grpc/grpc-go/issues/6983">#6983</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/raghav-stripe"><code>@​raghav-stripe</code></a></li>
</ul>
</li>
</ul>
<h1>New Features</h1>
<ul>
<li>grpc: add <code>ClientConn.CanonicalTarget()</code> to return the canonical target string. (<a href="https://github.com/grpc/grpc-go/issues/7006">#7006</a>)</li>
<li>xds: implement LRS named metrics support (<a href="https://github.com/grpc/proposal/blob/master/A64-lrs-custom-metrics.md">gRFC A64</a>) (<a href="https://github.com/grpc/grpc-go/issues/7027">#7027</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/danielzhaotongliu"><code>@​danielzhaotongliu</code></a></li>
</ul>
</li>
<li>grpc: introduce <code>grpc.NewClient</code> to allow users to create new clients in idle mode and with &quot;dns&quot; as the default resolver (<a href="https://github.com/grpc/grpc-go/issues/7010">#7010</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/bruuuuuuuce"><code>@​bruuuuuuuce</code></a></li>
</ul>
</li>
</ul>
<h1>API Changes</h1>
<ul>
<li>grpc: stabilize experimental method <code>ClientConn.Target()</code> (<a href="https://github.com/grpc/grpc-go/issues/7006">#7006</a>)</li>
</ul>
<h1>Bug Fixes</h1>
<ul>
<li>xds: fix an issue that would cause the client to send an empty list of resources for LDS/CDS upon reconnecting with the management server (<a href="https://github.com/grpc/grpc-go/issues/7026">#7026</a>)</li>
<li>server: Fix some errors returned by a server when using a <code>grpc.Server</code> as an <code>http.Handler</code> with the Go stdlib HTTP server (<a href="https://github.com/grpc/grpc-go/issues/6989">#6989</a>)</li>
<li>resolver/dns: add <code>SetResolvingTimeout</code> to allow configuring the DNS resolver's global timeout (<a href="https://github.com/grpc/grpc-go/issues/6917">#6917</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/and1truong"><code>@​and1truong</code></a></li>
</ul>
</li>
<li>Set the security level of Windows named pipes to NoSecurity (<a href="https://github.com/grpc/grpc-go/issues/6956">#6956</a>)
<ul>
<li>Special Thanks: <a href="https://github.com/irsl"><code>@​irsl</code></a></li>
</ul>
</li>
</ul>
<h2>Release 1.62.2</h2>
<h1>Dependencies</h1>
<ul>
<li>Update http2 library to address vulnerability <a href="https://www.kb.cert.org/vuls/id/421644">CVE-2023-45288</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/grpc/grpc-go/commit/c68f4566b9cacdb11c42a6eb14ee66a33d9b7c12"><code>c68f456</code></a> Change version to 1.63.0 (<a href="https://github.com/grpc/grpc-go/issues/7050">#7050</a>)</li>
<li><a href="https://github.com/grpc/grpc-go/commit/6369167ae33538aca051225fe5b5e07c2b022eb5"><code>6369167</code></a> *: update http2 dependency (<a href="https://github.com/grpc/grpc-go/issues/7082">#7082</a>)</li>
<li><a href="https://github.com/grpc/grpc-go/commit/88547614e7427f7ce87a5f5485d897ae09044641"><code>8854761</code></a> cherry-pick: channelz: fix race accessing channelMap without lock (<a href="https://github.com/grpc/grpc-go/issues/7079">#7079</a>) (<a href="https://github.com/grpc/grpc-go/issues/7">#7</a>...</li>
<li><a href="https://github.com/grpc/grpc-go/commit/e62770d76fc9508a2266d8bb8c6f2967e0dbc6fc"><code>e62770d</code></a> channelz: add LocalAddr to listen sockets and test (<a href="https://github.com/grpc/grpc-go/issues/7062">#7062</a>) (<a href="https://github.com/grpc/grpc-go/issues/7063">#7063</a>)</li>
<li><a href="https://github.com/grpc/grpc-go/commit/4ffccf1a5f97417eeb000d521f6415b6eb33bb5f"><code>4ffccf1</code></a> googlec2p: use xdstp style template for client LDS resource name (<a href="https://github.com/grpc/grpc-go/issues/7048">#7048</a>)</li>
<li><a href="https://github.com/grpc/grpc-go/commit/faf9964afe47a919a1469419413a0cae4bc86769"><code>faf9964</code></a> gracefulswitch: add ParseConfig and make UpdateClientConnState call SwitchTo ...</li>
<li><a href="https://github.com/grpc/grpc-go/commit/800a8e02b5f25fa6aceb5771c0c263dae0928f8f"><code>800a8e0</code></a> channelz: re-add state for subchannels (<a href="https://github.com/grpc/grpc-go/issues/7046">#7046</a>)</li>
<li><a href="https://github.com/grpc/grpc-go/commit/dadbbfa2863a67ed640aac924b7b7fd18b50a429"><code>dadbbfa</code></a> channelz: re-add target and state (<a href="https://github.com/grpc/grpc-go/issues/7042">#7042</a>)</li>
<li><a href="https://github.com/grpc/grpc-go/commit/55cd7a68b3c18a0f76ea9c1be37221a5b901a798"><code>55cd7a6</code></a> channelz: major cleanup / reorganization (<a href="https://github.com/grpc/grpc-go/issues/6969">#6969</a>)</li>
<li><a href="https://github.com/grpc/grpc-go/commit/a1033b1f44942fe30e3308ba85ee647e4187d97e"><code>a1033b1</code></a> xds: add LRS named metrics support (<a href="https://github.com/grpc/grpc-go/issues/7027">#7027</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/grpc/grpc-go/compare/v1.62.1...v1.63.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google.golang.org/grpc&package-manager=go_modules&previous-version=1.62.1&new-version=1.63.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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@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>
* added new release branches

* update json files

* some fixes for failing tests

* fix release version

* chore: post v4.6.0, v5.4.0, v6.3.0, v7.4.0, v8.2.0 releases

* add release-v7.4.x folder
…6118)

Bumps [DavidAnson/markdownlint-cli2-action](https://github.com/davidanson/markdownlint-cli2-action) from 15 to 16.
- [Release notes](https://github.com/davidanson/markdownlint-cli2-action/releases)
- [Commits](DavidAnson/markdownlint-cli2-action@v15...v16)

---
updated-dependencies:
- dependency-name: DavidAnson/markdownlint-cli2-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…n /modules/light-clients/08-wasm (#6097)

* build(deps): Bump github.com/CosmWasm/wasmvm/v2

Bumps [github.com/CosmWasm/wasmvm/v2](https://github.com/CosmWasm/wasmvm) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/CosmWasm/wasmvm/releases)
- [Changelog](https://github.com/CosmWasm/wasmvm/blob/main/CHANGELOG.md)
- [Commits](CosmWasm/wasmvm@v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: github.com/CosmWasm/wasmvm/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* e2e go mod tidy

* add changelog

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
* remove event emission

* Update events.go

* update test acrroding

* update hermes tag

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: Charly <charly@interchain.io>
* Addressed lint issues for 03-connection

* Address linter findings of 04-channel and 23-commitments

* Address more findings.
* Address linter findings on core/02-client

* Update modules/core/02-client/keeper/keeper.go

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>

* Better panic messages.

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
* Address linting issues in apps/

* Update modules/apps/callbacks/testing/simapp/app.go

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>

* Better panic messages

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: Cian Hatton <cian@interchain.io>
* Address linter issues in e2e/.

* Update e2e/testsuite/testconfig.go

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>

* Use aux variable to print type

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: Cian Hatton <cian@interchain.io>
* build(deps): Bump google.golang.org/grpc from 1.63.0 to 1.63.2

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.63.0 to 1.63.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.63.0...v1.63.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: make tidy-all

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
* chore: add extra defensive check to SendPacket

* test: adding testcase for SendPacket client zero height
Co-authored-by: Nikolas De Giorgis <bznein@google.com>
Co-authored-by: Cian Hatton <cian@interchain.io>
Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
* Replace Router with PortKeeper in IBCKeeper.

* Major refactoring of tests.

* Remove non-working test code.

* Update modules/core/05-port/keeper/keeper.go

Co-authored-by: Cian Hatton <github.qpeyb@simplelogin.fr>

* Make GetRoute a method of *Keeper

* Update 13-v8-to-v9.md

* Update CHANGELOG.md

* Update 13-v8-to-v9.md

* Change GetRoute signature.

---------

Co-authored-by: Cian Hatton <github.qpeyb@simplelogin.fr>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
* chores: cleanup e2e

* clean up
…host (#6130)

* Address linting issues in various modules.

* Fixed missing return

* Linting issues in 09-localhost.

* Update modules/light-clients/06-solomachine/store.go

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>

* Add newlines before return.

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
* build(deps): Bump cosmossdk.io/x/tx from 0.13.1 to 0.13.2

Bumps [cosmossdk.io/x/tx](https://github.com/cosmos/cosmos-sdk) from 0.13.1 to 0.13.2.
- [Release notes](https://github.com/cosmos/cosmos-sdk/releases)
- [Changelog](https://github.com/cosmos/cosmos-sdk/blob/main/CHANGELOG.md)
- [Commits](cosmos/cosmos-sdk@v0.13.1...x/tx/v0.13.2)

---
updated-dependencies:
- dependency-name: cosmossdk.io/x/tx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps: bump x/tx to 0.13.2 and run tidy-all

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
* Address linting issues in various modules.

* Fixed missing return

* Linting issues in 09-localhost.

* Update modules/light-clients/06-solomachine/store.go

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>

* Add newlines before return.

* Address lint issues in 07-tendermint

* Address more linter issues in 07-tendermint.

* Revert changes included in different PR

* Revert changes included in different PR.

* Revert changes.

* Revert changes.

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
Co-authored-by: Charly <charly@interchain.io>
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
* tests: move tests from client state to light client module for 08-wasm.

* Remove usage of globals from 08-wasm (#6103)

* Move functionality from client state methods to light client module methods.

 - Yank all statements and delete functions as needed.
 - Make any required functions from types/ public.
 - Add the vm in the 08-wasm keeper.
 - Update documentation to include documentation of deleted functions.

* Remove global VM, introspection to retrieve client identifier.

 - Refactor signatures to explicitly pass vm, client identifier for time being.
 - Refactor tests to conform with new signatures.
 - Replace occurences of `ibcwasm.GetVM` in other keeper functions.

* Move migrateContract from clientState to keeper method.

- Matches moves for other functions.
- Move is required to address future circular dependency for state management (keeper would import types and types would import keeper)
- Rm migrate_contract(test).go files.

* Move state management to keeper.

- Remove globals for state (Checksums)
- Move access functions from types to keeper, move tests.
- Update calls using global to instead go through keeper.

* Make InitializePinnedCodes a method on the keeper.

* Remove pending todo in test for migrate contract.

This previously was testing a function that didn't set the client state after calling the contract (invoking through the keeper
always sets a client state after contract invocation). Hence, even if we don't set explicitly in the migrateFn callback, we _still_ get
a client state in the end.

* Move vm entrypoint functions in keeper/ package.

* feat: move vm entry points to keeper.

* chore: simplify signatures.

* test: add amended tests for contact keeper.

* refactor: move querier to keeper package.

* lint: you'll never fix me.

* refactor: remove queryRouter global variable

 - Move into the func for creating new plugins, pass it to acceptStargateQuery directly. This is probably what wasmd did (see they don't accept a query router now?).
   Since we don't use the get elsewhere, this was the smallest diff for a globa.
 - Preemptively ran make lint-fix, gotcha linting crybaby.

* refactor: remove global for query plugins.

* nit: rename to queryPlugins.

* refactor: remove QueryPluginsI interface.

* refactor: make queryHandler a private type.

* Make migrateContractCode a private function, clean up uneeded export in export_test.go for types/.

* refactor: Move vm entrypoints to keeper.

- Remove generic types and do unmarshalling in light client methods.
- Move all functions onto keeper and adjust call sites.

* chore: address some testing todos. Move testing unmarshal failure case to light client tests.

* chore: additional tiny nits.

- Consistently use wasmClientKeeper as local var name.
- Reorg keeper fields slightly.
- Rm 'vm.go' which was already empty.

* chore: restructure definitions to make diff more readable.

* d'oh: rm vm arg from instantiate.

* nit: Space out keeper fields. Remove TODO for method name.

* chore: address remaining TODOs.

* nit: don't hold ref to schema after building it.

* Update modules/light-clients/08-wasm/types/gas_register.go

Co-authored-by: Damian Nolan <damiannolan@gmail.com>

* lint: shut up

---------

Co-authored-by: Damian Nolan <damiannolan@gmail.com>
* Address lint findings in testing/

* Remove nolint directive

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
* e2e: testsuite updated

* test: fixed client_test

* test: fixed ica tests

* e2e: query refactor and fix more tests

* test: fixed more tests

* style: ran 'golangci-lint'

* style: renamed query methods

* refactor: fix more golangci-lint errors

* e2e: attempted fix of client state query

* test: fix and refactor

* test: attempted fix of cmttypes

* imp: fixed queries for cmttypes

* fix: attempted fix for assert relayed

* fix: assert relayed

* imp: client fix

* fix: new test

* docs: fix godocs

* style: ran golangci-lint

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
* nit: add documentation for private methods that are too spicy (re: complex) to not document.

* Update modules/light-clients/08-wasm/keeper/keeper.go

Co-authored-by: Damian Nolan <damiannolan@gmail.com>

---------

Co-authored-by: Damian Nolan <damiannolan@gmail.com>
* refactor(modules/core): use asset events instead of assert event legacy

* refactor(modules/apps): use asset events instead of assert event legacy

* refactor: remove asset events legacy and events map

* fix: linter errors

* fix: linter errors

* fix linter errors

* add migration docs

* add changelog

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
Co-authored-by: Charly <charly@interchain.io>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
damiannolan and others added 10 commits May 19, 2024 22:44
* fix: no-op rather than panic in solomachine update state

* Update modules/light-clients/06-solomachine/update.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* add changelog

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
…xecution (#6278)

* performance: exit early on recvpacket to exclude app callbacks

* perf: skip pruning on check tx and recheck tx

* change fmt.Errorf to errors.New

* fix: check execMode simulate in conditional

* revert: recv packet changes

* fix: account for simulation in pruning check

* fix: reuse checkTx ctx

* chore: add changelog

---------

Co-authored-by: Damian Nolan <damiannolan@gmail.com>
* perf: only perform core ibc logic on recvpacket checktx

* try me linter

* fix: reorder if and add comment

* chore: add changelog entry
Bumps [JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/jamesives/github-pages-deploy-action/releases)
- [Commits](JamesIves/github-pages-deploy-action@v4.6.0...v4.6.1)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.31.0...v1.32.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
* perf: minimize logic on rechecktx for recvpacket

* refactor: rework layout for recvpacket rechecktx

* test: add tests for 04-channel rechecktx func

* test: add tests for core ante handler

* chore: add comment explaining is rechecktx usage

* linter appeasement

* chore: add changelog entry

* Update modules/core/ante/ante.go

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>

* imp: use cached ctx for consistency

* refactor: change added test to use expected errors

* lint

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Copy link
Contributor

coderabbitai bot commented May 21, 2024

Important

Review Skipped

Auto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@chatton chatton marked this pull request as ready for review May 21, 2024 14:46
@colin-axner colin-axner added the priority PRs that need prompt reviews label May 21, 2024
if !slices.Contains(types.SupportedVersions, counterpartyVersion) {
return types.V2, nil
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the only change that happened, there was actually a bug where the capability wasn't being claimed correctly which happened when the default V2 was returned. We now claim capability before this return.

@colin-axner
Copy link
Contributor

looks like we have linting failures

Copy link

sonarcloud bot commented May 21, 2024

Quality Gate Passed Quality Gate passed for 'ibc-go'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@DimitrisJim
Copy link
Contributor

merging via 'create merge commit'

@DimitrisJim DimitrisJim merged commit 5747756 into feat/ics20-v2 May 21, 2024
79 checks passed
@DimitrisJim DimitrisJim deleted the merge-main branch May 21, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority PRs that need prompt reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.