]> git.bitcoin.ninja Git - ldk-java/blob - src/main/java/org/ldk/structs/ChannelHandshakeLimits.java
Fix race in tests
[ldk-java] / src / main / java / org / ldk / structs / ChannelHandshakeLimits.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5 import org.ldk.util.*;
6 import java.util.Arrays;
7
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 {
13                 super.finalize();
14                 if (ptr != 0) { bindings.ChannelHandshakeLimits_free(ptr); }
15         }
16
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);
21                 return ret_hu_conv;
22         }
23
24         public long get_min_funding_satoshis() {
25                 long ret = bindings.ChannelHandshakeLimits_get_min_funding_satoshis(this.ptr);
26                 return ret;
27         }
28
29         public void set_min_funding_satoshis(long val) {
30                 bindings.ChannelHandshakeLimits_set_min_funding_satoshis(this.ptr, val);
31         }
32
33         public long get_max_htlc_minimum_msat() {
34                 long ret = bindings.ChannelHandshakeLimits_get_max_htlc_minimum_msat(this.ptr);
35                 return ret;
36         }
37
38         public void set_max_htlc_minimum_msat(long val) {
39                 bindings.ChannelHandshakeLimits_set_max_htlc_minimum_msat(this.ptr, val);
40         }
41
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);
44                 return ret;
45         }
46
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);
49         }
50
51         public long get_max_channel_reserve_satoshis() {
52                 long ret = bindings.ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this.ptr);
53                 return ret;
54         }
55
56         public void set_max_channel_reserve_satoshis(long val) {
57                 bindings.ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this.ptr, val);
58         }
59
60         public short get_min_max_accepted_htlcs() {
61                 short ret = bindings.ChannelHandshakeLimits_get_min_max_accepted_htlcs(this.ptr);
62                 return ret;
63         }
64
65         public void set_min_max_accepted_htlcs(short val) {
66                 bindings.ChannelHandshakeLimits_set_min_max_accepted_htlcs(this.ptr, val);
67         }
68
69         public long get_min_dust_limit_satoshis() {
70                 long ret = bindings.ChannelHandshakeLimits_get_min_dust_limit_satoshis(this.ptr);
71                 return ret;
72         }
73
74         public void set_min_dust_limit_satoshis(long val) {
75                 bindings.ChannelHandshakeLimits_set_min_dust_limit_satoshis(this.ptr, val);
76         }
77
78         public long get_max_dust_limit_satoshis() {
79                 long ret = bindings.ChannelHandshakeLimits_get_max_dust_limit_satoshis(this.ptr);
80                 return ret;
81         }
82
83         public void set_max_dust_limit_satoshis(long val) {
84                 bindings.ChannelHandshakeLimits_set_max_dust_limit_satoshis(this.ptr, val);
85         }
86
87         public int get_max_minimum_depth() {
88                 int ret = bindings.ChannelHandshakeLimits_get_max_minimum_depth(this.ptr);
89                 return ret;
90         }
91
92         public void set_max_minimum_depth(int val) {
93                 bindings.ChannelHandshakeLimits_set_max_minimum_depth(this.ptr, val);
94         }
95
96         public boolean get_force_announced_channel_preference() {
97                 boolean ret = bindings.ChannelHandshakeLimits_get_force_announced_channel_preference(this.ptr);
98                 return ret;
99         }
100
101         public void set_force_announced_channel_preference(boolean val) {
102                 bindings.ChannelHandshakeLimits_set_force_announced_channel_preference(this.ptr, val);
103         }
104
105         public short get_their_to_self_delay() {
106                 short ret = bindings.ChannelHandshakeLimits_get_their_to_self_delay(this.ptr);
107                 return ret;
108         }
109
110         public void set_their_to_self_delay(short val) {
111                 bindings.ChannelHandshakeLimits_set_their_to_self_delay(this.ptr, val);
112         }
113
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);
117                 return ret_hu_conv;
118         }
119
120         public static ChannelHandshakeLimits constructor_default() {
121                 long ret = bindings.ChannelHandshakeLimits_default();
122                 ChannelHandshakeLimits ret_hu_conv = new ChannelHandshakeLimits(null, ret);
123                 return ret_hu_conv;
124         }
125
126 }