Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 12c98df

Browse files
chore: fix vulnerabilities and add deprecation notice (#15) (#37)
## Summary Address vulnerabilities with form-data, path-to-regexp and axios ## Detail - upgrade axios, path-to-regexp and form-data npm packages - add deprecation notice with redirection to developer documentation ## Testing - ensured test, build and start scripts work as expected after the changes ## Documentation - updated README with deprecation notice and link to developer documentation --- **Requested Reviewers:** @mention
1 parent 5483e78 commit 12c98df

File tree

5 files changed

+1604
-1468
lines changed

5 files changed

+1604
-1468
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
- name: Check out repository code
1212
uses: actions/checkout@v4
1313

14-
- name: Install Node 16.x
14+
- name: Install Node 22.x
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 16
17+
node-version: 22
1818

1919
- name: Install Dependencies
2020
run: yarn install

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
22.14.0

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# CCTP Sample App
1+
# [DEPRECATED] CCTP Sample App
2+
3+
**This project is no longer actively maintained or supported by [Circle].**
4+
5+
This repository is kept for historical and archival purposes only. No further updates, bug fixes, or new features will be implemented by the original maintainers.
6+
7+
**Reason for Deprecation:** The sample code shared in the repository is outdated. Our focus has shifted to providing the latest and greatest of the CCTP experience through our [developer documentation portal](https://developers.circle.com/cctp/).
8+
9+
**Recommended Alternative:** If you are looking for similar functionality, please consider using the [CCTP QuickStart](https://developers.circle.com/cctp/transfer-usdc-on-testnet-from-ethereum-to-avalanche).
10+
11+
# Summary
212

313
A sample app used to demonstrate CCTP step by step capabilities on testnet. The app currently supports Ethereum Sepolia, Avalanche Fuji C-Chain, and Arbitrum Sepolia testnets.
414

@@ -49,7 +59,7 @@ Launch the test runner in interactive watch mode
4959
yarn test
5060
```
5161

52-
Run tests with test converage.
62+
Run tests with test coverage.
5363

5464
```
5565
yarn test:unit:coverage
@@ -76,7 +86,8 @@ yarn build
7686
To deploy, install and run `serve`
7787

7888
```
79-
yarn global add serve serve -s build
89+
yarn global add serve
90+
serve -s build
8091
```
8192

8293
See [deployment docs](https://facebook.github.io/create-react-app/docs/deployment) for more information.
@@ -93,7 +104,7 @@ We have two config files which will be need to be updated to add a new chain sup
93104

94105
2. Add the addresses for the new chain
95106

96-
- In `./src/constants/addresses.ts`, we need to add the contract addresses for the new chain to support. For `CHAIN_IDS_TO_USDC_ADDRESSES`, `CHAIN_IDS_TO_TOKEN_MESSENGER_ADDRESSES` and `CHAIN_IDS_TO_MESSAGE_TRANSMITTER_ADDRESSES`, add the coressponding addresses for the new chain. This will allow the hooks to interact with the relevant addresses
107+
- In `./src/constants/addresses.ts`, we need to add the contract addresses for the new chain to support. For `CHAIN_IDS_TO_USDC_ADDRESSES`, `CHAIN_IDS_TO_TOKEN_MESSENGER_ADDRESSES` and `CHAIN_IDS_TO_MESSAGE_TRANSMITTER_ADDRESSES`, add the corresponding addresses for the new chain. This will allow the hooks to interact with the relevant addresses
97108

98109
3. Add the logo for the new chain
99110

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"@web3-react/core": "^6.1.9",
3434
"@web3-react/injected-connector": "^6.0.7",
3535
"@web3-react/types": "^6.0.7",
36-
"axios": "^0.27.2",
36+
"axios": "^0.30.1",
37+
"corepack": "^0.34.0",
3738
"ethers": "^5.7.0",
3839
"react": "^18.2.0",
3940
"react-dom": "^18.2.0",
@@ -95,5 +96,9 @@
9596
"last 1 firefox version",
9697
"last 1 safari version"
9798
]
98-
}
99+
},
100+
"resolutions": {
101+
"path-to-regexp": "0.1.12"
102+
},
103+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
99104
}

0 commit comments

Comments
 (0)