]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/ChannelHandshakeLimits.ts
Bindings updates for latest upstream, check in .so
[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 ChannelHandshakeLimits clone() {
22                 number ret = bindings.ChannelHandshakeLimits_clone(this.ptr);
23                 const ret_hu_conv: ChannelHandshakeLimits = new ChannelHandshakeLimits(null, ret);
24                 ret_hu_conv.ptrs_to.add(this);
25                 return ret_hu_conv;
26         }
27
28         public number get_min_funding_satoshis() {
29                 number ret = bindings.ChannelHandshakeLimits_get_min_funding_satoshis(this.ptr);
30                 return ret;
31         }
32
33         public void set_min_funding_satoshis(number val) {
34                 bindings.ChannelHandshakeLimits_set_min_funding_satoshis(this.ptr, val);
35         }
36
37         public number get_max_htlc_minimum_msat() {
38                 number ret = bindings.ChannelHandshakeLimits_get_max_htlc_minimum_msat(this.ptr);
39                 return ret;
40         }
41
42         public void set_max_htlc_minimum_msat(number val) {
43                 bindings.ChannelHandshakeLimits_set_max_htlc_minimum_msat(this.ptr, val);
44         }
45
46         public number get_min_max_htlc_value_in_flight_msat() {
47                 number ret = bindings.ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this.ptr);
48                 return ret;
49         }
50
51         public void set_min_max_htlc_value_in_flight_msat(number val) {
52                 bindings.ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this.ptr, val);
53         }
54
55         public number get_max_channel_reserve_satoshis() {
56                 number ret = bindings.ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this.ptr);
57                 return ret;
58         }
59
60         public void set_max_channel_reserve_satoshis(number val) {
61                 bindings.ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this.ptr, val);
62         }
63
64         public number get_min_max_accepted_htlcs() {
65                 number ret = bindings.ChannelHandshakeLimits_get_min_max_accepted_htlcs(this.ptr);
66                 return ret;
67         }
68
69         public void set_min_max_accepted_htlcs(number val) {
70                 bindings.ChannelHandshakeLimits_set_min_max_accepted_htlcs(this.ptr, val);
71         }
72
73         public number get_min_dust_limit_satoshis() {
74                 number ret = bindings.ChannelHandshakeLimits_get_min_dust_limit_satoshis(this.ptr);
75                 return ret;
76         }
77
78         public void set_min_dust_limit_satoshis(number val) {
79                 bindings.ChannelHandshakeLimits_set_min_dust_limit_satoshis(this.ptr, val);
80         }
81
82         public number get_max_dust_limit_satoshis() {
83                 number ret = bindings.ChannelHandshakeLimits_get_max_dust_limit_satoshis(this.ptr);
84                 return ret;
85         }
86
87         public void set_max_dust_limit_satoshis(number val) {
88                 bindings.ChannelHandshakeLimits_set_max_dust_limit_satoshis(this.ptr, val);
89         }
90
91         public number get_max_minimum_depth() {
92                 number ret = bindings.ChannelHandshakeLimits_get_max_minimum_depth(this.ptr);
93                 return ret;
94         }
95
96         public void set_max_minimum_depth(number val) {
97                 bindings.ChannelHandshakeLimits_set_max_minimum_depth(this.ptr, val);
98         }
99
100         public boolean get_force_announced_channel_preference() {
101                 boolean ret = bindings.ChannelHandshakeLimits_get_force_announced_channel_preference(this.ptr);
102                 return ret;
103         }
104
105         public void set_force_announced_channel_preference(boolean val) {
106                 bindings.ChannelHandshakeLimits_set_force_announced_channel_preference(this.ptr, val);
107         }
108
109         public number get_their_to_self_delay() {
110                 number ret = bindings.ChannelHandshakeLimits_get_their_to_self_delay(this.ptr);
111                 return ret;
112         }
113
114         public void set_their_to_self_delay(number val) {
115                 bindings.ChannelHandshakeLimits_set_their_to_self_delay(this.ptr, val);
116         }
117
118         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) {
119                 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);
120                 const ret_hu_conv: ChannelHandshakeLimits = new ChannelHandshakeLimits(null, ret);
121                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
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 }