1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class ChannelHandshakeLimits extends CommonBase {
10 ChannelHandshakeLimits(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.ChannelHandshakeLimits_free(ptr); }
17 public static ChannelHandshakeLimits constructor_clone(ChannelHandshakeLimits orig) {
18 long ret = bindings.ChannelHandshakeLimits_clone(orig == null ? 0 : orig.ptr & ~1);
19 ChannelHandshakeLimits ret_hu_conv = new ChannelHandshakeLimits(null, ret);
20 ret_hu_conv.ptrs_to.add(orig);
24 public long get_min_funding_satoshis() {
25 long ret = bindings.ChannelHandshakeLimits_get_min_funding_satoshis(this.ptr);
29 public void set_min_funding_satoshis(long val) {
30 bindings.ChannelHandshakeLimits_set_min_funding_satoshis(this.ptr, val);
33 public long get_max_htlc_minimum_msat() {
34 long ret = bindings.ChannelHandshakeLimits_get_max_htlc_minimum_msat(this.ptr);
38 public void set_max_htlc_minimum_msat(long val) {
39 bindings.ChannelHandshakeLimits_set_max_htlc_minimum_msat(this.ptr, val);
42 public long get_min_max_htlc_value_in_flight_msat() {
43 long ret = bindings.ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this.ptr);
47 public void set_min_max_htlc_value_in_flight_msat(long val) {
48 bindings.ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this.ptr, val);
51 public long get_max_channel_reserve_satoshis() {
52 long ret = bindings.ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this.ptr);
56 public void set_max_channel_reserve_satoshis(long val) {
57 bindings.ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this.ptr, val);
60 public short get_min_max_accepted_htlcs() {
61 short ret = bindings.ChannelHandshakeLimits_get_min_max_accepted_htlcs(this.ptr);
65 public void set_min_max_accepted_htlcs(short val) {
66 bindings.ChannelHandshakeLimits_set_min_max_accepted_htlcs(this.ptr, val);
69 public long get_min_dust_limit_satoshis() {
70 long ret = bindings.ChannelHandshakeLimits_get_min_dust_limit_satoshis(this.ptr);
74 public void set_min_dust_limit_satoshis(long val) {
75 bindings.ChannelHandshakeLimits_set_min_dust_limit_satoshis(this.ptr, val);
78 public long get_max_dust_limit_satoshis() {
79 long ret = bindings.ChannelHandshakeLimits_get_max_dust_limit_satoshis(this.ptr);
83 public void set_max_dust_limit_satoshis(long val) {
84 bindings.ChannelHandshakeLimits_set_max_dust_limit_satoshis(this.ptr, val);
87 public int get_max_minimum_depth() {
88 int ret = bindings.ChannelHandshakeLimits_get_max_minimum_depth(this.ptr);
92 public void set_max_minimum_depth(int val) {
93 bindings.ChannelHandshakeLimits_set_max_minimum_depth(this.ptr, val);
96 public boolean get_force_announced_channel_preference() {
97 boolean ret = bindings.ChannelHandshakeLimits_get_force_announced_channel_preference(this.ptr);
101 public void set_force_announced_channel_preference(boolean val) {
102 bindings.ChannelHandshakeLimits_set_force_announced_channel_preference(this.ptr, val);
105 public short get_their_to_self_delay() {
106 short ret = bindings.ChannelHandshakeLimits_get_their_to_self_delay(this.ptr);
110 public void set_their_to_self_delay(short val) {
111 bindings.ChannelHandshakeLimits_set_their_to_self_delay(this.ptr, val);
114 public static ChannelHandshakeLimits constructor_new(long min_funding_satoshis_arg, long max_htlc_minimum_msat_arg, long min_max_htlc_value_in_flight_msat_arg, long max_channel_reserve_satoshis_arg, short min_max_accepted_htlcs_arg, long min_dust_limit_satoshis_arg, long max_dust_limit_satoshis_arg, int max_minimum_depth_arg, boolean force_announced_channel_preference_arg, short their_to_self_delay_arg) {
115 long ret = bindings.ChannelHandshakeLimits_new(min_funding_satoshis_arg, max_htlc_minimum_msat_arg, min_max_htlc_value_in_flight_msat_arg, max_channel_reserve_satoshis_arg, min_max_accepted_htlcs_arg, min_dust_limit_satoshis_arg, max_dust_limit_satoshis_arg, max_minimum_depth_arg, force_announced_channel_preference_arg, their_to_self_delay_arg);
116 ChannelHandshakeLimits ret_hu_conv = new ChannelHandshakeLimits(null, ret);
120 public static ChannelHandshakeLimits constructor_default() {
121 long ret = bindings.ChannelHandshakeLimits_default();
122 ChannelHandshakeLimits ret_hu_conv = new ChannelHandshakeLimits(null, ret);