[TS] Update auto-generated TypeScript Bindings
[ldk-java] / ts / structs / TwoTuple_BlockHashChannelMonitorZ.mts
index 38ef0833ae4a6a40667d151296efda7c93001926..d6c0bffa1a8985fabb7845bbc34cc90bc3294db2 100644 (file)
@@ -279,20 +279,29 @@ import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScor
 
 import CommonBase from './CommonBase.mjs';
 import * as bindings from '../bindings.mjs'
-import * as InternalUtils from '../InternalUtils.mjs'
 
 
+/**
+ * A Tuple
+ */
 export class TwoTuple_BlockHashChannelMonitorZ extends CommonBase {
        /* @internal */
        public constructor(_dummy: object, ptr: number) {
                super(ptr, bindings.C2Tuple_BlockHashChannelMonitorZ_free);
        }
 
+       /**
+        * 
+        */
        public get_a(): Uint8Array {
-               const ret: Uint8Array = bindings.C2Tuple_BlockHashChannelMonitorZ_get_a(this.ptr);
-               return ret;
+               const ret: number = bindings.C2Tuple_BlockHashChannelMonitorZ_get_a(this.ptr);
+               const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
+               return ret_conv;
        }
 
+       /**
+        * 
+        */
        public get_b(): ChannelMonitor {
                const ret: number = bindings.C2Tuple_BlockHashChannelMonitorZ_get_b(this.ptr);
                const ret_hu_conv: ChannelMonitor = new ChannelMonitor(null, ret);
@@ -305,6 +314,10 @@ export class TwoTuple_BlockHashChannelMonitorZ extends CommonBase {
                return ret;
        }
 
+       /**
+        * Creates a new tuple which has the same data as `orig`
+        * but with all dynamically-allocated buffers duplicated in new buffers.
+        */
        public clone(): TwoTuple_BlockHashChannelMonitorZ {
                const ret: number = bindings.C2Tuple_BlockHashChannelMonitorZ_clone(this.ptr);
                const ret_hu_conv: TwoTuple_BlockHashChannelMonitorZ = new TwoTuple_BlockHashChannelMonitorZ(null, ret);
@@ -312,8 +325,11 @@ export class TwoTuple_BlockHashChannelMonitorZ extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Creates a new C2Tuple_BlockHashChannelMonitorZ from the contained elements.
+        */
        public static constructor_new(a: Uint8Array, b: ChannelMonitor): TwoTuple_BlockHashChannelMonitorZ {
-               const ret: number = bindings.C2Tuple_BlockHashChannelMonitorZ_new(InternalUtils.check_arr_len(a, 32), b == null ? 0 : CommonBase.get_ptr_of(b) & ~1);
+               const ret: number = bindings.C2Tuple_BlockHashChannelMonitorZ_new(bindings.encodeUint8Array(bindings.check_arr_len(a, 32)), b == null ? 0 : CommonBase.get_ptr_of(b) & ~1);
                const ret_hu_conv: TwoTuple_BlockHashChannelMonitorZ = new TwoTuple_BlockHashChannelMonitorZ(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;