mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 15:09:57 +00:00
4a3f61bc71da5c892f36679320e59f9cf49616e8
ORE
Mine blockspace. Trade hashpower. Earn 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.Permit- Tracks a miner's commitment to mine a block.Stake- Tracks a miner's collateral for trading in a market.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
Description
Languages
Rust
99.5%
Shell
0.5%