diff --git a/packages/indexer-client/test/unit/envioIndexerClient.spec.ts b/packages/indexer-client/test/unit/envioIndexerClient.spec.ts index 1a9abb8..a6d2d90 100644 --- a/packages/indexer-client/test/unit/envioIndexerClient.spec.ts +++ b/packages/indexer-client/test/unit/envioIndexerClient.spec.ts @@ -52,6 +52,7 @@ describe("EnvioIndexerClient", () => { srcAddress: "0x1234567890123456789012345678901234567890", logIndex: 0, params: { contractAddress: "0x1234" }, + transactionFields: { hash: "0x1234", transactionIndex: 0 }, }, ]; diff --git a/packages/shared/src/types/events/common.ts b/packages/shared/src/types/events/common.ts index 47b548e..5597147 100644 --- a/packages/shared/src/types/events/common.ts +++ b/packages/shared/src/types/events/common.ts @@ -58,4 +58,8 @@ export type ProtocolEvent>; +//TODO: check if this is the best way +export type AnyProtocolEvent = Omit< + ProtocolEvent>, + "strategyId" +>;