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