remove epoch requirement

This commit is contained in:
Hardhat Chad
2025-05-12 14:50:41 -07:00
parent 3c4cc8f3b6
commit 379ebae250
8 changed files with 197 additions and 15 deletions

View File

@@ -1,7 +1,9 @@
mod bus;
mod config;
mod proof;
mod treasury;
pub use bus::*;
pub use config::*;
pub use proof::*;
pub use treasury::*;
@@ -13,6 +15,7 @@ use crate::consts::*;
#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
pub enum OreAccount {
Bus = 100,
Config = 101,
Proof = 102,
Treasury = 103,
@@ -32,3 +35,9 @@ pub fn proof_pda(authority: Pubkey) -> (Pubkey, u8) {
pub fn treasury_pda() -> (Pubkey, u8) {
Pubkey::find_program_address(&[TREASURY], &crate::id())
}
#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
pub enum OldOreAccount {
OldConfig = 101,
}