3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class UnsignedChannelUpdate extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.UnsignedChannelUpdate_free(this.ptr);
21 public Uint8Array get_chain_hash() {
22 Uint8Array ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr);
26 public void set_chain_hash(Uint8Array val) {
27 bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, val);
30 public number get_short_channel_id() {
31 number ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this.ptr);
35 public void set_short_channel_id(number val) {
36 bindings.UnsignedChannelUpdate_set_short_channel_id(this.ptr, val);
39 public number get_timestamp() {
40 number ret = bindings.UnsignedChannelUpdate_get_timestamp(this.ptr);
44 public void set_timestamp(number val) {
45 bindings.UnsignedChannelUpdate_set_timestamp(this.ptr, val);
48 public number get_flags() {
49 number ret = bindings.UnsignedChannelUpdate_get_flags(this.ptr);
53 public void set_flags(number val) {
54 bindings.UnsignedChannelUpdate_set_flags(this.ptr, val);
57 public number get_cltv_expiry_delta() {
58 number ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this.ptr);
62 public void set_cltv_expiry_delta(number val) {
63 bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this.ptr, val);
66 public number get_htlc_minimum_msat() {
67 number ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this.ptr);
71 public void set_htlc_minimum_msat(number val) {
72 bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this.ptr, val);
75 public number get_fee_base_msat() {
76 number ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this.ptr);
80 public void set_fee_base_msat(number val) {
81 bindings.UnsignedChannelUpdate_set_fee_base_msat(this.ptr, val);
84 public number get_fee_proportional_millionths() {
85 number ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this.ptr);
89 public void set_fee_proportional_millionths(number val) {
90 bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val);
93 public UnsignedChannelUpdate clone() {
94 number ret = bindings.UnsignedChannelUpdate_clone(this.ptr);
95 const ret_hu_conv: UnsignedChannelUpdate = new UnsignedChannelUpdate(null, ret);
96 ret_hu_conv.ptrs_to.add(this);
100 public Uint8Array write() {
101 Uint8Array ret = bindings.UnsignedChannelUpdate_write(this.ptr);
105 public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_read(Uint8Array ser) {
106 number ret = bindings.UnsignedChannelUpdate_read(ser);
107 Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);