use solana_program::{keccak::Hash, pubkey, pubkey::Pubkey};
pub const START_AT: i64 = 1712070600;
pub const INITIAL_REWARD_RATE: u64 = 10u64.pow(3u32);
pub const INITIAL_DIFFICULTY: Hash = Hash::new_from_array([
0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
]);
pub const TOKEN_DECIMALS: u8 = 9;
pub const ONE_ORE: u64 = 10u64.pow(TOKEN_DECIMALS as u32);
pub const EPOCH_DURATION: i64 = 60;
pub const TARGET_EPOCH_REWARDS: u64 = ONE_ORE;
pub const MAX_EPOCH_REWARDS: u64 = ONE_ORE.saturating_mul(2);
pub const BUS_EPOCH_REWARDS: u64 = MAX_EPOCH_REWARDS.saturating_div(BUS_COUNT as u64);
pub const BUS_COUNT: usize = 8;
pub const SMOOTHING_FACTOR: u64 = 2;
static_assertions::const_assert!(
(MAX_EPOCH_REWARDS / BUS_COUNT as u64) * BUS_COUNT as u64 == MAX_EPOCH_REWARDS
);
pub const BUS: &[u8] = b"bus";
pub const METADATA: &[u8] = b"metadata";
pub const MINT: &[u8] = b"mint";
pub const PROOF: &[u8] = b"proof";
pub const TREASURY: &[u8] = b"treasury";
pub const METADATA_NAME: &str = "Ore";
pub const METADATA_SYMBOL: &str = "ORE";
pub const METADATA_URI: &str = "https://ore.supply/metadata.json";
pub const MINT_NOISE: [u8; 16] = [
166, 199, 85, 221, 225, 119, 21, 185, 160, 82, 242, 237, 194, 84, 250, 252,
];
pub const BUS_ADDRESSES: [Pubkey; BUS_COUNT] = [
pubkey!("9ShaCzHhQNvH8PLfGyrJbB8MeKHrDnuPMLnUDLJ2yMvz"),
pubkey!("4Cq8685h9GwsaD5ppPsrtfcsk3fum8f9UP4SPpKSbj2B"),
pubkey!("8L1vdGdvU3cPj9tsjJrKVUoBeXYvAzJYhExjTYHZT7h7"),
pubkey!("JBdVURCrUiHp4kr7srYtXbB7B4CwurUt1Bfxrxw6EoRY"),
pubkey!("DkmVBWJ4CLKb3pPHoSwYC2wRZXKKXLD2Ued5cGNpkWmr"),
pubkey!("9uLpj2ZCMqN6Yo1vV6yTkP6dDiTTXmeM5K3915q5CHyh"),
pubkey!("EpcfjBs8eQ4unSMdowxyTE8K3vVJ3XUnEr5BEWvSX7RB"),
pubkey!("Ay5N9vKS2Tyo2M9u9TFt59N1XbxdW93C7UrFZW3h8sMC"),
];
pub const METADATA_ADDRESS: Pubkey = pubkey!("2nXZSxfjELuRatcoY64yHdFLZFi3mtesxobHmsoU3Dag");
pub const MINT_ADDRESS: Pubkey = pubkey!("oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgz");
pub const TREASURY_ADDRESS: Pubkey = pubkey!("FTap9fv2GPpWGqrLj3o4c9nHH7p36ih7NbSWHnrkQYqa");