Hardhat Chad cf248d7a28 checkpoint
2025-10-01 11:33:17 -07:00
2025-10-01 11:33:17 -07:00
2025-10-01 09:17:39 -07:00
2025-10-01 11:33:17 -07:00
2024-02-16 20:32:37 +00:00
2025-10-01 09:41:29 -07:00
2025-10-01 09:41:29 -07:00
2025-09-18 09:00:49 -07:00
2025-09-29 10:26:50 -05:00
2025-05-24 00:50:10 -07:00

ORE

ORE is a crypto mining game.

API

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

Instructions

Mining

  • Automate - Configures a new automation.
  • ClaimORE - Claims ORE mining rewards.
  • ClaimSOL - Claims SOL mining rewards.
  • Deploy Deploys SOL to claim space on the board.
  • Initialize - Initializes program variables.
  • Log Logs non-truncatable event data.
  • Reset - Resets the board for a new round.
  • Reset - Resets the board for a new round.

Staking

Admin

  • Bury - Executes a buy-and-bury transaction.
  • Wrap - Wraps SOL in the treasury for swap transactions.
  • SetAdmin - Re-assigns the admin authority.
  • SetFeeCollector - Updates the fee collection address.
  • SetFeeRate - Updates the fee charged per swap.

State

  • Automation - Tracks automation configs.
  • Board - Holds current game state.
  • Config - Global program configs.
  • Miner - Tracks a miner's game state.
  • Seeker - Tracks whether a Seeker token has been claimed.
  • Square - The blockspace state and claims.
  • Stake - Manages a user's staking activity.
  • Treasury - Mints, burns, and escrows ORE tokens.

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%