Files
ore/ore
Hardhat Chad ddf7101a72 collateral
2025-06-09 15:18:53 -07:00
..
2025-06-09 15:18:53 -07:00
2025-06-09 15:18:53 -07:00
2025-06-06 10:02:28 -07:00

ORE

Mine blockspace. Trade hashpower. Win rewards.

API

  • Consts  Program constants.
  • Error  Custom program errors.
  • Event  Custom program events.
  • Instruction  Declared instructions and arguments.

Instructions

  • Open - Open a new block.
  • Close - Close a block and pay out the reward.
  • Mine - Mine the current block.
  • Swap - Trade in a hashpower market.

State

  • Block - A period of time for mining.
  • Config - Global program configuration.
  • Market - Hashpower market for a given block.
  • Miner - Tracks a miner state and history.
  • Treasury - The mint authority of the ORE token.

Tests

To run the test suite, use the Solana toolchain:

cargo test-sbf

For line coverage, use llvm-cov:

cargo llvm-cov