*/
export class PayeePubKey extends CommonBase {
/* @internal */
- public constructor(_dummy: object, ptr: number) {
+ public constructor(_dummy: object, ptr: bigint) {
super(ptr, bindings.PayeePubKey_free);
}
* Constructs a new PayeePubKey given each field
*/
public static constructor_new(a_arg: Uint8Array): PayeePubKey {
- const ret: number = bindings.PayeePubKey_new(bindings.encodeUint8Array(bindings.check_arr_len(a_arg, 33)));
+ const ret: bigint = bindings.PayeePubKey_new(bindings.encodeUint8Array(bindings.check_arr_len(a_arg, 33)));
const ret_hu_conv: PayeePubKey = new PayeePubKey(null, ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
}
- public clone_ptr(): number {
- const ret: number = bindings.PayeePubKey_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.PayeePubKey_clone_ptr(this.ptr);
return ret;
}
* Creates a copy of the PayeePubKey
*/
public clone(): PayeePubKey {
- const ret: number = bindings.PayeePubKey_clone(this.ptr);
+ const ret: bigint = bindings.PayeePubKey_clone(this.ptr);
const ret_hu_conv: PayeePubKey = new PayeePubKey(null, ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
* Two objects with NULL inner values will be considered "equal" here.
*/
public eq(b: PayeePubKey): boolean {
- const ret: boolean = bindings.PayeePubKey_eq(this.ptr, b == null ? 0 : CommonBase.get_ptr_of(b) & ~1);
+ const ret: boolean = bindings.PayeePubKey_eq(this.ptr, b == null ? 0n : CommonBase.get_ptr_of(b));
CommonBase.add_ref_from(this, b);
return ret;
}