cuprate_test_utils/data/
mod.rs

1//! Real Monero data.
2//!
3//! This module provides access to _real_ Monero data,
4//! either in raw bytes or typed.
5//!
6//! ## Constants
7//! The `const`ants provide byte slices representing block
8//! and transaction blobs that can be directly deserialized:
9//!
10//! ```rust
11//! # use cuprate_test_utils::data::*;
12//! use monero_serai::{block::Block, transaction::Transaction};
13//!
14//! let block: Block = Block::read(&mut BLOCK_43BD1F).unwrap();
15//! let tx: Transaction = Transaction::read(&mut TX_E57440).unwrap();
16//! ```
17//!
18//! ## Statics
19//! The statics provide access to typed data found in `cuprate_types`:
20//! ```rust
21//! # use cuprate_test_utils::data::*;
22//! use cuprate_types::{VerifiedBlockInformation, VerifiedTransactionInformation};
23//!
24//! let block: VerifiedBlockInformation = BLOCK_V16_TX0.clone();
25//! let tx: VerifiedTransactionInformation = TX_V1_SIG0.clone();
26//! ```
27
28pub use constants::{
29    BLOCK_43BD1F, BLOCK_5ECB7E, BLOCK_BBD604, BLOCK_F91043, TX_2180A8, TX_3BC7FF, TX_84D48D,
30    TX_9E3F73, TX_B6B439, TX_D7FEBD, TX_E2D393, TX_E57440,
31};
32pub use statics::{BLOCK_V16_TX0, BLOCK_V1_TX2, BLOCK_V9_TX3, TX_V1_SIG0, TX_V1_SIG2, TX_V2_RCT3};
33
34mod constants;
35mod statics;