1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! # TestSVM Quarry
//!
//! Testing utilities for the Quarry protocol on Solana using the TestSVM framework.
//!
//! This crate provides comprehensive testing utilities for interacting with the Quarry mining protocol,
//! including rewarders, miners, merge mining, and mint wrapper functionality. It simplifies the process
//! of testing Quarry-based applications in a controlled environment.
//!
//! ## Features
//!
//! - **Quarry Program Setup**: Easy initialization of all Quarry programs
//! - **Rewarder Management**: Create and manage reward distribution systems
//! - **Mining Operations**: Test single and merge mining functionality
//! - **Mint Wrapper**: Testing utilities for wrapped token minting
//! - **Type-safe Interfaces**: Strongly typed wrappers around Quarry operations
//!
//! ## Prerequisites
//!
//! Before using this crate, download the Quarry program binaries:
//!
//! ```bash
//! # Set your project root
//! export ROOT_DIR=/path/to/your/project
//!
//! # Download Quarry programs
//! solana program dump QMMD16kjauP5knBwxNUJRZ1Z5o3deBuFrqVjBVmmqto \
//! $ROOT_DIR/fixtures/programs/quarry_merge_mine.so
//!
//! solana program dump QMNeHCGYnLVDn1icRAfQZpjPLBNkfGbSKRB83G5d8KB \
//! $ROOT_DIR/fixtures/programs/quarry_mine.so
//!
//! solana program dump QMWoBmAyJLAsA1Lh9ugMTw2gciTihncciphzdNzdZYV \
//! $ROOT_DIR/fixtures/programs/quarry_mint_wrapper.so
//! ```
use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
// Declare quarry programs using their IDLs
declare_program!;
declare_program!;
declare_program!;