migration

This commit is contained in:
Hardhat Chad
2025-09-18 09:00:49 -07:00
parent 7c94459df0
commit ffaa93d947
9 changed files with 410 additions and 244 deletions

View File

@@ -1,6 +1,6 @@
use steel::*;
use crate::state::treasury_pda;
use crate::state::{treasury_pda, OreAccountOLD};
use super::OreAccount;
@@ -12,6 +12,12 @@ pub struct Treasury {
pub balance: u64,
}
/// 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 TreasuryOLD {}
impl Treasury {
pub fn pda() -> (Pubkey, u8) {
treasury_pda()
@@ -19,3 +25,4 @@ impl Treasury {
}
account!(OreAccount, Treasury);
account!(OreAccountOLD, TreasuryOLD);