oil_api/
lib.rs

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