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
mod instructions;
pub mod state;
use {anchor_lang::prelude::*, instructions::*};
declare_id!("DBMi4GBjiX15vCMVj93uB7JYM9LU6rCaZJraVKM6XgZi");
#[program]
pub mod stack_program {
use super::*;
pub fn create_stack(ctx: Context<CreateStack>, bump: u8) -> ProgramResult {
create_stack::handler(ctx, bump)
}
pub fn delete_stack(ctx: Context<DeleteStack>) -> ProgramResult {
delete_stack::handler(ctx)
}
pub fn pop_element(ctx: Context<PopElement>) -> ProgramResult {
pop_element::handler(ctx)
}
pub fn push_element(ctx: Context<PushElement>, value: Pubkey, bump: u8) -> ProgramResult {
push_element::handler(ctx, value, bump)
}
}