1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class ChannelHandshakeLimits extends CommonBase {
7 ChannelHandshakeLimits(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
10 bindings.ChannelHandshakeLimits_free(ptr); super.finalize();
13 public ChannelHandshakeLimits(ChannelHandshakeLimits orig) {
14 super(bindings.ChannelHandshakeLimits_clone(orig.ptr & ~1));
15 this.ptrs_to.add(orig);
18 public long get_min_funding_satoshis(ChannelHandshakeLimits this_ptr) {
19 long ret = bindings.ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr.ptr & ~1);
20 this.ptrs_to.add(this_ptr);
24 public void set_min_funding_satoshis(ChannelHandshakeLimits this_ptr, long val) {
25 bindings.ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr.ptr & ~1, val);
26 this.ptrs_to.add(this_ptr);
29 public long get_max_htlc_minimum_msat(ChannelHandshakeLimits this_ptr) {
30 long ret = bindings.ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr.ptr & ~1);
31 this.ptrs_to.add(this_ptr);
35 public void set_max_htlc_minimum_msat(ChannelHandshakeLimits this_ptr, long val) {
36 bindings.ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr.ptr & ~1, val);
37 this.ptrs_to.add(this_ptr);
40 public long get_min_max_htlc_value_in_flight_msat(ChannelHandshakeLimits this_ptr) {
41 long ret = bindings.ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr.ptr & ~1);
42 this.ptrs_to.add(this_ptr);
46 public void set_min_max_htlc_value_in_flight_msat(ChannelHandshakeLimits this_ptr, long val) {
47 bindings.ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr.ptr & ~1, val);
48 this.ptrs_to.add(this_ptr);
51 public long get_max_channel_reserve_satoshis(ChannelHandshakeLimits this_ptr) {
52 long ret = bindings.ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr.ptr & ~1);
53 this.ptrs_to.add(this_ptr);
57 public void set_max_channel_reserve_satoshis(ChannelHandshakeLimits this_ptr, long val) {
58 bindings.ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr.ptr & ~1, val);
59 this.ptrs_to.add(this_ptr);
62 public short get_min_max_accepted_htlcs(ChannelHandshakeLimits this_ptr) {
63 short ret = bindings.ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr.ptr & ~1);
64 this.ptrs_to.add(this_ptr);
68 public void set_min_max_accepted_htlcs(ChannelHandshakeLimits this_ptr, short val) {
69 bindings.ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr.ptr & ~1, val);
70 this.ptrs_to.add(this_ptr);
73 public long get_min_dust_limit_satoshis(ChannelHandshakeLimits this_ptr) {
74 long ret = bindings.ChannelHandshakeLimits_get_min_dust_limit_satoshis(this_ptr.ptr & ~1);
75 this.ptrs_to.add(this_ptr);
79 public void set_min_dust_limit_satoshis(ChannelHandshakeLimits this_ptr, long val) {
80 bindings.ChannelHandshakeLimits_set_min_dust_limit_satoshis(this_ptr.ptr & ~1, val);
81 this.ptrs_to.add(this_ptr);
84 public long get_max_dust_limit_satoshis(ChannelHandshakeLimits this_ptr) {
85 long ret = bindings.ChannelHandshakeLimits_get_max_dust_limit_satoshis(this_ptr.ptr & ~1);
86 this.ptrs_to.add(this_ptr);
90 public void set_max_dust_limit_satoshis(ChannelHandshakeLimits this_ptr, long val) {
91 bindings.ChannelHandshakeLimits_set_max_dust_limit_satoshis(this_ptr.ptr & ~1, val);
92 this.ptrs_to.add(this_ptr);
95 public int get_max_minimum_depth(ChannelHandshakeLimits this_ptr) {
96 int ret = bindings.ChannelHandshakeLimits_get_max_minimum_depth(this_ptr.ptr & ~1);
97 this.ptrs_to.add(this_ptr);
101 public void set_max_minimum_depth(ChannelHandshakeLimits this_ptr, int val) {
102 bindings.ChannelHandshakeLimits_set_max_minimum_depth(this_ptr.ptr & ~1, val);
103 this.ptrs_to.add(this_ptr);
106 public boolean get_force_announced_channel_preference(ChannelHandshakeLimits this_ptr) {
107 boolean ret = bindings.ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr.ptr & ~1);
108 this.ptrs_to.add(this_ptr);
112 public void set_force_announced_channel_preference(ChannelHandshakeLimits this_ptr, boolean val) {
113 bindings.ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr.ptr & ~1, val);
114 this.ptrs_to.add(this_ptr);
117 public short get_their_to_self_delay(ChannelHandshakeLimits this_ptr) {
118 short ret = bindings.ChannelHandshakeLimits_get_their_to_self_delay(this_ptr.ptr & ~1);
119 this.ptrs_to.add(this_ptr);
123 public void set_their_to_self_delay(ChannelHandshakeLimits this_ptr, short val) {
124 bindings.ChannelHandshakeLimits_set_their_to_self_delay(this_ptr.ptr & ~1, val);
125 this.ptrs_to.add(this_ptr);
128 public ChannelHandshakeLimits(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) {
129 super(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));
132 public ChannelHandshakeLimits() {
133 super(bindings.ChannelHandshakeLimits_default());