oil_mint_api/state/
mod.rs

1mod authority;
2
3pub use authority::*;
4
5use crate::consts::*;
6
7use steel::*;
8
9#[repr(u8)]
10#[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
11pub enum OilAccount {
12    Authority = 100,
13}
14
15pub fn authority_pda() -> (Pubkey, u8) {
16    Pubkey::find_program_address(&[AUTHORITY], &crate::ID)
17}