Ackee-Blockchain / trident

Rust-based framework to Fuzz and Integration test Solana programs to help you ship secure code.
https://ackee.xyz/
MIT License
185 stars 18 forks source link

⚡️ Add feature to initialize trident with Macro/File (for Snapshots) option based on preference #179

Closed lukacan closed 1 month ago

lukacan commented 2 months ago

This PR adds functionality such that it is possible to decide during the trident init command if the user wants to fuzz with AccountsSnapshots macro or using accounts_snapshots.rs file.

In case of macro the user needs to include trident-client in his program and derive AccountsSnapshots for every context manually, then he needs to include these derived implementations in the fuzz_instructions.rs.

In case of file it is required to include accounts_snapshots.rs implementation within the fuzz_instructions.rs file.