use crate::pubkey::Pubkey;
use borsh::{BorshDeserialize, BorshSerialize};
crate::declare_id!("Resharing1111111111111111111111111111111111");
pub const RESHARING_PROGRAM_ID: Pubkey = ID;
pub mod data_account {
crate::declare_id!("ResharingData111111111111111111111111111111");
}
pub mod staging_account {
crate::declare_id!("ResharingStaging111111111111111111111111111");
}
pub const RESHARING_DATA_ACCOUNT_ID: Pubkey = data_account::ID;
pub const RESHARING_STAGING_ACCOUNT_ID: Pubkey = staging_account::ID;
pub const CHUNK_SIZE: u64 = 8192;
#[derive(Serialize, Deserialize, BorshSerialize, BorshDeserialize, Debug, PartialEq, Eq, Clone)]
pub struct ResharingInstruction {
pub first_chunk: bool,
pub last_chunk: bool,
pub start_offset: u64,
pub chunk: Vec<u8>,
}