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_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).
deposit
join_auction_pool
Contribute SOL to an auction pool for a specific well.
log
migrate
Migrate a Round account to add pool fields. Anyone can call this (signer pays for rent increase).
migrate_treasury
Migrate a Treasury account (no-op, kept for backwards compatibility). Stakers earn SOL rewards (2% of round winnings), not OIL.
new_var
program_log
reload_sol
Reload SOL from miner account to automation balance with single-tier referral system.
reset
set_admin
set_admin_fee
set_auction
set_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.
set_fee_collector
set_swap_program
set_var_address
withdraw