sablier_webhook_program/
lib.rs

1pub mod constants;
2pub mod errors;
3pub mod state;
4
5mod instructions;
6
7use anchor_lang::prelude::*;
8use instructions::*;
9use state::*;
10
11declare_id!("ARqVfCUQeS3cr7NXg18kHvDmCw57amv1yHEGu9rsvVeN");
12
13#[program]
14pub mod webhook_program {
15    pub use super::*;
16
17    pub fn webhook_create(
18        ctx: Context<WebhookCreate>,
19        body: Vec<u8>,
20        headers: std::collections::HashMap<String, String>,
21        id: Vec<u8>,
22        method: HttpMethod,
23        url: String,
24    ) -> Result<()> {
25        webhook_create::handler(ctx, body, headers, id, method, url)
26    }
27
28    pub fn webhook_respond(ctx: Context<WebhookRespond>) -> Result<()> {
29        webhook_respond::handler(ctx)
30    }
31}