Crate testsvm_quarry

Crate testsvm_quarry 

Source
Expand description

§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:

# 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

Re-exports§

pub use setup::*;
pub use test_merge_miner::*;
pub use test_merge_pool::*;
pub use test_mint_wrapper::*;
pub use test_quarry::*;
pub use test_rewarder::*;

Modules§

prelude
TestSVM Quarry Prelude
quarry_merge_mine
Generated external program declaration of program quarry_merge_mine.
quarry_mine
Generated external program declaration of program quarry_mine.
quarry_mint_wrapper
Generated external program declaration of program quarry_mint_wrapper.
setup
Quarry Program Setup
test_merge_miner
Merge Miner Testing Utilities
test_merge_pool
Merge Pool Testing Utilities
test_mint_wrapper
Test Mint Wrapper
test_quarry
Quarry Testing Utilities
test_rewarder
Rewarder Testing Utilities