Skip to content

Commit

Permalink
🔥 Tidy up accountsstorages + remove unnecessary methids for FuzzClient
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan committed Nov 13, 2024
1 parent 696a7ba commit d1c76bf
Show file tree
Hide file tree
Showing 38 changed files with 721 additions and 1,162 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ incremented upon a breaking change and the patch version will be incremented for

**Changed**

- improve AccountsStorage module structure and remove unnecessary methods in FuzzClient ([223](https://github.com/Ackee-Blockchain/trident/pull/223))
- improve manipulations with AccountsStorages in get_accounts() function ([219](https://github.com/Ackee-Blockchain/trident/pull/219))

**Added**
Expand Down
87 changes: 38 additions & 49 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ solana-program = "1.17.4"
solana-banks-client = "1.17.4"
solana-program-runtime = "1.17.4"
solana-program-test = "1.17.4"
solana-vote-program = "1.17.4"
solana-stake-program = "1.17.4"
spl-associated-token-account = { version = "2", features = ["no-entrypoint"] }
spl-token = { version = "4", features = ["no-entrypoint"] }
8 changes: 8 additions & 0 deletions crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ pub mod fuzzing {

pub use std::cell::RefCell;
pub use std::collections::HashMap;

pub use trident_fuzz::accounts_storage::KeypairStore;
pub use trident_fuzz::accounts_storage::MintStore;
pub use trident_fuzz::accounts_storage::PdaStore;
pub use trident_fuzz::accounts_storage::ProgramStore;
pub use trident_fuzz::accounts_storage::StakeStore;
pub use trident_fuzz::accounts_storage::TokenStore;
pub use trident_fuzz::accounts_storage::VoteStore;
}

mod anchor_idl;
Expand Down
4 changes: 3 additions & 1 deletion crates/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ description = "The trident_fuzz crate helps you to write Rust Fuzz Tests for you
# SOLANA
solana-sdk = { workspace = true }
solana-banks-client = { workspace = true }
spl-token = { workspace = true }
solana-stake-program = { workspace = true }
solana-vote-program = { workspace = true }
solana-program-runtime = { workspace = true }
solana-program-test = { workspace = true }
spl-token = { workspace = true }

# ANCHOR
anchor-lang = { workspace = true, features = ["init-if-needed"] }
Expand Down
Loading

0 comments on commit d1c76bf

Please sign in to comment.