clockwork-webhook-program 2.0.17

Clockwork webhook program
Documentation
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)
    }
}