Skip to content

Conversation

@nghaninn
Copy link

@nghaninn nghaninn commented Jul 25, 2025

Summary

What is the background of this pull request?

Changes

  • What are the changes made in this pull request?
  • Change this and that, etc...

Issues

What are the related issues or stories?

Releases

Channels: latest
ETA: Any target release date

Summary by CodeRabbit

  • Chores
    • Updated contract addresses for the Astron network to reflect new values. No other changes were made.

@coderabbitai
Copy link

coderabbitai bot commented Jul 25, 2025

Walkthrough

The contract addresses for the Astron chain ID were updated in three categories—TitleEscrowFactory, Deployer, and TokenImplementation—within the contractAddress object in a constants file. No other logic, structure, or chain IDs were modified.

Changes

File Change Summary
src/constants/contract-address.ts Updated Astron chain ID addresses for three contract categories (TitleEscrowFactory, Deployer, TokenImplementation) in the contractAddress object.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

New addresses hop in, the Astron chain’s delight,
Constants refreshed under the moon’s soft light.
No logic disturbed, just numbers anew—
A rabbit’s quick update, swift and true.
Onward we bound, with contracts in view!

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error https://github.com/npm/cli/issues
npm error A complete log of this run can be found in: /.npm/_logs/2025-07-25T01_06_05_054Z-debug-0.log

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/add-astron-v5

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

@nghaninn nghaninn requested a review from RishabhS7 July 25, 2025 01:05
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)
src/constants/contract-address.ts (1)

48-50: Ensure TokenImplementation byte-code matches the new address

The new implementation 0x025aF5b49f1755C536d6965093C88d85A7Ec3300 must host the same runtime byte-code/hash your front-end or subgraphs expect. Consider pinning the code hash in a follow-up constant to guard against silent redeploys.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 93e9164 and f539571.

📒 Files selected for processing (1)
  • src/constants/contract-address.ts (3 hunks)
🔇 Additional comments (1)
src/constants/contract-address.ts (1)

36-38: Checksum / deploy-key alignment for Deployer address

Confirm that 0x79ED245fFecdAF8C87BFE35ccF6A7b9FE9024240 is the actual signer that deployed the Astron v5 contracts; a mismatch here will block on-chain ownership checks.

Comment on lines +24 to 26
[ChainId.Astron]: "0xa1fCAE62b69D85BfBb5B447f038123A1e4d8f6eC",
[ChainId.AstronTestnet]: "0x812A0E71c61A42C8d3d449BdfF51834f85686C73",
},
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Please verify the new Astron TitleEscrowFactory address checksum

0xa1fCAE62b69D85BfBb5B447f038123A1e4d8f6eC looks correct at a glance, but a one-character case error breaks EIP-55 checksum guarantees and makes copy–paste mistakes harder to catch.

Run the quick check below. It exits non-zero if any Astron addresses are not valid checksummed hex strings:


🏁 Script executed:

#!/bin/bash
pip install --quiet eth_utils
python - <<'PY'
import re, sys, json, pathlib
from eth_utils import is_checksum_address, to_checksum_address

data = pathlib.Path("src/constants/contract-address.ts").read_text()
addrs = re.findall(r'0x[a-fA-F0-9]{40}', data)
bad = [a for a in addrs if not is_checksum_address(a)]
if bad:
    print("Non-checksummed addresses:", *bad, sep="\n  ")
    sys.exit(1)
print("All addresses pass EIP-55 checksum ✅")
PY

Length of output: 2035


Let’s retry the checksum validation with the required hashing backend installed:


🏁 Script executed:

#!/bin/bash
# Install both eth_utils and the eth-hash backend
pip install --quiet eth_utils "eth-hash[pycryptodome]"

python - <<'PY'
import re, sys, pathlib
from eth_utils import is_checksum_address

data = pathlib.Path("src/constants/contract-address.ts").read_text()
addrs = re.findall(r'0x[a-fA-F0-9]{40}', data)
bad = [a for a in addrs if not is_checksum_address(a)]
if bad:
    print("Non-checksummed addresses:", *bad, sep="\n  ")
    sys.exit(1)
print("All addresses pass EIP-55 checksum ✅")
PY

Length of output: 184


Let’s compute the proper EIP-55 checksummed variants for the two addresses:


🏁 Script executed:

#!/bin/bash
# Ensure eth_utils and keccak backend are available
pip install --quiet eth_utils "eth-hash[pycryptodome]"

python - <<'PY'
from eth_utils import to_checksum_address

addresses = [
    "0xca70f36aeeda435c1048fd372bf286a41ac538be",
    "0xcc72c1b3f7875fda22bcdb147d462d7da64efc55"
]

for addr in addresses:
    print(f"{addr} => {to_checksum_address(addr)}")
PY

Length of output: 245


Update Astron addresses to EIP-55 checksum

The script found two non-checksummed addresses in src/constants/contract-address.ts. Please update them as follows:

  • Replace
    0xca70f36aeeda435c1048fd372bf286a41ac538be
    with
    0xCa70F36aEEDA435c1048FD372Bf286a41ac538Be
  • Replace
    0xcc72c1b3f7875fda22bcdb147d462d7da64efc55
    with
    0xCc72c1B3f7875fDA22BcDB147D462D7dA64EFC55

This ensures full EIP-55 checksum compliance.

🤖 Prompt for AI Agents
In src/constants/contract-address.ts around lines 24 to 26, the Astron addresses
are not EIP-55 checksummed. Replace the address
"0xca70f36aeeda435c1048fd372bf286a41ac538be" with
"0xCa70F36aEEDA435c1048FD372Bf286a41ac538Be" and replace
"0xcc72c1b3f7875fda22bcdb147d462d7da64efc55" with
"0xCc72c1B3f7875fDA22BcDB147D462D7dA64EFC55" to ensure full EIP-55 checksum
compliance.

@RishabhS7 RishabhS7 merged commit b5aa93c into master Jul 25, 2025
9 checks passed
@github-actions
Copy link

🎉 This PR is included in version 5.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants