core-lightning/plugins/renepay/json.h

29 lines
922 B
C
Raw Normal View History

2024-04-08 15:43:59 +01:00
#ifndef LIGHTNING_PLUGINS_RENEPAY_JSON_H
#define LIGHTNING_PLUGINS_RENEPAY_JSON_H
2024-04-08 16:06:48 +01:00
#include "config.h"
2024-04-08 15:43:59 +01:00
#include <plugins/renepay/payment.h>
#include <plugins/renepay/route.h>
struct routekey *tal_routekey_from_json(const tal_t *ctx, const char *buf,
const jsmntok_t *obj);
struct route *tal_route_from_json(const tal_t *ctx, const char *buf,
const jsmntok_t *obj);
2024-04-08 15:43:59 +01:00
struct payment_result *tal_sendpay_result_from_json(const tal_t *ctx,
const char *buffer,
const jsmntok_t *toks,
struct secret *shared_secrets);
2024-04-08 15:43:59 +01:00
void json_add_payment(struct json_stream *s, const struct payment *payment);
void json_add_route(struct json_stream *s, const struct route *route,
const struct payment *payment);
2024-04-08 15:43:59 +01:00
void json_myadd_blinded_path(struct json_stream *s,
const char *fieldname,
const struct blinded_path *blinded_path);
2024-04-08 15:43:59 +01:00
#endif /* LIGHTNING_PLUGINS_RENEPAY_JSON_H */