+/** A MessageSendEvent of type SendStfu */
+export class MessageSendEvent_SendStfu extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: Stfu;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendStfu_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendStfu_get_msg(ptr);
+ const msg_hu_conv: Stfu = new Stfu(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendSplice */
+export class MessageSendEvent_SendSplice extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: Splice;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendSplice_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendSplice_get_msg(ptr);
+ const msg_hu_conv: Splice = new Splice(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendSpliceAck */
+export class MessageSendEvent_SendSpliceAck extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: SpliceAck;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendSpliceAck_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendSpliceAck_get_msg(ptr);
+ const msg_hu_conv: SpliceAck = new SpliceAck(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendSpliceLocked */
+export class MessageSendEvent_SendSpliceLocked extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: SpliceLocked;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendSpliceLocked_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendSpliceLocked_get_msg(ptr);
+ const msg_hu_conv: SpliceLocked = new SpliceLocked(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxAddInput */
+export class MessageSendEvent_SendTxAddInput extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxAddInput;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxAddInput_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxAddInput_get_msg(ptr);
+ const msg_hu_conv: TxAddInput = new TxAddInput(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxAddOutput */
+export class MessageSendEvent_SendTxAddOutput extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxAddOutput;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxAddOutput_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxAddOutput_get_msg(ptr);
+ const msg_hu_conv: TxAddOutput = new TxAddOutput(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxRemoveInput */
+export class MessageSendEvent_SendTxRemoveInput extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxRemoveInput;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxRemoveInput_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxRemoveInput_get_msg(ptr);
+ const msg_hu_conv: TxRemoveInput = new TxRemoveInput(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxRemoveOutput */
+export class MessageSendEvent_SendTxRemoveOutput extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxRemoveOutput;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxRemoveOutput_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxRemoveOutput_get_msg(ptr);
+ const msg_hu_conv: TxRemoveOutput = new TxRemoveOutput(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxComplete */
+export class MessageSendEvent_SendTxComplete extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxComplete;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxComplete_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxComplete_get_msg(ptr);
+ const msg_hu_conv: TxComplete = new TxComplete(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxSignatures */
+export class MessageSendEvent_SendTxSignatures extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxSignatures;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxSignatures_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxSignatures_get_msg(ptr);
+ const msg_hu_conv: TxSignatures = new TxSignatures(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxInitRbf */
+export class MessageSendEvent_SendTxInitRbf extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxInitRbf;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxInitRbf_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxInitRbf_get_msg(ptr);
+ const msg_hu_conv: TxInitRbf = new TxInitRbf(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxAckRbf */
+export class MessageSendEvent_SendTxAckRbf extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxAckRbf;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxAckRbf_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxAckRbf_get_msg(ptr);
+ const msg_hu_conv: TxAckRbf = new TxAckRbf(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendTxAbort */
+export class MessageSendEvent_SendTxAbort extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: TxAbort;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendTxAbort_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendTxAbort_get_msg(ptr);
+ const msg_hu_conv: TxAbort = new TxAbort(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}