mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-25 07:26:50 +00:00
cleanup utils imports
This commit is contained in:
10
utils/src/traits.rs
Normal file
10
utils/src/traits.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use solana_program::program_error::ProgramError;
|
||||
|
||||
pub trait Discriminator {
|
||||
fn discriminator() -> u8;
|
||||
}
|
||||
|
||||
pub trait AccountDeserialize {
|
||||
fn try_from_bytes(data: &[u8]) -> Result<&Self, ProgramError>;
|
||||
fn try_from_bytes_mut(data: &mut [u8]) -> Result<&mut Self, ProgramError>;
|
||||
}
|
||||
Reference in New Issue
Block a user