1pub mod errors;
2pub mod instructions;
3pub mod state;
4use anchor_lang::prelude::*;
5
6use instructions::*;
7
8declare_id!("scanX16maEbeSEJQTRprZHjvmBqWygWuMqvBBUyUfwe");
9
10#[program]
11pub mod cardinal_scanner {
12 use super::*;
13
14 pub fn scan(_ctx: Context<ScanCtx>) -> Result<()> {
15 Ok(())
16 }
17
18 pub fn init_event(ctx: Context<InitEventCtx>, ix: InitEventIx) -> Result<()> {
19 init_event::handler(ctx, ix)
20 }
21
22 pub fn init_event_entry(ctx: Context<InitEventEntryCtx>) -> Result<()> {
23 init_event_entry::handler(ctx)
24 }
25}
26
27#[derive(Accounts)]
28pub struct ScanCtx<'info> {
29 #[account(mut)]
30 scanner: Signer<'info>,
31 #[account(mut)]
32 user: Signer<'info>,
33}