1use borsh::{BorshDeserialize, BorshSerialize};
2use solana_program::pubkey::Pubkey;
3use solana_program::secp256k1_recover::SECP256K1_PUBLIC_KEY_LENGTH;
4
5pub const MAX_ADMIN_SIZE: usize = SECP256K1_PUBLIC_KEY_LENGTH + (32 as usize) + (8 as usize) + (1 as usize);
6
7#[repr(C)]
8#[derive(BorshSerialize, BorshDeserialize, PartialEq, Debug, Clone)]
9pub struct UpgradeAdmin {
10 pub public_key: [u8; SECP256K1_PUBLIC_KEY_LENGTH],
11 pub contract: Pubkey,
12 pub nonce: u64,
13 pub is_initialized: bool,
14}