]> git.bitcoin.ninja Git - ldk-java/blob - src/main/java/org/ldk/structs/ChannelHandshakeConfig.java
Fix race in tests
[ldk-java] / src / main / java / org / ldk / structs / ChannelHandshakeConfig.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 ChannelHandshakeConfig extends CommonBase {
10         ChannelHandshakeConfig(Object _dummy, long ptr) { super(ptr); }
11         @Override @SuppressWarnings("deprecation")
12         protected void finalize() throws Throwable {
13                 super.finalize();
14                 if (ptr != 0) { bindings.ChannelHandshakeConfig_free(ptr); }
15         }
16
17         public static ChannelHandshakeConfig constructor_clone(ChannelHandshakeConfig orig) {
18                 long ret = bindings.ChannelHandshakeConfig_clone(orig == null ? 0 : orig.ptr & ~1);
19                 ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
20                 ret_hu_conv.ptrs_to.add(orig);
21                 return ret_hu_conv;
22         }
23
24         public int get_minimum_depth() {
25                 int ret = bindings.ChannelHandshakeConfig_get_minimum_depth(this.ptr);
26                 return ret;
27         }
28
29         public void set_minimum_depth(int val) {
30                 bindings.ChannelHandshakeConfig_set_minimum_depth(this.ptr, val);
31         }
32
33         public short get_our_to_self_delay() {
34                 short ret = bindings.ChannelHandshakeConfig_get_our_to_self_delay(this.ptr);
35                 return ret;
36         }
37
38         public void set_our_to_self_delay(short val) {
39                 bindings.ChannelHandshakeConfig_set_our_to_self_delay(this.ptr, val);
40         }
41
42         public long get_our_htlc_minimum_msat() {
43                 long ret = bindings.ChannelHandshakeConfig_get_our_htlc_minimum_msat(this.ptr);
44                 return ret;
45         }
46
47         public void set_our_htlc_minimum_msat(long val) {
48                 bindings.ChannelHandshakeConfig_set_our_htlc_minimum_msat(this.ptr, val);
49         }
50
51         public static ChannelHandshakeConfig constructor_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg) {
52                 long ret = bindings.ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg);
53                 ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
54                 return ret_hu_conv;
55         }
56
57         public static ChannelHandshakeConfig constructor_default() {
58                 long ret = bindings.ChannelHandshakeConfig_default();
59                 ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
60                 return ret_hu_conv;
61         }
62
63 }