testsvm_core/
prelude.rs

1//! # TestSVM Core Prelude
2//!
3//! Common imports for TestSVM users. This module re-exports the most commonly used types
4//! and traits from testsvm-core for convenient access.
5
6// Core TestSVM types
7pub use crate::{AccountRef, TXError, TXResult, TestSVM};
8
9// Address book types
10pub use solana_address_book::{AddressBook, AddressRole, RegisteredAddress};
11
12// Commonly used Anchor types
13pub use anchor_lang::{
14    AccountDeserialize, AccountSerialize, Discriminator, InstructionData, Key, ToAccountInfos,
15    ToAccountMetas,
16};
17
18pub use anyhow::Result;
19
20// Commonly used Solana SDK types
21pub use solana_sdk::{
22    instruction::{AccountMeta, Instruction},
23    pubkey::Pubkey,
24    signature::{Keypair, Signer},
25    system_program, sysvar,
26    transaction::Transaction,
27};
28
29// Re-export anchor_instruction helper from anchor-utils
30pub use anchor_utils::anchor_instruction;