Skip to content

Commit

Permalink
✅ Update remaining examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan committed Jul 20, 2024
1 parent e5702db commit 2815715
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
incremented upon a breaking change and the patch version will be incremented for features.

## [dev] - Unreleased
- impr/ add feature flag to the AccountsSnapshots macro ([183](https://github.com/Ackee-Blockchain/trident/pull/183))
- feat/ add Support for CPI ([182](https://github.com/Ackee-Blockchain/trident/pull/182))
- feat/ add option to initialize Trident with Macro/File (for Snapshots) option based on preference ([179](https://github.com/Ackee-Blockchain/trident/pull/179))
- del/remove localnet subcommand ([178](https://github.com/Ackee-Blockchain/trident/pull/178))
Expand Down
5 changes: 3 additions & 2 deletions examples/fuzz-tests/cpi-metaplex-7/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ no-entrypoint = []
no-idl = []
no-log-ix-name = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]
trident-fuzzing = ["dep:trident-fuzz"]


[dependencies]
anchor-lang = "0.30.1"
anchor-spl = "0.30.1"
mpl-token-metadata = "4.1.2"
trident-client = { path = "../../../../../crates/client" }
trident-derive-accounts-snapshots = { path = "../../../../../crates/fuzz/derive/accounts_snapshots" }
trident-fuzz = { path = "../../../../../crates/fuzz", optional = true }
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use mpl_token_metadata::{
ID as MPL_METADATA_PROGRAM,
};

use trident_client::fuzzing::AccountsSnapshots;
use trident_derive_accounts_snapshots::AccountsSnapshots;

declare_id!("3XtULmXDGS867VbBXiPkjYr4EMjytGW8X12F6BS23Zcw");

Expand Down Expand Up @@ -47,7 +47,7 @@ pub struct Initialize<'info> {
)]
pub mint: Account<'info, Mint>,

// CHECK: Will be initialized
/// CHECK: Will be initialized
#[account(mut)]
pub metadata_account: UncheckedAccount<'info>,
pub mpl_token_metadata: Program<'info, MplTokenMetadataProgram>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ path = "../../../../../crates/client"

[dependencies.cpi-metaplex-7]
path = "../../programs/cpi-metaplex-7"
features = ["trident-fuzzing"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod cpi_metaplex_7_fuzz_instructions {
use cpi_metaplex_7::trident_fuzz_initialize_snapshot::InitializeSnapshot;
use cpi_metaplex_7::trident_fuzz_Initialize_snapshot::InitializeSnapshot;
use solana_sdk::native_token::LAMPORTS_PER_SOL;
use trident_client::fuzzing::*;
#[derive(Arbitrary, DisplayIx, FuzzTestExecutor, FuzzDeserialize)]
Expand Down
5 changes: 3 additions & 2 deletions examples/fuzz-tests/simple-cpi-6/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion examples/fuzz-tests/simple-cpi-6/programs/caller/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ no-entrypoint = []
no-idl = []
no-log-ix-name = []
idl-build = ["anchor-lang/idl-build"]
trident-fuzzing = ["dep:trident-fuzz"]

[dependencies]
anchor-lang = "0.30.1"
callee = { path = "../callee", features = ["cpi"] }
trident-client = { path = "../../../../../crates/client" }
trident-derive-accounts-snapshots = { path = "../../../../../crates/fuzz/derive/accounts_snapshots" }
trident-fuzz = { path = "../../../../../crates/fuzz", optional = true }
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anchor_lang::prelude::*;
use callee::program::Callee;
use trident_client::fuzzing::AccountsSnapshots;
use trident_derive_accounts_snapshots::AccountsSnapshots;

declare_id!("FWtSodrkUnovFPnNRCxneP6VWh6JH6jtQZ4PHoP8Ejuz");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ path = "../../programs/callee"

[dependencies.caller]
path = "../../programs/caller"
features = ["trident-fuzzing"]
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
// }

pub mod caller_fuzz_instructions {
use caller::trident_fuzz_initialize_caller_snapshot::InitializeCallerSnapshot;
use caller::trident_fuzz_InitializeCaller_snapshot::InitializeCallerSnapshot;
use trident_client::fuzzing::*;
#[derive(Arbitrary, DisplayIx, FuzzTestExecutor, FuzzDeserialize)]
pub enum FuzzInstruction {
Expand Down

0 comments on commit 2815715

Please sign in to comment.