This commit is contained in:
Hardhat Chad
2025-06-10 07:56:04 -07:00
parent 1ee9ad86ac
commit fb285226fb
55 changed files with 41 additions and 573 deletions

19
api/src/state/treasury.rs Normal file
View File

@@ -0,0 +1,19 @@
use steel::*;
use crate::state::treasury_pda;
use super::OreAccount;
/// Treasury is a singleton account which is the mint authority for the ORE token and the authority of
/// the program's global token account.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Treasury {}
impl Treasury {
pub fn pda() -> (Pubkey, u8) {
treasury_pda()
}
}
account!(OreAccount, Treasury);