ore_mint_api/
instruction.rs

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