mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
## 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>
14 lines
371 B
TypeScript
14 lines
371 B
TypeScript
export * from "./blockscout";
|
|
export * from "./constants";
|
|
export * from "./contracts";
|
|
export * from "./docker";
|
|
export * from "./events";
|
|
export * from "./input";
|
|
export * from "./kurtosis";
|
|
export * from "./logger";
|
|
export * from "./papi";
|
|
export * from "./parameters";
|
|
export * from "./parser";
|
|
export * from "./rpc";
|
|
export * from "./shell";
|
|
export * from "./viem";
|