clockwork_pool_program/
lib.rs

1pub mod errors;
2pub mod objects;
3
4mod instructions;
5
6use anchor_lang::prelude::*;
7use instructions::*;
8use objects::*;
9
10declare_id!("AzrhZ1Dy3ywhYjYEopEjyVvPeNVjn2qCi1jALqpb2wnm");
11
12#[program]
13pub mod pool_program {
14    use super::*;
15
16    pub fn config_update(ctx: Context<ConfigUpdate>, settings: ConfigSettings) -> Result<()> {
17        config_update::handler(ctx, settings)
18    }
19
20    pub fn initialize(ctx: Context<Initialize>, pool_authority: Pubkey) -> Result<()> {
21        initialize::handler(ctx, pool_authority)
22    }
23
24    pub fn pool_create(ctx: Context<PoolCreate>, name: String, size: usize) -> Result<()> {
25        pool_create::handler(ctx, name, size)
26    }
27
28    pub fn pool_rotate(ctx: Context<PoolRotate>) -> Result<()> {
29        pool_rotate::handler(ctx)
30    }
31
32    pub fn pool_update(ctx: Context<PoolUpdate>, settings: PoolSettings) -> Result<()> {
33        pool_update::handler(ctx, settings)
34    }
35}