Skip to content

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Feb 6, 2026

Remove the instruction-level buildTransaction API while keeping buildFromVersionedData for customTx/WalletConnect/Jupiter support.

Changes:

  • Remove src/builder/ module (instruction-level transaction building)
  • Add src/versioned_builder.rs with build_from_raw_versioned_data
  • Keep WASM BuilderNamespace with only build_from_versioned_data
  • Simplify js/builder.ts to only export versioned data types/function
  • Update js/index.ts exports
  • Replace test/builder.ts with test/versionedBuilder.ts

The buildFromIntent API remains as the primary intent-based builder. The buildFromVersionedData supports pre-compiled MessageV0 transactions.

@lcovar lcovar requested a review from a team as a code owner February 6, 2026 03:33
@lcovar lcovar force-pushed the refactor/cleanup-builder-keep-versioned branch 2 times, most recently from 6baab41 to 174b0cb Compare February 6, 2026 03:45
Remove the instruction-level `buildTransaction` API while keeping
`buildFromVersionedData` for customTx/WalletConnect/Jupiter support.

Changes:
- Remove src/builder/ module (instruction-level transaction building)
- Add src/versioned_builder.rs with `build_from_raw_versioned_data`
- Keep WASM BuilderNamespace with only `build_from_versioned_data`
- Simplify js/builder.ts to only export versioned data types/function
- Update js/index.ts exports
- Replace test/builder.ts with test/versionedBuilder.ts

The `buildFromIntent` API remains as the primary intent-based builder.
The `buildFromVersionedData` supports pre-compiled MessageV0 transactions.
@lcovar lcovar force-pushed the refactor/cleanup-builder-keep-versioned branch from 174b0cb to 5e2d4b8 Compare February 6, 2026 03:45
@lcovar lcovar changed the title refactor(wasm-solana): remove instruction-level builder, keep buildFr… refactor: remove instruction-level builder, keep buildFromVersionedData Feb 6, 2026
@lcovar lcovar enabled auto-merge February 9, 2026 19:05
@lcovar lcovar merged commit dd79592 into master Feb 9, 2026
6 checks passed
@lcovar lcovar deleted the refactor/cleanup-builder-keep-versioned branch February 9, 2026 19:47
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.

2 participants