if (raw_val instanceof bindings.LDKMessageSendEvent.SendShortIdsQuery) {
return new SendShortIdsQuery(this.ptr, raw_val);
}
+ if (raw_val instanceof bindings.LDKMessageSendEvent.SendReplyChannelRange) {
+ return new SendReplyChannelRange(this.ptr, raw_val);
+ }
throw new Error('oops, this should be unreachable'); // Unreachable without extending the (internal) bindings interface
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: AcceptChannel = new AcceptChannel(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: OpenChannel = new OpenChannel(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: FundingCreated = new FundingCreated(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: FundingSigned = new FundingSigned(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: FundingLocked = new FundingLocked(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: AnnouncementSignatures = new AnnouncementSignatures(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const updates: number = obj.updates;
const updates_hu_conv: CommitmentUpdate = new CommitmentUpdate(null, updates);
+ updates_hu_conv.ptrs_to.add(this);
this.updates = updates_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: RevokeAndACK = new RevokeAndACK(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: ClosingSigned = new ClosingSigned(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: Shutdown = new Shutdown(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: ChannelReestablish = new ChannelReestablish(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
super(null, ptr);
const msg: number = obj.msg;
const msg_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
const update_msg: number = obj.update_msg;
const update_msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, update_msg);
+ update_msg_hu_conv.ptrs_to.add(this);
this.update_msg = update_msg_hu_conv;
}
}
super(null, ptr);
const msg: number = obj.msg;
const msg_hu_conv: NodeAnnouncement = new NodeAnnouncement(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
super(null, ptr);
const msg: number = obj.msg;
const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: QueryChannelRange = new QueryChannelRange(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
this.node_id = obj.node_id;
const msg: number = obj.msg;
const msg_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
this.msg = msg_hu_conv;
}
}
+export class SendReplyChannelRange extends MessageSendEvent {
+ public node_id: Uint8Array;
+ public msg: ReplyChannelRange;
+ private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendReplyChannelRange) {
+ super(null, ptr);
+ this.node_id = obj.node_id;
+ const msg: number = obj.msg;
+ const msg_hu_conv: ReplyChannelRange = new ReplyChannelRange(null, msg);
+ msg_hu_conv.ptrs_to.add(this);
+ this.msg = msg_hu_conv;
+ }
+}
+ public MessageSendEvent clone() {
+ number ret = bindings.MessageSendEvent_clone(this.ptr);
+ MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+}