mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
11 lines
288 B
Rust
11 lines
288 B
Rust
use solana_program::program_error::ProgramError;
|
|
|
|
pub trait AccountDeserialize {
|
|
fn try_from_bytes(data: &[u8]) -> Result<&Self, ProgramError>;
|
|
fn try_from_bytes_mut(data: &mut [u8]) -> Result<&mut Self, ProgramError>;
|
|
}
|
|
|
|
pub trait Discriminator {
|
|
fn discriminator() -> u8;
|
|
}
|