diff --git a/artifacts/test_program_methods/flash_swap_initiator.bin b/artifacts/test_program_methods/flash_swap_initiator.bin index bcaf5983..4ecb4a4c 100644 Binary files a/artifacts/test_program_methods/flash_swap_initiator.bin and b/artifacts/test_program_methods/flash_swap_initiator.bin differ diff --git a/test_program_methods/guest/src/bin/flash_swap_initiator.rs b/test_program_methods/guest/src/bin/flash_swap_initiator.rs index f4f0c65b..35be252a 100644 --- a/test_program_methods/guest/src/bin/flash_swap_initiator.rs +++ b/test_program_methods/guest/src/bin/flash_swap_initiator.rs @@ -25,7 +25,7 @@ //! - `self_program_id`: enables a program to chain back to itself (step 3 above) //! - `caller_program_id`: enables a program to restrict which callers can invoke an instruction //! - Computed intermediate states: the initiator computes expected intermediate account states from -//! the pre_states and amount, keeping the instruction minimal. +//! the `pre_states` and amount, keeping the instruction minimal. //! - Atomic rollback: if the callback doesn't return funds, the invariant check fails, and all //! state changes from steps 1 and 2 are rolled back automatically. //! @@ -44,10 +44,6 @@ use nssa_core::program::{ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize)] -#[expect( - clippy::large_enum_variant, - reason = "guest program enum, boxing adds unnecessary complexity" -)] pub enum FlashSwapInstruction { /// External entrypoint: initiate a flash swap. /// @@ -56,7 +52,8 @@ pub enum FlashSwapInstruction { /// 2. Callback (user logic, e.g. arbitrage) /// 3. Self-call `InvariantCheck` (verify vault balance did not decrease) /// - /// Intermediate account states are computed inside the program from pre_states and amount_out. + /// Intermediate account states are computed inside the program from `pre_states` and + /// `amount_out`. Initiate { token_program_id: ProgramId, callback_program_id: ProgramId,