You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/changelog.json
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,15 @@
1
1
[
2
+
{
3
+
"category": "release",
4
+
"changes": [],
5
+
"date": "2024-12-12",
6
+
"description": "The [CCIP JavaScript SDK](https://github.com/smartcontractkit/ccip-javascript-sdk) is now available, introducing two packages to simplify management of cross-chain token transfers, and to integrate CCIP with the frontend of your own app.\n\nThe [CCIP JavaScript SDK guide](https://docs.chain.link/ccip/ccip-javascript-sdk) introduces the features of the SDK and shows how to run an example app so you can explore the SDK's capabilities.",
The [CCIP JavaScript SDK](https://github.com/smartcontractkit/ccip-javascript-sdk/tree/main) is a tool that helps you to simplify management of cross-chain token transfers, and to integrate CCIP with the frontend of your own app.
11
11
@@ -64,12 +64,23 @@ Failure to escape or sanitize error messages could expose your application to **
64
64
```
65
65
</Fragment>
66
66
</Tabs>
67
-
- The `./pnpm-workspace.yaml` file specifies all the packages in this repo, and the install command installs dependencies for each of the listed packages.
68
67
-`pnpm dev-example` runs an example NextJS app locally. Navigate to http://localhost:3000 in your browser.
69
68
70
69
## Run an example app
71
70
72
-
If you run the example NextJS app (using `pnpm dev-example`), you can interact with an example UI that uses the CCIPWidget.
71
+
The example Next.js app included with the CCIP JavaScript SDK demonstrates the SDK's functionalities within an interactive web application, allowing you to see its features in action.
72
+
73
+
To get started:
74
+
75
+
1. Launch the app by using the following command:
76
+
77
+
```sh
78
+
pnpm dev-example
79
+
```
80
+
81
+
1. In your browser, navigate to http://localhost:3000/ to see the interactive app:
82
+
83
+
<ClickToZoomsrc="/images/ccip/ccip-sdk-example-app-ui.png"alt="CCIP JavaScript SDK example app" />
73
84
74
85
## Review a basic UI example
75
86
@@ -83,7 +94,7 @@ Review the reference documentation:
To build both packages together, run the following command:
221
-
```sh
222
-
pnpm build
223
-
```
224
-
</Fragment>
225
-
<Fragmentslot="panel.2">
226
-
If you're building each package individually, make sure to build the `build-ccip-js` package before you build the `ccip-react-components` package. The React components depend on the JS package.
264
+
You can use `pnpm build` to build both packages together. If you're building each package individually, make sure to build the `build-ccip-js` package before you build the `ccip-react-components` package. The React components depend on the JS package.
265
+
227
266
1. Build the `build-ccip-js` package:
228
267
```sh
229
268
pnpm i -w
@@ -233,5 +272,12 @@ If you're building each package individually, make sure to build the `build-ccip
233
272
```sh
234
273
pnpm build-components
235
274
```
236
-
</Fragment>
237
-
</TabsContent>
275
+
1. Update the `ccip-react-components` package to use the local `ccip-js` version by modifying the `packages/ccip-react-components/package.json` file. Replace the `@chainlink/ccip-js` dependency with the workspace reference:
276
+
```
277
+
"@chainlink/ccip-js": "workspace:*"
278
+
```
279
+
1. Update the `examples/nextjs` app to use both local `ccip-js` and `ccip-react-components` versions by modifying the `examples/nextjs/package.json` file. Replace the `@chainlink/ccip-js` and `@chainlink/ccip-react-components` dependencies with these relative paths:
0 commit comments