2021-01-08 05:05:47 +10:30
|
|
|
#ifndef LIGHTNING_PLUGINS_OFFERS_H
|
|
|
|
|
#define LIGHTNING_PLUGINS_OFFERS_H
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
|
|
struct command_result;
|
|
|
|
|
struct command;
|
2024-07-17 12:53:00 +09:30
|
|
|
struct plugin;
|
|
|
|
|
|
|
|
|
|
/* This is me. */
|
|
|
|
|
extern struct pubkey id;
|
|
|
|
|
/* Are offers enabled? */
|
|
|
|
|
extern bool offers_enabled;
|
|
|
|
|
/* --fetchinvoice-noconnect */
|
|
|
|
|
extern bool disable_connect;
|
|
|
|
|
/* --cltv-final */
|
|
|
|
|
extern u16 cltv_final;
|
|
|
|
|
/* Current header_count */
|
|
|
|
|
extern u32 blockheight;
|
|
|
|
|
/* Basis for invoice secrets */
|
|
|
|
|
extern struct secret invoicesecret_base;
|
2021-01-08 05:05:47 +10:30
|
|
|
|
2024-05-13 18:19:45 +09:30
|
|
|
/* If they give us an scid, do a lookup */
|
|
|
|
|
bool convert_to_scidd(struct command *cmd,
|
|
|
|
|
struct sciddir_or_pubkey *sciddpk);
|
|
|
|
|
|
2021-01-08 05:05:47 +10:30
|
|
|
/* Helper to send a reply */
|
|
|
|
|
struct command_result *WARN_UNUSED_RESULT
|
|
|
|
|
send_onion_reply(struct command *cmd,
|
2022-10-17 11:14:39 +10:30
|
|
|
struct blinded_path *reply_path,
|
|
|
|
|
struct tlv_onionmsg_tlv *payload);
|
2024-07-17 12:53:00 +09:30
|
|
|
|
|
|
|
|
/* Get the (latest) gossmap */
|
|
|
|
|
struct gossmap *get_gossmap(struct plugin *plugin);
|
2021-01-08 05:05:47 +10:30
|
|
|
#endif /* LIGHTNING_PLUGINS_OFFERS_H */
|