- /**
- * The minimum HTLC size incoming to sender, in milli-satoshi
- */
- public long get_htlc_minimum_msat() {
- long ret = bindings.OpenChannel_get_htlc_minimum_msat(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The minimum HTLC size incoming to sender, in milli-satoshi
- */
- public void set_htlc_minimum_msat(long val) {
- bindings.OpenChannel_set_htlc_minimum_msat(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The feerate per 1000-weight of sender generated transactions, until updated by
- * [`UpdateFee`]
- */
- public int get_feerate_per_kw() {
- int ret = bindings.OpenChannel_get_feerate_per_kw(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The feerate per 1000-weight of sender generated transactions, until updated by
- * [`UpdateFee`]
- */
- public void set_feerate_per_kw(int val) {
- bindings.OpenChannel_set_feerate_per_kw(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The number of blocks which the counterparty will have to wait to claim on-chain funds if
- * they broadcast a commitment transaction
- */
- public short get_to_self_delay() {
- short ret = bindings.OpenChannel_get_to_self_delay(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The number of blocks which the counterparty will have to wait to claim on-chain funds if
- * they broadcast a commitment transaction
- */
- public void set_to_self_delay(short val) {
- bindings.OpenChannel_set_to_self_delay(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The maximum number of inbound HTLCs towards sender
- */
- public short get_max_accepted_htlcs() {
- short ret = bindings.OpenChannel_get_max_accepted_htlcs(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The maximum number of inbound HTLCs towards sender
- */
- public void set_max_accepted_htlcs(short val) {
- bindings.OpenChannel_set_max_accepted_htlcs(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The sender's key controlling the funding transaction
- */
- public byte[] get_funding_pubkey() {
- byte[] ret = bindings.OpenChannel_get_funding_pubkey(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The sender's key controlling the funding transaction
- */
- public void set_funding_pubkey(byte[] val) {
- bindings.OpenChannel_set_funding_pubkey(this.ptr, InternalUtils.check_arr_len(val, 33));
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * Used to derive a revocation key for transactions broadcast by counterparty
- */
- public byte[] get_revocation_basepoint() {
- byte[] ret = bindings.OpenChannel_get_revocation_basepoint(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * Used to derive a revocation key for transactions broadcast by counterparty
- */
- public void set_revocation_basepoint(byte[] val) {
- bindings.OpenChannel_set_revocation_basepoint(this.ptr, InternalUtils.check_arr_len(val, 33));
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * A payment key to sender for transactions broadcast by counterparty
- */
- public byte[] get_payment_point() {
- byte[] ret = bindings.OpenChannel_get_payment_point(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * A payment key to sender for transactions broadcast by counterparty
- */
- public void set_payment_point(byte[] val) {
- bindings.OpenChannel_set_payment_point(this.ptr, InternalUtils.check_arr_len(val, 33));
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * Used to derive a payment key to sender for transactions broadcast by sender
- */
- public byte[] get_delayed_payment_basepoint() {
- byte[] ret = bindings.OpenChannel_get_delayed_payment_basepoint(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * Used to derive a payment key to sender for transactions broadcast by sender
- */
- public void set_delayed_payment_basepoint(byte[] val) {
- bindings.OpenChannel_set_delayed_payment_basepoint(this.ptr, InternalUtils.check_arr_len(val, 33));
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * Used to derive an HTLC payment key to sender
- */
- public byte[] get_htlc_basepoint() {
- byte[] ret = bindings.OpenChannel_get_htlc_basepoint(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * Used to derive an HTLC payment key to sender
- */
- public void set_htlc_basepoint(byte[] val) {
- bindings.OpenChannel_set_htlc_basepoint(this.ptr, InternalUtils.check_arr_len(val, 33));
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The first to-be-broadcast-by-sender transaction's per commitment point
- */
- public byte[] get_first_per_commitment_point() {
- byte[] ret = bindings.OpenChannel_get_first_per_commitment_point(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The first to-be-broadcast-by-sender transaction's per commitment point
- */
- public void set_first_per_commitment_point(byte[] val) {
- bindings.OpenChannel_set_first_per_commitment_point(this.ptr, InternalUtils.check_arr_len(val, 33));
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * The channel flags to be used
- */
- public byte get_channel_flags() {
- byte ret = bindings.OpenChannel_get_channel_flags(this.ptr);
- Reference.reachabilityFence(this);
- return ret;
- }
-
- /**
- * The channel flags to be used
- */
- public void set_channel_flags(byte val) {
- bindings.OpenChannel_set_channel_flags(this.ptr, val);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- }
-
- /**
- * A request to pre-set the to-sender output's `scriptPubkey` for when we collaboratively close
- */
- public Option_CVec_u8ZZ get_shutdown_scriptpubkey() {
- long ret = bindings.OpenChannel_get_shutdown_scriptpubkey(this.ptr);
- Reference.reachabilityFence(this);
- if (ret >= 0 && ret <= 4096) { return null; }
- org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret);
- if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
- return ret_hu_conv;
- }
-
- /**
- * A request to pre-set the to-sender output's `scriptPubkey` for when we collaboratively close
- */
- public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) {
- bindings.OpenChannel_set_shutdown_scriptpubkey(this.ptr, val.ptr);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- if (this != null) { this.ptrs_to.add(val); };
- }
-
- /**
- * The channel type that this channel will represent
- *
- * If this is `None`, we derive the channel type from the intersection of our
- * feature bits with our counterparty's feature bits from the [`Init`] message.
- *
- * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
- */
- @Nullable
- public ChannelTypeFeatures get_channel_type() {
- long ret = bindings.OpenChannel_get_channel_type(this.ptr);
- Reference.reachabilityFence(this);
- if (ret >= 0 && ret <= 4096) { return null; }
- org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); }
- if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
- return ret_hu_conv;
- }
-
- /**
- * The channel type that this channel will represent
- *
- * If this is `None`, we derive the channel type from the intersection of our
- * feature bits with our counterparty's feature bits from the [`Init`] message.
- *
- * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
- */
- public void set_channel_type(@Nullable org.ldk.structs.ChannelTypeFeatures val) {
- bindings.OpenChannel_set_channel_type(this.ptr, val == null ? 0 : val.ptr);
- Reference.reachabilityFence(this);
- Reference.reachabilityFence(val);
- if (this != null) { this.ptrs_to.add(val); };
- }
-