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