Files
ore/README.md
Hardhat Chad 14935ca41b comment
2025-06-16 13:40:49 -07:00

1.3 KiB
Raw Blame History

ORE

Mine blockspace. Trade hashpower. Earn 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.
  • Permit - Tracks a miner's commitment to mine a block.
  • Stake - Tracks a miner's collateral for trading in a market.
  • 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