Update tests to new Tuple mapping API
[ldk-java] / ts / structs / InitFeatures.ts
index a1dee177b6f29e323198b89d3717e89e5386b955..4f18b363874afc4c2456ca0956d20ce2a6f04c16 100644 (file)
@@ -18,6 +18,12 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.InitFeatures_free(this.ptr);
                     }
                 }
+       public boolean eq(InitFeatures b) {
+               boolean ret = bindings.InitFeatures_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
        public InitFeatures clone() {
                number ret = bindings.InitFeatures_clone(this.ptr);
                const ret_hu_conv: InitFeatures = new InitFeatures(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.InitFeatures_requires_unknown_bits(this.ptr);
+               return ret;
+       }
+
+       public boolean supports_payment_secret() {
+               boolean ret = bindings.InitFeatures_supports_payment_secret(this.ptr);
+               return ret;
+       }
+
        public Uint8Array write() {
                Uint8Array ret = bindings.InitFeatures_write(this.ptr);
                return ret;