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 UnsignedChannelUpdate clone() {
22 number ret = bindings.UnsignedChannelUpdate_clone(this.ptr);
23 const ret_hu_conv: UnsignedChannelUpdate = new UnsignedChannelUpdate(null, ret);
24 ret_hu_conv.ptrs_to.add(this);
28 public Uint8Array get_chain_hash() {
29 Uint8Array ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr);
33 public void set_chain_hash(Uint8Array val) {
34 bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, val);
37 public number get_short_channel_id() {
38 number ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this.ptr);
42 public void set_short_channel_id(number val) {
43 bindings.UnsignedChannelUpdate_set_short_channel_id(this.ptr, val);
46 public number get_timestamp() {
47 number ret = bindings.UnsignedChannelUpdate_get_timestamp(this.ptr);
51 public void set_timestamp(number val) {
52 bindings.UnsignedChannelUpdate_set_timestamp(this.ptr, val);
55 public number get_flags() {
56 number ret = bindings.UnsignedChannelUpdate_get_flags(this.ptr);
60 public void set_flags(number val) {
61 bindings.UnsignedChannelUpdate_set_flags(this.ptr, val);
64 public number get_cltv_expiry_delta() {
65 number ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this.ptr);
69 public void set_cltv_expiry_delta(number val) {
70 bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this.ptr, val);
73 public number get_htlc_minimum_msat() {
74 number ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this.ptr);
78 public void set_htlc_minimum_msat(number val) {
79 bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this.ptr, val);
82 public number get_fee_base_msat() {
83 number ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this.ptr);
87 public void set_fee_base_msat(number val) {
88 bindings.UnsignedChannelUpdate_set_fee_base_msat(this.ptr, val);
91 public number get_fee_proportional_millionths() {
92 number ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this.ptr);
96 public void set_fee_proportional_millionths(number val) {
97 bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val);
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);