Skip to content

refactor: remove production SVM utils, import from SDK (ACP-56)#1380

Draft
fusmanii wants to merge 8 commits intomasterfrom
faisal/acp-74-clean-up-contracts-svm-utils
Draft

refactor: remove production SVM utils, import from SDK (ACP-56)#1380
fusmanii wants to merge 8 commits intomasterfrom
faisal/acp-74-clean-up-contracts-svm-utils

Conversation

@fusmanii
Copy link
Copy Markdown
Contributor

Delete hand-written SVM TypeScript utils (web3-v1/, web3-v2/, types/svm.ts) that have been migrated to @across-protocol/sdk/svm. Keep auto-generated assets/ and clients/ for the Codama generation pipeline.

  • Delete src/svm/web3-v1/, src/svm/web3-v2/, src/types/svm.ts
  • Remove SVM export from index.ts (no longer part of public API)
  • Update all test/svm/ imports to use @across-protocol/sdk
  • Update all scripts/svm/ imports to use @across-protocol/sdk
  • Move Solana deps to devDependencies (only needed for tests/scripts)
  • Add @across-protocol/sdk as devDependency
  • Remove buffer-layout peer dependency
  • Exclude scripts/ from tsconfig (avoids cross-package type mismatches)

Delete hand-written SVM TypeScript utils (web3-v1/, web3-v2/, types/svm.ts)
that have been migrated to @across-protocol/sdk/svm. Keep auto-generated
assets/ and clients/ for the Codama generation pipeline.

- Delete src/svm/web3-v1/, src/svm/web3-v2/, src/types/svm.ts
- Remove SVM export from index.ts (no longer part of public API)
- Update all test/svm/ imports to use @across-protocol/sdk
- Update all scripts/svm/ imports to use @across-protocol/sdk
- Move Solana deps to devDependencies (only needed for tests/scripts)
- Add @across-protocol/sdk as devDependency
- Remove buffer-layout peer dependency
- Exclude scripts/ from tsconfig (avoids cross-package type mismatches)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear bot commented Mar 23, 2026

@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 23, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​across-protocol/​sdk@​4.4.0-alpha.5831001009970
Addednpm/​@​openzeppelin/​contracts-upgradeable-v4@​4.9.6100100100100100
Addednpm/​@​openzeppelin/​contracts-v4@​4.9.6100100100100100

View full report

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 1, 2026

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

fusmanii and others added 6 commits April 1, 2026 15:31
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
- Replace all @across-protocol/sdk/dist/cjs/src/svm deep paths with
  @across-protocol/sdk/svm subpath exports (blocked by SDK exports field)
- Add tsconfig.test.json with module: es2020 + moduleResolution: bundler
  (base tsconfig stays commonjs for build output)
- Update Anchor.toml to use tsconfig.test.json for ts-mocha
- Replace deep client type imports with namespace access
  (SvmSpokeClient.FillRelayAsyncInput, SvmSpokeClient.DepositInput, etc.)
- Sort package.json devDependencies alphabetically

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
module: es2020 caused ts-mocha to use ESM resolution which requires file
extensions and breaks target/types/ imports. node16 supports subpath exports
while keeping CJS require() behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant