Skip to content

Conversation

@gomesalexandre
Copy link
Contributor

Description

Stopping point after many hours of madness. Everything seems to be happy up to broadcast, which is seemingly happy both with the /send endpoint and with Phantom (which even simulates), but seeing nothing on-chain.

TODO:

  • get in touch with Bebop re: can we really self-execute? is delegated/cosigning an actual thing for Solana too?
  • make broadcast work
  • cleanup
  • remove Phantom solana monkey patch fix and tackle in its own issue

Issue (if applicable)

Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Testing

Engineering

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

Screenshots (if applicable)

- Add Solana support to BebopSwapper (quotes and rates working)
- Implement fee calculation for Solana swaps
- Add comprehensive logging throughout Bebop Solana flow
- Store decompiled instructions in solanaTransactionMetadata
- Extract compute budget params from Bebop instructions

Current status: Quotes work, fees display, but broadcast has issues.
Transaction requires Bebop co-signature - investigating /v3/order flow.

Blocker documented in SOLANA_BLOCKER.md
Implementation plan in SOLANA_IMPLEMENTATION_PLAN.md
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 12, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat_bebop_solana

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Document multi-signature requirement and potential /v3/order flow.
Compare with CowSwap pattern for API-based execution.
- Remove presigned transaction approach
- Add getUnsignedSolanaMessage and executeSolanaMessage methods
- Update trade execution to sign transaction message bytes
- Use Bebop /v3/order endpoint for gasless trades with co-signing
- Add base-x for base58 encoding of signatures
- Update signing logic to use wallet.solanaSignMessage when available
- Extract transaction.message.serialize() to get messageBytes
- Sign messageBytes directly (equivalent to Bebop's signBytes)
- Fallback to adapter.signTransaction for wallets without message signing
- Fixes TypeScript CI error with unused messageBytes variable
- Use wallet.solanaSignRawTransaction instead of direct provider access
- Proper hdwallet API for signing prebuilt Bebop transactions
- Add @noble/hashes dependency to fix Vite bundling
- Update to hdwallet 1.62.29-bebop-solana-msg.4
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.

bebop goes solana

2 participants