+ /**
+ * The onion routing packet with encrypted data for the next hop.
+ */
+ public get_onion_routing_packet(): OnionPacket {
+ const ret: bigint = bindings.UpdateAddHTLC_get_onion_routing_packet(this.ptr);
+ const ret_hu_conv: OnionPacket = new OnionPacket(null, ret);
+ CommonBase.add_ref_from(ret_hu_conv, this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * The onion routing packet with encrypted data for the next hop.
+ */
+ public set_onion_routing_packet(val: OnionPacket): void {
+ bindings.UpdateAddHTLC_set_onion_routing_packet(this.ptr, val == null ? 0n : CommonBase.get_ptr_of(val));
+ CommonBase.add_ref_from(this, val);
+ }
+
+ /**
+ * Provided if we are relaying or receiving a payment within a blinded path, to decrypt the onion
+ * routing packet and the recipient-provided encrypted payload within.
+ *
+ * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ public get_blinding_point(): Uint8Array {
+ const ret: number = bindings.UpdateAddHTLC_get_blinding_point(this.ptr);
+ const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
+ return ret_conv;
+ }
+
+ /**
+ * Provided if we are relaying or receiving a payment within a blinded path, to decrypt the onion
+ * routing packet and the recipient-provided encrypted payload within.
+ *
+ * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ public set_blinding_point(val: Uint8Array|null): void {
+ bindings.UpdateAddHTLC_set_blinding_point(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
+ }
+
+ /**
+ * Constructs a new UpdateAddHTLC given each field
+ *
+ * Note that blinding_point_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ public static constructor_new(channel_id_arg: Uint8Array, htlc_id_arg: bigint, amount_msat_arg: bigint, payment_hash_arg: Uint8Array, cltv_expiry_arg: number, skimmed_fee_msat_arg: Option_u64Z, onion_routing_packet_arg: OnionPacket, blinding_point_arg: Uint8Array|null): UpdateAddHTLC {
+ const ret: bigint = bindings.UpdateAddHTLC_new(bindings.encodeUint8Array(bindings.check_arr_len(channel_id_arg, 32)), htlc_id_arg, amount_msat_arg, bindings.encodeUint8Array(bindings.check_arr_len(payment_hash_arg, 32)), cltv_expiry_arg, CommonBase.get_ptr_of(skimmed_fee_msat_arg), onion_routing_packet_arg == null ? 0n : CommonBase.get_ptr_of(onion_routing_packet_arg), bindings.encodeUint8Array(bindings.check_arr_len(blinding_point_arg, 33)));
+ const ret_hu_conv: UpdateAddHTLC = new UpdateAddHTLC(null, ret);
+ CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
+ CommonBase.add_ref_from(ret_hu_conv, skimmed_fee_msat_arg);
+ CommonBase.add_ref_from(ret_hu_conv, onion_routing_packet_arg);
+ return ret_hu_conv;
+ }
+