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 archway and celestia to web-app #1771

Merged
merged 2 commits into from
Dec 23, 2024
Merged

add archway and celestia to web-app #1771

merged 2 commits into from
Dec 23, 2024

Conversation

joe-bowman
Copy link
Contributor

@joe-bowman joe-bowman commented Dec 11, 2024

1. Summary

add achway and celestia to webapp

Summary by CodeRabbit

  • New Features

    • Expanded test and production chain configurations with new entries including "provider", "osmosis-testnet", "celestia-testnet", "prysm-testnet", and "archway".
    • Updated visibility for the "celestia" entry in production chains.
  • Bug Fixes

    • Replaced the "cosmos-testnet" entry in test chains with the "provider" entry, improving clarity and accuracy.

Copy link
Contributor

coderabbitai bot commented Dec 11, 2024

Warning

Rate limit exceeded

@joe-bowman has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 54 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 6915234 and d37762b.

⛔ Files ignored due to path filters (6)
  • web-ui/public/img/networks/arch.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/flix.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/qarch.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/qflix.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/qtia.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/tia.svg is excluded by !**/*.svg
📒 Files selected for processing (1)
  • web-ui/config/chains.ts (3 hunks)

Walkthrough

The changes in this pull request primarily involve modifications to the web-ui/config/chains.ts file, where new chain configurations have been added to both the test_chains and prod_chains maps. The test_chains map now includes new entries for various test networks, while the prod_chains map has been updated with new production chain configurations. Additionally, the visibility of one existing entry has been altered. The getEndpoints function has been adjusted to incorporate the new chains without changing its overall logic.

Changes

File Path Change Summary
web-ui/config/chains.ts - Added new entries to test_chains: "provider", "osmosis-testnet", "celestia-testnet", "prysm-testnet".
- Added new entry to prod_chains: "archway".
- Updated "cosmos-testnet" entry to "provider" in test_chains.
- Updated "celestia" entry's show property from false to true in prod_chains.
- Updated getEndpoints function to accommodate new chains.

Poem

In the land of chains, where networks bloom,
New paths are forged, dispelling gloom.
With providers and testnets, oh what a sight,
Our blockchain garden grows ever bright!
So hop along, dear friends, with glee,
For changes abound, as sweet as can be! 🐇✨


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. (Experiment)
  • @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
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: 3

🧹 Outside diff range and nitpick comments (1)
web-ui/config/chains.ts (1)

Line range hint 1-450: Overall Assessment

The PR successfully adds Archway and enables Celestia as intended, but there are several issues in the test network configurations that need to be addressed:

  1. Incorrect chain IDs and endpoints in test networks
  2. Incorrect token configurations
  3. Production explorer URLs used for test networks

Please address the highlighted issues before merging.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 644d7fd and c94c456.

⛔ Files ignored due to path filters (6)
  • web-ui/public/img/networks/arch.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/flix.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/qarch.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/qflix.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/qtia.svg is excluded by !**/*.svg
  • web-ui/public/img/networks/tia.svg is excluded by !**/*.svg
📒 Files selected for processing (1)
  • web-ui/config/chains.ts (3 hunks)
🔇 Additional comments (2)
web-ui/config/chains.ts (2)

272-272: Verify Celestia mainnet configuration

The change enables Celestia in production by setting show: true. Please verify:

  1. The mainnet is fully launched
  2. The RPC/REST endpoints are operational
✅ Verification successful

Based on the output from the RPC and REST endpoints, I can generate the final response since we have sufficient information to verify the Celestia mainnet status:

Celestia mainnet is operational and ready for production

The RPC and REST endpoints are fully functional with:

  • Network: "celestia" (mainnet)
  • Version: 3.0.2
  • Latest block height: 2987080
  • Not in catch-up mode (catching_up: false)
  • Active block production (latest block time: 2024-12-11)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify Celestia mainnet status
echo "Checking Celestia RPC endpoint..."
curl -s https://celestia.rpc.quicksilver.zone/status

echo -e "\nChecking Celestia REST endpoint..."
curl -s https://celestia.lcd.quicksilver.zone/cosmos/base/tendermint/v1beta1/node_info

Length of output: 31647


355-371: Verify archway assets and configuration

The archway chain configuration looks correct, but we should verify:

  1. The existence of logo files
  2. The token configuration (aarch vs arch)
✅ Verification successful

Archway chain configuration verified successfully

  1. Logo files are present and correctly configured:
    • ✓ web-ui/public/img/networks/arch.svg
    • ✓ web-ui/public/img/networks/qarch.svg
  2. Token configuration is consistent with standard Cosmos SDK pattern:
    • Major denom: "arch" (display denom)
    • Minor denom: "aarch" (base denom with 'a' prefix)
    • Exponent: 18 (standard for Archway)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if logo files exist
echo "Checking logo files..."
for file in arch.svg qarch.svg; do
  if [ -f "web-ui/public/img/networks/$file" ]; then
    echo "✓ Found $file"
  else
    echo "✗ Missing $file"
  fi
done

# Verify token configuration against docs
echo -e "\nVerifying token configuration..."
curl -s https://docs.archway.io/validators/running-a-node/join-mainnet | grep -A 5 "denomination"

Length of output: 486


Script:

#!/bin/bash
# Let's try to verify the token configuration using a different approach
# Search for any references to archway tokens in the codebase
echo "Searching for archway token references..."
rg -i "arch" --type ts -C 2

# Also check if there are any test files or documentation that might help verify the configuration
echo -e "\nSearching for archway related test files..."
fd -e test.ts -e spec.ts -e md archway

Length of output: 14159

web-ui/config/chains.ts Outdated Show resolved Hide resolved
web-ui/config/chains.ts Show resolved Hide resolved
web-ui/config/chains.ts Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.43%. Comparing base (56d2310) to head (d37762b).
Report is 9 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1771   +/-   ##
=======================================
  Coverage   61.43%   61.43%           
=======================================
  Files         196      196           
  Lines       17117    17117           
=======================================
  Hits        10515    10515           
  Misses       5748     5748           
  Partials      854      854           
Flag Coverage Δ
unittests 61.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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.

Caution

Inline review comments failed to post. This is likely due to GitHub's limits when posting large numbers of comments.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (1)
web-ui/config/chains.ts (1)

91-91: Fix chain name format inconsistency

The chain name "osmosistestnet" doesn't follow the hyphenated format used by other test chains.

-        chain_name: "osmosistestnet",
+        chain_name: "osmosis-testnet",
🛑 Comments failed to post (1)
web-ui/config/chains.ts (1)

72-88: 💡 Codebase verification

Chain configuration needs to follow established naming pattern

Based on the codebase analysis, the chain configuration needs to be updated to follow the consistent naming pattern used throughout the configuration file:

  1. All other testnet chains use their specific testnet chain IDs (e.g., "osmo-test-5", "mocha-4", "rhye-3")
  2. The chain_name should reflect the network type (e.g., "osmosistestnet")
  3. The explorer URL should match the chain ID used in the configuration

Suggested updates:

  • Use the actual ICS testnet chain ID instead of the generic "provider"
  • Update chain_name to reflect it's a testnet (e.g., "cosmostestnet")
  • Ensure the explorer URL matches the chain ID used in the configuration
🔗 Analysis chain

Review chain naming and configuration consistency

The chain configuration for the former "cosmos-testnet" has been renamed to use generic "provider" identifiers, which could cause confusion:

  1. The chain name "provider" is too generic and doesn't indicate it's a Cosmos testnet
  2. The explorer URL uses "ics-testnet-provider" while the chain configuration uses "provider"
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify if the provider chain ID and explorer URL are correct
# by checking documentation or other configuration files
fd -t f -e md -e txt . | xargs rg -i "provider.*chain|ics.*testnet"

Length of output: 69


Script:

#!/bin/bash
# Let's check for any references to provider or ICS testnet in the chains configuration
rg -i "provider|ics.*testnet" web-ui/config/chains.ts

# Also check for similar chain configurations to understand the naming pattern
ast-grep --pattern 'chain_id: "$_",' web-ui/config/chains.ts

Length of output: 365


Script:

#!/bin/bash
# Let's check the entire chain configuration structure to understand the naming patterns
rg -A 5 "chain_id:" web-ui/config/chains.ts

# Also check if there are any references to this chain in other files
rg -i "provider.*chain|ics.*testnet" --type ts --type js

Length of output: 5474

@joe-bowman joe-bowman merged commit 7203487 into main Dec 23, 2024
16 checks passed
@joe-bowman joe-bowman deleted the web-arch-celestia branch December 23, 2024 15:23
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.

1 participant