Package Exports
- @wormhole-labs/cctp-executor-route
- @wormhole-labs/cctp-executor-route/dist/cjs/index.js
- @wormhole-labs/cctp-executor-route/dist/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wormhole-labs/cctp-executor-route) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CCTP Executor Route
Transfer Example
This project includes a script for testing a USDC token transfer using the CCTPv1 or CCTPv2 Executor routes with a referrer fee. You can change the source and destination chains in the examples/transfer.ts file.
Prerequisites
First, install dependencies and build the project:
npm ci && npm run buildConfigure Environment Variables
Set your private keys as environment variables:
export EVM_PRIVATE_KEY=<your_evm_private_key>
export SVM_PRIVATE_KEY=<your_svm_private_key>
export SUI_PRIVATE_KEY=<your_sui_private_key>
export APTOS_PRIVATE_KEY=<your_aptos_private_key>Run the Example
To fetch a quote for the transfer:
npm run examples:testTo actually send the transfer, set an additional environment variable:
SEND_TRANSFER=true npm run examples:test⚠️ Note:
- All relevant contract addresses and constants are defined in
src/consts.