mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
1.1 KiB
1.1 KiB
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- A user's mining and staking 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