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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
pub mod errors;
pub mod instructions;
pub mod state;
use {anchor_lang::prelude::*, instructions::*};
declare_id!("rrmevmpXMooxn8Qu6u7RWao93BZn4cKgfjtNMURSc2E");
#[program]
pub mod cardinal_receipt_manager {
use super::*;
pub fn init_receipt_manager(ctx: Context<InitReceiptManagerCtx>, ix: InitReceiptManagerIx) -> Result<()> {
init_receipt_manager::handler(ctx, ix)
}
pub fn init_receipt_entry(ctx: Context<InitReceiptEntryCtx>) -> Result<()> {
init_receipt_entry::handler(ctx)
}
pub fn init_reward_receipt(ctx: Context<InitRewardReceiptCtx>) -> Result<()> {
init_reward_receipt::handler(ctx)
}
pub fn claim_reward_receipt(ctx: Context<CreateRewardReceiptCtx>) -> Result<()> {
claim_reward_receipt::handler(ctx)
}
pub fn set_reward_receipt_allowed(ctx: Context<SetRewardReceiptAllowed>, allowed: bool) -> Result<()> {
set_reward_receipt_allowed::handler(ctx, allowed)
}
pub fn update_receipt_manager(ctx: Context<UpdateRewarReceiptManagerCtx>, ix: UpdateReceiptManagerIx) -> Result<()> {
update_receipt_manager::handler(ctx, ix)
}
pub fn close_receipt_manager(ctx: Context<CloseReceiptManagerCtx>) -> Result<()> {
close_receipt_manager::handler(ctx)
}
pub fn close_reward_receipt(ctx: Context<CloseRewardReceiptCtx>) -> Result<()> {
close_reward_receipt::handler(ctx)
}
pub fn close_receipt_entry(ctx: Context<CloseReceiptEntryCtx>) -> Result<()> {
close_receipt_entry::handler(ctx)
}
}