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
pub mod errors;
pub mod state;
mod instructions;
use anchor_lang::prelude::*;
use instructions::*;
use state::*;
declare_id!("E7p5KFo8kKCDm6BUnWtnVFkQSYh6ZA6xaGAuvpv8NXTa");
#[program]
pub mod webhook_program {
pub use super::*;
pub fn webhook_create<'info>(
ctx: Context<WebhookCreate>,
body: Vec<u8>,
headers: std::collections::HashMap<String, String>,
id: Vec<u8>,
method: HttpMethod,
url: String,
) -> Result<()> {
webhook_create::handler(ctx, body, headers, id, method, url)
}
pub fn webhook_respond<'info>(ctx: Context<WebhookRespond>) -> Result<()> {
webhook_respond::handler(ctx)
}
}