1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
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 {
14 if (ptr != 0) { bindings.AcceptChannel_free(ptr); }
17 public AcceptChannel clone() {
18 long ret = bindings.AcceptChannel_clone(this.ptr);
19 AcceptChannel ret_hu_conv = new AcceptChannel(null, ret);
23 public byte[] get_temporary_channel_id() {
24 byte[] ret = bindings.AcceptChannel_get_temporary_channel_id(this.ptr);
28 public void set_temporary_channel_id(byte[] val) {
29 bindings.AcceptChannel_set_temporary_channel_id(this.ptr, val);
32 public long get_dust_limit_satoshis() {
33 long ret = bindings.AcceptChannel_get_dust_limit_satoshis(this.ptr);
37 public void set_dust_limit_satoshis(long val) {
38 bindings.AcceptChannel_set_dust_limit_satoshis(this.ptr, val);
41 public long get_max_htlc_value_in_flight_msat() {
42 long ret = bindings.AcceptChannel_get_max_htlc_value_in_flight_msat(this.ptr);
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);
50 public long get_channel_reserve_satoshis() {
51 long ret = bindings.AcceptChannel_get_channel_reserve_satoshis(this.ptr);
55 public void set_channel_reserve_satoshis(long val) {
56 bindings.AcceptChannel_set_channel_reserve_satoshis(this.ptr, val);
59 public long get_htlc_minimum_msat() {
60 long ret = bindings.AcceptChannel_get_htlc_minimum_msat(this.ptr);
64 public void set_htlc_minimum_msat(long val) {
65 bindings.AcceptChannel_set_htlc_minimum_msat(this.ptr, val);
68 public int get_minimum_depth() {
69 int ret = bindings.AcceptChannel_get_minimum_depth(this.ptr);
73 public void set_minimum_depth(int val) {
74 bindings.AcceptChannel_set_minimum_depth(this.ptr, val);
77 public short get_to_self_delay() {
78 short ret = bindings.AcceptChannel_get_to_self_delay(this.ptr);
82 public void set_to_self_delay(short val) {
83 bindings.AcceptChannel_set_to_self_delay(this.ptr, val);
86 public short get_max_accepted_htlcs() {
87 short ret = bindings.AcceptChannel_get_max_accepted_htlcs(this.ptr);
91 public void set_max_accepted_htlcs(short val) {
92 bindings.AcceptChannel_set_max_accepted_htlcs(this.ptr, val);
95 public byte[] get_funding_pubkey() {
96 byte[] ret = bindings.AcceptChannel_get_funding_pubkey(this.ptr);
100 public void set_funding_pubkey(byte[] val) {
101 bindings.AcceptChannel_set_funding_pubkey(this.ptr, val);
104 public byte[] get_revocation_basepoint() {
105 byte[] ret = bindings.AcceptChannel_get_revocation_basepoint(this.ptr);
109 public void set_revocation_basepoint(byte[] val) {
110 bindings.AcceptChannel_set_revocation_basepoint(this.ptr, val);
113 public byte[] get_payment_point() {
114 byte[] ret = bindings.AcceptChannel_get_payment_point(this.ptr);
118 public void set_payment_point(byte[] val) {
119 bindings.AcceptChannel_set_payment_point(this.ptr, val);
122 public byte[] get_delayed_payment_basepoint() {
123 byte[] ret = bindings.AcceptChannel_get_delayed_payment_basepoint(this.ptr);
127 public void set_delayed_payment_basepoint(byte[] val) {
128 bindings.AcceptChannel_set_delayed_payment_basepoint(this.ptr, val);
131 public byte[] get_htlc_basepoint() {
132 byte[] ret = bindings.AcceptChannel_get_htlc_basepoint(this.ptr);
136 public void set_htlc_basepoint(byte[] val) {
137 bindings.AcceptChannel_set_htlc_basepoint(this.ptr, val);
140 public byte[] get_first_per_commitment_point() {
141 byte[] ret = bindings.AcceptChannel_get_first_per_commitment_point(this.ptr);
145 public void set_first_per_commitment_point(byte[] val) {
146 bindings.AcceptChannel_set_first_per_commitment_point(this.ptr, val);
149 public byte[] write() {
150 byte[] ret = bindings.AcceptChannel_write(this.ptr);
154 public static AcceptChannel constructor_read(byte[] ser) {
155 long ret = bindings.AcceptChannel_read(ser);
156 AcceptChannel ret_hu_conv = new AcceptChannel(null, ret);