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 number get_minimum_depth() {
22 number ret = bindings.ChannelHandshakeConfig_get_minimum_depth(this.ptr);
26 public void set_minimum_depth(number val) {
27 bindings.ChannelHandshakeConfig_set_minimum_depth(this.ptr, val);
30 public number get_our_to_self_delay() {
31 number ret = bindings.ChannelHandshakeConfig_get_our_to_self_delay(this.ptr);
35 public void set_our_to_self_delay(number val) {
36 bindings.ChannelHandshakeConfig_set_our_to_self_delay(this.ptr, val);
39 public number get_our_htlc_minimum_msat() {
40 number ret = bindings.ChannelHandshakeConfig_get_our_htlc_minimum_msat(this.ptr);
44 public void set_our_htlc_minimum_msat(number val) {
45 bindings.ChannelHandshakeConfig_set_our_htlc_minimum_msat(this.ptr, val);
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);
55 public ChannelHandshakeConfig clone() {
56 number ret = bindings.ChannelHandshakeConfig_clone(this.ptr);
57 const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret);
58 ret_hu_conv.ptrs_to.add(this);
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);