*/
export class ChannelReady extends CommonBase {
/* @internal */
- public constructor(_dummy: object, ptr: number) {
+ public constructor(_dummy: object, ptr: bigint) {
super(ptr, bindings.ChannelReady_free);
}
* to be forwarded over this SCID and forward them to this messages' recipient.
*/
public get_short_channel_id_alias(): Option_u64Z {
- const ret: number = bindings.ChannelReady_get_short_channel_id_alias(this.ptr);
+ const ret: bigint = bindings.ChannelReady_get_short_channel_id_alias(this.ptr);
const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
* Constructs a new ChannelReady given each field
*/
public static constructor_new(channel_id_arg: Uint8Array, next_per_commitment_point_arg: Uint8Array, short_channel_id_alias_arg: Option_u64Z): ChannelReady {
- const ret: number = bindings.ChannelReady_new(bindings.encodeUint8Array(bindings.check_arr_len(channel_id_arg, 32)), bindings.encodeUint8Array(bindings.check_arr_len(next_per_commitment_point_arg, 33)), CommonBase.get_ptr_of(short_channel_id_alias_arg));
+ const ret: bigint = bindings.ChannelReady_new(bindings.encodeUint8Array(bindings.check_arr_len(channel_id_arg, 32)), bindings.encodeUint8Array(bindings.check_arr_len(next_per_commitment_point_arg, 33)), CommonBase.get_ptr_of(short_channel_id_alias_arg));
const ret_hu_conv: ChannelReady = new ChannelReady(null, ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
}
- public clone_ptr(): number {
- const ret: number = bindings.ChannelReady_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.ChannelReady_clone_ptr(this.ptr);
return ret;
}
* Creates a copy of the ChannelReady
*/
public clone(): ChannelReady {
- const ret: number = bindings.ChannelReady_clone(this.ptr);
+ const ret: bigint = bindings.ChannelReady_clone(this.ptr);
const ret_hu_conv: ChannelReady = new ChannelReady(null, ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
* Read a ChannelReady from a byte array, created by ChannelReady_write
*/
public static constructor_read(ser: Uint8Array): Result_ChannelReadyDecodeErrorZ {
- const ret: number = bindings.ChannelReady_read(bindings.encodeUint8Array(ser));
+ const ret: bigint = bindings.ChannelReady_read(bindings.encodeUint8Array(ser));
const ret_hu_conv: Result_ChannelReadyDecodeErrorZ = Result_ChannelReadyDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}