Skip to content

solana-driver: support v1 settlement transactions - #4955

Draft
PeterHackz wants to merge 5 commits into
cowprotocol:mainfrom
PeterHackz:feat/solana-transaction-v1
Draft

PeterHackz wants to merge 5 commits into
cowprotocol:mainfrom
PeterHackz:feat/solana-transaction-v1

Conversation

@PeterHackz

Copy link
Copy Markdown

Description

Allow solvers to request v1 settlement transactions while keeping v0
as the default.

Changes

  • Add optional transactionVersion: omitted or 0 selects v0;
    1 selects v1.
  • Compile and sign v1 transactions using the Solana SDK.
  • Preserve CU estimates and match v0 defaults when omitted.
  • Match v0's 64 MiB loaded-account-data allowance for v1 transactions.
  • Update RPC serialization, receipt decoding, and size metrics
    to support v1.

Accept optional transactionVersion in solver responses, keeping v0 as the default. Compile and sign v1 settlements with inline account keys and transaction configuration.

Preserve supplied CU estimates and reproduce v0 defaults when omitted, including active builtin migrations and the account-data allowance. Use v1-aware RPC serialization and receipt decoding, and measure transaction bytes with wincode.
@github-actions

github-actions Bot commented Sep 22, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@socket-security

socket-security Bot commented Sep 22, 2026

Copy link
Copy Markdown

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedserde_json@​1.0.1518210093100100
Addedsolana-builtins-default-costs@​4.2.210010093100100
Addedspl-token-interface@​3.0.010010093100100
Updatedsolana-rpc-client@​4.1.1 ⏵ 4.2.210010093100100
Updatedsolana-rpc-client-api@​4.1.1 ⏵ 4.2.210010093100100
Updatedsolana-transaction-status-client-types@​4.1.1 ⏵ 4.2.210010093100100

View full report

@PeterHackz

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Sep 22, 2026
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