Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Solana Versioned Transaction base PR #5635

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

albert-llimos
Copy link
Contributor

Pull Request

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have written sufficient tests.
  • I have written and tested required migrations.
  • I have updated documentation where appropriate.

Summary

This PR is the Base PR for all Versioned transactions PR.

@albert-llimos albert-llimos changed the title feat: Solana Versioned Transaction Base feat: Solana Versioned Transaction base PR Feb 13, 2025
albert-llimos and others added 3 commits February 19, 2025 06:10
* Added versioned transaction and versioned message support

* Added unit test for Versioned transactions with Address lookup table

* Moved (almost) everything in sol_tx_core into sol-prim
Moved ALT related stuff to its own file.

* Initial commit for changing Solana Transaction to VersionedTransaction

* chore: update bouncer to get versioned transactions

* Updated unit tests for transaction building
Removed all uses of Legacy message and Transaction.

* Fix broken unit test

* Make solana api calls more consistent with the use of ALT

---------

Co-authored-by: Daniel <daniel@chainflip.io>
Co-authored-by: albert <allimos3@gmail.com>
…g. (#5638)

* Added versioned transaction and versioned message support

* Added unit test for Versioned transactions with Address lookup table

* Moved (almost) everything in sol_tx_core into sol-prim
Moved ALT related stuff to its own file.

* Initial commit for changing Solana Transaction to VersionedTransaction

* Make solana api calls more consistent with the use of ALT

* feat: update image with alt and add logic and migrations

* chore: rebase and update

* chore: run ci

* chore: fix clippy and try removing symlink

* chore: try running anza

* chore: upgrade to 2.1.13

* chore: update bouncer expected number of nonces

* chore: update compute units

* chore: restore ci#

* chore: fix ci

* chore: nit

* chore: update test

* chore: fix tests and nit

* chore: define MAX_CCM_USER_ALTS

* Minor improvements.
Fix build and tests

---------

Co-authored-by: Roy Yang <roy@chainflip.io>
Co-authored-by: Daniel <daniel@chainflip.io>
@albert-llimos albert-llimos force-pushed the feat/solana-versioned-transaction-base-branch branch from 354c4de to 0dd6b08 Compare February 19, 2025 05:12
* chore: add ci when PR against base branch

* feat: use Solana versioned transaction to build api calls (#5633)

* Added versioned transaction and versioned message support

* Added unit test for Versioned transactions with Address lookup table

* Moved (almost) everything in sol_tx_core into sol-prim
Moved ALT related stuff to its own file.

* Initial commit for changing Solana Transaction to VersionedTransaction

* chore: update bouncer to get versioned transactions

* Updated unit tests for transaction building
Removed all uses of Legacy message and Transaction.

* Fix broken unit test

* Make solana api calls more consistent with the use of ALT

---------

Co-authored-by: Daniel <daniel@chainflip.io>
Co-authored-by: albert <allimos3@gmail.com>

* Added versioned transaction and versioned message support

* Added unit test for Versioned transactions with Address lookup table

* Moved (almost) everything in sol_tx_core into sol-prim
Moved ALT related stuff to its own file.

* Initial commit for changing Solana Transaction to VersionedTransaction

* Make solana api calls more consistent with the use of ALT

* feat: update image with alt and add logic and migrations

* chore: rebase and update

* chore: run ci

* chore: fix clippy and try removing symlink

* chore: try running anza

* chore: upgrade to 2.1.13

* chore: update bouncer expected number of nonces

* chore: update compute units

* chore: restore ci#

* chore: fix ci

* chore: nit

* chore: update test

* chore: fix tests and nit

* chore: define MAX_CCM_USER_ALTS

* Minor improvements.
Fix build and tests

* Add a fallback mechanism where if CCM failed to build (for any reason)
the fund is returned to the "refund" address via a "Transfer" transaction.

* chore: nit

* chore: fix

* chore: revert source_address

* chore: clippy

---------

Co-authored-by: albert <allimos3@gmail.com>
Co-authored-by: Daniel <daniel@chainflip.io>
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