]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/ChannelHandshakeLimits.ts
Merge pull request #14 from TheBlueMatt/2021-03-fix-enums
[ldk-java] / ts / structs / ChannelHandshakeLimits.ts
1
2             
3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
5
6
7
8             export default class ChannelHandshakeLimits extends CommonBase {
9                 constructor(_dummy: object, ptr: number) {
10                     super(ptr);
11                 }
12
13                 
14                 protected finalize() {
15                     super.finalize();
16
17                     if (this.ptr != 0) {
18                         bindings.ChannelHandshakeLimits_free(this.ptr);
19                     }
20                 }
21         public number get_min_funding_satoshis() {
22                 number ret = bindings.ChannelHandshakeLimits_get_min_funding_satoshis(this.ptr);
23                 return ret;
24         }
25
26         public void set_min_funding_satoshis(number val) {
27                 bindings.ChannelHandshakeLimits_set_min_funding_satoshis(this.ptr, val);
28         }
29
30         public number get_max_htlc_minimum_msat() {
31                 number ret = bindings.ChannelHandshakeLimits_get_max_htlc_minimum_msat(this.ptr);
32                 return ret;
33         }
34
35         public void set_max_htlc_minimum_msat(number val) {
36                 bindings.ChannelHandshakeLimits_set_max_htlc_minimum_msat(this.ptr, val);
37         }
38
39         public number get_min_max_htlc_value_in_flight_msat() {
40                 number ret = bindings.ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this.ptr);
41                 return ret;
42         }
43
44         public void set_min_max_htlc_value_in_flight_msat(number val) {
45                 bindings.ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this.ptr, val);
46         }
47
48         public number get_max_channel_reserve_satoshis() {
49                 number ret = bindings.ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this.ptr);
50                 return ret;
51         }
52
53         public void set_max_channel_reserve_satoshis(number val) {
54                 bindings.ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this.ptr, val);
55         }
56
57         public number get_min_max_accepted_htlcs() {
58                 number ret = bindings.ChannelHandshakeLimits_get_min_max_accepted_htlcs(this.ptr);
59                 return ret;
60         }
61
62         public void set_min_max_accepted_htlcs(number val) {
63                 bindings.ChannelHandshakeLimits_set_min_max_accepted_htlcs(this.ptr, val);
64         }
65
66         public number get_min_dust_limit_satoshis() {
67                 number ret = bindings.ChannelHandshakeLimits_get_min_dust_limit_satoshis(this.ptr);
68                 return ret;
69         }
70
71         public void set_min_dust_limit_satoshis(number val) {
72                 bindings.ChannelHandshakeLimits_set_min_dust_limit_satoshis(this.ptr, val);
73         }
74
75         public number get_max_dust_limit_satoshis() {
76                 number ret = bindings.ChannelHandshakeLimits_get_max_dust_limit_satoshis(this.ptr);
77                 return ret;
78         }
79
80         public void set_max_dust_limit_satoshis(number val) {
81                 bindings.ChannelHandshakeLimits_set_max_dust_limit_satoshis(this.ptr, val);
82         }
83
84         public number get_max_minimum_depth() {
85                 number ret = bindings.ChannelHandshakeLimits_get_max_minimum_depth(this.ptr);
86                 return ret;
87         }
88
89         public void set_max_minimum_depth(number val) {
90                 bindings.ChannelHandshakeLimits_set_max_minimum_depth(this.ptr, val);
91         }
92
93         public boolean get_force_announced_channel_preference() {
94                 boolean ret = bindings.ChannelHandshakeLimits_get_force_announced_channel_preference(this.ptr);
95                 return ret;
96         }
97
98         public void set_force_announced_channel_preference(boolean val) {
99                 bindings.ChannelHandshakeLimits_set_force_announced_channel_preference(this.ptr, val);
100         }
101
102         public number get_their_to_self_delay() {
103                 number ret = bindings.ChannelHandshakeLimits_get_their_to_self_delay(this.ptr);
104                 return ret;
105         }
106
107         public void set_their_to_self_delay(number val) {
108                 bindings.ChannelHandshakeLimits_set_their_to_self_delay(this.ptr, val);
109         }
110
111         public static ChannelHandshakeLimits constructor_new(number min_funding_satoshis_arg, number max_htlc_minimum_msat_arg, number min_max_htlc_value_in_flight_msat_arg, number max_channel_reserve_satoshis_arg, number min_max_accepted_htlcs_arg, number min_dust_limit_satoshis_arg, number max_dust_limit_satoshis_arg, number max_minimum_depth_arg, boolean force_announced_channel_preference_arg, number their_to_self_delay_arg) {
112                 number ret = bindings.ChannelHandshakeLimits_new(min_funding_satoshis_arg, max_htlc_minimum_msat_arg, min_max_htlc_value_in_flight_msat_arg, max_channel_reserve_satoshis_arg, min_max_accepted_htlcs_arg, min_dust_limit_satoshis_arg, max_dust_limit_satoshis_arg, max_minimum_depth_arg, force_announced_channel_preference_arg, their_to_self_delay_arg);
113                 const ret_hu_conv: ChannelHandshakeLimits = new ChannelHandshakeLimits(null, ret);
114                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
115                 return ret_hu_conv;
116         }
117
118         public ChannelHandshakeLimits clone() {
119                 number ret = bindings.ChannelHandshakeLimits_clone(this.ptr);
120                 const ret_hu_conv: ChannelHandshakeLimits = new ChannelHandshakeLimits(null, ret);
121                 ret_hu_conv.ptrs_to.add(this);
122                 return ret_hu_conv;
123         }
124
125         public static ChannelHandshakeLimits constructor_default() {
126                 number ret = bindings.ChannelHandshakeLimits_default();
127                 const ret_hu_conv: ChannelHandshakeLimits = new ChannelHandshakeLimits(null, ret);
128                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
129                 return ret_hu_conv;
130         }
131
132 }