Skip to content

refactor: import SVM utils from SDK instead of contracts (ACP-56)#3094

Draft
fusmanii wants to merge 7 commits intomasterfrom
faisal/acp-72-update-relayer-repo-usage
Draft

refactor: import SVM utils from SDK instead of contracts (ACP-56)#3094
fusmanii wants to merge 7 commits intomasterfrom
faisal/acp-72-update-relayer-repo-usage

Conversation

@fusmanii
Copy link
Copy Markdown
Contributor

Update all SVM-related imports to use @across-protocol/sdk/svm instead of @across-protocol/contracts. This is part of the migration to move production Solana/SVM TypeScript utils from the contracts repo to the SDK.

  • SvmSpokeClient, TokenMessengerMinterClient, MessageTransmitterV2Client, TokenMessengerMinterV2Client, and IDLs now imported from sdk/svm
  • Deep path imports updated from contracts/dist/src/svm/ to sdk/dist/cjs/src/svm/
  • Mixed imports split where SVM and non-SVM exports were combined

Update all SVM-related imports to use @across-protocol/sdk/svm instead of
@across-protocol/contracts. This is part of the migration to move production
Solana/SVM TypeScript utils from the contracts repo to the SDK.

- SvmSpokeClient, TokenMessengerMinterClient, MessageTransmitterV2Client,
  TokenMessengerMinterV2Client, and IDLs now imported from sdk/svm
- Deep path imports updated from contracts/dist/src/svm/ to sdk/dist/cjs/src/svm/
- Mixed imports split where SVM and non-SVM exports were combined

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

linear bot commented Mar 23, 2026

fusmanii and others added 4 commits April 1, 2026 12:50
Update @across-protocol/sdk to 4.4.0-alpha.1 which includes the migrated
SVM utils. Use deep import paths (dist/cjs/src/svm) instead of subpath
exports (sdk/svm) for compatibility with moduleResolution: "node".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Switch to moduleResolution: "bundler" to support @across-protocol/sdk/svm
subpath export. This is needed because the SDK's package.json exports field
blocks direct dist/ path access with moduleResolution: "node".

Also consolidate deep svm imports into top-level @across-protocol/sdk/svm.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fusmanii and others added 2 commits April 1, 2026 17:35
The SDK imports @coral-xyz/borsh directly in its source files. When
yarn loads SDK source during install/test, borsh must be hoisted to
the top level. Adding it explicitly ensures hoisting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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