harb/scripts
openhands 77a229018a fix: address review feedback on holdout helpers
- Extract rpcCall into helpers/rpc.ts to eliminate the duplicate copy
  in wallet.ts and assertions.ts (warning: code duplication)

- Fix waitForReceipt() in swap.ts to assert receipt.status === '0x1':
  reverted transactions (status 0x0) now throw immediately with a clear
  message instead of letting sellAllKrk silently succeed and fail later
  at the balance assertion (bug)

- Add screen.width debug log to connectWallet() before the isVisible
  check, restoring the regression signal from always-leave.spec.ts (warning)

- Fix expectPoolHasLiquidity() to only assert sqrtPriceX96 > 0 (pool
  is initialised); drop the active-tick liquidity() check which gives
  false negatives when price moves outside all LiquidityManager ranges
  after a sovereign exit (warning)

- Add WETH balance snapshot before/after the swap in sellAllKrk() and
  log a warning when WETH output is 0, making pool health degradation
  visible despite amountOutMinimum: 0n (warning)

- Add before/after screenshots in buyKrk() (holdout-before-buy.png,
  holdout-after-buy.png) to restore CI debugging artefacts (nit)

- Move waitForTimeout(2_000) settle buffer in buyKrk() to the catch
  path only; when the Submitting→idle transition is observed the extra
  wait is redundant (nit)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 05:59:21 +00:00
..
harb-evaluator fix: address review feedback on holdout helpers 2026-03-02 05:59:21 +00:00
bootstrap-common.sh fix: retry bootstrap swap with recenter (#134, #13, #12) (#166) 2026-02-20 09:19:13 +01:00
build-ci-images.sh refactor: consolidate CI and local dev orchestration (#108) 2026-02-03 12:07:28 +01:00
build-kraiken-lib.sh tax rate, version and compose (#70) 2025-10-07 19:26:08 +02:00
ci-bootstrap.sh refactor: consolidate CI and local dev orchestration (#108) 2026-02-03 12:07:28 +01:00
dev.sh feat: add Otterscan block explorer to dev environment (#109) 2026-02-13 14:55:07 +00:00
quick-screenshot.mjs fill stake e2e 2025-10-11 17:54:49 +00:00
review-poll.sh fix: address review — migration comment, link ring buffer constants (#170) 2026-02-22 18:56:36 +00:00
review-pr.sh fix: address review — migration comment, link ring buffer constants (#170) 2026-02-22 18:56:36 +00:00
run-usertest.sh feat/ponder-lm-indexing (#142) 2026-02-18 00:19:05 +01:00
screenshot-stake-page.mjs fill stake e2e 2025-10-11 17:54:49 +00:00
sync-tax-rates.mjs tax rate, version and compose (#70) 2025-10-07 19:26:08 +02:00
wait-for-service.sh refactor: consolidate CI and local dev orchestration (#108) 2026-02-03 12:07:28 +01:00
watch-kraiken-lib.sh migrate/podman-to-docker (#92) 2025-11-08 14:08:46 +01:00