Module marsh_api::state

source ·

Structs§

  • 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 is a singleton account which manages program global variables.
  • 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 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§