3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class DirectionalChannelInfo extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.DirectionalChannelInfo_free(this.ptr);
21 public number get_last_update() {
22 number ret = bindings.DirectionalChannelInfo_get_last_update(this.ptr);
26 public void set_last_update(number val) {
27 bindings.DirectionalChannelInfo_set_last_update(this.ptr, val);
30 public boolean get_enabled() {
31 boolean ret = bindings.DirectionalChannelInfo_get_enabled(this.ptr);
35 public void set_enabled(boolean val) {
36 bindings.DirectionalChannelInfo_set_enabled(this.ptr, val);
39 public number get_cltv_expiry_delta() {
40 number ret = bindings.DirectionalChannelInfo_get_cltv_expiry_delta(this.ptr);
44 public void set_cltv_expiry_delta(number val) {
45 bindings.DirectionalChannelInfo_set_cltv_expiry_delta(this.ptr, val);
48 public number get_htlc_minimum_msat() {
49 number ret = bindings.DirectionalChannelInfo_get_htlc_minimum_msat(this.ptr);
53 public void set_htlc_minimum_msat(number val) {
54 bindings.DirectionalChannelInfo_set_htlc_minimum_msat(this.ptr, val);
57 public RoutingFees get_fees() {
58 number ret = bindings.DirectionalChannelInfo_get_fees(this.ptr);
59 const ret_hu_conv: RoutingFees = new RoutingFees(null, ret);
63 public void set_fees(RoutingFees val) {
64 bindings.DirectionalChannelInfo_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
65 this.ptrs_to.add(val);
68 public ChannelUpdate get_last_update_message() {
69 number ret = bindings.DirectionalChannelInfo_get_last_update_message(this.ptr);
70 const ret_hu_conv: ChannelUpdate = new ChannelUpdate(null, ret);
74 public void set_last_update_message(ChannelUpdate val) {
75 bindings.DirectionalChannelInfo_set_last_update_message(this.ptr, val == null ? 0 : val.ptr & ~1);
76 this.ptrs_to.add(val);
79 public Uint8Array write() {
80 Uint8Array ret = bindings.DirectionalChannelInfo_write(this.ptr);
84 public static DirectionalChannelInfo constructor_read(Uint8Array ser) {
85 number ret = bindings.DirectionalChannelInfo_read(ser);
86 const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret);