Merge pull request #45 from TheBlueMatt/main
[ldk-java] / ts / structs / NodeFeatures.ts
index 13652f14d720313d86d2b5443342e64ec9770bf6..d65e11e3f445eac9e5a34117eb60a940f1421d60 100644 (file)
@@ -18,6 +18,12 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.NodeFeatures_free(this.ptr);
                     }
                 }
+       public boolean eq(NodeFeatures b) {
+               boolean ret = bindings.NodeFeatures_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
        public NodeFeatures clone() {
                number ret = bindings.NodeFeatures_clone(this.ptr);
                const ret_hu_conv: NodeFeatures = new NodeFeatures(null, ret);
@@ -39,6 +45,16 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret_hu_conv;
        }
 
+       public boolean requires_unknown_bits() {
+               boolean ret = bindings.NodeFeatures_requires_unknown_bits(this.ptr);
+               return ret;
+       }
+
+       public boolean supports_payment_secret() {
+               boolean ret = bindings.NodeFeatures_supports_payment_secret(this.ptr);
+               return ret;
+       }
+
        public Uint8Array write() {
                Uint8Array ret = bindings.NodeFeatures_write(this.ptr);
                return ret;