3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class ChannelHandshakeConfig extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.ChannelHandshakeConfig_free(this.ptr);
21 public ChannelHandshakeConfig clone() {
22 number ret = bindings.ChannelHandshakeConfig_clone(this.ptr);
23 const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret);
24 ret_hu_conv.ptrs_to.add(this);
28 public number get_minimum_depth() {
29 number ret = bindings.ChannelHandshakeConfig_get_minimum_depth(this.ptr);
33 public void set_minimum_depth(number val) {
34 bindings.ChannelHandshakeConfig_set_minimum_depth(this.ptr, val);
37 public number get_our_to_self_delay() {
38 number ret = bindings.ChannelHandshakeConfig_get_our_to_self_delay(this.ptr);
42 public void set_our_to_self_delay(number val) {
43 bindings.ChannelHandshakeConfig_set_our_to_self_delay(this.ptr, val);
46 public number get_our_htlc_minimum_msat() {
47 number ret = bindings.ChannelHandshakeConfig_get_our_htlc_minimum_msat(this.ptr);
51 public void set_our_htlc_minimum_msat(number val) {
52 bindings.ChannelHandshakeConfig_set_our_htlc_minimum_msat(this.ptr, val);
55 public static ChannelHandshakeConfig constructor_new(number minimum_depth_arg, number our_to_self_delay_arg, number our_htlc_minimum_msat_arg) {
56 number ret = bindings.ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg);
57 const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret);
58 ret_hu_conv.ptrs_to.add(ret_hu_conv);
62 public static ChannelHandshakeConfig constructor_default() {
63 number ret = bindings.ChannelHandshakeConfig_default();
64 const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret);
65 ret_hu_conv.ptrs_to.add(ret_hu_conv);