]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/UnsignedChannelUpdate.ts
Update CI references to LDK 0.0.125
[ldk-java] / ts / structs / UnsignedChannelUpdate.ts
1
2             
3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
5
6
7
8             export default class UnsignedChannelUpdate extends CommonBase {
9                 constructor(_dummy: object, ptr: number) {
10                     super(ptr);
11                 }
12
13                 
14                 protected finalize() {
15                     super.finalize();
16
17                     if (this.ptr != 0) {
18                         bindings.UnsignedChannelUpdate_free(this.ptr);
19                     }
20                 }
21         public Uint8Array get_chain_hash() {
22                 Uint8Array ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr);
23                 return ret;
24         }
25
26         public void set_chain_hash(Uint8Array val) {
27                 bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, val);
28         }
29
30         public number get_short_channel_id() {
31                 number ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this.ptr);
32                 return ret;
33         }
34
35         public void set_short_channel_id(number val) {
36                 bindings.UnsignedChannelUpdate_set_short_channel_id(this.ptr, val);
37         }
38
39         public number get_timestamp() {
40                 number ret = bindings.UnsignedChannelUpdate_get_timestamp(this.ptr);
41                 return ret;
42         }
43
44         public void set_timestamp(number val) {
45                 bindings.UnsignedChannelUpdate_set_timestamp(this.ptr, val);
46         }
47
48         public number get_flags() {
49                 number ret = bindings.UnsignedChannelUpdate_get_flags(this.ptr);
50                 return ret;
51         }
52
53         public void set_flags(number val) {
54                 bindings.UnsignedChannelUpdate_set_flags(this.ptr, val);
55         }
56
57         public number get_cltv_expiry_delta() {
58                 number ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this.ptr);
59                 return ret;
60         }
61
62         public void set_cltv_expiry_delta(number val) {
63                 bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this.ptr, val);
64         }
65
66         public number get_htlc_minimum_msat() {
67                 number ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this.ptr);
68                 return ret;
69         }
70
71         public void set_htlc_minimum_msat(number val) {
72                 bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this.ptr, val);
73         }
74
75         public number get_fee_base_msat() {
76                 number ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this.ptr);
77                 return ret;
78         }
79
80         public void set_fee_base_msat(number val) {
81                 bindings.UnsignedChannelUpdate_set_fee_base_msat(this.ptr, val);
82         }
83
84         public number get_fee_proportional_millionths() {
85                 number ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this.ptr);
86                 return ret;
87         }
88
89         public void set_fee_proportional_millionths(number val) {
90                 bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val);
91         }
92
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);
97                 return ret_hu_conv;
98         }
99
100         public Uint8Array write() {
101                 Uint8Array ret = bindings.UnsignedChannelUpdate_write(this.ptr);
102                 return ret;
103         }
104
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);
108                 return ret_hu_conv;
109         }
110
111 }