1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
pub mod rewards_pools; pub mod storage_contract; pub mod storage_instruction; pub mod storage_processor; pub const SLOTS_PER_SEGMENT: u64 = 16; pub fn get_segment_from_slot(slot: u64) -> usize { ((slot + (SLOTS_PER_SEGMENT - 1)) / SLOTS_PER_SEGMENT) as usize } const STORAGE_PROGRAM_ID: [u8; 32] = [ 6, 162, 25, 123, 127, 68, 233, 59, 131, 151, 21, 152, 162, 120, 90, 37, 154, 88, 86, 5, 156, 221, 182, 201, 142, 103, 151, 112, 0, 0, 0, 0, ]; solana_sdk::solana_name_id!( STORAGE_PROGRAM_ID, "Storage111111111111111111111111111111111111" );