OIL is a crypto mining protocol.
Consts– Program constants.Error– Custom program errors.Event– Custom program events.Instruction– Declared instructions and arguments.
Automate- Configures a new automation.AutomateWithSession- Configures a new automation (Fogo session).Checkpoint- Checkpoints rewards from a prior round.CheckpointWithSession- Checkpoints rewards from a prior round (Fogo session).ClaimOIL- Claims OIL mining rewards.ClaimOILWithSession- Claims OIL mining rewards (Fogo session).ClaimSOL- Claims SOL mining rewards.ClaimSOLWithSession- Claims SOL mining rewards (Fogo session).Deploy- Deploys SOL to claim space on the board.DeployWithSession- Deploys SOL to claim space on the board (Fogo session).Initialize- Initializes program variables.Log- Logs non-truncatable event data.ReloadSOL- Reloads SOL mining rewards into automation.Reset- Resets the board for a new round.Close- Closes an account.
CreateReferral- Creates a referral account.CreateReferralWithSession- Creates a referral account (Fogo session).ClaimReferral- Claims referral rewards.ClaimReferralWithSession- Claims referral rewards (Fogo session).
PlaceBid- Places a bid on an auction well.PlaceBidWithSession- Places a bid on an auction well (Fogo session).ClaimAuctionOIL- Claims OIL rewards from auction mining.ClaimAuctionOILWithSession- Claims OIL rewards from auction mining (Fogo session).ClaimAuctionSOL- Claims SOL rewards from auction mining.ClaimAuctionSOLWithSession- Claims SOL rewards from auction mining (Fogo session).
Deposit- Deposits OIL into a stake account.DepositWithSession- Deposits OIL into a stake account (Fogo session).Withdraw- Withdraws OIL from a stake account.WithdrawWithSession- Withdraws OIL from a stake account (Fogo session).ClaimYield- Claims staking yield.ClaimYieldWithSession- Claims staking yield (Fogo session).
Barrel- Executes a buy-and-barrel transaction.Buyback- Executes a buyback transaction.Wrap- Wraps SOL in the treasury for swap transactions.SetAdmin- Re-assigns the admin authority.SetFeeCollector- Updates the fee collection address.SetAdminFee- Updates the admin fee rate.SetSwapProgram- Updates the swap program address.SetVarAddress- Updates the entropy variable address.NewVar- Creates a new entropy variable.SetAuction- Configures auction parameters.CreateWhitelist- Creates a whitelist account.SetTgeTimestamp- Sets the token generation event timestamp.Migrate- Migrates program state.Liq- Executes liquidity operations.
Automation- Tracks automation configs.Auction- Tracks auction configuration and state.Bid- Tracks individual auction bids.Board- Tracks the current round number and timestamps.Config- Global program configs.Miner- Tracks a miner's game state.Pool- Tracks staking pool state.Referral- Tracks referral account state.Round- Tracks the game state of a given round.Seeker- Tracks whether a Seeker token has been claimed.Stake- Manages a user's staking activity.Treasury- Mints, burns, and escrows OIL tokens.Well- Tracks auction well state.Whitelist- Tracks whitelist entries.
To run the test suite, use the Solana toolchain:
cargo test-sbf
For line coverage, use llvm-cov:
cargo llvm-cov