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

docs: move invalid v20 breaking changes #2986

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

lumtis
Copy link
Member

@lumtis lumtis commented Oct 10, 2024

Description

The change was not shipped in v20

Summary by CodeRabbit

  • New Features

    • Introduced a new endpoint for querying fixed block reward amounts.
    • Added a transaction type for removing chain information.
  • Breaking Changes

    • Removed the endpoint for emissions factors.
    • Updated the process for chain updates to require a JSON file for individual chain details.

Copy link
Contributor

coderabbitai bot commented Oct 10, 2024

📝 Walkthrough

Walkthrough

The changes documented in v20_breaking_changes.md detail the removal of the EmissionsFactors from the emissions module, which includes the deprecation of the endpoint /zeta-chain/emissions/get_emissions_factors. Users are now directed to the new endpoint /zeta-chain/emissions/params for fixed block reward amounts. Additionally, the update_chain_info message has been refactored to accept a JSON file for single chain updates, and a new transaction type, RemoveChainInfo, has been introduced for chain removal.

Changes

File Path Change Summary
docs/releases/v20_breaking_changes.md - Removed endpoint: /zeta-chain/emissions/get_emissions_factors
- Added endpoint: /zeta-chain/emissions/params for fixed block reward
- Refactored update_chain_info to accept a JSON file for single chain updates
- Introduced transaction type: RemoveChainInfo for chain removal

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant EmissionsModule
    participant ChainInfo

    User->>EmissionsModule: Query fixed block reward (/zeta-chain/emissions/params)
    EmissionsModule-->>User: Return fixed block reward amount

    User->>ChainInfo: Update chain info (JSON file)
    ChainInfo-->>User: Confirm chain info updated or added

    User->>ChainInfo: Remove chain (chain-id)
    ChainInfo-->>User: Confirm chain removed
Loading

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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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.

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.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
docs/releases/v21_breaking_changes.md (2)

Line range hint 3-12: Consider emphasizing the new transaction type.

The information provided about the refactoring of update_chain_info and the introduction of RemoveChainInfo is clear and concise. To further improve clarity, consider emphasizing the addition of the new transaction type.

Suggestion:

 # V21 Breaking Changes

 ### Update chain info refactored
+
+#### New transaction type: `RemoveChainInfo`

 * The `update_chain_info` message has been refactored to update/add a single chain ,instead of providing the entire list as `ChainInfo` 
   * The user is now required to provide a json file with the details of the chain to be updated/added.
     * If the chain already exists, the details will be updated.
     * If the chain does not exist, it will be added to the list of chains and saved to the store.
   * A new transaction type `RemoveChainInfo` has also been added to remove a chain from the list of chains.
     * It accepts the chain-id of the chain to be removed as a parameter.

This change highlights the introduction of the new transaction type, making it more prominent for users reviewing the breaking changes.

🧰 Tools
🪛 Markdownlint

16-16: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


17-17: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


13-18: Adjust list formatting for consistency.

The information provided about the deprecation of EmissionsFactors is clear and concise. However, there's a minor formatting inconsistency in the unordered list.

To address the Markdownlint hints and improve consistency, apply the following changes:

 ### Emissions factors deprecated

 * `EmissionsFactors` have been deprecated and removed from the `emissions` module.
-  - This results in the removal of the query `/zeta-chain/emissions/get_emissions_factors`.
-  - The fixed block reward amount can now be queried via `/zeta-chain/emissions/params`. This is constant for every block and does not depend on any factors.
+  * This results in the removal of the query `/zeta-chain/emissions/get_emissions_factors`.
+  * The fixed block reward amount can now be queried via `/zeta-chain/emissions/params`. This is constant for every block and does not depend on any factors.

This change ensures consistent use of asterisks for all levels of the unordered list, improving the overall document formatting.

🧰 Tools
🪛 Markdownlint

16-16: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


17-17: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 81fc485 and 47cd640.

📒 Files selected for processing (2)
  • docs/releases/v20_breaking_changes.md (0 hunks)
  • docs/releases/v21_breaking_changes.md (1 hunks)
💤 Files with no reviewable changes (1)
  • docs/releases/v20_breaking_changes.md
🧰 Additional context used
🪛 Markdownlint
docs/releases/v21_breaking_changes.md

16-16: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


17-17: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)

🔇 Additional comments (2)
docs/releases/v21_breaking_changes.md (2)

Line range hint 1-3: Document structure and title are appropriate.

The document is well-structured with a clear title and proper use of markdown headers for main sections. This organization enhances readability and aligns with the PR objectives.

🧰 Tools
🪛 Markdownlint

16-16: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


17-17: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


Line range hint 1-18: Document effectively communicates V21 breaking changes.

The document successfully outlines the breaking changes for version 21, including the refactoring of update_chain_info, the introduction of RemoveChainInfo, and the deprecation of EmissionsFactors. The content is clear, concise, and aligns well with the PR objectives.

The minor formatting suggestions provided earlier will further enhance the document's readability and consistency. Overall, this documentation update effectively informs users about the significant changes in this version.

🧰 Tools
🪛 Markdownlint

16-16: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


17-17: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)

@lumtis lumtis added the no-changelog Skip changelog CI check label Oct 10, 2024
@lumtis lumtis added this pull request to the merge queue Oct 11, 2024
Merged via the queue into develop with commit 95186e0 Oct 11, 2024
38 of 39 checks passed
@lumtis lumtis deleted the fix/breaking-changes-docs branch October 11, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Skip changelog CI check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants