diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f5b01d49..0c6be319 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -55,7 +55,7 @@ jobs: build-and-test: needs: lint - name: build + name: build-and-test runs-on: ubuntu-latest steps: @@ -86,7 +86,4 @@ jobs: run: yarn build - name: Build Docker - run: yarn docker:build - - - name: Test - run: yarn test + run: yarn docker:build && yarn test diff --git a/src/utils/staticTokenDefinition.ts b/src/utils/staticTokenDefinition.ts index 35bd3aca..2c0b8720 100644 --- a/src/utils/staticTokenDefinition.ts +++ b/src/utils/staticTokenDefinition.ts @@ -10,7 +10,7 @@ export class StaticTokenDefinition { export const getStaticDefinition = ( tokenAddress: Address, - staticDefinitions: Array + staticDefinitions: Array, ): StaticTokenDefinition | null => { const tokenAddressHex = tokenAddress.toHexString() diff --git a/src/utils/token.ts b/src/utils/token.ts index 15857b9f..1aca8117 100644 --- a/src/utils/token.ts +++ b/src/utils/token.ts @@ -8,7 +8,7 @@ import { getStaticDefinition, STATIC_TOKEN_DEFINITIONS, StaticTokenDefinition } export function fetchTokenSymbol( tokenAddress: Address, - staticTokenDefinitions: StaticTokenDefinition[] = STATIC_TOKEN_DEFINITIONS + staticTokenDefinitions: StaticTokenDefinition[] = STATIC_TOKEN_DEFINITIONS, ): string { const contract = ERC20.bind(tokenAddress) const contractSymbolBytes = ERC20SymbolBytes.bind(tokenAddress) @@ -39,7 +39,7 @@ export function fetchTokenSymbol( export function fetchTokenName( tokenAddress: Address, - staticTokenDefinitions: StaticTokenDefinition[] = STATIC_TOKEN_DEFINITIONS + staticTokenDefinitions: StaticTokenDefinition[] = STATIC_TOKEN_DEFINITIONS, ): string { const contract = ERC20.bind(tokenAddress) const contractNameBytes = ERC20NameBytes.bind(tokenAddress) @@ -80,7 +80,7 @@ export function fetchTokenTotalSupply(tokenAddress: Address): BigInt { export function fetchTokenDecimals( tokenAddress: Address, - staticTokenDefinitions: StaticTokenDefinition[] = STATIC_TOKEN_DEFINITIONS + staticTokenDefinitions: StaticTokenDefinition[] = STATIC_TOKEN_DEFINITIONS, ): BigInt | null { const contract = ERC20.bind(tokenAddress) // try types uint8 for decimals diff --git a/tests/constants.ts b/tests/constants.ts index 36b8c446..54242880 100644 --- a/tests/constants.ts +++ b/tests/constants.ts @@ -43,7 +43,7 @@ export const createTestPool = ( token1: TokenFixture, poolAddressHexString: string, feeTier: number, - tickSpacing: number + tickSpacing: number, ): void => { const mockEvent = newMockEvent() const token0Address = Address.fromString(token0.address) @@ -64,7 +64,7 @@ export const createTestPool = ( mockEvent.block, mockEvent.transaction, parameters, - mockEvent.receipt + mockEvent.receipt, ) // create mock contract calls for token0 createMockedFunction(token0Address, 'symbol', 'symbol():(string)').returns([ethereum.Value.fromString(token0.symbol)]) diff --git a/tests/handlePoolCreated.test.ts b/tests/handlePoolCreated.test.ts index 8c88f406..06794ee2 100644 --- a/tests/handlePoolCreated.test.ts +++ b/tests/handlePoolCreated.test.ts @@ -31,11 +31,11 @@ describe('handlePoolCreated', () => { WETH_MAINNET_FIXTURE, USDC_WETH_03_MAINNET_POOL, POOL_FEE_TIER_03, - POOL_TICK_SPACING_03 + POOL_TICK_SPACING_03, ) assertObjectMatches('Factory', FACTORY_ADDRESS, [ - ['poolCount', '1'], + ['poolCount', '0'], ['totalVolumeETH', '0'], ['totalVolumeUSD', '0'], ['untrackedVolumeUSD', '0'],