Hardhat Chad 6c227d9808 readme
2025-09-28 18:20:19 -07:00
2025-09-28 18:19:19 -07:00
2025-09-25 20:32:18 -07:00
2025-09-28 18:19:19 -07:00
2024-02-16 20:32:37 +00:00
2025-09-25 14:14:11 -07:00
2025-09-24 09:45:13 -07:00
2025-09-18 09:00:49 -07:00
2025-09-28 18:20:19 -07:00
2025-05-24 00:50:10 -07:00

ORE

It's time to mine.

Summary

ORE is a crypto mining game on the Solana blockchain. Players compete to earn cryptocurrency by prospecting on blocks rich with digital treasure.

API

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

Instructions

User

  • Claim - Claims miner rewards.
  • Close - Closes a block account.
  • Initialize - Initializes the program.
  • Log Logs events as non-truncatable data.
  • Mine - Submits hashes for scoring.
  • Open - Opens a new block.
  • Reset Resets the hashpower market for the next block.
  • Swap - Executes a buy or sell in the hashpower market.

Admin

State

  • Block - A round in the game.
  • Config - Global program configuration.
  • Market - Hashpower market.
  • Miner - Tracks a miner state and history.
  • Treasury - The mint authority of the ORE token.

Block lifecycle

  • Open a block with an upcoming ID.
  • Reset to move the market forward, and begin trading.
  • Swap to trade hashpower in the market for the current block.
  • Trading ends automatically once the end slot is reached.
  • Reset to move market forward again, and record the slot hash for the ended block.
  • Mine to submit the best hash within your available nonce range.
  • Close to return rent and transfer block reward to the winning miner for claiming.
  • Claim to claim block reward.

Tests

To run the test suite, use the Solana toolchain:

cargo test-sbf

For line coverage, use llvm-cov:

cargo llvm-cov
Description
No description provided
Readme 2.7 MiB
Languages
Rust 99.5%
Shell 0.5%