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
mod instructions;
pub mod state;
use {anchor_lang::prelude::*, instructions::*};
declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");
#[program]
pub mod index_program {
pub use super::*;
pub fn create_index(
ctx: Context<CreateIndex>,
namespace: String,
is_serial: bool,
bump: u8,
) -> ProgramResult {
create_index::handler(ctx, namespace, is_serial, bump)
}
pub fn create_pointer(
ctx: Context<CreatePointer>,
name: String,
value: Pubkey,
pointer_bump: u8,
proof_bump: u8,
) -> ProgramResult {
create_pointer::handler(ctx, name, value, pointer_bump, proof_bump)
}
}