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.
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.
deploy
Deploy SOL to prospect on squares. Pass a referrer pubkey for new miners to set up referral. Set pooled to true to join the mining pool (rewards shared proportionally).
deploy_auto
Deploy instruction for automation (omits wrapped token accounts since automation uses native SOL) Account structure: base (9) + token programs only (3) + optional referral (1) + entropy (2) = 12-15 accounts
deposit
log
migrate
Migrate a Miner account to add total_stake_score field. Anyone can call this (signer pays for rent increase).
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_var_address
withdraw