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.
automate_with_session
barrel
buyback
checkpoint
checkpoint_with_session
claim_auction_oil
Claim auction-based OIL rewards
claim_auction_oil_with_session
claim_auction_sol
Claim auction-based SOL rewards
claim_auction_sol_with_session
claim_oil
Claim OIL rewards with single-tier referral system.
claim_oil_with_session
claim_referral
Claim pending referral rewards (both SOL and OIL).
claim_referral_with_session
claim_sol
Claim SOL rewards with single-tier referral system.
claim_sol_with_session
claim_yield
Claim SOL yield from staking. Stakers earn SOL rewards (2% of round winnings), not OIL.
claim_yield_with_session
close
create_referral
Create a referral account to become a referrer.
create_referral_with_session
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.
deploy_with_session
deposit
deposit_with_session
log
migrate
Migrate Miner: Extend Miner struct with 2 [u64; 4] arrays (current_epoch_id, checkpointed_epoch_id). This migration moves current_epoch_id and checkpointed_epoch_id from Rig to Miner. Must be called by the admin. Accounts: signer, config, miner, 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.
place_bid_with_session
program_log
refinery_program_log
Log event for refinery instructions (uses Refinery PDA as signer)
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
withdraw_with_session
wrap