Skip to content

Commit 330ca99

Browse files
committed
[Java] Update auto-generated Java bindings for 0.0.113
1 parent 1852c47 commit 330ca99

File tree

333 files changed

+16537
-10200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+16537
-10200
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package org.ldk.enums;
2+
3+
/**
4+
* Describes the type of HTLC claim as determined by analyzing the witness.
5+
*/
6+
public enum HTLCClaim {
7+
/**
8+
* Claims an offered output on a commitment transaction through the timeout path.
9+
*/
10+
LDKHTLCClaim_OfferedTimeout,
11+
/**
12+
* Claims an offered output on a commitment transaction through the success path.
13+
*/
14+
LDKHTLCClaim_OfferedPreimage,
15+
/**
16+
* Claims an accepted output on a commitment transaction through the timeout path.
17+
*/
18+
LDKHTLCClaim_AcceptedTimeout,
19+
/**
20+
* Claims an accepted output on a commitment transaction through the success path.
21+
*/
22+
LDKHTLCClaim_AcceptedPreimage,
23+
/**
24+
* Claims an offered/accepted output on a commitment transaction through the revocation path.
25+
*/
26+
LDKHTLCClaim_Revocation,
27+
; static native void init();
28+
static { init(); }
29+
}

src/main/java/org/ldk/enums/Recipient.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package org.ldk.enums;
22

33
/**
4-
* Specifies the recipient of an invoice, to indicate to [`KeysInterface::sign_invoice`] what node
5-
* secret key should be used to sign the invoice.
4+
* Specifies the recipient of an invoice.
5+
*
6+
* This indicates to [`KeysInterface::sign_invoice`] what node secret key should be used to sign
7+
* the invoice.
68
*/
79
public enum Recipient {
810
/**

src/main/java/org/ldk/impl/bindings.java

Lines changed: 968 additions & 691 deletions
Large diffs are not rendered by default.

src/main/java/org/ldk/structs/APIError.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ static APIError constr_from_ptr(long ptr) {
2828
if (raw_val.getClass() == bindings.LDKAPIError.FeeRateTooHigh.class) {
2929
return new FeeRateTooHigh(ptr, (bindings.LDKAPIError.FeeRateTooHigh)raw_val);
3030
}
31-
if (raw_val.getClass() == bindings.LDKAPIError.RouteError.class) {
32-
return new RouteError(ptr, (bindings.LDKAPIError.RouteError)raw_val);
31+
if (raw_val.getClass() == bindings.LDKAPIError.InvalidRoute.class) {
32+
return new InvalidRoute(ptr, (bindings.LDKAPIError.InvalidRoute)raw_val);
3333
}
3434
if (raw_val.getClass() == bindings.LDKAPIError.ChannelUnavailable.class) {
3535
return new ChannelUnavailable(ptr, (bindings.LDKAPIError.ChannelUnavailable)raw_val);
@@ -81,12 +81,12 @@ private FeeRateTooHigh(long ptr, bindings.LDKAPIError.FeeRateTooHigh obj) {
8181
* A malformed Route was provided (eg overflowed value, node id mismatch, overly-looped route,
8282
* too-many-hops, etc).
8383
*/
84-
public final static class RouteError extends APIError {
84+
public final static class InvalidRoute extends APIError {
8585
/**
8686
* A human-readable error message
8787
*/
8888
public final java.lang.String err;
89-
private RouteError(long ptr, bindings.LDKAPIError.RouteError obj) {
89+
private InvalidRoute(long ptr, bindings.LDKAPIError.InvalidRoute obj) {
9090
super(null, ptr);
9191
this.err = obj.err;
9292
}
@@ -188,10 +188,10 @@ public static APIError fee_rate_too_high(java.lang.String err, int feerate) {
188188
}
189189

190190
/**
191-
* Utility method to constructs a new RouteError-variant APIError
191+
* Utility method to constructs a new InvalidRoute-variant APIError
192192
*/
193-
public static APIError route_error(java.lang.String err) {
194-
long ret = bindings.APIError_route_error(err);
193+
public static APIError invalid_route(java.lang.String err) {
194+
long ret = bindings.APIError_invalid_route(err);
195195
Reference.reachabilityFence(err);
196196
if (ret >= 0 && ret <= 4096) { return null; }
197197
org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret);
@@ -225,7 +225,7 @@ public static APIError monitor_update_in_progress() {
225225
/**
226226
* Utility method to constructs a new IncompatibleShutdownScript-variant APIError
227227
*/
228-
public static APIError incompatible_shutdown_script(ShutdownScript script) {
228+
public static APIError incompatible_shutdown_script(org.ldk.structs.ShutdownScript script) {
229229
long ret = bindings.APIError_incompatible_shutdown_script(script == null ? 0 : script.ptr);
230230
Reference.reachabilityFence(script);
231231
if (ret >= 0 && ret <= 4096) { return null; }
@@ -239,7 +239,7 @@ public static APIError incompatible_shutdown_script(ShutdownScript script) {
239239
* Checks if two APIErrors contain equal inner contents.
240240
* This ignores pointers and is_owned flags and looks at the values in fields.
241241
*/
242-
public boolean eq(APIError b) {
242+
public boolean eq(org.ldk.structs.APIError b) {
243243
boolean ret = bindings.APIError_eq(this.ptr, b == null ? 0 : b.ptr);
244244
Reference.reachabilityFence(this);
245245
Reference.reachabilityFence(b);

src/main/java/org/ldk/structs/AcceptChannel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public ChannelTypeFeatures get_channel_type() {
300300
*
301301
* Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
302302
*/
303-
public void set_channel_type(@Nullable ChannelTypeFeatures val) {
303+
public void set_channel_type(@Nullable org.ldk.structs.ChannelTypeFeatures val) {
304304
bindings.AcceptChannel_set_channel_type(this.ptr, val == null ? 0 : val.ptr);
305305
Reference.reachabilityFence(this);
306306
Reference.reachabilityFence(val);
@@ -330,7 +330,7 @@ public AcceptChannel clone() {
330330
* This ignores pointers and is_owned flags and looks at the values in fields.
331331
* Two objects with NULL inner values will be considered "equal" here.
332332
*/
333-
public boolean eq(AcceptChannel b) {
333+
public boolean eq(org.ldk.structs.AcceptChannel b) {
334334
boolean ret = bindings.AcceptChannel_eq(this.ptr, b == null ? 0 : b.ptr);
335335
Reference.reachabilityFence(this);
336336
Reference.reachabilityFence(b);

src/main/java/org/ldk/structs/AnnouncementSignatures.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public AnnouncementSignatures clone() {
130130
* This ignores pointers and is_owned flags and looks at the values in fields.
131131
* Two objects with NULL inner values will be considered "equal" here.
132132
*/
133-
public boolean eq(AnnouncementSignatures b) {
133+
public boolean eq(org.ldk.structs.AnnouncementSignatures b) {
134134
boolean ret = bindings.AnnouncementSignatures_eq(this.ptr, b == null ? 0 : b.ptr);
135135
Reference.reachabilityFence(this);
136136
Reference.reachabilityFence(b);

src/main/java/org/ldk/structs/BackgroundProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected void finalize() throws Throwable {
9090
* [`NetworkGraph`]: lightning::routing::gossip::NetworkGraph
9191
* [`NetworkGraph::write`]: lightning::routing::gossip::NetworkGraph#impl-Writeable
9292
*/
93-
public static BackgroundProcessor start(Persister persister, EventHandler event_handler, ChainMonitor chain_monitor, ChannelManager channel_manager, GossipSync gossip_sync, PeerManager peer_manager, Logger logger, Option_WriteableScoreZ scorer) {
93+
public static BackgroundProcessor start(org.ldk.structs.Persister persister, org.ldk.structs.EventHandler event_handler, org.ldk.structs.ChainMonitor chain_monitor, org.ldk.structs.ChannelManager channel_manager, org.ldk.structs.GossipSync gossip_sync, org.ldk.structs.PeerManager peer_manager, org.ldk.structs.Logger logger, org.ldk.structs.Option_WriteableScoreZ scorer) {
9494
long ret = bindings.BackgroundProcessor_start(persister == null ? 0 : persister.ptr, event_handler == null ? 0 : event_handler.ptr, chain_monitor == null ? 0 : chain_monitor.ptr, channel_manager == null ? 0 : channel_manager.ptr, gossip_sync.ptr, peer_manager == null ? 0 : peer_manager.ptr, logger == null ? 0 : logger.ptr, scorer.ptr);
9595
Reference.reachabilityFence(persister);
9696
Reference.reachabilityFence(event_handler);

src/main/java/org/ldk/structs/Balance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public static Balance counterparty_revoked_output_claimable(long claimable_amoun
270270
* Checks if two Balances contain equal inner contents.
271271
* This ignores pointers and is_owned flags and looks at the values in fields.
272272
*/
273-
public boolean eq(Balance b) {
273+
public boolean eq(org.ldk.structs.Balance b) {
274274
boolean ret = bindings.Balance_eq(this.ptr, b == null ? 0 : b.ptr);
275275
Reference.reachabilityFence(this);
276276
Reference.reachabilityFence(b);

0 commit comments

Comments
 (0)