projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-generated bindings
[ldk-java]
/
ts
/
structs
/
NodeId.ts
diff --git
a/ts/structs/NodeId.ts
b/ts/structs/NodeId.ts
index c08e56322c916fa4cdb362dee89a1b173d6a3259..9f288e0accc09edc6efe30496cd3f8778392f7e6 100644
(file)
--- a/
ts/structs/NodeId.ts
+++ b/
ts/structs/NodeId.ts
@@
-18,6
+18,11
@@
import * as bindings from '../bindings' // TODO: figure out location
bindings.NodeId_free(this.ptr);
}
}
bindings.NodeId_free(this.ptr);
}
}
+ public number clone_ptr() {
+ number ret = bindings.NodeId_clone_ptr(this.ptr);
+ return ret;
+ }
+
public NodeId clone() {
number ret = bindings.NodeId_clone(this.ptr);
const ret_hu_conv: NodeId = new NodeId(null, ret);
public NodeId clone() {
number ret = bindings.NodeId_clone(this.ptr);
const ret_hu_conv: NodeId = new NodeId(null, ret);
@@
-26,7
+31,7
@@
import * as bindings from '../bindings' // TODO: figure out location
}
public static NodeId constructor_from_pubkey(Uint8Array pubkey) {
}
public static NodeId constructor_from_pubkey(Uint8Array pubkey) {
- number ret = bindings.NodeId_from_pubkey(
pubkey
);
+ number ret = bindings.NodeId_from_pubkey(
InternalUtils.check_arr_len(pubkey, 33)
);
const ret_hu_conv: NodeId = new NodeId(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
const ret_hu_conv: NodeId = new NodeId(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;