mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
fdece95570402927645de381266e2c5e071cd851
ORE
Digital gold, accelerated.
API
Consts– Program constants.Error– Custom program errors.Event– Custom program events.Instruction– Declared instructions and arguments.
Instructions
Bet- Open a wager.Bury- Swap wagered tokens into ORE and burns it.Close- Close a wager account.Initialize- Initialize the program.Payout- Payout the block reward to the winning wager.Reset- Start the next block.
State
Block- A singleton account tracking rounds of wagering.Proof- (Deprecated) An account which tracks a miner's current hash and current stake.Treasury– The mint authority on the ORE token.Wager- A bet placed by a user.
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%