1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class AcceptChannel extends CommonBase {
7 AcceptChannel(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
10 bindings.AcceptChannel_free(ptr); super.finalize();
13 public AcceptChannel(AcceptChannel orig) {
14 super(bindings.AcceptChannel_clone(orig == null ? 0 : orig.ptr & ~1));
15 this.ptrs_to.add(orig);
18 public byte[] get_temporary_channel_id(AcceptChannel this_ptr) {
19 byte[] ret = bindings.AcceptChannel_get_temporary_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1);
20 this.ptrs_to.add(this_ptr);
24 public void set_temporary_channel_id(AcceptChannel this_ptr, byte[] val) {
25 bindings.AcceptChannel_set_temporary_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
26 this.ptrs_to.add(this_ptr);
29 public long get_dust_limit_satoshis(AcceptChannel this_ptr) {
30 long ret = bindings.AcceptChannel_get_dust_limit_satoshis(this_ptr == null ? 0 : this_ptr.ptr & ~1);
31 this.ptrs_to.add(this_ptr);
35 public void set_dust_limit_satoshis(AcceptChannel this_ptr, long val) {
36 bindings.AcceptChannel_set_dust_limit_satoshis(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
37 this.ptrs_to.add(this_ptr);
40 public long get_max_htlc_value_in_flight_msat(AcceptChannel this_ptr) {
41 long ret = bindings.AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
42 this.ptrs_to.add(this_ptr);
46 public void set_max_htlc_value_in_flight_msat(AcceptChannel this_ptr, long val) {
47 bindings.AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
48 this.ptrs_to.add(this_ptr);
51 public long get_channel_reserve_satoshis(AcceptChannel this_ptr) {
52 long ret = bindings.AcceptChannel_get_channel_reserve_satoshis(this_ptr == null ? 0 : this_ptr.ptr & ~1);
53 this.ptrs_to.add(this_ptr);
57 public void set_channel_reserve_satoshis(AcceptChannel this_ptr, long val) {
58 bindings.AcceptChannel_set_channel_reserve_satoshis(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
59 this.ptrs_to.add(this_ptr);
62 public long get_htlc_minimum_msat(AcceptChannel this_ptr) {
63 long ret = bindings.AcceptChannel_get_htlc_minimum_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
64 this.ptrs_to.add(this_ptr);
68 public void set_htlc_minimum_msat(AcceptChannel this_ptr, long val) {
69 bindings.AcceptChannel_set_htlc_minimum_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
70 this.ptrs_to.add(this_ptr);
73 public int get_minimum_depth(AcceptChannel this_ptr) {
74 int ret = bindings.AcceptChannel_get_minimum_depth(this_ptr == null ? 0 : this_ptr.ptr & ~1);
75 this.ptrs_to.add(this_ptr);
79 public void set_minimum_depth(AcceptChannel this_ptr, int val) {
80 bindings.AcceptChannel_set_minimum_depth(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
81 this.ptrs_to.add(this_ptr);
84 public short get_to_self_delay(AcceptChannel this_ptr) {
85 short ret = bindings.AcceptChannel_get_to_self_delay(this_ptr == null ? 0 : this_ptr.ptr & ~1);
86 this.ptrs_to.add(this_ptr);
90 public void set_to_self_delay(AcceptChannel this_ptr, short val) {
91 bindings.AcceptChannel_set_to_self_delay(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
92 this.ptrs_to.add(this_ptr);
95 public short get_max_accepted_htlcs(AcceptChannel this_ptr) {
96 short ret = bindings.AcceptChannel_get_max_accepted_htlcs(this_ptr == null ? 0 : this_ptr.ptr & ~1);
97 this.ptrs_to.add(this_ptr);
101 public void set_max_accepted_htlcs(AcceptChannel this_ptr, short val) {
102 bindings.AcceptChannel_set_max_accepted_htlcs(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
103 this.ptrs_to.add(this_ptr);
106 public byte[] get_funding_pubkey(AcceptChannel this_ptr) {
107 byte[] ret = bindings.AcceptChannel_get_funding_pubkey(this_ptr == null ? 0 : this_ptr.ptr & ~1);
108 this.ptrs_to.add(this_ptr);
112 public void set_funding_pubkey(AcceptChannel this_ptr, byte[] val) {
113 bindings.AcceptChannel_set_funding_pubkey(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
114 this.ptrs_to.add(this_ptr);
117 public byte[] get_revocation_basepoint(AcceptChannel this_ptr) {
118 byte[] ret = bindings.AcceptChannel_get_revocation_basepoint(this_ptr == null ? 0 : this_ptr.ptr & ~1);
119 this.ptrs_to.add(this_ptr);
123 public void set_revocation_basepoint(AcceptChannel this_ptr, byte[] val) {
124 bindings.AcceptChannel_set_revocation_basepoint(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
125 this.ptrs_to.add(this_ptr);
128 public byte[] get_payment_point(AcceptChannel this_ptr) {
129 byte[] ret = bindings.AcceptChannel_get_payment_point(this_ptr == null ? 0 : this_ptr.ptr & ~1);
130 this.ptrs_to.add(this_ptr);
134 public void set_payment_point(AcceptChannel this_ptr, byte[] val) {
135 bindings.AcceptChannel_set_payment_point(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
136 this.ptrs_to.add(this_ptr);
139 public byte[] get_delayed_payment_basepoint(AcceptChannel this_ptr) {
140 byte[] ret = bindings.AcceptChannel_get_delayed_payment_basepoint(this_ptr == null ? 0 : this_ptr.ptr & ~1);
141 this.ptrs_to.add(this_ptr);
145 public void set_delayed_payment_basepoint(AcceptChannel this_ptr, byte[] val) {
146 bindings.AcceptChannel_set_delayed_payment_basepoint(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
147 this.ptrs_to.add(this_ptr);
150 public byte[] get_htlc_basepoint(AcceptChannel this_ptr) {
151 byte[] ret = bindings.AcceptChannel_get_htlc_basepoint(this_ptr == null ? 0 : this_ptr.ptr & ~1);
152 this.ptrs_to.add(this_ptr);
156 public void set_htlc_basepoint(AcceptChannel this_ptr, byte[] val) {
157 bindings.AcceptChannel_set_htlc_basepoint(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
158 this.ptrs_to.add(this_ptr);
161 public byte[] get_first_per_commitment_point(AcceptChannel this_ptr) {
162 byte[] ret = bindings.AcceptChannel_get_first_per_commitment_point(this_ptr == null ? 0 : this_ptr.ptr & ~1);
163 this.ptrs_to.add(this_ptr);
167 public void set_first_per_commitment_point(AcceptChannel this_ptr, byte[] val) {
168 bindings.AcceptChannel_set_first_per_commitment_point(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
169 this.ptrs_to.add(this_ptr);
172 // Skipped AcceptChannel_write
173 public AcceptChannel(byte[] ser) {
174 super(bindings.AcceptChannel_read(ser));