Skip to content

Commit 8fa2bcb

Browse files
committed
[Java] Update auto-generated Java bindings for 0.0.116
1 parent 7da1092 commit 8fa2bcb

File tree

232 files changed

+140065
-94470
lines changed

Some content is hidden

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

232 files changed

+140065
-94470
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
package org.ldk.enums;
22

33
/**
4-
* Errors that may occur when converting a [`RawInvoice`] to an [`Invoice`]. They relate to the
5-
* requirements sections in BOLT #11
4+
* Errors that may occur when converting a [`RawBolt11Invoice`] to a [`Bolt11Invoice`]. They relate to
5+
* the requirements sections in BOLT #11
66
*/
7-
public enum SemanticError {
7+
public enum Bolt11SemanticError {
88
/**
99
* The invoice is missing the mandatory payment hash
1010
*/
11-
LDKSemanticError_NoPaymentHash,
11+
LDKBolt11SemanticError_NoPaymentHash,
1212
/**
1313
* The invoice has multiple payment hashes which isn't allowed
1414
*/
15-
LDKSemanticError_MultiplePaymentHashes,
15+
LDKBolt11SemanticError_MultiplePaymentHashes,
1616
/**
1717
* No description or description hash are part of the invoice
1818
*/
19-
LDKSemanticError_NoDescription,
19+
LDKBolt11SemanticError_NoDescription,
2020
/**
2121
* The invoice contains multiple descriptions and/or description hashes which isn't allowed
2222
*/
23-
LDKSemanticError_MultipleDescriptions,
23+
LDKBolt11SemanticError_MultipleDescriptions,
2424
/**
2525
* The invoice is missing the mandatory payment secret, which all modern lightning nodes
2626
* should provide.
2727
*/
28-
LDKSemanticError_NoPaymentSecret,
28+
LDKBolt11SemanticError_NoPaymentSecret,
2929
/**
3030
* The invoice contains multiple payment secrets
3131
*/
32-
LDKSemanticError_MultiplePaymentSecrets,
32+
LDKBolt11SemanticError_MultiplePaymentSecrets,
3333
/**
3434
* The invoice's features are invalid
3535
*/
36-
LDKSemanticError_InvalidFeatures,
36+
LDKBolt11SemanticError_InvalidFeatures,
3737
/**
3838
* The recovery id doesn't fit the signature/pub key
3939
*/
40-
LDKSemanticError_InvalidRecoveryId,
40+
LDKBolt11SemanticError_InvalidRecoveryId,
4141
/**
4242
* The invoice's signature is invalid
4343
*/
44-
LDKSemanticError_InvalidSignature,
44+
LDKBolt11SemanticError_InvalidSignature,
4545
/**
4646
* The invoice's amount was not a whole number of millisatoshis
4747
*/
48-
LDKSemanticError_ImpreciseAmount,
48+
LDKBolt11SemanticError_ImpreciseAmount,
4949
; static native void init();
5050
static { init(); }
5151
}
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
package org.ldk.enums;
2+
3+
/**
4+
* Error when interpreting a TLV stream as a specific type.
5+
*/
6+
public enum Bolt12SemanticError {
7+
/**
8+
* The current [`std::time::SystemTime`] is past the offer or invoice's expiration.
9+
*/
10+
LDKBolt12SemanticError_AlreadyExpired,
11+
/**
12+
* The provided chain hash does not correspond to a supported chain.
13+
*/
14+
LDKBolt12SemanticError_UnsupportedChain,
15+
/**
16+
* A chain was provided but was not expected.
17+
*/
18+
LDKBolt12SemanticError_UnexpectedChain,
19+
/**
20+
* An amount was expected but was missing.
21+
*/
22+
LDKBolt12SemanticError_MissingAmount,
23+
/**
24+
* The amount exceeded the total bitcoin supply.
25+
*/
26+
LDKBolt12SemanticError_InvalidAmount,
27+
/**
28+
* An amount was provided but was not sufficient in value.
29+
*/
30+
LDKBolt12SemanticError_InsufficientAmount,
31+
/**
32+
* An amount was provided but was not expected.
33+
*/
34+
LDKBolt12SemanticError_UnexpectedAmount,
35+
/**
36+
* A currency was provided that is not supported.
37+
*/
38+
LDKBolt12SemanticError_UnsupportedCurrency,
39+
/**
40+
* A feature was required but is unknown.
41+
*/
42+
LDKBolt12SemanticError_UnknownRequiredFeatures,
43+
/**
44+
* Features were provided but were not expected.
45+
*/
46+
LDKBolt12SemanticError_UnexpectedFeatures,
47+
/**
48+
* A required description was not provided.
49+
*/
50+
LDKBolt12SemanticError_MissingDescription,
51+
/**
52+
* A signing pubkey was not provided.
53+
*/
54+
LDKBolt12SemanticError_MissingSigningPubkey,
55+
/**
56+
* A signing pubkey was provided but a different one was expected.
57+
*/
58+
LDKBolt12SemanticError_InvalidSigningPubkey,
59+
/**
60+
* A signing pubkey was provided but was not expected.
61+
*/
62+
LDKBolt12SemanticError_UnexpectedSigningPubkey,
63+
/**
64+
* A quantity was expected but was missing.
65+
*/
66+
LDKBolt12SemanticError_MissingQuantity,
67+
/**
68+
* An unsupported quantity was provided.
69+
*/
70+
LDKBolt12SemanticError_InvalidQuantity,
71+
/**
72+
* A quantity or quantity bounds was provided but was not expected.
73+
*/
74+
LDKBolt12SemanticError_UnexpectedQuantity,
75+
/**
76+
* Metadata could not be used to verify the offers message.
77+
*/
78+
LDKBolt12SemanticError_InvalidMetadata,
79+
/**
80+
* Metadata was provided but was not expected.
81+
*/
82+
LDKBolt12SemanticError_UnexpectedMetadata,
83+
/**
84+
* Payer metadata was expected but was missing.
85+
*/
86+
LDKBolt12SemanticError_MissingPayerMetadata,
87+
/**
88+
* A payer id was expected but was missing.
89+
*/
90+
LDKBolt12SemanticError_MissingPayerId,
91+
/**
92+
* Blinded paths were expected but were missing.
93+
*/
94+
LDKBolt12SemanticError_MissingPaths,
95+
/**
96+
* The blinded payinfo given does not match the number of blinded path hops.
97+
*/
98+
LDKBolt12SemanticError_InvalidPayInfo,
99+
/**
100+
* An invoice creation time was expected but was missing.
101+
*/
102+
LDKBolt12SemanticError_MissingCreationTime,
103+
/**
104+
* An invoice payment hash was expected but was missing.
105+
*/
106+
LDKBolt12SemanticError_MissingPaymentHash,
107+
/**
108+
* A signature was expected but was missing.
109+
*/
110+
LDKBolt12SemanticError_MissingSignature,
111+
; static native void init();
112+
static { init(); }
113+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package org.ldk.enums;
2+
3+
/**
4+
* Further information on the details of the channel shutdown.
5+
* Upon channels being forced closed (i.e. commitment transaction confirmation detected
6+
* by `ChainMonitor`), ChannelShutdownState will be set to `ShutdownComplete` or
7+
* the channel will be removed shortly.
8+
* Also note, that in normal operation, peers could disconnect at any of these states
9+
* and require peer re-connection before making progress onto other states
10+
*/
11+
public enum ChannelShutdownState {
12+
/**
13+
* Channel has not sent or received a shutdown message.
14+
*/
15+
LDKChannelShutdownState_NotShuttingDown,
16+
/**
17+
* Local node has sent a shutdown message for this channel.
18+
*/
19+
LDKChannelShutdownState_ShutdownInitiated,
20+
/**
21+
* Shutdown message exchanges have concluded and the channels are in the midst of
22+
* resolving all existing open HTLCs before closing can continue.
23+
*/
24+
LDKChannelShutdownState_ResolvingHTLCs,
25+
/**
26+
* All HTLCs have been resolved, nodes are currently negotiating channel close onchain fee rates.
27+
*/
28+
LDKChannelShutdownState_NegotiatingClosingFee,
29+
/**
30+
* We've successfully negotiated a closing_signed dance. At this point `ChannelManager` is about
31+
* to drop the channel.
32+
*/
33+
LDKChannelShutdownState_ShutdownComplete,
34+
; static native void init();
35+
static { init(); }
36+
}

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

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

33
/**
4-
* An enum that represents the speed at which we want a transaction to confirm used for feerate
4+
* An enum that represents the priority at which we want a transaction to confirm used for feerate
55
* estimation.
66
*/
77
public enum ConfirmationTarget {
88
/**
9-
* We are happy with this transaction confirming slowly when feerate drops some.
9+
* We'd like a transaction to confirm in the future, but don't want to commit most of the fees
10+
* required to do so yet. The remaining fees will come via a Child-Pays-For-Parent (CPFP) fee
11+
* bump of the transaction.
12+
*
13+
* The feerate returned should be the absolute minimum feerate required to enter most node
14+
* mempools across the network. Note that if you are not able to obtain this feerate estimate,
15+
* you should likely use the furthest-out estimate allowed by your fee estimator.
16+
*/
17+
LDKConfirmationTarget_MempoolMinimum,
18+
/**
19+
* We are happy with a transaction confirming slowly, at least within a day or so worth of
20+
* blocks.
1021
*/
1122
LDKConfirmationTarget_Background,
1223
/**
13-
* We'd like this transaction to confirm without major delay, but 12-18 blocks is fine.
24+
* We'd like a transaction to confirm without major delayed, i.e., within the next 12-24 blocks.
1425
*/
1526
LDKConfirmationTarget_Normal,
1627
/**
17-
* We'd like this transaction to confirm in the next few blocks.
28+
* We'd like a transaction to confirm in the next few blocks.
1829
*/
1930
LDKConfirmationTarget_HighPriority,
2031
; static native void init();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.ldk.enums;
22

33
/**
4-
* Errors that may occur when constructing a new [`RawInvoice`] or [`Invoice`]
4+
* Errors that may occur when constructing a new [`RawBolt11Invoice`] or [`Bolt11Invoice`]
55
*/
66
public enum CreationError {
77
/**

0 commit comments

Comments
 (0)