datahaven/test/utils
Ahmad Kaouk 4d448a4a21
test: wait for event utils (#121)
## Summary
This PR introduces comprehensive event waiting utilities for both
DataHaven (Substrate) and Ethereum chains, providing a unified
  interface for handling blockchain events in E2E tests.

  ## What's New
- **Event Utilities** (`test/utils/events.ts`): New utilities for
waiting on blockchain events
- `waitForDataHavenEvent`: Type-safe event waiting for Substrate chain
events
    - `waitForEthereumEvent`: Event waiting for Ethereum contract events
    - Graceful timeout handling (returns null instead of throwing)
    - Support for event filtering, callbacks, and custom timeouts

- **Documentation** (`test/docs/event-utilities-guide.md`):
Comprehensive guide covering usage examples for both DataHaven and
Ethereum.

  ## Test Plan
  - [ ] New event utilities work as expected
  - [ ] Event filtering works correctly for both chains
  - [ ] Timeout handling behaves as documented
  - [ ] Parallel event waiting with `Promise.all()` works

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-01 20:56:46 +02:00
..
blockscout.ts test: Add E2E Tests (#36) 2025-04-14 16:22:43 -03:00
constants.ts fix: 🔌 CLI connection issues (#119) 2025-07-21 15:02:25 +02:00
contracts.ts feat: set rewards info as parameters in runtime (#99) 2025-06-16 12:20:18 +02:00
docker.ts test: 🏗️ Setup e2e testing framework (#104) 2025-07-16 18:51:07 +02:00
events.ts test: wait for event utils (#121) 2025-08-01 20:56:46 +02:00
index.ts test: wait for event utils (#121) 2025-08-01 20:56:46 +02:00
input.ts fix: 🚨 Add error in TS for missing awaits (#81) 2025-05-19 22:28:43 +00:00
kurtosis.ts feat: 🚀 Add deploy command to CLI (#87) 2025-06-12 10:24:03 +02:00
logger.ts feat: Add Polkadot API support to CLI and e2e testing infra (#68) 2025-05-13 03:03:21 +00:00
papi.ts fix: 🚨 Add error in TS for missing awaits (#81) 2025-05-19 22:28:43 +00:00
parameters.ts test: 🏗️ Setup e2e testing framework (#104) 2025-07-16 18:51:07 +02:00
parser.ts feat: Deployment improvements & environmental overrides (#103) 2025-06-26 13:48:33 +02:00
rpc.ts test: Add E2E Tests (#36) 2025-04-14 16:22:43 -03:00
shell.ts test: 🏗️ Setup e2e testing framework (#104) 2025-07-16 18:51:07 +02:00
types.ts feat: set rewards info as parameters in runtime (#99) 2025-06-16 12:20:18 +02:00
viem.ts fix: 🚨 Add error in TS for missing awaits (#81) 2025-05-19 22:28:43 +00:00
waits.ts feat: 🚀 Add deploy command to CLI (#87) 2025-06-12 10:24:03 +02:00