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 byte[] get_temporary_channel_id() {
18 byte[] ret = bindings.AcceptChannel_get_temporary_channel_id(this.ptr);
22 public void set_temporary_channel_id(byte[] val) {
23 bindings.AcceptChannel_set_temporary_channel_id(this.ptr, val);
26 public long get_dust_limit_satoshis() {
27 long ret = bindings.AcceptChannel_get_dust_limit_satoshis(this.ptr);
31 public void set_dust_limit_satoshis(long val) {
32 bindings.AcceptChannel_set_dust_limit_satoshis(this.ptr, val);
35 public long get_max_htlc_value_in_flight_msat() {
36 long ret = bindings.AcceptChannel_get_max_htlc_value_in_flight_msat(this.ptr);
40 public void set_max_htlc_value_in_flight_msat(long val) {
41 bindings.AcceptChannel_set_max_htlc_value_in_flight_msat(this.ptr, val);
44 public long get_channel_reserve_satoshis() {
45 long ret = bindings.AcceptChannel_get_channel_reserve_satoshis(this.ptr);
49 public void set_channel_reserve_satoshis(long val) {
50 bindings.AcceptChannel_set_channel_reserve_satoshis(this.ptr, val);
53 public long get_htlc_minimum_msat() {
54 long ret = bindings.AcceptChannel_get_htlc_minimum_msat(this.ptr);
58 public void set_htlc_minimum_msat(long val) {
59 bindings.AcceptChannel_set_htlc_minimum_msat(this.ptr, val);
62 public int get_minimum_depth() {
63 int ret = bindings.AcceptChannel_get_minimum_depth(this.ptr);
67 public void set_minimum_depth(int val) {
68 bindings.AcceptChannel_set_minimum_depth(this.ptr, val);
71 public short get_to_self_delay() {
72 short ret = bindings.AcceptChannel_get_to_self_delay(this.ptr);
76 public void set_to_self_delay(short val) {
77 bindings.AcceptChannel_set_to_self_delay(this.ptr, val);
80 public short get_max_accepted_htlcs() {
81 short ret = bindings.AcceptChannel_get_max_accepted_htlcs(this.ptr);
85 public void set_max_accepted_htlcs(short val) {
86 bindings.AcceptChannel_set_max_accepted_htlcs(this.ptr, val);
89 public byte[] get_funding_pubkey() {
90 byte[] ret = bindings.AcceptChannel_get_funding_pubkey(this.ptr);
94 public void set_funding_pubkey(byte[] val) {
95 bindings.AcceptChannel_set_funding_pubkey(this.ptr, val);
98 public byte[] get_revocation_basepoint() {
99 byte[] ret = bindings.AcceptChannel_get_revocation_basepoint(this.ptr);
103 public void set_revocation_basepoint(byte[] val) {
104 bindings.AcceptChannel_set_revocation_basepoint(this.ptr, val);
107 public byte[] get_payment_point() {
108 byte[] ret = bindings.AcceptChannel_get_payment_point(this.ptr);
112 public void set_payment_point(byte[] val) {
113 bindings.AcceptChannel_set_payment_point(this.ptr, val);
116 public byte[] get_delayed_payment_basepoint() {
117 byte[] ret = bindings.AcceptChannel_get_delayed_payment_basepoint(this.ptr);
121 public void set_delayed_payment_basepoint(byte[] val) {
122 bindings.AcceptChannel_set_delayed_payment_basepoint(this.ptr, val);
125 public byte[] get_htlc_basepoint() {
126 byte[] ret = bindings.AcceptChannel_get_htlc_basepoint(this.ptr);
130 public void set_htlc_basepoint(byte[] val) {
131 bindings.AcceptChannel_set_htlc_basepoint(this.ptr, val);
134 public byte[] get_first_per_commitment_point() {
135 byte[] ret = bindings.AcceptChannel_get_first_per_commitment_point(this.ptr);
139 public void set_first_per_commitment_point(byte[] val) {
140 bindings.AcceptChannel_set_first_per_commitment_point(this.ptr, val);
143 public AcceptChannel clone() {
144 long ret = bindings.AcceptChannel_clone(this.ptr);
145 AcceptChannel ret_hu_conv = new AcceptChannel(null, ret);
146 ret_hu_conv.ptrs_to.add(this);
150 public byte[] write() {
151 byte[] ret = bindings.AcceptChannel_write(this.ptr);
155 public static Result_AcceptChannelDecodeErrorZ constructor_read(byte[] ser) {
156 long ret = bindings.AcceptChannel_read(ser);
157 Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);