+ /**
+ * HTLCs which we received from our counterparty which are claimable with a preimage which we
+ * do not currently have. This will only be claimable if we receive the preimage from the node
+ * to which we forwarded this HTLC before the timeout.
+ */
+ public final static class MaybePreimageClaimableHTLC extends Balance {
+ /**
+ * The amount potentially available to claim, in satoshis, excluding the on-chain fees
+ * which will be required to do so.
+ */
+ public final long claimable_amount_satoshis;
+ /**
+ * The height at which our counterparty will be able to claim the balance if we have not
+ * yet received the preimage and claimed it ourselves.
+ */
+ public final int expiry_height;
+ private MaybePreimageClaimableHTLC(long ptr, bindings.LDKBalance.MaybePreimageClaimableHTLC obj) {
+ super(null, ptr);
+ this.claimable_amount_satoshis = obj.claimable_amount_satoshis;
+ this.expiry_height = obj.expiry_height;
+ }
+ }
+ /**
+ * The channel has been closed, and our counterparty broadcasted a revoked commitment
+ * transaction.
+ *
+ * Thus, we're able to claim all outputs in the commitment transaction, one of which has the
+ * following amount.
+ */
+ public final static class CounterpartyRevokedOutputClaimable extends Balance {
+ /**
+ * The amount, in satoshis, of the output which we can claim.
+ *
+ * Note that for outputs from HTLC balances this may be excluding some on-chain fees that
+ * were already spent.
+ */
+ public final long claimable_amount_satoshis;
+ private CounterpartyRevokedOutputClaimable(long ptr, bindings.LDKBalance.CounterpartyRevokedOutputClaimable obj) {
+ super(null, ptr);
+ this.claimable_amount_satoshis = obj.claimable_amount_satoshis;
+ }
+ }
+ long clone_ptr() {
+ long ret = bindings.Balance_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+