1use solana_program::pubkey::Pubkey;
4use solana_program::pubkey;
5
6pub const ADMIN_ADDRESS: Pubkey = pubkey!("DEvGq2WVuA3qkSCtwwuMYThY4onkJunEHSAxU5cieph8");
7pub const FEE_COLLECTOR: Pubkey = pubkey!("FEEjHM2DoFu6UifSBmrxTQ6X2KkWQ1dbPXASCtdLUdnx");
8pub const TASK_VERIFIER: Pubkey = pubkey!("tASK7746ambmkkTvqtyCehd3F56X4VJpr9GCPh4bUmu");
9pub const DOJO_MINT: Pubkey = pubkey!("sHaRDNEyRgkLRSN22RnmMkmYeQtZRDQjKpQmPTyPkbS");
11
12pub const CONFIG: &[u8] = b"config";
13pub const GAME: &[u8] = b"game";
14pub const DOJO: &[u8] = b"dojo";
15pub const SHOGUN: &[u8] = b"shogun";
16pub const BARRACKS: &[u8] = b"barracks";
17pub const FORGE: &[u8] = b"forge";
18pub const TASKS: &[u8] = b"tasks";
19pub const TREASURY: &[u8] = b"treasury";
20pub const REFERRAL: &[u8] = b"referral";
21
22pub const ED25519_SIGNATURE_OFFSETS_START: usize = 2;
23pub const ED25519_SIGNATURE_OFFSETS_SIZE: usize = 14;
24pub const ED25519_DATA_START: usize = ED25519_SIGNATURE_OFFSETS_START + ED25519_SIGNATURE_OFFSETS_SIZE;
25pub const ED25519_PUBKEY_SIZE: usize = 32;
26pub const ED25519_SIGNATURE_SIZE: usize = 64;
27
28pub const SECONDS_PER_SLOT: f64 = 0.4;
30pub const ONE_DAY_SLOTS: u64 = 216_000;
32pub const CHAKRA_MAX: u64 = ONE_DAY_SLOTS;
33pub const ORE_DIVISOR: u64 = 200;
35pub const EMISSION_RAW_PER_SLOT_BASE: u64 = 40_000_000;
37pub const HALVING_PERIOD_SLOTS_DEFAULT: u64 = 12_500_000;
39pub const DOJO_DECIMALS: u8 = 6;
40pub const ONE_DOJO: u64 = 10u64.pow(DOJO_DECIMALS as u32);
42
43pub const SLOTS_PER_LEVEL: u64 = 3;
44pub const MAX_BARRACKS_SLOTS: usize = 12;
45
46pub const STARTER_TICKET_PRICE: u64 = 1_000_000_000;
47pub const RECRUIT_SOL_PRICE: u64 = 100_000_000;
48
49pub const TICKET_BUNDLE_SOL: u64 = 5_000_000_000;
50pub const TICKET_BUNDLE_TICKETS: u64 = 150;
51
52pub const SHARD_DEAL_TICKETS: u64 = 5;
53pub const SHARD_DEAL_COST: u64 = 300_000_000;
54
55pub const FLASH_SALE_TICKETS: u64 = 50;
56pub const FLASH_SALE_COST: u64 = 5_000_000_000;
57pub const FLASH_SALE_DAILY_LIMIT: u64 = 5;
58
59pub const DINE_COST_24H: u64 = 15_000_000;
60pub const DINE_COST_48H: u64 = 30_000_000;
61pub const DINE_COST_72H: u64 = 45_000_000;
62
63pub const DINE_COST_24H_ESCALATED: u64 = 195_000_000;
65pub const DINE_COST_48H_ESCALATED: u64 = 390_000_000;
66pub const DINE_COST_72H_ESCALATED: u64 = 585_000_000;
67
68pub const BARRACKS_COST_1_2_SHARDS: u64 = 50_000_000;
69pub const BARRACKS_COST_1_2_SOL: u64 = 10_000_000;
70pub const BARRACKS_COST_2_3_SHARDS: u64 = 300_000_000;
71pub const BARRACKS_COST_2_3_SOL: u64 = 100_000_000;
72pub const BARRACKS_COST_3_4: u64 = 8_000_000_000;
73
74pub const FORGE_COST_1_2: u64 = 100_000_000;
76pub const FORGE_COST_2_3: u64 = 1_000_000_000;
78pub const FORGE_COST_3_4: u64 = 2_000_000_000;
80pub const FORGE_COST_4_5: u64 = 5_000_000_000;
82pub const FORGE_COST_5_6: u64 = 12_000_000_000;
84pub const FORGE_COST_6_7: u64 = 21_000_000_000;
86
87pub const FORGE_COOLDOWN_1_2: u64 = 0;
89pub const FORGE_COOLDOWN_2_3: u64 = 0;
91pub const FORGE_COOLDOWN_3_4: u64 = 4_500;
93pub const FORGE_COOLDOWN_4_5: u64 = 13_500;
95pub const FORGE_COOLDOWN_5_6: u64 = 27_000;
97pub const FORGE_COOLDOWN_6_7: u64 = 45_000;
99
100pub const SHARDS_RAW_PER_UNIT: u64 = ONE_DOJO;
102
103pub const LEVEL_UP_COST_BASE: u64 = 200_000_000; pub const LEVEL_UP_COST_INCREMENT: u64 = 800_000_000; pub const MAX_SHOGUN_LEVEL: u64 = 100;
107
108pub const SP_N: u64 = 10;
109pub const SP_R: u64 = 25;
110pub const SP_SR: u64 = 50;
111pub const SP_SSR: u64 = 100;
112pub const SP_UR: u64 = 160;
113
114pub const DROP_N: u64 = 541;
115pub const DROP_R: u64 = 324;
116pub const DROP_SR: u64 = 108;
117pub const DROP_SSR: u64 = 22;
118pub const DROP_UR: u64 = 5;
119
120pub const RECRUITMENT_TICKET_REWARD_1: u64 = 1;
121pub const RECRUITMENT_TICKET_REWARD_2: u64 = 2;
122pub const RECRUITMENT_TICKET_REWARD_3: u64 = 3;
123pub const RECRUITMENT_TICKET_REWARD_4: u64 = 4;
124pub const RECRUITMENT_TICKET_REWARD_5: u64 = 5;
125pub const RECRUITMENT_TICKET_REWARD_6: u64 = 6;
126pub const RECRUITMENT_TICKET_REWARD_7: u64 = 7;
127pub const RECRUITMENT_TICKET_REWARD_8: u64 = 8;
128pub const RECRUITMENT_TICKET_REWARD_9: u64 = 9;
129pub const RECRUITMENT_TICKET_REWARD_10: u64 = 10;
130pub const RECRUITMENT_TICKET_REWARD_11: u64 = 11;
131pub const RECRUITMENT_TICKET_REWARD_12: u64 = 12;
132pub const RECRUITMENT_TICKET_REWARD_13: u64 = 13;
133pub const RECRUITMENT_TICKET_REWARD_15: u64 = 15;
134
135pub const ELEMENT_RARITY_REWARD_N: u64 = 1;
136pub const ELEMENT_RARITY_REWARD_R: u64 = 1;
137pub const ELEMENT_RARITY_REWARD_SR: u64 = 2;
138pub const ELEMENT_RARITY_REWARD_SSR: u64 = 5;
139pub const ELEMENT_RARITY_REWARD_UR: u64 = 20;
140
141pub const OFF_CHAIN_TASK_START: u64 = 9;
142pub const OFF_CHAIN_TASK_END: u64 = 16;
143pub const OFF_CHAIN_TASK_REWARD: u64 = 1;
144
145pub const DAILY_TASK_START: u64 = 17;
146pub const DAILY_TASK_END: u64 = 24;
147
148pub const CLAIM_TASK_PREFIX: &[u8] = b"dojos:claim_task:";
149pub const ELEMENT_RARITY_SET_SIZE: usize = 3;
150
151pub const TASK_FORGE_3: u64 = 33;
158pub const TASK_FORGE_4: u64 = 34;
159pub const TASK_FORGE_5: u64 = 35;
160pub const FORGE_3_REWARD: u64 = 2;
161pub const FORGE_4_REWARD: u64 = 5;
162pub const FORGE_5_REWARD: u64 = 10;
163pub const FORGE_6_REWARD: u64 = 15;
164pub const FORGE_7_REWARD: u64 = 20;
165
166pub const MAX_SUPPLY: u64 = ONE_DOJO * 1_000_000_000;
167
168pub const SCENES: &[u8] = b"scenes";
170pub const SCENE_DEFAULT_ID: u64 = 0;
171pub const SCENE_SECTIONS_PER_SCENE: usize = 12;
172pub const SCENE_COUNT_MAX: usize = 9;
173pub const SCENE_COUNT: u64 = 8;
174pub const SCENE_ROLL_COUNT: u64 = 5;
176pub const SCENE_ROLL_AMETHYST_COST: u64 = 100;
177pub const SCENE_ROLL_SHARD_COUNT: u64 = 10;
178pub const SCENE_ROLL_SHARD_COST: u64 = 1_000_000_000;
179pub const SCENE_SALVAGE_REFUND: u64 = 10;
180pub const SCENE_CHEST_SOL_COST: u64 = 1_000_000_000;
181pub const SCENE_CHEST_AMETHYST_AMOUNT: u64 = 5000;
182pub const SCENE_BUY_START: u64 = 6;
184pub const SCENE_BUY_AMETHYST_COST: u64 = 5000;
185
186pub const SCENE_BONUS_FLAT_50K: u64 = 50_000;
190pub const SCENE_BONUS_FLAT_100K: u64 = 100_000;
192pub const SCENE_BONUS_PCT_2: u64 = 200;
194pub const SCENE_BONUS_PCT_3: u64 = 300;
196pub const SCENE_BONUS_PCT_5: u64 = 500;