Skip to content

Commit ffdd56c

Browse files
committed
[Java] Update auto-generated bindings to LDK 0.0.123
1 parent 7b75443 commit ffdd56c

File tree

561 files changed

+42651
-12058
lines changed

Some content is hidden

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

561 files changed

+42651
-12058
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ public enum Bolt12SemanticError {
9696
* Blinded paths were expected but were missing.
9797
*/
9898
LDKBolt12SemanticError_MissingPaths,
99+
/**
100+
* Blinded paths were provided but were not expected.
101+
*/
102+
LDKBolt12SemanticError_UnexpectedPaths,
99103
/**
100104
* The blinded payinfo given does not match the number of blinded path hops.
101105
*/

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,19 @@ public enum ConfirmationTarget {
9292
* [`ChannelManager::close_channel_with_feerate_and_script`]: crate::ln::channelmanager::ChannelManager::close_channel_with_feerate_and_script
9393
*/
9494
LDKConfirmationTarget_ChannelCloseMinimum,
95+
/**
96+
* The feerate [`OutputSweeper`] will use on transactions spending
97+
* [`SpendableOutputDescriptor`]s after a channel closure.
98+
*
99+
* Generally spending these outputs is safe as long as they eventually confirm, so a value
100+
* (slightly above) the mempool minimum should suffice. However, as this value will influence
101+
* how long funds will be unavailable after channel closure, [`FeeEstimator`] implementors
102+
* might want to choose a higher feerate to regain control over funds faster.
103+
*
104+
* [`OutputSweeper`]: crate::util::sweep::OutputSweeper
105+
* [`SpendableOutputDescriptor`]: crate::sign::SpendableOutputDescriptor
106+
*/
107+
LDKConfirmationTarget_OutputSpendingFee,
95108
; static native void init();
96109
static { org.ldk.impl.bindings.run_statics(); init(); }
97110
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.ldk.enums;
2+
3+
/**
4+
* The side of a channel that is the [`IntroductionNode`] in a [`BlindedPath`]. [BOLT 7] defines
5+
* which nodes is which in the [`ChannelAnnouncement`] message.
6+
*
7+
* [BOLT 7]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message
8+
* [`ChannelAnnouncement`]: crate::ln::msgs::ChannelAnnouncement
9+
*/
10+
public enum Direction {
11+
/**
12+
* The lesser node id when compared lexicographically in ascending order.
13+
*/
14+
LDKDirection_NodeOne,
15+
/**
16+
* The greater node id when compared lexicographically in ascending order.
17+
*/
18+
LDKDirection_NodeTwo,
19+
; static native void init();
20+
static { org.ldk.impl.bindings.run_statics(); init(); }
21+
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public enum PaymentFailureReason {
3232
LDKPaymentFailureReason_PaymentExpired,
3333
/**
3434
* We failed to find a route while retrying the payment.
35+
*
36+
* Note that this generally indicates that we've exhausted the available set of possible
37+
* routes - we tried the payment over a few routes but were not able to find any further
38+
* candidate routes beyond those.
3539
*/
3640
LDKPaymentFailureReason_RouteNotFound,
3741
/**
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.ldk.enums;
2+
3+
/**
4+
* A `short_channel_id` construction error
5+
*/
6+
public enum ShortChannelIdError {
7+
/**
8+
* Block height too high
9+
*/
10+
LDKShortChannelIdError_BlockOverflow,
11+
/**
12+
* Tx index too high
13+
*/
14+
LDKShortChannelIdError_TxIndexOverflow,
15+
/**
16+
* Vout index too high
17+
*/
18+
LDKShortChannelIdError_VoutIndexOverflow,
19+
; static native void init();
20+
static { org.ldk.impl.bindings.run_statics(); init(); }
21+
}

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

Lines changed: 2142 additions & 846 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public static APIError monitor_update_in_progress() {
226226
* Utility method to constructs a new IncompatibleShutdownScript-variant APIError
227227
*/
228228
public static APIError incompatible_shutdown_script(org.ldk.structs.ShutdownScript script) {
229-
long ret = bindings.APIError_incompatible_shutdown_script(script == null ? 0 : script.ptr);
229+
long ret = bindings.APIError_incompatible_shutdown_script(script.ptr);
230230
Reference.reachabilityFence(script);
231231
if (ret >= 0 && ret <= 4096) { return null; }
232232
org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret);
@@ -240,7 +240,7 @@ public static APIError incompatible_shutdown_script(org.ldk.structs.ShutdownScri
240240
* This ignores pointers and is_owned flags and looks at the values in fields.
241241
*/
242242
public boolean eq(org.ldk.structs.APIError b) {
243-
boolean ret = bindings.APIError_eq(this.ptr, b == null ? 0 : b.ptr);
243+
boolean ret = bindings.APIError_eq(this.ptr, b.ptr);
244244
Reference.reachabilityFence(this);
245245
Reference.reachabilityFence(b);
246246
return ret;

0 commit comments

Comments
 (0)