This commit is contained in:
Hardhat Chad
2025-05-29 09:58:05 -07:00
parent 6507372413
commit 79a9ac3b40
17 changed files with 182 additions and 167 deletions

View File

@@ -9,18 +9,18 @@
- [`Instruction`](api/src/instruction.rs)  Declared instructions and arguments.
## Instructions
- [`Bet`](program/src/bet.rs) - Open a wager.
- [`Bury`](program/src/bury.rs) - Swap wagered tokens into ORE and burns it.
- [`Close`](program/src/close.rs) - Close a wager account.
- [`Bury`](program/src/bury.rs) - Swap committed tokens into ORE and burns it.
- [`Close`](program/src/close.rs) - Close a commit account.
- [`Deploy`](program/src/deploy.rs) - Deploy capital to mine the current block.
- [`Initialize`](program/src/initialize.rs) - Initialize the program.
- [`Payout`](program/src/payout.rs) - Payout the block reward to the winning wager.
- [`Payout`](program/src/payout.rs) - Payout the block reward to the winning commit.
- [`Reset`](program/src/reset.rs) - Start the next block.
## State
- [`Block`](api/src/state/block.rs) - A singleton account tracking rounds of wagering.
- [`Block`](api/src/state/block.rs) - A singleton account tracking rounds of commits.
- [`Proof`](api/src/state/proof.rs) - (Deprecated) An account which tracks a miner's current hash and current stake.
- [`Treasury`](api/src/state/treasury.rs) The mint authority on the ORE token.
- [`Wager`](api/src/state/wager.rs) - A bet placed by a user.
- [`Commit`](api/src/state/commit.rs) - Capital deployed by a miner in the current block.
## Tests