Update auto-generated bindings
[ldk-java] / ts / structs / ChannelHandshakeConfig.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 ChannelHandshakeConfig 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.ChannelHandshakeConfig_free(this.ptr);
19                     }
20                 }
21         public number get_minimum_depth() {
22                 number ret = bindings.ChannelHandshakeConfig_get_minimum_depth(this.ptr);
23                 return ret;
24         }
25
26         public void set_minimum_depth(number val) {
27                 bindings.ChannelHandshakeConfig_set_minimum_depth(this.ptr, val);
28         }
29
30         public number get_our_to_self_delay() {
31                 number ret = bindings.ChannelHandshakeConfig_get_our_to_self_delay(this.ptr);
32                 return ret;
33         }
34
35         public void set_our_to_self_delay(number val) {
36                 bindings.ChannelHandshakeConfig_set_our_to_self_delay(this.ptr, val);
37         }
38
39         public number get_our_htlc_minimum_msat() {
40                 number ret = bindings.ChannelHandshakeConfig_get_our_htlc_minimum_msat(this.ptr);
41                 return ret;
42         }
43
44         public void set_our_htlc_minimum_msat(number val) {
45                 bindings.ChannelHandshakeConfig_set_our_htlc_minimum_msat(this.ptr, val);
46         }
47
48         public static ChannelHandshakeConfig constructor_new(number minimum_depth_arg, number our_to_self_delay_arg, number our_htlc_minimum_msat_arg) {
49                 number ret = bindings.ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg);
50                 const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret);
51                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
52                 return ret_hu_conv;
53         }
54
55         public number clone_ptr() {
56                 number ret = bindings.ChannelHandshakeConfig_clone_ptr(this.ptr);
57                 return ret;
58         }
59
60         public ChannelHandshakeConfig clone() {
61                 number ret = bindings.ChannelHandshakeConfig_clone(this.ptr);
62                 const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret);
63                 ret_hu_conv.ptrs_to.add(this);
64                 return ret_hu_conv;
65         }
66
67         public static ChannelHandshakeConfig constructor_default() {
68                 number ret = bindings.ChannelHandshakeConfig_default();
69                 const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret);
70                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
71                 return ret_hu_conv;
72         }
73
74 }