oil-mint-api 0.1.8

API for interacting with the OIL mint program on Solana
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod authority;

pub use authority::*;

use crate::consts::*;

use steel::*;

#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
pub enum OilAccount {
    Authority = 100,
}

pub fn authority_pda() -> (Pubkey, u8) {
    Pubkey::find_program_address(&[AUTHORITY], &crate::ID)
}