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

chore: add yomitestnet #205

Merged
merged 8 commits into from
Jan 6, 2025
Merged

chore: add yomitestnet #205

merged 8 commits into from
Jan 6, 2025

Conversation

chlwys
Copy link
Contributor

@chlwys chlwys commented Oct 26, 2024

Summary by CodeRabbit

  • New Features

    • Added configuration for Yominet testnet.
    • Introduced "ONYX" as the world currency for the Kamigotchi ecosystem.
    • Defined blockchain network parameters and IBC channel configurations for enhanced interoperability.
    • Added new entries for token and NFT transfer channels in the Initia testnet.
  • Documentation

    • Provided detailed asset and chain specifications for the Yominet testnet.

@Vritra4 Vritra4 requested a review from ALPAC-4 October 28, 2024 09:01
testnets/yominet/chain.json Outdated Show resolved Hide resolved
testnets/yominet/chain.json Show resolved Hide resolved
testnets/yominet/assetlist.json Outdated Show resolved Hide resolved
Copy link

coderabbitai bot commented Jan 6, 2025

Warning

Rate limit exceeded

@chlwys has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 39 minutes and 1 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between d002fb1 and 76232a8.

📒 Files selected for processing (1)
  • testnets/yominet/chain.json (1 hunks)

Walkthrough

A new testnet configuration for the Yominet blockchain has been established, introducing two critical JSON files: an asset list and a chain configuration. The assetlist.json defines the "ONYX" cryptocurrency for the Kamigotchi ecosystem, while the chain.json provides comprehensive details about the blockchain's technical specifications, including network parameters, fee structures, and Inter-Blockchain Communication (IBC) channel configurations. Additionally, the chain.json file in the Initia testnet has been updated to enhance interoperability with the Yominet blockchain.

Changes

File Change Summary
testnets/yominet/assetlist.json Added new asset list for ONYX cryptocurrency with detailed attributes including description, denomination units, base, display, symbol, and image resources.
testnets/yominet/chain.json Introduced blockchain configuration defining network parameters, RPC/REST endpoints, supported algorithms, fee structures, and IBC channel connections.
testnets/initia/chain.json Updated ibc_channels to include new entries for integrating with preyominet-1 chain for token and NFT transfers.

Possibly related PRs

  • add minievm upgrade info #241: The changes in testnets/initia/assetlist.json involve adding a new asset entry, which is similar to the new asset defined in testnets/yominet/assetlist.json for "ONYX," indicating a related context of asset definitions in JSON format.

Poem

🐰 In the realm of bits and bytes so bright,
A testnet springs with ONYX's might!
Yominet dances, chains unfurl,
Where blockchain dreams begin to swirl 🌐
A rabbit's code, a digital delight! 🚀


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

@chlwys chlwys requested a review from ALPAC-4 January 6, 2025 14:41
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

🧹 Nitpick comments (1)
testnets/initia/chain.json (1)

239-240: Minor: Fix JSON formatting inconsistencies

There are some minor formatting inconsistencies in the new entries:

  • Inconsistent spacing after colons in port_id fields
  • Extra space after "ics721-1" in line 247
-        "port_id":"transfer",
+        "port_id": "transfer",
-        "port_id":"nft-transfer",
+        "port_id": "nft-transfer",
-        "version": "ics721-1" 
+        "version": "ics721-1"

Also applies to: 244-247

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between f69491a and 5fbaaee.

📒 Files selected for processing (3)
  • testnets/initia/chain.json (1 hunks)
  • testnets/yominet/assetlist.json (1 hunks)
  • testnets/yominet/chain.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • testnets/yominet/chain.json
🔇 Additional comments (7)
testnets/yominet/assetlist.json (4)

6-12: Update description to match the ecosystem name.

The description mentions "Kamigotchi" while the chain name is "yominet". This inconsistency was previously noted in past reviews.

-      "description": "The Kamigotchi world currency",
+      "description": "The Yominet world currency",

13-15: Verify ERC20 contract deployment.

Please ensure that the ERC20 contract is deployed and verified at address 0x9D9c32921575Fd98e67E27C0189ED4b750Cb17C5 on the Yominet testnet.


16-19: LGTM! Asset properties are consistent.

The display, name, and symbol are consistently set. Empty CoinGecko ID is acceptable for testnet.


1-3: Verify JSON schema validation.

Let's ensure the file exists and validate the JSON against the schema.

✅ Verification successful

Schema validation successful

The assetlist.json file correctly follows the schema requirements, including proper schema reference, required fields, and valid asset configuration.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if schema file exists and validate JSON
if [ -f "assetlist.schema.json" ]; then
  echo "Schema file exists"
else
  echo "Schema file not found"
fi

Length of output: 81


Script:

#!/bin/bash
# Check schema content
cat assetlist.schema.json

Length of output: 13723


Script:

#!/bin/bash
# Check complete content of yominet's assetlist.json
cat testnets/yominet/assetlist.json

Length of output: 1141

testnets/initia/chain.json (3)

238-242: LGTM: IBC transfer channel configuration

The transfer channel configuration for preyominet-1 follows the standard IBC protocol specification with the correct version string (ics20-1).


243-247: LGTM: IBC NFT transfer channel configuration

The NFT transfer channel configuration for preyominet-1 follows the standard IBC protocol specification with the correct version string (ics721-1).


238-247: Verify IBC channel configuration

Let's verify that these channel IDs are correctly configured and match the corresponding channels on the preyominet-1 chain.

✅ Verification successful

IBC channels are correctly configured

The channel configuration between initia (initiation-2) and yominet (preyominet-1) is properly set up with matching transfer (ics20-1) and nft-transfer (ics721-1) channels on both ends.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for corresponding channel configurations in preyominet-1 chain

# Search for matching channel configurations in other chain files
echo "Searching for corresponding channel configurations in preyominet chain..."
rg -l "preyominet-1" . | while read -r file; do
  if [[ "$file" != "testnets/initia/chain.json" ]]; then
    echo "Found reference in: $file"
    # Extract and display channel configurations
    jq -r '.metadata.ibc_channels[] | select(.chain_id=="initiation-2")' "$file" 2>/dev/null
  fi
done

Length of output: 1055


Script:

#!/bin/bash
# Description: Extract preyominet-1 channel configurations from yominet chain

echo "Checking yominet chain configuration..."
jq -r '.metadata.ibc_channels[] | select(.chain_id=="preyominet-1")' ./testnets/yominet/chain.json

echo -e "\nChecking initia chain configuration..."
jq -r '.metadata.ibc_channels[] | select(.chain_id=="preyominet-1")' ./testnets/initia/chain.json

Length of output: 613


Script:

#!/bin/bash
# Search for preyominet chain configuration
echo "Searching for preyominet chain configuration file..."
fd chain.json | while read -r file; do
  echo -e "\nChecking $file for preyominet configuration..."
  jq -r '.chain_id + " in " + input_filename' "$file" "$file"
  if jq -e '.chain_id == "preyominet-1"' "$file" >/dev/null; then
    echo "Found preyominet chain config. Checking IBC channels..."
    jq -r '.metadata.ibc_channels[] | select(.chain_id=="initiation-2")' "$file"
  fi
done

Length of output: 4396


Script:

#!/bin/bash
echo "Checking channels in yominet/chain.json connecting to initia..."
jq -r '.metadata.ibc_channels[] | select(.chain_id=="initiation-2")' ./testnets/yominet/chain.json

echo -e "\nChecking channels in initia/chain.json connecting to yominet..."
jq -r '.metadata.ibc_channels[] | select(.chain_id=="preyominet-1")' ./testnets/initia/chain.json

Length of output: 938

testnets/yominet/assetlist.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 b7eb79a and d002fb1.

📒 Files selected for processing (1)
  • testnets/yominet/assetlist.json (1 hunks)
🔇 Additional comments (3)
testnets/yominet/assetlist.json (3)

6-12: Update description to use consistent naming.

The description still references "Kamigotchi" while the chain name is "yominet".

-      "description": "The Kamigotchi world currency",
+      "description": "The Yominet world currency",

20-29: Fix redundant URLs and verify image resources.

  1. The URLs in images and logo_URIs are identical, creating unnecessary redundancy
  2. Verify that the image files exist with the correct case sensitivity
#!/bin/bash
# Check if image files exist
fd -t f "onyx\.(png|svg)$" testnets/yominet/images/

# Suggest removing redundancy
cat << 'EOF'
Consider using either `images` or `logo_URIs`, but not both with identical values.
EOF

13-19: Verify ERC20 contract address.

The contract address appears to be used consistently, but let's verify its validity and deployment.

✅ Verification successful

ERC20 contract address verified successfully

The contract address follows the correct format and is used consistently across testnet configurations and registry files.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if the contract address follows ERC20 format
if [[ "0x9D9c32921575Fd98e67E27C0189ED4b750Cb17C5" =~ ^0x[a-fA-F0-9]{40}$ ]]; then
    echo "Valid ERC20 address format"
else
    echo "Invalid ERC20 address format"
fi

# Search for other occurrences of this contract
rg -i "9D9c32921575Fd98e67E27C0189ED4b750Cb17C5"

Length of output: 778

testnets/yominet/assetlist.json Show resolved Hide resolved
@ALPAC-4 ALPAC-4 merged commit 692fd52 into initia-labs:main Jan 6, 2025
6 checks passed
This was referenced Jan 7, 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