Updated bindings
[ldk-java] / src / main / java / org / ldk / structs / AcceptChannel.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 AcceptChannel extends CommonBase {
10         AcceptChannel(Object _dummy, long ptr) { super(ptr); }
11         @Override @SuppressWarnings("deprecation")
12         protected void finalize() throws Throwable {
13                 super.finalize();
14                 if (ptr != 0) { bindings.AcceptChannel_free(ptr); }
15         }
16
17         public AcceptChannel clone() {
18                 long ret = bindings.AcceptChannel_clone(this.ptr);
19                 AcceptChannel ret_hu_conv = new AcceptChannel(null, ret);
20                 return ret_hu_conv;
21         }
22
23         public byte[] get_temporary_channel_id() {
24                 byte[] ret = bindings.AcceptChannel_get_temporary_channel_id(this.ptr);
25                 return ret;
26         }
27
28         public void set_temporary_channel_id(byte[] val) {
29                 bindings.AcceptChannel_set_temporary_channel_id(this.ptr, val);
30         }
31
32         public long get_dust_limit_satoshis() {
33                 long ret = bindings.AcceptChannel_get_dust_limit_satoshis(this.ptr);
34                 return ret;
35         }
36
37         public void set_dust_limit_satoshis(long val) {
38                 bindings.AcceptChannel_set_dust_limit_satoshis(this.ptr, val);
39         }
40
41         public long get_max_htlc_value_in_flight_msat() {
42                 long ret = bindings.AcceptChannel_get_max_htlc_value_in_flight_msat(this.ptr);
43                 return ret;
44         }
45
46         public void set_max_htlc_value_in_flight_msat(long val) {
47                 bindings.AcceptChannel_set_max_htlc_value_in_flight_msat(this.ptr, val);
48         }
49
50         public long get_channel_reserve_satoshis() {
51                 long ret = bindings.AcceptChannel_get_channel_reserve_satoshis(this.ptr);
52                 return ret;
53         }
54
55         public void set_channel_reserve_satoshis(long val) {
56                 bindings.AcceptChannel_set_channel_reserve_satoshis(this.ptr, val);
57         }
58
59         public long get_htlc_minimum_msat() {
60                 long ret = bindings.AcceptChannel_get_htlc_minimum_msat(this.ptr);
61                 return ret;
62         }
63
64         public void set_htlc_minimum_msat(long val) {
65                 bindings.AcceptChannel_set_htlc_minimum_msat(this.ptr, val);
66         }
67
68         public int get_minimum_depth() {
69                 int ret = bindings.AcceptChannel_get_minimum_depth(this.ptr);
70                 return ret;
71         }
72
73         public void set_minimum_depth(int val) {
74                 bindings.AcceptChannel_set_minimum_depth(this.ptr, val);
75         }
76
77         public short get_to_self_delay() {
78                 short ret = bindings.AcceptChannel_get_to_self_delay(this.ptr);
79                 return ret;
80         }
81
82         public void set_to_self_delay(short val) {
83                 bindings.AcceptChannel_set_to_self_delay(this.ptr, val);
84         }
85
86         public short get_max_accepted_htlcs() {
87                 short ret = bindings.AcceptChannel_get_max_accepted_htlcs(this.ptr);
88                 return ret;
89         }
90
91         public void set_max_accepted_htlcs(short val) {
92                 bindings.AcceptChannel_set_max_accepted_htlcs(this.ptr, val);
93         }
94
95         public byte[] get_funding_pubkey() {
96                 byte[] ret = bindings.AcceptChannel_get_funding_pubkey(this.ptr);
97                 return ret;
98         }
99
100         public void set_funding_pubkey(byte[] val) {
101                 bindings.AcceptChannel_set_funding_pubkey(this.ptr, val);
102         }
103
104         public byte[] get_revocation_basepoint() {
105                 byte[] ret = bindings.AcceptChannel_get_revocation_basepoint(this.ptr);
106                 return ret;
107         }
108
109         public void set_revocation_basepoint(byte[] val) {
110                 bindings.AcceptChannel_set_revocation_basepoint(this.ptr, val);
111         }
112
113         public byte[] get_payment_point() {
114                 byte[] ret = bindings.AcceptChannel_get_payment_point(this.ptr);
115                 return ret;
116         }
117
118         public void set_payment_point(byte[] val) {
119                 bindings.AcceptChannel_set_payment_point(this.ptr, val);
120         }
121
122         public byte[] get_delayed_payment_basepoint() {
123                 byte[] ret = bindings.AcceptChannel_get_delayed_payment_basepoint(this.ptr);
124                 return ret;
125         }
126
127         public void set_delayed_payment_basepoint(byte[] val) {
128                 bindings.AcceptChannel_set_delayed_payment_basepoint(this.ptr, val);
129         }
130
131         public byte[] get_htlc_basepoint() {
132                 byte[] ret = bindings.AcceptChannel_get_htlc_basepoint(this.ptr);
133                 return ret;
134         }
135
136         public void set_htlc_basepoint(byte[] val) {
137                 bindings.AcceptChannel_set_htlc_basepoint(this.ptr, val);
138         }
139
140         public byte[] get_first_per_commitment_point() {
141                 byte[] ret = bindings.AcceptChannel_get_first_per_commitment_point(this.ptr);
142                 return ret;
143         }
144
145         public void set_first_per_commitment_point(byte[] val) {
146                 bindings.AcceptChannel_set_first_per_commitment_point(this.ptr, val);
147         }
148
149         public byte[] write() {
150                 byte[] ret = bindings.AcceptChannel_write(this.ptr);
151                 return ret;
152         }
153
154         public static AcceptChannel constructor_read(byte[] ser) {
155                 long ret = bindings.AcceptChannel_read(ser);
156                 AcceptChannel ret_hu_conv = new AcceptChannel(null, ret);
157                 return ret_hu_conv;
158         }
159
160 }