Skip to main content

oil_api/
lib.rs

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