Structs§
- Bus
- Bus accounts are responsible for distributing mining rewards. There are 8 busses total to minimize write-lock contention and allow Solana to process mine instructions in parallel. Every epoch, the bus account rewards counters are topped up to 10 MARSH each (80 MARSH split amongst 8 busses).
- Config
- Config is a singleton account which manages program global variables.
- Proof
- Proof accounts track a miner’s current hash, claimable rewards, and lifetime stats. Every miner is allowed one proof account which is required by the program to mine or claim rewards.
- Treasury
- Treasury is a singleton account which is the mint authority for the MARSH token and the authority of the program’s global token account.
Enums§
Functions§
- bus_pda
- Fetch the PDA of a bus account.
- config_
pda - Derive the PDA of the config account.
- proof_
pda - Derive the PDA of a proof account.
- treasury_
pda - Derive the PDA of the treasury account.