X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FWatchedOutput.ts;h=02e85b2dea761c8d42119a11c01fac04b6b6f12d;hp=c0c0515a53b8ae9cea435f94eeb69b620857d25c;hb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;hpb=fb06c6af463da9aa188980c750f787f5e936634a diff --git a/ts/structs/WatchedOutput.ts b/ts/structs/WatchedOutput.ts index c0c0515a..02e85b2d 100644 --- a/ts/structs/WatchedOutput.ts +++ b/ts/structs/WatchedOutput.ts @@ -56,4 +56,16 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public WatchedOutput clone() { + number ret = bindings.WatchedOutput_clone(this.ptr); + const ret_hu_conv: WatchedOutput = new WatchedOutput(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + + public number hash() { + number ret = bindings.WatchedOutput_hash(this.ptr); + return ret; + } + }