trident-cli 0.12.0

Trident is Rust based fuzzing framework for Solana programs written in Anchor.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anyhow::Error;
use fehler::throws;
use trident_client::___private::Commander;

use crate::command::check_anchor_initialized;
use crate::command::check_trident_uninitialized;

#[throws]
pub(crate) async fn clean() {
    let root = check_anchor_initialized()?;

    check_trident_uninitialized(&root)?;
    let commander = Commander::new(&root);
    commander.clean_target().await?;
}