Bindings updates
[ldk-java] / ts / structs / UpdateFailHTLC.ts
index 7b39c358fc2a715ccd86519b09e41b35776c5eee..c838d7c55e1567627f573c6659efd1544e631ae6 100644 (file)
@@ -1,47 +1,55 @@
 
+            
 import CommonBase from './CommonBase';
 import * as bindings from '../bindings' // TODO: figure out location
 
-public class UpdateFailHTLC extends CommonBase {
-       UpdateFailHTLC(Object _dummy, long ptr) { super(ptr); }
-       @Override @SuppressWarnings("deprecation")
-       protected void finalize() throws Throwable {
-               super.finalize();
-               if (ptr != 0) { bindings.UpdateFailHTLC_free(ptr); }
-       }
 
+
+            export default class UpdateFailHTLC extends CommonBase {
+                constructor(_dummy: object, ptr: number) {
+                    super(ptr);
+                }
+
+                
+                protected finalize() {
+                    super.finalize();
+
+                    if (this.ptr != 0) {
+                        bindings.UpdateFailHTLC_free(this.ptr);
+                    }
+                }
        public UpdateFailHTLC clone() {
-               uint32_t ret = bindings.UpdateFailHTLC_clone(this.ptr);
-               UpdateFailHTLC ret_hu_conv = new UpdateFailHTLC(null, ret);
+               number ret = bindings.UpdateFailHTLC_clone(this.ptr);
+               const ret_hu_conv: UpdateFailHTLC = new UpdateFailHTLC(null, ret);
                return ret_hu_conv;
        }
 
-       public byte[] get_channel_id() {
-               byte[] ret = bindings.UpdateFailHTLC_get_channel_id(this.ptr);
+       public Uint8Array get_channel_id() {
+               Uint8Array ret = bindings.UpdateFailHTLC_get_channel_id(this.ptr);
                return ret;
        }
 
-       public void set_channel_id(byte[] val) {
+       public void set_channel_id(Uint8Array val) {
                bindings.UpdateFailHTLC_set_channel_id(this.ptr, val);
        }
 
-       public long get_htlc_id() {
-               long ret = bindings.UpdateFailHTLC_get_htlc_id(this.ptr);
+       public number get_htlc_id() {
+               number ret = bindings.UpdateFailHTLC_get_htlc_id(this.ptr);
                return ret;
        }
 
-       public void set_htlc_id(long val) {
+       public void set_htlc_id(number val) {
                bindings.UpdateFailHTLC_set_htlc_id(this.ptr, val);
        }
 
-       public byte[] write() {
-               byte[] ret = bindings.UpdateFailHTLC_write(this.ptr);
+       public Uint8Array write() {
+               Uint8Array ret = bindings.UpdateFailHTLC_write(this.ptr);
                return ret;
        }
 
-       public static UpdateFailHTLC constructor_read(byte[] ser) {
-               uint32_t ret = bindings.UpdateFailHTLC_read(ser);
-               UpdateFailHTLC ret_hu_conv = new UpdateFailHTLC(null, ret);
+       public static UpdateFailHTLC constructor_read(Uint8Array ser) {
+               number ret = bindings.UpdateFailHTLC_read(ser);
+               const ret_hu_conv: UpdateFailHTLC = new UpdateFailHTLC(null, ret);
                return ret_hu_conv;
        }