sablier-webhook-program 1.0.2

Sablier webhook program
Documentation
pub mod constants;
pub mod errors;
pub mod state;

mod instructions;

use anchor_lang::prelude::*;
use instructions::*;
use state::*;

declare_id!("ARqVfCUQeS3cr7NXg18kHvDmCw57amv1yHEGu9rsvVeN");

#[program]
pub mod webhook_program {
    pub use super::*;

    pub fn webhook_create(
        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(ctx: Context<WebhookRespond>) -> Result<()> {
        webhook_respond::handler(ctx)
    }
}