oil_mint_api/
instruction.rs

1use steel::*;
2
3#[repr(u8)]
4#[derive(Clone, Copy, Debug, Eq, PartialEq, TryFromPrimitive)]
5pub enum OilMintInstruction {
6    Init = 0,
7    MintOIL = 1,
8}
9
10#[repr(C)]
11#[derive(Clone, Copy, Debug, Pod, Zeroable)]
12pub struct Init {}
13
14#[repr(C)]
15#[derive(Clone, Copy, Debug, Pod, Zeroable)]
16pub struct MintOIL {
17    pub amount: [u8; 8],
18}
19
20instruction!(OilMintInstruction, Init);
21instruction!(OilMintInstruction, MintOIL);