2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class UnsignedChannelUpdate extends CommonBase {
6 UnsignedChannelUpdate(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.UnsignedChannelUpdate_free(ptr); }
13 public UnsignedChannelUpdate clone() {
14 uint32_t ret = bindings.UnsignedChannelUpdate_clone(this.ptr);
15 UnsignedChannelUpdate ret_hu_conv = new UnsignedChannelUpdate(null, ret);
19 public byte[] get_chain_hash() {
20 byte[] ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr);
24 public void set_chain_hash(byte[] val) {
25 bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, val);
28 public long get_short_channel_id() {
29 long ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this.ptr);
33 public void set_short_channel_id(long val) {
34 bindings.UnsignedChannelUpdate_set_short_channel_id(this.ptr, val);
37 public int get_timestamp() {
38 int ret = bindings.UnsignedChannelUpdate_get_timestamp(this.ptr);
42 public void set_timestamp(int val) {
43 bindings.UnsignedChannelUpdate_set_timestamp(this.ptr, val);
46 public byte get_flags() {
47 byte ret = bindings.UnsignedChannelUpdate_get_flags(this.ptr);
51 public void set_flags(byte val) {
52 bindings.UnsignedChannelUpdate_set_flags(this.ptr, val);
55 public short get_cltv_expiry_delta() {
56 short ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this.ptr);
60 public void set_cltv_expiry_delta(short val) {
61 bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this.ptr, val);
64 public long get_htlc_minimum_msat() {
65 long ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this.ptr);
69 public void set_htlc_minimum_msat(long val) {
70 bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this.ptr, val);
73 public int get_fee_base_msat() {
74 int ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this.ptr);
78 public void set_fee_base_msat(int val) {
79 bindings.UnsignedChannelUpdate_set_fee_base_msat(this.ptr, val);
82 public int get_fee_proportional_millionths() {
83 int ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this.ptr);
87 public void set_fee_proportional_millionths(int val) {
88 bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val);
91 public byte[] write() {
92 byte[] ret = bindings.UnsignedChannelUpdate_write(this.ptr);
96 public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_read(byte[] ser) {
97 uint32_t ret = bindings.UnsignedChannelUpdate_read(ser);
98 Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);