Skip to main content

oil_api/
lib.rs

1pub mod consts;
2pub mod error;
3pub mod event;
4pub mod instruction;
5pub mod sdk;
6pub mod state;
7pub mod utils;
8
9pub mod prelude {
10    pub use crate::consts::*;
11    pub use crate::error::*;
12    pub use crate::event::*;
13    pub use crate::instruction::*;
14    pub use crate::sdk::*;
15    // Note: state::Bid and instruction::Bid both exist - use explicit imports where needed
16    // Export state types explicitly to avoid ambiguous re-export warning
17    pub use crate::state::{
18        Auction, Automation, AutomationStrategy, Bid as BidAccount, Board, Config, Miner, OilAccount, Pool, Referral, Round, Stake, Treasury, Well,
19    };
20    // Re-export state module functions (PDAs, etc.)
21    pub use crate::state::{
22        auction_pda, automation_pda, bid_pda, board_pda, config_pda, miner_pda, pool_pda, pool_tokens_address,
23        referral_pda, round_pda, stake_pda, stake_pda_with_id, treasury_pda, treasury_tokens_address, well_pda,
24    };
25    // Re-export utils
26    pub use crate::utils::*;
27}
28
29use steel::*;
30
31declare_id!("rigwXYKkE8rXiiyu6eFs3ZuDNH2eYHb1y87tYqwDJhk");