-
Notifications
You must be signed in to change notification settings - Fork 164
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
Conversation
WalkthroughThe pull request introduces updates to the Changes
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Deploying registry-devnet with Cloudflare Pages
|
Deploying registry-testnet with Cloudflare Pages
|
Deploying registry-initiation-1 with Cloudflare Pages
|
There was a problem hiding this 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 updatingThe 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.mdLength of output: 7723
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 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 heightThe new version entry follows the established pattern. Let's verify:
- The height (4631450) is greater than the previous version's height (3370850) ✅
- Binary links match the top-level binaries ✅
31-32
: Verify version v0.6.8 and consider backward compatibilityThe 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,tagNameLength of output: 166
There was a problem hiding this 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
📒 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:
- The wrapper contract address
0xA1860787c26B42113acc64b68ec650EDfFb686e0
is correctly deployed on minievm.- The EVM contract
0x137fDE729e22c911331EA5B3ACaaf476B93E93cA
matches the wrapped token on minievm.- 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 5Length of output: 33148
There was a problem hiding this 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 metadataThe
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
📒 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-structuredThe 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 strategyThe 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
Summary by CodeRabbit