This commit is contained in:
Hardhat Chad
2024-02-14 18:30:51 +00:00
parent bbc1d835ea
commit 25c2b17ee9
21 changed files with 670 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
use bytemuck::{Pod, Zeroable};
use crate::impl_to_bytes;
use crate::{impl_account_from_bytes, impl_to_bytes};
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
@@ -16,3 +16,4 @@ pub struct Bus {
}
impl_to_bytes!(Bus);
impl_account_from_bytes!(Bus);

View File

@@ -3,7 +3,7 @@ use std::mem::transmute;
use bytemuck::{Pod, Zeroable};
use solana_program::keccak::{Hash as KeccakHash, HASH_BYTES};
use crate::impl_to_bytes;
use crate::{impl_account_from_bytes, impl_to_bytes};
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
@@ -24,3 +24,4 @@ impl From<Hash> for KeccakHash {
}
impl_to_bytes!(Hash);
impl_account_from_bytes!(Hash);

View File

@@ -1,7 +1,7 @@
use bytemuck::{Pod, Zeroable};
use solana_program::pubkey::Pubkey;
use crate::impl_to_bytes;
use crate::{impl_account_from_bytes, impl_to_bytes};
use super::Hash;
@@ -28,3 +28,4 @@ pub struct Proof {
}
impl_to_bytes!(Proof);
impl_account_from_bytes!(Proof);

View File

@@ -1,7 +1,7 @@
use bytemuck::{Pod, Zeroable};
use solana_program::pubkey::Pubkey;
use crate::impl_to_bytes;
use crate::{impl_account_from_bytes, impl_to_bytes};
use super::Hash;
@@ -28,3 +28,4 @@ pub struct Treasury {
}
impl_to_bytes!(Treasury);
impl_account_from_bytes!(Treasury);