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

add minievm upgrade info #241

Merged
merged 4 commits into from
Jan 6, 2025
Merged

add minievm upgrade info #241

merged 4 commits into from
Jan 6, 2025

Conversation

beer-1
Copy link
Member

@beer-1 beer-1 commented Jan 6, 2025

Summary by CodeRabbit

  • New Features
    • Updated MiniEVM testnet configuration to version 0.6.9
    • Added new asset: Wrapped Minievm GAS with detailed properties
  • Chores
    • Updated recommended version and compatible versions
    • Updated binary links for Linux and Darwin platforms
    • Added new version entry for 0.6.8 in the testnet configuration

@beer-1 beer-1 requested a review from ALPAC-4 January 6, 2025 07:19
@beer-1 beer-1 self-assigned this Jan 6, 2025
Copy link

coderabbitai bot commented Jan 6, 2025

Walkthrough

The pull request introduces updates to the chain.json file for the minievm testnet, focusing on version management. The changes involve upgrading the recommended version from v0.6.7-1 to v0.6.9, updating the list of compatible versions, and modifying binary links to reflect the new version for different platforms. Additionally, a new asset entry for "Wrapped Minievm GAS" has been added to the assetlist.json file, including various properties and denominations. The overall structure of both JSON files remains unchanged.

Changes

File Change Summary
testnets/minievm/chain.json - Updated recommended_version to v0.6.9
- Updated compatible_versions to ["v0.6.9"]
- Updated binary links for Linux and Darwin platforms
- Added new version entry for 0.6.8
testnets/initia/assetlist.json - Added new asset: "Wrapped Minievm GAS" with properties including description, denom_units, base, display, name, symbol, coingecko_id, traces, images, and logo_URIs

Poem

🐰 A Rabbit's Version Update Verse 🚀
In the realm of minievm's chain,
A version hop, no need to explain!
From 0.6.7 to 0.6.9 we leap,
Binaries dancing, changes so neat!
Testnet evolves with graceful might,
A software bunny's pure delight! 🌟


🪧 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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

CodeRabbit Configuration 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.

Copy link

cloudflare-workers-and-pages bot commented Jan 6, 2025

Deploying registry-devnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: bc7bfaf
Status: ✅  Deploy successful!
Preview URL: https://2018b458.registry-devnet.pages.dev
Branch Preview URL: https://upgrade-minievm.registry-devnet.pages.dev

View logs

Copy link

cloudflare-workers-and-pages bot commented Jan 6, 2025

Deploying registry-testnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: bc7bfaf
Status: ✅  Deploy successful!
Preview URL: https://292bf805.initia-registry-testnets.pages.dev
Branch Preview URL: https://upgrade-minievm.initia-registry-testnets.pages.dev

View logs

Copy link

cloudflare-workers-and-pages bot commented Jan 6, 2025

Deploying registry-initiation-1 with  Cloudflare Pages  Cloudflare Pages

Latest commit: bc7bfaf
Status: ✅  Deploy successful!
Preview URL: https://279818b7.registry-initiation-1.pages.dev
Branch Preview URL: https://upgrade-minievm.registry-initiation-1.pages.dev

View logs

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.

Actionable comments posted: 1

🔭 Outside diff range comments (1)
testnets/minievm/chain.json (1)

Update metadata.minitia.version to v0.6.8

The metadata section's version (v0.5.5) should be updated to match the upgrade version (v0.6.8). This aligns with the version upgrade being performed and maintains consistency between the implementation and metadata.

🔗 Analysis chain

Line range hint 236-239: Verify if metadata.minitia.version needs updating

The metadata section shows "version": "v0.5.5" while we're upgrading to v0.6.8. Please verify if this version reference needs to be updated as well.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Search for any documentation or references about metadata.minitia.version

# Search for documentation about metadata.minitia.version
rg -l "metadata.minitia.version|minitia:\s*{.*version" --type md

# Search for other chain.json files to compare
fd -e json -e md . | rg "chain.json|README"

Length of output: 619


Script:

#!/bin/bash
# Check contents of chain.json files in testnets, focusing on metadata and version
for file in testnets/*/chain.json; do
  echo "=== $file ==="
  cat "$file" | grep -A 5 -B 5 '"version":'
done

# Also check if there's any documentation about version requirements
rg -i "version" README.md

Length of output: 7723

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 57714e5 and 91a10b0.

📒 Files selected for processing (1)
  • testnets/minievm/chain.json (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Cloudflare Pages: registry-initiation-1
🔇 Additional comments (2)
testnets/minievm/chain.json (2)

128-137: Verify version entry consistency and upgrade height

The new version entry follows the established pattern. Let's verify:

  1. The height (4631450) is greater than the previous version's height (3370850) ✅
  2. Binary links match the top-level binaries ✅

31-32: Verify version v0.6.8 and consider backward compatibility

The removal of previous versions from compatible_versions makes this a breaking change that requires all nodes to upgrade. Let's verify that v0.6.8 exists and is properly released.

✅ Verification successful

Version v0.6.8 exists and is properly released

The breaking change requiring all nodes to upgrade is acceptable as it references a stable, published release.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify v0.6.8 release exists and is not a draft/pre-release

# Check if the release exists and its status
gh release view v0.6.8 --repo initia-labs/minievm --json name,isDraft,isPrerelease,tagName

Length of output: 166

testnets/minievm/chain.json Outdated Show resolved Hide resolved
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.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 84ae49e and f88926b.

📒 Files selected for processing (1)
  • testnets/initia/assetlist.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Cloudflare Pages: registry-initiation-1
🔇 Additional comments (3)
testnets/initia/assetlist.json (3)

334-349: LGTM! Asset information is well-structured.

The basic asset information follows the established patterns in the registry, with consistent denomination exponents and proper IBC hash usage.


332-387: LGTM! The wGAS asset entry is complete and well-structured.

The addition follows the registry's conventions and includes all necessary information for proper token identification and tracing.


350-374: Verify the contract addresses and channel configuration.

Please ensure:

  1. The wrapper contract address 0xA1860787c26B42113acc64b68ec650EDfFb686e0 is correctly deployed on minievm.
  2. The EVM contract 0x137fDE729e22c911331EA5B3ACaaf476B93E93cA matches the wrapped token on minievm.
  3. The channel configuration (channel-0) is correct for both chains.
✅ Verification successful

Configuration is consistent with testnet environment

The channel-0 configuration is properly set up between initia and minievm chains in the testnet environment. The contract addresses are correctly isolated to their specific chain configurations, following the expected pattern for wrapped and IBC assets.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the consistency of channel and contract configurations

# Check if the channel-0 is configured in chain registry
echo "Checking channel configuration..."
rg -A 5 "channel-0" ../minievm/chain.json

# Check if these contract addresses are mentioned in other configuration files
echo "Checking contract addresses..."
rg "0xA1860787c26B42113acc64b68ec650EDfFb686e0" ../minievm/
rg "0x137fDE729e22c911331EA5B3ACaaf476B93E93cA" ../minievm/

Length of output: 475


Script:

#!/bin/bash
# Find relevant configuration files
echo "Finding configuration files..."
fd -e json

# Search for contract addresses in all files
echo -e "\nSearching for contract addresses..."
rg "0xA1860787c26B42113acc64b68ec650EDfFb686e0"
rg "0x137fDE729e22c911331EA5B3ACaaf476B93E93cA"

# Search for channel configurations
echo -e "\nSearching for channel configurations..."
rg "channel-0" -A 5

Length of output: 33148

testnets/initia/assetlist.json Show resolved Hide resolved
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.

Actionable comments posted: 1

🔭 Outside diff range comments (1)
testnets/minievm/chain.json (1)

Line range hint 275-275: Update minitia.version in metadata

The minitia.version in the metadata section is set to "v0.5.5", which is outdated compared to the current recommended version "v0.6.9".

Apply this diff to update the version:

      "type": "minievm",
-     "version": "v0.5.5"
+     "version": "v0.6.9"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f88926b and bc7bfaf.

📒 Files selected for processing (1)
  • testnets/minievm/chain.json (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Cloudflare Pages: registry-initiation-1
🔇 Additional comments (2)
testnets/minievm/chain.json (2)

127-149: LGTM! Version entries are well-structured

The new version entries for v0.6.8 and v0.6.9 follow the established pattern and maintain proper height sequencing.


31-32: Verify version compatibility strategy

The compatible versions list only includes v0.6.9, excluding v0.6.8 despite the small height difference (3,680 blocks). Consider if nodes running v0.6.8 should be supported during the transition period.

✅ Verification successful

Version compatibility strategy is appropriate

The exclusion of v0.6.8 from compatible versions is justified given the rapid succession of releases (< 3 hours between v0.6.8 and v0.6.9). Supporting only the latest v0.6.9 reduces complexity and ensures nodes upgrade directly to the most stable version.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check the time difference between v0.6.8 and v0.6.9 deployments

# Fetch release dates for both versions
echo "v0.6.8 release info:"
gh api repos/initia-labs/minievm/releases/tags/v0.6.8 --jq '.published_at'
echo "v0.6.9 release info:"
gh api repos/initia-labs/minievm/releases/tags/v0.6.9 --jq '.published_at'

Length of output: 293

testnets/minievm/chain.json Show resolved Hide resolved
@ALPAC-4 ALPAC-4 merged commit e5f494a into main Jan 6, 2025
11 checks passed
@ALPAC-4 ALPAC-4 deleted the upgrade/minievm branch January 6, 2025 09:59
@coderabbitai coderabbitai bot mentioned this pull request Jan 6, 2025
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