arb_storage/
lib.rs

1//! Storage-backed types for ArbOS state.
2//!
3//! Provides typed wrappers over raw storage slots: integers, addresses,
4//! byte arrays, queues, and vectors that persist in the state trie.
5
6mod backed_types;
7mod bytes_storage;
8mod extra_types;
9pub mod queue;
10mod slot;
11mod state_ops;
12mod storage;
13pub mod vector;
14
15pub use backed_types::{
16    StorageBackedAddress, StorageBackedAddressOrNil, StorageBackedBigInt, StorageBackedBigUint,
17    StorageBackedInt64, StorageBackedUint64,
18};
19pub use bytes_storage::StorageBackedBytes;
20pub use extra_types::{
21    StorageBackedBips, StorageBackedUBips, StorageBackedUint16, StorageBackedUint24,
22    StorageBackedUint32,
23};
24pub use queue::{initialize_queue, open_queue, Queue};
25pub use slot::storage_key_map;
26pub use state_ops::{
27    ensure_account_in_bundle, ensure_arbos_account_in_bundle, get_account_balance,
28    read_arbos_storage, read_storage_at, set_account_code, set_account_nonce, write_arbos_storage,
29    write_storage_at, ARBOS_STATE_ADDRESS, FILTERED_TX_STATE_ADDRESS,
30};
31pub use storage::Storage;
32pub use vector::{open_sub_storage_vector, SubStorageVector};