Enqueue and update pending transactions immutably.
Write `enqueueTx(queue, tx)` appending `{ ...tx, status: "queued" }`, and `markStatus(queue, id, status)` updating the matching item's status without mutating the original array.
Required in your answer: ...queue.map(
Transpiled, then run in a sandbox
function enqueueTx(queue, tx) {
// TODO
}
function markStatus(queue, id, status) {
// TODO
}