From 76ba4f9a567669fa41805f11cec7080be441ef00 Mon Sep 17 00:00:00 2001 From: 0xkenj1 Date: Thu, 10 Oct 2024 11:45:37 -0300 Subject: [PATCH] fix: format --- .../data-flow/test/unit/eventsFetcher.spec.ts | 3 ++- .../src/providers/envioIndexerClient.ts | 3 ++- .../test/unit/envioIndexerClient.spec.ts | 17 +++++++++-------- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/packages/data-flow/test/unit/eventsFetcher.spec.ts b/packages/data-flow/test/unit/eventsFetcher.spec.ts index 5a2de23..a547b5e 100644 --- a/packages/data-flow/test/unit/eventsFetcher.spec.ts +++ b/packages/data-flow/test/unit/eventsFetcher.spec.ts @@ -1,6 +1,7 @@ +import { beforeEach, describe, expect, it, Mocked, vi } from "vitest"; + import { IIndexerClient } from "@grants-stack-indexer/indexer-client"; import { AnyProtocolEvent } from "@grants-stack-indexer/shared"; -import { beforeEach, describe, expect, it, Mocked, vi } from "vitest"; import { EventsFetcher } from "../../src/eventsFetcher.js"; diff --git a/packages/indexer-client/src/providers/envioIndexerClient.ts b/packages/indexer-client/src/providers/envioIndexerClient.ts index 1bfdd2f..8c210f4 100644 --- a/packages/indexer-client/src/providers/envioIndexerClient.ts +++ b/packages/indexer-client/src/providers/envioIndexerClient.ts @@ -1,6 +1,7 @@ -import { AnyProtocolEvent } from "@grants-stack-indexer/shared"; import { gql, GraphQLClient } from "graphql-request"; +import { AnyProtocolEvent } from "@grants-stack-indexer/shared"; + import { IndexerClientError, InvalidIndexerResponse } from "../exceptions/index.js"; import { IIndexerClient } from "../internal.js"; diff --git a/packages/indexer-client/test/unit/envioIndexerClient.spec.ts b/packages/indexer-client/test/unit/envioIndexerClient.spec.ts index 2c46dee..1a9abb8 100644 --- a/packages/indexer-client/test/unit/envioIndexerClient.spec.ts +++ b/packages/indexer-client/test/unit/envioIndexerClient.spec.ts @@ -1,7 +1,8 @@ -import { AnyProtocolEvent } from "@grants-stack-indexer/shared"; import { GraphQLClient } from "graphql-request"; import { afterEach, beforeEach, describe, expect, it, Mocked, vi } from "vitest"; +import { AnyProtocolEvent } from "@grants-stack-indexer/shared"; + import { IndexerClientError, InvalidIndexerResponse } from "../../src/exceptions/index.js"; import { EnvioIndexerClient } from "../../src/providers/envioIndexerClient.js"; @@ -43,13 +44,13 @@ describe("EnvioIndexerClient", () => { describe("getEventsAfterBlockNumberAndLogIndex", () => { const mockEvents: AnyProtocolEvent[] = [ { - chain_id: 1, - block_number: 12345, - block_timestamp: 123123123, - contract_name: "Allo", - event_name: "PoolCreated", - src_address: "0x1234567890123456789012345678901234567890", - log_index: 0, + chainId: 1, + blockNumber: 12345, + blockTimestamp: 123123123, + contractName: "Allo", + eventName: "PoolCreated", + srcAddress: "0x1234567890123456789012345678901234567890", + logIndex: 0, params: { contractAddress: "0x1234" }, }, ];