Files
ore/README.md
Hardhat Chad 42fc923cb1 comments
2025-06-06 09:39:14 -07:00

1.1 KiB
Raw Blame History

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