1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// For everyone
pub use clockwork_thread_program::objects::{
    anchor_sighash, AccountMetaData, ClockData, ExecResponse, InstructionData, PAYER_PUBKEY,
};

// For clients
#[cfg(feature = "client")]
pub mod client {
    pub use clockwork_client::{
        thread as thread_program, Client, ClientError, ClientResult, SplToken,
    };
}

// For programs that need to CPI into Clockwork.
#[cfg(feature = "thread")]
pub mod thread_program {
    pub use clockwork_thread_program::{cpi, errors, program::ThreadProgram, ID};
    pub mod accounts {
        pub use clockwork_thread_program::accounts::{
            ExecContext, Thread, ThreadSettings, Trigger, TriggerContext,
        };
    }
}