+export class DiscardFunding extends Event {
+ public channel_id: Uint8Array;
+ public transaction: Uint8Array;
+ private constructor(ptr: number, obj: bindings.LDKEvent.DiscardFunding) {
+ super(null, ptr);
+ this.channel_id = obj.channel_id;
+ this.transaction = obj.transaction;
+ }
+}
+export class PaymentPathSuccessful extends Event {
+ public payment_id: Uint8Array;
+ public payment_hash: Uint8Array;
+ public path: RouteHop[];
+ private constructor(ptr: number, obj: bindings.LDKEvent.PaymentPathSuccessful) {
+ super(null, ptr);
+ this.payment_id = obj.payment_id;
+ this.payment_hash = obj.payment_hash;
+ const path: number[] = obj.path;
+ RouteHop[] path_conv_10_arr = new RouteHop[path.length];
+ for (int k = 0; k < path.length; k++) {
+ number path_conv_10 = path[k];
+ const path_conv_10_hu_conv: RouteHop = new RouteHop(null, path_conv_10);
+ path_conv_10_hu_conv.ptrs_to.add(this);
+ path_conv_10_arr[k] = path_conv_10_hu_conv;
+ }
+ this.path = path_conv_10_arr;
+ }
+}
+ public number clone_ptr() {
+ number ret = bindings.Event_clone_ptr(this.ptr);
+ return ret;
+ }
+