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
/
Result_PaymentIdPaymentSendFailureZ.ts
diff --git
a/ts/structs/Result_PaymentIdPaymentSendFailureZ.ts
b/ts/structs/Result_PaymentIdPaymentSendFailureZ.ts
index b8dd9ebfe35e77cd88302df684c78025b46af81d..c1331d00d92f3c3e72b639f45147c6bb94213ad7 100644
(file)
--- a/
ts/structs/Result_PaymentIdPaymentSendFailureZ.ts
+++ b/
ts/structs/Result_PaymentIdPaymentSendFailureZ.ts
@@
-9,20
+9,17
@@
public class Result_PaymentIdPaymentSendFailureZ extends CommonBase {
}
static Result_PaymentIdPaymentSendFailureZ constr_from_ptr(long ptr) {
}
static Result_PaymentIdPaymentSendFailureZ constr_from_ptr(long ptr) {
- if (bindings.
LDKCResult_PaymentIdPaymentSendFailureZ_result
_ok(ptr)) {
+ if (bindings.
CResult_PaymentIdPaymentSendFailureZ_is
_ok(ptr)) {
return new Result_PaymentIdPaymentSendFailureZ_OK(null, ptr);
} else {
return new Result_PaymentIdPaymentSendFailureZ_Err(null, ptr);
}
}
public static final class Result_PaymentIdPaymentSendFailureZ_OK extends Result_PaymentIdPaymentSendFailureZ {
return new Result_PaymentIdPaymentSendFailureZ_OK(null, ptr);
} else {
return new Result_PaymentIdPaymentSendFailureZ_Err(null, ptr);
}
}
public static final class Result_PaymentIdPaymentSendFailureZ_OK extends Result_PaymentIdPaymentSendFailureZ {
- public final
PaymentId
res;
+ public final
Uint8Array
res;
private Result_PaymentIdPaymentSendFailureZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
private Result_PaymentIdPaymentSendFailureZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
- number res = bindings.LDKCResult_PaymentIdPaymentSendFailureZ_get_ok(ptr);
- const res_hu_conv: PaymentId = new PaymentId(null, res);
- res_hu_conv.ptrs_to.add(this);
- this.res = res_hu_conv;
+ this.res = bindings.LDKCResult_PaymentIdPaymentSendFailureZ_get_ok(ptr);
}
}
}
}
@@
-37,8
+34,8
@@
public class Result_PaymentIdPaymentSendFailureZ extends CommonBase {
}
}
}
}
- public static Result_PaymentIdPaymentSendFailureZ constructor_ok(
PaymentId
o) {
- number ret = bindings.CResult_PaymentIdPaymentSendFailureZ_ok(
o == null ? 0 : o.ptr & ~1
);
+ public static Result_PaymentIdPaymentSendFailureZ constructor_ok(
Uint8Array
o) {
+ number ret = bindings.CResult_PaymentIdPaymentSendFailureZ_ok(
InternalUtils.check_arr_len(o, 32)
);
Result_PaymentIdPaymentSendFailureZ ret_hu_conv = Result_PaymentIdPaymentSendFailureZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_PaymentIdPaymentSendFailureZ ret_hu_conv = Result_PaymentIdPaymentSendFailureZ.constr_from_ptr(ret);
return ret_hu_conv;
}
@@
-49,6
+46,16
@@
public class Result_PaymentIdPaymentSendFailureZ extends CommonBase {
return ret_hu_conv;
}
return ret_hu_conv;
}
+ public boolean is_ok() {
+ boolean ret = bindings.CResult_PaymentIdPaymentSendFailureZ_is_ok(this.ptr);
+ return ret;
+ }
+
+ public number clone_ptr() {
+ number ret = bindings.CResult_PaymentIdPaymentSendFailureZ_clone_ptr(this.ptr);
+ return ret;
+ }
+
public Result_PaymentIdPaymentSendFailureZ clone() {
number ret = bindings.CResult_PaymentIdPaymentSendFailureZ_clone(this.ptr);
Result_PaymentIdPaymentSendFailureZ ret_hu_conv = Result_PaymentIdPaymentSendFailureZ.constr_from_ptr(ret);
public Result_PaymentIdPaymentSendFailureZ clone() {
number ret = bindings.CResult_PaymentIdPaymentSendFailureZ_clone(this.ptr);
Result_PaymentIdPaymentSendFailureZ ret_hu_conv = Result_PaymentIdPaymentSendFailureZ.constr_from_ptr(ret);