Files
ore/ore-delegate/README.md
Hardhat Chad 87cf3603c3 delegate
2025-06-06 10:02:28 -07:00

34 lines
822 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ORE Delegate
**Delegate mining to another party.**
## API
- [`Consts`](api/src/consts.rs)  Program constants.
- [`Error`](api/src/error.rs)  Custom program errors.
- [`Event`](api/src/error.rs)  Custom program events.
- [`Instruction`](api/src/instruction.rs)  Declared instructions and arguments.
## Instructions
- [`Deposit`](program/src/deposit.rs) - Deposit hash tokens.
- [`Withdraw`](program/src/withdraw.rs) - Withdraw hash tokens.
- [`Crank`](program/src/crank.rs) - Crank mine instructions.
- [`Payout`](program/src/payout.rs) - Payout mining rewards.
## State
- [`Delegate`](api/src/state/delegate.rs) - Escrows hash tokens on behalf of a miner.
## Tests
To run the test suite, use the Solana toolchain:
```
cargo test-sbf
```
For line coverage, use llvm-cov:
```
cargo llvm-cov
```