This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{collections::BTreeMap, iter::repeat}; | |
use arrayref::{array_mut_ref, array_ref, array_refs, mut_array_refs}; | |
use borsh::{BorshDeserialize, BorshSerialize}; | |
const INITIALIZED_BYTES: usize = 1; | |
const TRACKING_CHUNK_LENGTH: usize = 4; | |
const TRACKING_CHUNK_BYTES: usize = 5116; | |
const TRACKING_ACCOUNT_STATE_SPACE: usize = | |
INITIALIZED_BYTES + TRACKING_CHUNK_LENGTH + TRACKING_CHUNK_BYTES; |