Skip to content

Conversation

@SwenSchaeferjohann
Copy link
Contributor

Syncs to light-protocol monorepo swen/refactor-trait branch and adds mixed mint support.

SDK/Trait Changes:

  • Updated LightProgramInterface impl to new trait signature:

    • Instruction -> InstructionKind
    • get_accounts_to_update() -> get_accounts_for_instruction()
    • update() -> update_with_interfaces()
  • Added get_cold_accounts_for_instruction() returning ColdAccountSpec::Pda / ColdAccountSpec::Mint

  • Added decompression tracking: removes cold specs when account becomes hot

  • impl. jup amm SDK trait

  • Use local light deps

SPL/Token-2022:

  • All token-transfer instructions accept optional spl_interface_pda_0/1 accounts and spl_interface_bump_0/1 params
  • Instructions updated: initialize, deposit, withdraw, swap_base_input, swap_base_output, collect_protocol_fee, collect_fund_fee
  • Token transfers use TransferInterfaceCpi.spl_interface() when SPL interface accounts provided
  • Token programs passed per-token (supports Light, SPL, Token-2022)

Tests:

  • lifecycle tests for all token combos: Light+Light, SPL+Light, SPL+SPL, SPL+Token2022, Light+Token2022
    • helpers

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