Files
ore/README.md
Hardhat Chad ffd41b7657 comment
2025-06-06 08:58:45 -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 - Opens a new block for mining.
  • Close - Closes a block and pays out rewards.
  • Mine - Mines the current block by computing hashes.
  • 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 user's mining state.
  • Treasury - The mint authority on 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