use anchor_lang::prelude::*;
pub const CALLER_PROGRAM_ID: Pubkey = pubkey!("Gmso1uvJnLbawvw7yezdfCDcPydwW2s2iqG3w6MDucLo");
#[constant]
pub const MAX_PREFIX_LEN: u8 = 32;
#[constant]
pub const CONFIG_SEED: &[u8] = b"config";
#[constant]
pub const ACTION_STATS_SEED: &[u8] = b"action_stats";
#[account]
#[derive(InitSpace)]
#[cfg_attr(feature = "debug", derive(Debug))]
pub struct Config {
#[max_len(MAX_PREFIX_LEN)]
pub prefix: String,
pub calls: u64,
}
#[account]
#[derive(InitSpace)]
#[cfg_attr(feature = "debug", derive(Debug))]
pub struct ActionStats {
pub initialized: bool,
pub bump: u8,
pub action_kind: u8,
pub owner: Pubkey,
pub total_created: u64,
pub update_count: u64,
pub total_executed: u64,
pub total_closed: u64,
pub last_created_at: i64,
pub last_updated_at: i64,
pub last_executed_at: i64,
pub last_closed_at: i64,
}