Skip to content

Commit 29b308b

Browse files
committed
- bindings updates
1 parent d46d498 commit 29b308b

File tree

2 files changed

+352
-133
lines changed

2 files changed

+352
-133
lines changed

lightning-c-bindings/include/lightning.h

Lines changed: 70 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,10 @@ typedef struct LDKPublicKey {
241241
uint8_t compressed_form[33];
242242
} LDKPublicKey;
243243

244-
typedef struct LDKC2TupleTempl_u64__u64 {
244+
typedef struct LDKC2Tuple_u64u64Z {
245245
uint64_t a;
246246
uint64_t b;
247-
} LDKC2TupleTempl_u64__u64;
248-
249-
typedef struct LDKC2TupleTempl_u64__u64 LDKC2Tuple_u64u64Z;
247+
} LDKC2Tuple_u64u64Z;
250248

251249
/**
252250
* When on-chain outputs are created by rust-lightning (which our counterparty is not able to
@@ -321,14 +319,14 @@ typedef struct LDKSpendableOutputDescriptor_LDKDynamicOutputP2WSH_Body {
321319
struct LDKPublicKey per_commitment_point;
322320
uint16_t to_self_delay;
323321
struct LDKTxOut output;
324-
LDKC2Tuple_u64u64Z key_derivation_params;
322+
struct LDKC2Tuple_u64u64Z key_derivation_params;
325323
struct LDKPublicKey revocation_pubkey;
326324
} LDKSpendableOutputDescriptor_LDKDynamicOutputP2WSH_Body;
327325

328326
typedef struct LDKSpendableOutputDescriptor_LDKStaticOutputCounterpartyPayment_Body {
329327
struct LDKOutPoint outpoint;
330328
struct LDKTxOut output;
331-
LDKC2Tuple_u64u64Z key_derivation_params;
329+
struct LDKC2Tuple_u64u64Z key_derivation_params;
332330
} LDKSpendableOutputDescriptor_LDKStaticOutputCounterpartyPayment_Body;
333331

334332
typedef struct MUST_USE_STRUCT LDKSpendableOutputDescriptor {
@@ -1019,15 +1017,13 @@ typedef struct LDKCVec_EventZ {
10191017
uintptr_t datalen;
10201018
} LDKCVec_EventZ;
10211019

1022-
typedef struct LDKC2TupleTempl_usize__Transaction {
1020+
typedef struct LDKC2Tuple_usizeTransactionZ {
10231021
uintptr_t a;
10241022
struct LDKTransaction b;
1025-
} LDKC2TupleTempl_usize__Transaction;
1026-
1027-
typedef struct LDKC2TupleTempl_usize__Transaction LDKC2Tuple_usizeTransactionZ;
1023+
} LDKC2Tuple_usizeTransactionZ;
10281024

10291025
typedef struct LDKCVec_C2Tuple_usizeTransactionZZ {
1030-
struct LDKC2TupleTempl_usize__Transaction *data;
1026+
struct LDKC2Tuple_usizeTransactionZ *data;
10311027
uintptr_t datalen;
10321028
} LDKCVec_C2Tuple_usizeTransactionZZ;
10331029

@@ -1133,39 +1129,33 @@ typedef struct LDKCResult_NoneMonitorUpdateErrorZ {
11331129
bool result_ok;
11341130
} LDKCResult_NoneMonitorUpdateErrorZ;
11351131

1136-
typedef struct LDKC2TupleTempl_OutPoint__CVec_u8Z {
1132+
typedef struct LDKC2Tuple_OutPointScriptZ {
11371133
struct LDKOutPoint a;
11381134
struct LDKCVec_u8Z b;
1139-
} LDKC2TupleTempl_OutPoint__CVec_u8Z;
1140-
1141-
typedef struct LDKC2TupleTempl_OutPoint__CVec_u8Z LDKC2Tuple_OutPointScriptZ;
1135+
} LDKC2Tuple_OutPointScriptZ;
11421136

11431137
typedef struct LDKCVec_TransactionZ {
11441138
struct LDKTransaction *data;
11451139
uintptr_t datalen;
11461140
} LDKCVec_TransactionZ;
11471141

1148-
typedef struct LDKC2TupleTempl_u32__TxOut {
1142+
typedef struct LDKC2Tuple_u32TxOutZ {
11491143
uint32_t a;
11501144
struct LDKTxOut b;
1151-
} LDKC2TupleTempl_u32__TxOut;
1152-
1153-
typedef struct LDKC2TupleTempl_u32__TxOut LDKC2Tuple_u32TxOutZ;
1145+
} LDKC2Tuple_u32TxOutZ;
11541146

11551147
typedef struct LDKCVec_C2Tuple_u32TxOutZZ {
1156-
struct LDKC2TupleTempl_u32__TxOut *data;
1148+
struct LDKC2Tuple_u32TxOutZ *data;
11571149
uintptr_t datalen;
11581150
} LDKCVec_C2Tuple_u32TxOutZZ;
11591151

1160-
typedef struct LDKC2TupleTempl_ThirtyTwoBytes__CVec_C2Tuple_u32TxOutZZ {
1152+
typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ {
11611153
struct LDKThirtyTwoBytes a;
11621154
struct LDKCVec_C2Tuple_u32TxOutZZ b;
1163-
} LDKC2TupleTempl_ThirtyTwoBytes__CVec_C2Tuple_u32TxOutZZ;
1164-
1165-
typedef struct LDKC2TupleTempl_ThirtyTwoBytes__CVec_C2Tuple_u32TxOutZZ LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ;
1155+
} LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ;
11661156

11671157
typedef struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ {
1168-
struct LDKC2TupleTempl_ThirtyTwoBytes__CVec_C2Tuple_u32TxOutZZ *data;
1158+
struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *data;
11691159
uintptr_t datalen;
11701160
} LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ;
11711161

@@ -1192,13 +1182,13 @@ typedef struct LDKCVec_SignatureZ {
11921182
uintptr_t datalen;
11931183
} LDKCVec_SignatureZ;
11941184

1195-
typedef struct LDKC2TupleTempl_Signature__CVec_SignatureZ {
1185+
typedef struct LDKC2Tuple_SignatureCVec_SignatureZZ {
11961186
struct LDKSignature a;
11971187
struct LDKCVec_SignatureZ b;
1198-
} LDKC2TupleTempl_Signature__CVec_SignatureZ;
1188+
} LDKC2Tuple_SignatureCVec_SignatureZZ;
11991189

12001190
typedef union LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZPtr {
1201-
struct LDKC2TupleTempl_Signature__CVec_SignatureZ *result;
1191+
struct LDKC2Tuple_SignatureCVec_SignatureZZ *result;
12021192
/**
12031193
* Note that this value is always NULL, as there are no contents in the Err variant
12041194
*/
@@ -1363,7 +1353,7 @@ typedef struct LDKChannelKeys {
13631353
* some SpendableOutputDescriptor types. These should be sufficient to identify this
13641354
* ChannelKeys object uniquely and lookup or re-derive its keys.
13651355
*/
1366-
LDKC2Tuple_u64u64Z (*key_derivation_params)(const void *this_arg);
1356+
struct LDKC2Tuple_u64u64Z (*key_derivation_params)(const void *this_arg);
13671357
/**
13681358
* Create a signature for a counterparty's commitment transaction and associated HTLC transactions.
13691359
*
@@ -1488,15 +1478,13 @@ typedef struct MUST_USE_STRUCT LDKChannelMonitor {
14881478
bool is_owned;
14891479
} LDKChannelMonitor;
14901480

1491-
typedef struct LDKC2TupleTempl_ThirtyTwoBytes__ChannelMonitor {
1481+
typedef struct LDKC2Tuple_BlockHashChannelMonitorZ {
14921482
struct LDKThirtyTwoBytes a;
14931483
struct LDKChannelMonitor b;
1494-
} LDKC2TupleTempl_ThirtyTwoBytes__ChannelMonitor;
1495-
1496-
typedef struct LDKC2TupleTempl_ThirtyTwoBytes__ChannelMonitor LDKC2Tuple_BlockHashChannelMonitorZ;
1484+
} LDKC2Tuple_BlockHashChannelMonitorZ;
14971485

14981486
typedef union LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZPtr {
1499-
struct LDKC2TupleTempl_ThirtyTwoBytes__ChannelMonitor *result;
1487+
struct LDKC2Tuple_BlockHashChannelMonitorZ *result;
15001488
struct LDKDecodeError *err;
15011489
} LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZPtr;
15021490

@@ -1515,8 +1503,6 @@ typedef struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ {
15151503
bool result_ok;
15161504
} LDKCResult_SpendableOutputDescriptorDecodeErrorZ;
15171505

1518-
typedef struct LDKC2TupleTempl_Signature__CVec_SignatureZ LDKC2Tuple_SignatureCVec_SignatureZZ;
1519-
15201506
typedef union LDKCResult_ChanKeySignerDecodeErrorZPtr {
15211507
struct LDKChannelKeys *result;
15221508
struct LDKDecodeError *err;
@@ -1981,15 +1967,13 @@ typedef struct MUST_USE_STRUCT LDKChannelManager {
19811967
bool is_owned;
19821968
} LDKChannelManager;
19831969

1984-
typedef struct LDKC2TupleTempl_ThirtyTwoBytes__ChannelManager {
1970+
typedef struct LDKC2Tuple_BlockHashChannelManagerZ {
19851971
struct LDKThirtyTwoBytes a;
19861972
struct LDKChannelManager b;
1987-
} LDKC2TupleTempl_ThirtyTwoBytes__ChannelManager;
1988-
1989-
typedef struct LDKC2TupleTempl_ThirtyTwoBytes__ChannelManager LDKC2Tuple_BlockHashChannelManagerZ;
1973+
} LDKC2Tuple_BlockHashChannelManagerZ;
19901974

19911975
typedef union LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZPtr {
1992-
struct LDKC2TupleTempl_ThirtyTwoBytes__ChannelManager *result;
1976+
struct LDKC2Tuple_BlockHashChannelManagerZ *result;
19931977
struct LDKDecodeError *err;
19941978
} LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZPtr;
19951979

@@ -2123,16 +2107,14 @@ typedef struct LDKCResult_boolLightningErrorZ {
21232107
bool result_ok;
21242108
} LDKCResult_boolLightningErrorZ;
21252109

2126-
typedef struct LDKC3TupleTempl_ChannelAnnouncement__ChannelUpdate__ChannelUpdate {
2110+
typedef struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ {
21272111
struct LDKChannelAnnouncement a;
21282112
struct LDKChannelUpdate b;
21292113
struct LDKChannelUpdate c;
2130-
} LDKC3TupleTempl_ChannelAnnouncement__ChannelUpdate__ChannelUpdate;
2131-
2132-
typedef struct LDKC3TupleTempl_ChannelAnnouncement__ChannelUpdate__ChannelUpdate LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ;
2114+
} LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ;
21332115

21342116
typedef struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
2135-
struct LDKC3TupleTempl_ChannelAnnouncement__ChannelUpdate__ChannelUpdate *data;
2117+
struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *data;
21362118
uintptr_t datalen;
21372119
} LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ;
21382120

@@ -3486,24 +3468,6 @@ typedef struct MUST_USE_STRUCT LDKChannelInfo {
34863468
bool is_owned;
34873469
} LDKChannelInfo;
34883470

3489-
extern const void (*C2Tuple_usizeTransactionZ_free)(LDKC2Tuple_usizeTransactionZ);
3490-
3491-
extern const void (*C2Tuple_OutPointScriptZ_free)(LDKC2Tuple_OutPointScriptZ);
3492-
3493-
extern const void (*C2Tuple_u32TxOutZ_free)(LDKC2Tuple_u32TxOutZ);
3494-
3495-
extern const void (*C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free)(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ);
3496-
3497-
extern const void (*C2Tuple_BlockHashChannelMonitorZ_free)(LDKC2Tuple_BlockHashChannelMonitorZ);
3498-
3499-
extern const void (*C2Tuple_u64u64Z_free)(LDKC2Tuple_u64u64Z);
3500-
3501-
extern const void (*C2Tuple_SignatureCVec_SignatureZZ_free)(LDKC2Tuple_SignatureCVec_SignatureZZ);
3502-
3503-
extern const void (*C2Tuple_BlockHashChannelManagerZ_free)(LDKC2Tuple_BlockHashChannelManagerZ);
3504-
3505-
extern const void (*C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free)(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ);
3506-
35073471
extern const uintptr_t MAX_BUF_SIZE;
35083472

35093473
extern const uint64_t MIN_RELAY_FEE_SAT_PER_1000_WEIGHT;
@@ -3522,7 +3486,9 @@ void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
35223486

35233487
void CVec_EventZ_free(struct LDKCVec_EventZ _res);
35243488

3525-
LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
3489+
struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
3490+
3491+
void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
35263492

35273493
void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
35283494

@@ -3548,27 +3514,41 @@ struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_err(st
35483514

35493515
void CResult_NoneMonitorUpdateErrorZ_free(struct LDKCResult_NoneMonitorUpdateErrorZ _res);
35503516

3551-
LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
3517+
struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
3518+
3519+
void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
35523520

35533521
void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
35543522

3555-
LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
3523+
struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
3524+
3525+
struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
3526+
3527+
void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
35563528

35573529
void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
35583530

3559-
LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
3531+
struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
3532+
3533+
void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
35603534

35613535
void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
35623536

3563-
LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
3537+
struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
3538+
3539+
void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
35643540

3565-
struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2TupleTempl_ThirtyTwoBytes__ChannelMonitor o);
3541+
struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
35663542

35673543
struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
35683544

35693545
void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
35703546

3571-
LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
3547+
struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
3548+
3549+
struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
3550+
3551+
void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
35723552

35733553
struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
35743554

@@ -3578,14 +3558,20 @@ void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_Spenda
35783558

35793559
void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
35803560

3581-
LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
3561+
struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
3562+
3563+
struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
3564+
3565+
void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
35823566

3583-
struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2TupleTempl_Signature__CVec_SignatureZ o);
3567+
struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
35843568

35853569
struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
35863570

35873571
void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
35883572

3573+
struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
3574+
35893575
struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
35903576

35913577
struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
@@ -3632,9 +3618,11 @@ void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
36323618

36333619
void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
36343620

3635-
LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
3621+
struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
3622+
3623+
void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
36363624

3637-
struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2TupleTempl_ThirtyTwoBytes__ChannelManager o);
3625+
struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
36383626

36393627
struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
36403628

@@ -3670,7 +3658,11 @@ struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDK
36703658

36713659
void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
36723660

3673-
LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
3661+
struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
3662+
3663+
struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
3664+
3665+
void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
36743666

36753667
void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
36763668

@@ -4447,7 +4439,7 @@ MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChanne
44474439
/**
44484440
* Gets the funding transaction outpoint of the channel this ChannelMonitor is monitoring for.
44494441
*/
4450-
MUST_USE_RES LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4442+
MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
44514443

44524444
/**
44534445
* Get the list of HTLCs who's status has been updated on chain. This should be called by
@@ -4630,7 +4622,7 @@ void InMemoryChannelKeys_set_commitment_seed(struct LDKInMemoryChannelKeys *NONN
46304622
/**
46314623
* Create a new InMemoryChannelKeys
46324624
*/
4633-
MUST_USE_RES struct LDKInMemoryChannelKeys InMemoryChannelKeys_new(struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, LDKC2Tuple_u64u64Z key_derivation_params);
4625+
MUST_USE_RES struct LDKInMemoryChannelKeys InMemoryChannelKeys_new(struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, struct LDKC2Tuple_u64u64Z key_derivation_params);
46344626

46354627
/**
46364628
* Counterparty pubkeys.

0 commit comments

Comments
 (0)