@wormhole-labs/cctp-executor-route 0.0.1-beta.11 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -27
- package/dist/cjs/consts.js +1 -1
- package/dist/esm/consts.js +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/cjs/tokens.json +0 -1
- package/dist/esm/tokens.json +0 -1
package/README.md
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
# CCTP W7 Executor Route
|
|
2
2
|
|
|
3
|
-
## Releasing
|
|
4
|
-
|
|
5
|
-
To release this package, follow these steps:
|
|
6
|
-
|
|
7
|
-
1. **Create a New GitHub Release**
|
|
8
|
-
- Tag the release with an appropriate [semantic version](https://semver.org/) (e.g., `0.1.0`, `1.0.0-beta`, etc.).
|
|
9
|
-
- This will trigger the GitHub Actions workflow responsible for building and packing the package.
|
|
10
|
-
|
|
11
|
-
2. **GitHub Workflow**
|
|
12
|
-
- The workflow will:
|
|
13
|
-
- Build the package.
|
|
14
|
-
- Create a tarball (`.tgz`).
|
|
15
|
-
- Upload the resulting artifact to the assets section of the GitHub Release page.
|
|
16
|
-
|
|
17
|
-
3. **Installation**
|
|
18
|
-
- The packed package can be installed in **Connect** or **Portal**.
|
|
19
|
-
|
|
20
|
-
4. **Usage**
|
|
21
|
-
- Once installed, import the route using:
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
import { CCTPW7ExecutorRoute } from "@wormhole-labs/cctp-w7-executor-route";
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
3
|
## Transfer Example
|
|
30
4
|
|
|
31
5
|
This project includes a script for testing a USDC token transfer using the CCTPv1 Executor route with a referrer fee. You can change the source and destination chains in the `examples/transfer.ts` file.
|
|
@@ -46,6 +20,7 @@ Set your private keys as environment variables:
|
|
|
46
20
|
export EVM_PRIVATE_KEY=<your_evm_private_key>
|
|
47
21
|
export SVM_PRIVATE_KEY=<your_svm_private_key>
|
|
48
22
|
export SUI_PRIVATE_KEY=<your_sui_private_key>
|
|
23
|
+
export APTOS_PRIVATE_KEY=<your_aptos_private_key>
|
|
49
24
|
```
|
|
50
25
|
|
|
51
26
|
### Run the Example
|
|
@@ -65,4 +40,3 @@ SEND_TRANSFER=true npm run examples:test
|
|
|
65
40
|
> ⚠️ **Note:**
|
|
66
41
|
>
|
|
67
42
|
> - All relevant contract addresses and constants are defined in `src/consts`.
|
|
68
|
-
> - Referrer fee is set to **1 basis point** in `src/consts`.
|
package/dist/cjs/consts.js
CHANGED