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

solana: add recovery flow #418

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

solana: add recovery flow #418

wants to merge 9 commits into from

Commits on Apr 17, 2024

  1. solana: pass token_program to ATA (support token22)

    The associated token program instructions default to the legacy SPL
    token program. We pass the token_program as an argument to support
    token2022 tokens too.
    kcsongor committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    b312d0d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    508af61 View commit details
    Browse the repository at this point in the history
  3. solana/transfer: use hook helper to transfer tokens

    TODO: the old token program still works -- is this secure? I think so
    but double check
    kcsongor committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    1123458 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9d49b04 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    29fb437 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. solana: add counter to dummy transfer hook

    to be able to test if it was executed
    kcsongor committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    4b55b84 View commit details
    Browse the repository at this point in the history
  2. wip: transfer before burn/mint to trigger hooks

    wip because with this the test tx size is 5 bytes larger (for transfer)
    than the limit. The way to mitigate is to introduce lookup tables.
    That mitigation will exist in the tests, but will also have to be done
    on real deployments (since the transfer hooks might add an arbitrary
    number of extra acconuts, so we should leave as much headroom as possible)
    kcsongor committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    637c03e View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Configuration menu
    Copy the full SHA
    a3ccab3 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. solana: add recovery flow

    kcsongor committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    18ebdc1 View commit details
    Browse the repository at this point in the history