Allow users to specify a `UserConfig` when de-ser'ing a ChanManager
[ldk-java] / ts / structs / ChannelFeatures.ts
index 1b6dd141a278d76e001a56a62116ba64db01843b..05694319ab53a5292c77c7a92b766a5efce599d2 100644 (file)
@@ -18,6 +18,12 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.ChannelFeatures_free(this.ptr);
                     }
                 }
+       public boolean eq(ChannelFeatures b) {
+               boolean ret = bindings.ChannelFeatures_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
        public ChannelFeatures clone() {
                number ret = bindings.ChannelFeatures_clone(this.ptr);
                const ret_hu_conv: ChannelFeatures = new ChannelFeatures(null, ret);
@@ -39,6 +45,11 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret_hu_conv;
        }
 
+       public boolean requires_unknown_bits() {
+               boolean ret = bindings.ChannelFeatures_requires_unknown_bits(this.ptr);
+               return ret;
+       }
+
        public Uint8Array write() {
                Uint8Array ret = bindings.ChannelFeatures_write(this.ptr);
                return ret;