Reference

Contracts

Every rule lives in one Anchor program on Solana devnet.

Addresses

Accounts

AccountSeedsHolds
Config"config"Emission, tiers, totals, admin
Player"player", ownerFacility tier, slots, hashrate, pending rewards
Miner type"miner", idHashrate, power, price, supply

Player instructions

InstructionWhat it does
buy_facilityOpens your facility for SOL, installs the starter miner, saves your referrer
buy_minerBuys a miner with $MINER and installs it in a free slot
remove_minerRemoves the miner in a slot (no refund)
upgrade_facilityMoves up one tier, after the cooldown
claimSettles electricity and pays mined + referral $MINER from the vault

Admin powers

The admin can pause the game, tune prices, tiers and miner types, add new miners and top up the vault. The admin can't mint $MINER, move tokens out of the vault, or touch any player's facility. The reward mint can only be changed before anyone has started mining.

Not audited

The program has not had a third-party audit. Only put in what you can afford to lose.