move loaders to api

This commit is contained in:
Hardhat Chad
2024-07-01 14:53:09 -05:00
parent a7c6da1881
commit b55b6d338d
14 changed files with 36 additions and 44 deletions

View File

@@ -1,10 +1,10 @@
use ore_api::state::Proof;
use ore_api::{loaders::*, state::Proof};
use solana_program::{
account_info::AccountInfo, entrypoint::ProgramResult, program_error::ProgramError,
pubkey::Pubkey, system_program,
};
use crate::{loaders::*, utils::AccountDeserialize};
use crate::utils::AccountDeserialize;
/// Close closes a proof account and returns the rent to the owner. Its responsibilities include:
/// 1. Realloc proof account size to 0.