Skip to content

Conversation

RastkoDev
Copy link

@RastkoDev RastkoDev commented Jul 16, 2025

Description

Add Kadena chain

Backward compatibility

Testing

Summary by CodeRabbit

  • New Features
    • Added support for the Kadena blockchain, including chain metadata, token details, block parameters, RPC URLs, and block explorer configuration.

Copy link

changeset-bot bot commented Jul 16, 2025

⚠️ No Changeset found

Latest commit: a37a35d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

coderabbitai bot commented Jul 16, 2025

📝 Walkthrough

Walkthrough

A new metadata YAML file for the Kadena blockchain has been added. This file sets out the chain's configuration, including IDs, token details, protocol, RPC URLs, block parameters, explorer info, and gas currency references.

Changes

File(s) Change Summary
chains/kadena/metadata.yaml Added Kadena blockchain metadata and configuration.

Poem

In the swamps of code, a new path is laid,
Kadena’s details, in YAML displayed.
With tokens and blocks, all neat as you please,
Six confirmations, block time a breeze.
So let the explorers roam,
For KDA’s found a home!
🟩✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @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: 1

🧹 Nitpick comments (1)
chains/kadena/metadata.yaml (1)

23-23: Mind the trailing newline, friend

YAML-lint grumbles that the file ends without a newline. Add one so the linters stay quiet.

-technicalStack: other
\ No newline at end of file
+technicalStack: other
+
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between f1ed23c and 361a61b.

⛔ Files ignored due to path filters (1)
  • chains/kadena/logo.svg is excluded by !**/*.svg
📒 Files selected for processing (1)
  • chains/kadena/metadata.yaml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
chains/kadena/metadata.yaml

[error] 23-23: no new line character at the end of file

(new-line-at-end-of-file)

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: 0

🧹 Nitpick comments (1)
chains/kadena/metadata.yaml (1)

23-23: Add the wee newline at EOF

The linter’s grumbling because the file ends without a newline. Slip one in and keep the bots quiet.

 technicalStack: other
+
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 361a61b and a37a35d.

📒 Files selected for processing (1)
  • chains/kadena/metadata.yaml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
chains/kadena/metadata.yaml

[error] 23-23: no new line character at the end of file

(new-line-at-end-of-file)

🔇 Additional comments (2)
chains/kadena/metadata.yaml (2)

22-22: Mind the incomplete RPC root, laddie

https://api.chainweb.com is the public host, but Chainweb expects a full path that includes the network (mainnet01) and chain number (0..19) for Pact calls. If the tooling blindly appends its own path you’re grand, but if it expects a ready-to-hit endpoint this will return a 404 quicker than a donkey on hot coals.

Double-check how Hyperlane composes Kadena requests and, if needed, change the entry to something like:

rpcUrls:
  - http: https://api.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact

22-22: Nice fix on the scheme, smells less broken now

You’ve added the https:// that was missing in the last round. Tools won’t choke anymore. Good stuff.

Comment on lines +1 to +12
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 324.6 312.4" style="enable-background:new 0 0 324.6 312.4;" xml:space="preserve">
<style type="text/css">
.st0{fill:#4A9079;}
</style>
<path class="st0" d="M324.6,312.4H211.4l-0.1-0.1l-0.9-0.7L70.3,202.2l57.4-46l196,155.4L324.6,312.4z"/>
<path class="st0" d="M324.6,0H211.4l-0.1,0.1l-0.9,0.7L70.3,110.2l57.4,46l196-155.4L324.6,0z"/>
<path class="st0" d="M70.3,163.1v39v0.1l0,109.4v0.7l-0.1-0.1l-0.9-0.7L1.2,257.7L1,257.6l-1-0.8V55.6l1-0.8l0.2-0.1L69.4,0.7
l0.9-0.7L70.3,0v0.7l0,109.4v0.1v45.9V163.1z"/>
</svg>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 324.6 312.4" style="enable-background:new 0 0 324.6 312.4;" xml:space="preserve">
<style type="text/css">
.st0{fill:#4A9079;}
</style>
<path class="st0" d="M324.6,312.4H211.4l-0.1-0.1l-0.9-0.7L70.3,202.2l57.4-46l196,155.4L324.6,312.4z"/>
<path class="st0" d="M324.6,0H211.4l-0.1,0.1l-0.9,0.7L70.3,110.2l57.4,46l196-155.4L324.6,0z"/>
<path class="st0" d="M70.3,163.1v39v0.1l0,109.4v0.7l-0.1-0.1l-0.9-0.7L1.2,257.7L1,257.6l-1-0.8V55.6l1-0.8l0.2-0.1L69.4,0.7
l0.9-0.7L70.3,0v0.7l0,109.4v0.1v45.9V163.1z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" id="Layer_1" x="0" y="0" style="enable-background:new 0 0 324.6 312.4" version="1.1" viewBox="0 0 324.6 312.4"><style>.st0{fill:#4a9079}</style><path d="M324.6 312.4H211.4l-.1-.1-.9-.7L70.3 202.2l57.4-46 196 155.4.9.8zM324.6 0H211.4l-.1.1-.9.7L70.3 110.2l57.4 46L323.7.8l.9-.8z" class="st0"/><path d="M70.3 163.1v149.2l-.1-.1-.9-.7-68.1-53.8-.2-.1-1-.8V55.6l1-.8.2-.1L69.4.7l.9-.7v163.1z" class="st0"/></svg>

decimals: 12
name: coin
symbol: KDA
protocol: kadena
Copy link
Collaborator

Choose a reason for hiding this comment

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

will not be able to merge this PR until there is support for the kadena protocol type in the Hyperlane SDK

Copy link
Author

Choose a reason for hiding this comment

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

@paulbalaji

What we need to do to make Hypelane SDK to support kadena protocol?

Copy link
Collaborator

Choose a reason for hiding this comment

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

is your intention to add metadata for kadena itself or the kadena evm?

Copy link
Author

Choose a reason for hiding this comment

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

For Kadena itself.

@RastkoDev RastkoDev requested a review from paulbalaji August 1, 2025 12:02
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