Make genbindings.sh only build one of java/wasm, test wasm in CI
[ldk-java] / ts / structs / ReadOnlyNetworkGraph.ts
index 54cb431a3ca1126e4bd90eeee466bee445ff15a5..b0a1e25efb38372f64733e481df42246ac1daad3 100644 (file)
@@ -18,4 +18,11 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.ReadOnlyNetworkGraph_free(this.ptr);
                     }
                 }
+       public Option_CVec_NetAddressZZ get_addresses(Uint8Array pubkey) {
+               number ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, InternalUtils.check_arr_len(pubkey, 33));
+               Option_CVec_NetAddressZZ ret_hu_conv = Option_CVec_NetAddressZZ.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
 }