3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class CounterpartyForwardingInfo extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.CounterpartyForwardingInfo_free(this.ptr);
21 public number get_fee_base_msat() {
22 number ret = bindings.CounterpartyForwardingInfo_get_fee_base_msat(this.ptr);
26 public void set_fee_base_msat(number val) {
27 bindings.CounterpartyForwardingInfo_set_fee_base_msat(this.ptr, val);
30 public number get_fee_proportional_millionths() {
31 number ret = bindings.CounterpartyForwardingInfo_get_fee_proportional_millionths(this.ptr);
35 public void set_fee_proportional_millionths(number val) {
36 bindings.CounterpartyForwardingInfo_set_fee_proportional_millionths(this.ptr, val);
39 public number get_cltv_expiry_delta() {
40 number ret = bindings.CounterpartyForwardingInfo_get_cltv_expiry_delta(this.ptr);
44 public void set_cltv_expiry_delta(number val) {
45 bindings.CounterpartyForwardingInfo_set_cltv_expiry_delta(this.ptr, val);
48 public static CounterpartyForwardingInfo constructor_new(number fee_base_msat_arg, number fee_proportional_millionths_arg, number cltv_expiry_delta_arg) {
49 number ret = bindings.CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
50 const ret_hu_conv: CounterpartyForwardingInfo = new CounterpartyForwardingInfo(null, ret);
51 ret_hu_conv.ptrs_to.add(ret_hu_conv);
55 public CounterpartyForwardingInfo clone() {
56 number ret = bindings.CounterpartyForwardingInfo_clone(this.ptr);
57 const ret_hu_conv: CounterpartyForwardingInfo = new CounterpartyForwardingInfo(null, ret);
58 ret_hu_conv.ptrs_to.add(this);