#ifndef LIGHTNING_PLUGINS_BWATCH_BWATCH_INTERFACE_H
#define LIGHTNING_PLUGINS_BWATCH_BWATCH_INTERFACE_H
#include "config.h"
#include <plugins/bwatch/bwatch.h>
void bwatch_send_watch_found(struct command *cmd,
const struct bitcoin_tx *tx,
u32 blockheight,
const struct watch *w,
u32 txindex,
u32 index);
void bwatch_send_blockdepth_found(struct command *cmd,
const struct watch *w,
u32 depth,
u32 blockheight);
void bwatch_send_watch_revert(struct command *cmd,
const char *owner,
u32 blockheight);
struct command_result *bwatch_send_chaininfo(struct command *cmd, void *unused);
struct command_result *json_bwatch_add_scriptpubkey(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_bwatch_del_scriptpubkey(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_bwatch_add_outpoint(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_bwatch_del_outpoint(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_bwatch_add_scid(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_bwatch_del_scid(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_bwatch_add_blockdepth(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_bwatch_del_blockdepth(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_bwatch_list(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *bwatch_send_block_processed(struct command *cmd);
void bwatch_send_revert_block_processed(struct command *cmd, u32 new_height,
const struct bitcoin_blkid *new_hash);
#endif