Skip to content

Commit

Permalink
fix(lint): auto-fix [ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mzywang committed May 22, 2024
1 parent 6af0ede commit 245c6ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
build-and-test:
needs: lint
name: build
name: build-and-test
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -85,8 +85,11 @@ jobs:
- name: Build project
run: yarn build

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build Docker
run: yarn docker:build

- name: Test
run: yarn test
run: yarn docker:test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"deploy:alchemy": "graph deploy --node https://subgraphs.alchemy.com/api/subgraphs/deploy --ipfs https://ipfs.satsuma.xyz",
"codegen": "graph codegen --output-dir src/types/",
"test": "graph test -d",
"docker:run": "docker run -i --rm --mount type=bind,source=$INIT_CWD,target=/matchstick matchstick",
"create-local": "graph create ianlapham/uniswap-v3 --node http://127.0.0.1:8020",
"deploy-local": "graph deploy ianlapham/uniswap-v3 --debug --ipfs http://localhost:5001 --node http://127.0.0.1:8020",
"deploy": "graph deploy ianlapham/uniswap-v3-subgraph --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ --debug",
Expand Down
2 changes: 1 addition & 1 deletion src/mappings/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function handlePoolCreated(event: PoolCreated): void {
export function handlePoolCreatedHelper(
event: PoolCreated,
factoryAddress: string = FACTORY_ADDRESS,
whitelistTokens: string[] = WHITELIST_TOKENS,
whitelistTokens: string[] = WHITELIST_TOKENS
): void {
// temp fix
if (event.params.pool == Address.fromHexString('0x8fe8d9bb8eeba3ed688069c3d6b556c9ca258248')) {
Expand Down
2 changes: 1 addition & 1 deletion tests/handlePoolCreated.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('handlePoolCreated', () => {
)

assertObjectMatches('Factory', FACTORY_ADDRESS, [
['poolCount', '1'],
['poolCount', '0'],
['totalVolumeETH', '0'],
['totalVolumeUSD', '0'],
['untrackedVolumeUSD', '0'],
Expand Down

0 comments on commit 245c6ae

Please sign in to comment.