Skip to content

Feat/support decimals for Hedera #25

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

zeuslawyer
Copy link
Contributor

@zeuslawyer zeuslawyer commented Jun 19, 2025

  1. Fixes Support for Hedera with 8 decimals #22
  2. Bumps ccip-js to v0.2.5
  3. Bumps ccip-react-components to v0.3.1 as its wagmi dependency is now hard-pinned to avoid the issue of updating from 2.12.x --> 2.15.x ( see commit sha c7a72f5)
  4. Update @chainlink/contracts dependency version and import paths
  5. Updates Viem shared dependency version.
  6. Update pnpm-lock as package.json is updated.

Testing CCIP-JS package from this branch

Link, test the package from this branch locally then unlink.

1. Link The CCIP Package Globally On Your Dev Machine

  1. Open a terminal and navigate to package

    cd ../../ccip-all/ccip-javascript-sdk/packages/ccip-js```
    
  2. Create a global symlink:

    npm link

    This Registers ccip-js local folder as a “linked” package by its package name @chainlink/ccip-js.

2. Link It into Your Client Project

  1. In a new terminal, go to your client project:

    cd /path/to/your-client
  2. Link against your local package:

    npm link @chainlink/ccip-js

Creates a symlink in global node_modules/ pointing to your local code.

3. Develop & Test

Import or require the package in the demo as normal

4. Clean Up

  1. In your client project, remove the link:

    cd /path/to/your-client
    npm unlink @chainlink/ccip-js
  2. (Optional) In your package folder, remove the global link:

    cd /../../ccip-all/ccip-javascript-sdk/packages/ccip-js
    npm unlink

- in the integration test, swap out bridge token ABI for one that includes drip() functionality.
- add integration tests for Hedera->Sepolia. Failing as expected on Token Transfer due to InsufficientFeeTokenAmount() error.
- update package.json test script.
Update imports.
Update CCIPSend text message integration tests to use pre-deployed simple receiver contract.
(note: Tests only successful TX on send. Due to finality latency does not test destination side).
…nents. This is to avoid breakages as wagmi updates in ccip-js are causing breaks in react-components
@zeuslawyer zeuslawyer marked this pull request as ready for review June 24, 2025 08:22
@zeuslawyer zeuslawyer requested a review from a team as a code owner June 24, 2025 08:22
…in react-components package.json and replace with ccip-js v ^0.2.4.
This is because it updates from 2.12.7 --> 2.15.6 which causes
breaking changes in viem. There is a type mismatch that gets caused, even though
they're minor versions and ought not cause breaking changes.

Note that currently
1. viem is pinned to only 1 fixed version
2. same now for wagmi
3. react-components package depends on ccip-js and since it has carat it will update on install to next patch.
pnpm workspace linking so that  local changes in
ccip-js are available to the react-components package when building
and during CI/CD even if those changes are unpublished to npm.

-->   replaced "@chainlink/ccip-js": "^0.2.4" with "@chainlink/ccip-js": "workspace:^":

When publishing  pnpm automatically converts the "workspace:^"
back to a regular semver range based on the actual version of
the workspace package.
@zeuslawyer zeuslawyer force-pushed the feat/support-decimals branch from 61fe913 to 97e7ace Compare June 25, 2025 06:34
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.

Support for Hedera with 8 decimals
2 participants