cronos_pool/
lib.rs

1pub mod errors;
2pub mod id;
3pub mod pda;
4pub mod state;
5
6mod instructions;
7
8pub use id::ID;
9
10use anchor_lang::prelude::*;
11use instructions::*;
12
13#[program]
14pub mod cronos_pool {
15    use super::*;
16
17    pub fn rotate(ctx: Context<Rotate>, delegate: Pubkey) -> Result<()> {
18        rotate::handler(ctx, delegate)
19    }
20
21    pub fn initialize(ctx: Context<Initialize>, rotator: Pubkey) -> Result<()> {
22        initialize::handler(ctx, rotator)
23    }
24}