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

merge release/v2.1.x #2886

Closed
wants to merge 5 commits into from
Closed

merge release/v2.1.x #2886

wants to merge 5 commits into from

Conversation

taramakage
Copy link
Contributor

@taramakage taramakage commented Dec 6, 2023

Summary by CodeRabbit

  • New Features

    • Support for querying NFT-related APIs.
    • Integration of interchain NFT transfer functionality.
    • Additional command flags for specifying key name, chain ID, and fees in CLI commands.
  • Improvements

    • Migrated several parameters for different modules.
    • Updated module import syntax and function signatures in documentation.
    • Enhanced sidebar functionality with collapsible sections.
    • Improved theme and plugin configurations in VuePress documentation.
  • Bug Fixes

    • Fixed various command issues, signature mismatches, and URL conflicts.
  • Documentation

    • Updated CLI documentation to reflect new parameters and command changes.
    • Renamed certain CLI commands for better clarity.
    • Transitioned URLs from IP addresses to domain names in configuration examples.
  • Refactor

    • Updated versions of dependencies such as tibc-go, irismod, ethermint, ibc-go, cosmos-sdk, and cometbft.

Copy link

coderabbitai bot commented Dec 6, 2023

Walkthrough

The project has undergone significant updates, including the addition of NFT-related APIs, interchain NFT transfer capabilities, and a consensus module. There's been a shift to modern import syntax in the documentation, enhanced command-line functionality with new parameters, and a move from IP addresses to domain names in configurations. No security changes were noted, but the updates suggest a focus on expanding functionality and improving user experience.

Changes

File Path Change Summary
CHANGELOG.md Added NFT API support, interchain transfer, consensus module; updated modules; migrated parameters; fixed bugs.
docs/.vuepress/... Updated import/export syntax, added defineClientConfig, restructured plugin and theme configurations.
docs/features/... Updated CLI commands with new parameters (--chain-id, --fees), altered inflation calculation logic, and renamed commands for clarity.
docs/get-started/state-sync.md Updated URLs from IP addresses to domain names in configuration.

🐇✨
In the code where changes abound,
A rabbit hops without a sound.
NFTs dance with new delight,
As docs now gleam with modern light. 🌟📜


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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.

Note: For conversation with the bot, please use the review comments on code diffs or files.

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

Copy link

@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 8f5944e and 96af9ec.
Files ignored due to filter (2)
  • go.mod
  • go.sum
Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
Additional comments: 2
CHANGELOG.md (2)
  • 3-44: The CHANGELOG.md file reflects substantial updates to the software, including API changes, state machine updates, new features like interchain NFT transfer, module updates, migrations, bug fixes, and security improvements. These changes align with the summary provided, indicating a major version update with significant enhancements and breaking changes.

  • 44-44: The summary mentions security-related changes, but there is no ### Security section or related content in the provided hunk of CHANGELOG.md. This could be an oversight or an inconsistency between the summary and the actual changes.

* chore: fix doc

* chore: fix doc

* update docs to append mandatory cmd options (#2862)

* Update nft.md

* Update distribution.md

* Update mt.md

* Update service.md

* Update state-sync.md (#2861)

replace IP with domain name, sentry-0.mainnet.irisnet.org and sentry-1.mainnet.irisnet.org

Co-authored-by: Dreamer <[email protected]>

* fix dependabot alerts

* update package-lock.json

---------

Co-authored-by: aofengli <[email protected]>
Co-authored-by: XB <[email protected]>
Co-authored-by: Dreamer <[email protected]>
Co-authored-by: jinbiao-bianjie <[email protected]>
@taramakage taramakage closed this Dec 6, 2023
Copy link

@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: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 96af9ec and 927a1cc.
Files ignored due to filter (2)
  • docs/package-lock.json
  • docs/package.json
Files selected for processing (8)
  • docs/.vuepress/client.js (1 hunks)
  • docs/.vuepress/config.js (4 hunks)
  • docs/features/distribution.md (1 hunks)
  • docs/features/mint.md (1 hunks)
  • docs/features/mt.md (7 hunks)
  • docs/features/nft.md (3 hunks)
  • docs/features/service.md (6 hunks)
  • docs/get-started/state-sync.md (1 hunks)
Files skipped from review due to trivial changes (1)
  • docs/get-started/state-sync.md
Additional comments: 26
docs/.vuepress/client.js (1)
  • 1-1: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [1-5]

The code provided in the hunk appears to be a standard VuePress client configuration setup. There are no visible issues with the syntax or structure of the code. However, the enhance function is empty, which might be intentional if there are no client-side enhancements needed, or it might be an oversight if enhancements were meant to be included.

docs/.vuepress/config.js (5)
  • 1-5: The updated import syntax from require to import is modern JavaScript practice and aligns with ES6 modules.

  • 20-46: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [7-28]

The sidebar function now includes a collapsible property, which is a useful feature for improving the navigation experience in the documentation.

  • 32-33: The export syntax has been updated to use ES6 modules, which is a modern and cleaner approach compared to module.exports.

  • 52-64: The theme configuration has been updated to reflect the new documentation structure and provide better support for community contributions.

  • 74-80: The sidebar configuration has been updated to include new sections, which should make the documentation more organized and easier to navigate.

docs/features/distribution.md (1)
  • 31-35: The documentation has been updated to reflect the new flags (--from, --chain-id, --fees) for the iris tx distribution set-withdraw-addr command. Ensure that the documentation elsewhere and any scripts or automation that use this command are also updated to include these new flags.
docs/features/mint.md (2)
  • 31-32: The example provided is clear and helps users understand the practical application of the inflation calculation formula.

  • 34-34: The documentation on the impact to users and how to query the total loose tokens amount remains informative and relevant.

docs/features/mt.md (7)
  • 26-30: The addition of --chain-id and --fees parameters to the issue command aligns with the PR objectives and summary provided. This change likely enhances transaction processing by allowing users to specify the chain ID and fees.

  • 39-39: The addition of --chain-id and --fees parameters to the mint command is consistent with the PR objectives and summary. This ensures that users can specify the chain ID and fees for minting transactions.

  • 49-49: The mint command for increasing issuance also includes the new --chain-id and --fees parameters, which is in line with the PR objectives and summary. This maintains consistency across CLI commands.

  • 59-59: The edit command has been updated with --chain-id and --fees parameters, which is consistent with the PR objectives and summary. This change allows users to specify the chain ID and fees when editing asset metadata.

  • 70-70: The transfer command now includes --chain-id and --fees parameters, aligning with the PR objectives and summary. This update allows users to specify the chain ID and fees for asset transfer transactions.

  • 80-80: The burn command has been updated to include --chain-id and --fees parameters, which is consistent with the PR objectives and summary. This allows users to specify the chain ID and fees for burning assets.

  • 140-140: No changes are observed in the tokens query command, which is consistent with the PR objectives and summary that only mentioned updates to CLI commands related to asset management and not querying.

docs/features/nft.md (3)
  • 44-44: The addition of --from, --chain-id, and --fees parameters to the issue command aligns with the PR objectives and summary, ensuring that users can specify the issuer, target chain, and transaction fees.

  • 54-54: The addition of --from, --chain-id, and --fees parameters to the transfer-denom command is consistent with the PR objectives and summary, allowing users to specify the sender, target chain, and transaction fees for transferring NFT classifications.

  • 84-84: The addition of --from, --chain-id, and --fees parameters to the transfer command is consistent with the PR objectives and summary, allowing users to specify the sender, target chain, and transaction fees for transferring specific NFTs.

docs/features/service.md (7)
  • 58-62: The addition of --from=<key-name> and --chain-id=<chain-id> flags to the iris tx service define command aligns with the summary provided. This change will require users to specify the key name and chain ID when creating a new service definition, which is a significant change to the command's usage.

  • 115-133: The addition of --from=<key-name> and --chain-id=<chain-id> flags to various service binding commands is consistent with the summary. These changes will affect how users interact with the CLI to manage service bindings, making it necessary to specify the key name and chain ID for transactions.

  • 184-199: The addition of --from=<key-name> and --chain-id=<chain-id> flags to the service invocation commands is consistent with the summary. This change will affect how users create and manage request contexts, requiring them to specify the key name and chain ID for transactions.

  • 240-240: The addition of --from=<key-name> and --chain-id=<chain-id> flags to the iris tx service respond command is consistent with the summary. This change will affect how service providers respond to requests, requiring them to specify the key name and chain ID for transactions.

  • 264-267: The addition of --from=<key-name> and --chain-id=<chain-id> flags to the iris tx service set-withdraw-addr command is consistent with the summary. This change will affect how users set their withdrawal address, requiring them to specify the key name and chain ID for transactions.

  • 273-277: The addition of --from=<key-name> and --chain-id=<chain-id> flags to the iris tx service withdraw-fees command is consistent with the summary. This change will affect how users withdraw earned fees, requiring them to specify the key name and chain ID for transactions.

  • 112-133: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [58-277]

The summaries mention command renamings such as update-binding replacing update and service bindings replacing bindings, but these changes are not reflected in the provided hunks. It's important to ensure that these renamings are consistently applied throughout the documentation if they have indeed been made.


Verification result:

The documentation has been updated to reflect the renaming of commands, with update-binding and service bindings now consistently used in the provided sections of the service documentation.

Comment on lines 28 to +32
blockInflationAmount = AnnualInflationAmount * blockCostTime / (year)
```

The value of `inflationBasement` is specified in genesis file. By default its value `2000000000iris`(2 billion iris, `1 iris` equals `1*10^18 uiris`), and its value will never be changed.
Suppose `blockCostTime` is 5000 millisecond, and `inflationRate` is `4%`, then the inflation amount will be `12675235125611580094uiris` (`12.675235125611580094iris`)
The value of `inflationBasement` is specified in genesis file. By default its value `2000000000iris`(2 billion iris, `1 iris` equals `1*10^6 uiris`), and its value will never be changed.
Suppose `blockCostTime` is 5000 millisecond, and `inflationRate` is `4%`, then the inflation amount will be `12683917uiris` (`12.683917iris`)
Copy link

Choose a reason for hiding this comment

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

The documentation update provides clarity on how the blockInflationAmount is calculated, which is beneficial for understanding the inflation mechanism. However, it would be helpful to include a brief explanation of the blockCostTime variable, as it is a key component in the calculation. This would improve the documentation's comprehensiveness and help readers understand all parts of the equation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants