Skip to main content

Module sdk

Module sdk 

Source

Functions§

auction_program_log
Log event for auction-based instructions (uses Auction PDA instead of Board)
automate
Set up automation for a miner. If the miner doesn’t exist yet, pass a referrer to set it. If a referrer is provided and the miner is new, the referral account must be included.
barrel
buyback
checkpoint
claim_auction_oil
Claim auction-based OIL rewards
claim_auction_sol
Claim auction-based SOL rewards
claim_oil
Claim OIL rewards with single-tier referral system.
claim_referral
Claim pending referral rewards (both SOL and OIL).
claim_seeker
claim_sol
Claim SOL rewards with single-tier referral system.
claim_yield
Claim SOL yield from staking. Stakers earn SOL rewards (2% of round winnings), not OIL.
close
create_referral
Create a referral account to become a referrer.
create_whitelist
Creates a Whitelist account for a shared access code. Admin-only instruction. Accounts: signer (admin), config, whitelist, system_program
deploy
Deploy SOL to prospect on squares (for FOGO sessions or regular wallets with wrapped SOL).
deploy_auto
Deploy instruction for automations (omits wrapped token accounts since automation uses native SOL).
deposit
log
migrate
Migrate: Extend Treasury struct with liquidity field. This migration ensures the Treasury account has the new liquidity field available. Must be called by the admin. Accounts: signer, config, treasury, system_program
new_var
place_bid
Direct solo bid on an auction well (seize ownership). The bid amount is calculated on-chain as current_price + 1 lamport. User must have enough SOL in their wallet to cover the bid.
program_log
reload_sol
Reload SOL from miner account to automation balance with single-tier referral system.
reset
reset_with_miners
set_admin
set_admin_fee
set_auction
set_fee_collector
set_swap_program
set_tge_timestamp
Sets the TGE (Token Generation Event) timestamp. If current time < tge_timestamp, pre-mine is active. Set to 0 to disable pre-mine. Admin-only instruction.
set_var_address
withdraw
wrap