Skip to content

smartcontractkit/ccip-javascript-sdk

Repository files navigation

CCIP JavaScript SDK

The CCIP JavaScript SDK includes two packages:

Using both packages, you can add a fully featured CCIP bridge to your app that can be styled to match your app design.

To view more detailed documentation and more examples, visit the Chainlink Javascript SDK Documentation.

Prerequisites

  1. Clone the ccip-javascript-sdk repo:
git clone https://github.com/smartcontractkit/ccip-javascript-sdk.git
  1. Install pnpm.

  2. Run pnpm install

Run the example app

pnpm build
pnpm dev-example

Build packages

If you want to make changes to the package code, you need to rebuild the packages and make sure package.json file to point to the updated local versions.

Make sure to build the ccip-js package before you build the ccip-react-components package. The React components depend on the JS package.

Follow these steps:

  1. Build the ccip-js package:
pnpm build-ccip-js
  1. Build the ccip-react-components package:
pnpm build-components
  1. Update the ccip-react-components package to use the local ccip-js version by modifying packages/ccip-react-components/package.json file. Replace the @chainlink/ccip-js dependency with the workspace reference:
"@chainlink/ccip-js": "workspace:*"
  1. Update the examples/nextjs app to use both local ccip-js and ccip-react-components version by modifying examples/nextjs/package.json file. Replace the @chainlink/ccip-js and @chainlink/ccip-react-components dependency with relative path:
"@chainlink/ccip-js": "link:../../packages/ccip-js",
"@chainlink/ccip-react-components": "link:../../packages/ccip-react-components",

Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published