Skip to main content

magicblock_account/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![doc = include_str!("../README.md")]
3
4mod account;
5#[cfg(feature = "bincode")]
6mod codec;
7mod cow;
8mod patch;
9#[cfg(feature = "bincode")]
10pub mod state_traits;
11#[cfg(feature = "bincode")]
12mod sysvar;
13/// Test-only helpers for borrowed account buffers.
14#[cfg(feature = "testkit")]
15pub mod testkit;
16mod traits;
17
18pub use account::{Account, PROGRAM_OWNERS, create_is_signer_account_infos};
19pub use cow::{
20    ALIGNMENT, AccountBuilder, AccountMode, AccountSeqLock, AccountSharedData, BorrowedAccount,
21    CoWAccount, DirtyMarkers, OwnedAccount, STORAGE_UNIT, StateFlags, StorageUnit,
22};
23pub use patch::{AccountFieldPatch, AccountPatchError};
24#[cfg(feature = "bincode")]
25pub use sysvar::{
26    DUMMY_INHERITABLE_ACCOUNT_FIELDS, InheritableAccountFields, create_account_for_test,
27    create_account_shared_data_for_test, create_account_shared_data_with_fields,
28    create_account_with_fields, from_account, to_account,
29};
30pub use traits::{ReadableAccount, WritableAccount, accounts_equal};
31
32#[cfg(test)]
33mod tests;