From 5bba037b4dc79ec73b4f5f18d58fcc799ec0f367 Mon Sep 17 00:00:00 2001 From: Pablo Ragalli Date: Mon, 2 Nov 2026 17:18:50 -0300 Subject: [PATCH 1/2] test(harness): add the redemption queue scenario Request, cancel, price, a claim the reserve cannot cover, fund and claim, on a seeded deployment. The treasury deploys the free reserve first and the redemption is sized above what is left, because a claim is refused only when the liquid reserve is below that claim. send takes a label and prints the transaction hash, so a run can be linked to an explorer. --- scripts/harness/lib/clients.ts | 19 +- scripts/harness/lib/oracle.ts | 8 +- scripts/harness/package.json | 1 + scripts/harness/redemption-queue.test.ts | 212 +++++++++++++++++++++++ 4 files changed, 235 insertions(+), 5 deletions(-) create mode 100644 scripts/harness/redemption-queue.test.ts diff --git a/scripts/harness/lib/clients.ts b/scripts/harness/lib/clients.ts index b8f0bc53..ba0963e4 100644 --- a/scripts/harness/lib/clients.ts +++ b/scripts/harness/lib/clients.ts @@ -76,16 +76,29 @@ export const complianceContract = (c: Connected, as: Keypair) => interface Sendable { simulation?: unknown - signAndSend(): Promise<{ result: T }> + signAndSend(): Promise<{ + result: T + sendTransactionResponse?: { hash: string } + }> } -export async function send(tx: Promise>): Promise { +// A label makes the run print `tx