Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: v6.3 upgrade handler and release notes #2376

Merged
merged 8 commits into from
Jan 3, 2024
Merged

Conversation

robert-zaremba
Copy link
Member

@robert-zaremba robert-zaremba commented Jan 2, 2024

Summary by CodeRabbit

  • New Features

    • Added symbol name to the x/uibc QueryAllOutflowsResponse outflows entry.
    • Added new queries uibc/MissCounters and uibc/Inflows.
    • Addition of query leverage/RegisteredTokenMarkets to fetch Registered Tokens and their Market Summaries for frontend in fewer queries.
  • Improvements

    • Modification of parameters in uic/MsgGovUpdateQuota to uibc/MsgGovUpdateQuota.
    • Addition of ICS 20 memo handler (disabled) in UIBC.
    • Adjusted IBC Quota v2 mechanism for better quota management.
  • Bug Fixes

    • Fix in inflow amount calculation.
  • Documentation

    • Updated CHANGELOG to reflect the latest changes and improvements.

@robert-zaremba robert-zaremba added C:Docs C:Core Core app features labels Jan 2, 2024
@robert-zaremba robert-zaremba requested a review from a team as a code owner January 2, 2024 23:36
Copy link
Contributor

coderabbitai bot commented Jan 2, 2024

Walkthrough

The recent update to version v6.3.0 brings enhancements and new features to the system. It includes parameter modifications, additional queries, and a fix in calculation logic. A new handler is added but remains disabled, and a significant upgrade is made to the Cosmos SDK. The upgrade process itself has been refined with changes to the registration methods to better manage new versions.

Changes

File(s) Change Summary
uibc/MsgGovUpdateQuota, uibc/.../QueryAllOutflowsResponse Modified parameters and added symbol name to entries.
uibc/MissCounters, uibc/Inflows, leverage/RegisteredTokenMarkets Introduced new queries for enhanced data retrieval.
UIBC ICS 20 memo handler Added a new handler, currently disabled.
... Fixed inflow amount calculation.
app/upgrades.go Refined upgrade registration process with method name changes and new upgrade handling logic.

🐇✨
In the realm of code, where changes abound,
A rabbit hops through, leaving footprints on the ground.
v6.3.0, a leap ahead, so spry,
With tweaks and new queries, oh how time does fly!
🚀🌟

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 with CodeRabbit Bot (@coderabbitai)

  • You can directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging @coderabbitai in a comment. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • You can tag @coderabbitai in a PR comment and ask questions about the PR and the codebase. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid.
    • @coderabbitai read the files in the src/scheduler package and generate 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.

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.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d6e83ee and eb3c9d4.
Files selected for processing (4)
  • CHANGELOG.md (1 hunks)
  • README.md (1 hunks)
  • RELEASE_NOTES.md (1 hunks)
  • app/upgrades.go (2 hunks)
Additional comments: 11
RELEASE_NOTES.md (2)
  • 9-16: The release notes for v6.3.0 correctly summarize the key updates and new features introduced in this version, including the Cosmos SDK patch update, new queries, message type updates, and response enhancements.

  • 22-22: The upgrade title for Cosmovisor is correctly set to "v6.3" to match the new version release.

README.md (2)
  • 64-64: The Release Compatibility Matrix has been updated to include the new version v6.3.x along with its corresponding dependencies, ensuring users are aware of the compatible versions.

  • 68-68: The Price Feeder repository link has been updated to point to the new recommended oracle price feeder repository, aligning with the PR objectives.

app/upgrades.go (2)
  • 59-62: The RegisterUpgradeHandlers method has been updated with the renaming of registerUpgrade6 to registerUpgrade6_0 and the addition of a new method for "v6.3", which aligns with the PR objectives for handling the new upgrade logic.

  • 65-65: The registerUpgrade6_2 method has been updated internally to handle the upgrade logic, with no changes to the method signature, which is consistent with the PR objectives.

CHANGELOG.md (5)
  • 49-67: The changelog for version v6.3.0 is well-documented, with clear references to pull requests for each change. It's important to ensure that all listed changes correspond to actual merged PRs and that the descriptions accurately reflect the changes made in those PRs.

  • 49-67: The structure of the changelog entries is consistent with the guiding principles provided at the beginning of the file, which is good for maintainability and readability.

  • 49-67: The grouping of changelog entries by type (Improvements, Features, Bug Fixes) is a best practice that enhances the readability and organization of the document.

  • 49-49: Including the release date for version v6.3.0 is a good practice for historical tracking and should always be included in version entries.

  • 67-67: The changelog entry for the bug fix related to inflow amount calculation provides critical information for users who might have been affected by this issue, ensuring transparency and trust in the release notes.

Copy link
Member

@toteki toteki left a comment

Choose a reason for hiding this comment

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

approved w/comments

Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 98 lines in your changes are missing coverage. Please review.

Comparison is base (7f05ad4) 75.38% compared to head (3a0099d) 70.03%.
Report is 335 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2376      +/-   ##
==========================================
- Coverage   75.38%   70.03%   -5.36%     
==========================================
  Files         100      174      +74     
  Lines        8025    13027    +5002     
==========================================
+ Hits         6050     9123    +3073     
- Misses       1589     3299    +1710     
- Partials      386      605     +219     
Files Coverage Δ
ante/ante.go 66.66% <100.00%> (+18.45%) ⬆️
ante/fee.go 80.00% <100.00%> (+1.64%) ⬆️
ante/spam_prevention.go 75.92% <ø> (ø)
app/inflation/inflation.go 100.00% <100.00%> (ø)
app/upgradev3/migrations.go 84.21% <ø> (+5.94%) ⬆️
util/coin/utoken.go 100.00% <100.00%> (ø)
util/genmap/genmap.go 100.00% <100.00%> (ø)
util/ibc/ibc.go 58.82% <ø> (ø)
util/sdkutil/events.go 0.00% <ø> (ø)
util/store/iter.go 36.00% <ø> (-0.37%) ⬇️
... and 40 more

... and 114 files with indirect coverage changes

Copy link
Collaborator

@gsk967 gsk967 left a comment

Choose a reason for hiding this comment

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

Pre-Approving

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between eb3c9d4 and 8ae4ccc.
Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • app/upgrades.go (3 hunks)
Files skipped from review as they are similar to previous changes (2)
  • CHANGELOG.md
  • app/upgrades.go

robert-zaremba and others added 3 commits January 3, 2024 09:53
Co-authored-by: Sai Kumar <17549398+gsk967@users.noreply.github.com>
Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 8ae4ccc and 3a0099d.
Files selected for processing (4)
  • CHANGELOG.md (1 hunks)
  • RELEASE_NOTES.md (1 hunks)
  • sdkclient/tx/client.go (1 hunks)
  • tests/e2e/setup/utils.go (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • CHANGELOG.md
  • RELEASE_NOTES.md
Additional comments: 1
tests/e2e/setup/utils.go (1)
  • 297-297: The retry limit in the BroadcastTxWithRetry function has been reduced. Ensure that this change does not negatively impact the reliability of transaction broadcasting, especially in environments with high latency or network instability.

@robert-zaremba robert-zaremba added this pull request to the merge queue Jan 3, 2024
Merged via the queue into main with commit 007207a Jan 3, 2024
25 of 27 checks passed
@robert-zaremba robert-zaremba deleted the robert/v6.3 branch January 3, 2024 10:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C:Core Core app features C:Docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants