From a5c0f4d63516b8bfdeb9068af02b8d22358bd750 Mon Sep 17 00:00:00 2001 From: Daniel Werner Date: Tue, 8 Oct 2024 08:28:59 -0700 Subject: [PATCH] all: bump urql and common-ts to latest versions --- packages/indexer-agent/package.json | 2 +- packages/indexer-cli/package.json | 2 +- packages/indexer-cli/src/actions.ts | 40 ++++++++++--------- packages/indexer-cli/src/cost.ts | 20 ++++++---- packages/indexer-common/package.json | 2 +- packages/indexer-native/package.json | 2 +- packages/indexer-service/package.json | 4 +- .../src/query-fees/allocations.ts | 3 +- yarn.lock | 16 ++++---- 9 files changed, 49 insertions(+), 42 deletions(-) diff --git a/packages/indexer-agent/package.json b/packages/indexer-agent/package.json index 8148b2108..c23d72537 100644 --- a/packages/indexer-agent/package.json +++ b/packages/indexer-agent/package.json @@ -29,7 +29,7 @@ "graph-indexer-agent": "bin/graph-indexer-agent" }, "dependencies": { - "@graphprotocol/common-ts": "2.0.9", + "@graphprotocol/common-ts": "2.0.10", "@graphprotocol/indexer-common": "^0.21.4", "@thi.ng/heaps": "^1.3.1", "@uniswap/sdk": "3.0.3", diff --git a/packages/indexer-cli/package.json b/packages/indexer-cli/package.json index ba3f8767f..8525a3187 100644 --- a/packages/indexer-cli/package.json +++ b/packages/indexer-cli/package.json @@ -26,7 +26,7 @@ "test:watch": "jest --watch --detectOpenHandles --verbose" }, "dependencies": { - "@graphprotocol/common-ts": "2.0.9", + "@graphprotocol/common-ts": "2.0.10", "@graphprotocol/indexer-common": "^0.21.4", "@iarna/toml": "2.2.5", "@thi.ng/iterators": "5.1.74", diff --git a/packages/indexer-cli/src/actions.ts b/packages/indexer-cli/src/actions.ts index b3815ebc0..444fe1f0a 100644 --- a/packages/indexer-cli/src/actions.ts +++ b/packages/indexer-cli/src/actions.ts @@ -236,25 +236,29 @@ export async function executeApprovedActions( client: IndexerManagementClient, ): Promise { const result = await client - .mutation(gql` - mutation executeApprovedActions { - executeApprovedActions { - id - protocolNetwork - status - type - deploymentID - allocationID - amount - poi - force - source - reason - transaction - failureReason + .mutation( + gql` + mutation executeApprovedActions { + executeApprovedActions { + id + protocolNetwork + status + type + deploymentID + allocationID + amount + poi + force + source + reason + transaction + failureReason + } } - } - `) + `, + [], + [], + ) .toPromise() if (result.error) { diff --git a/packages/indexer-cli/src/cost.ts b/packages/indexer-cli/src/cost.ts index af2fc51d8..66fb758e0 100644 --- a/packages/indexer-cli/src/cost.ts +++ b/packages/indexer-cli/src/cost.ts @@ -193,15 +193,19 @@ export const costModels = async ( client: IndexerManagementClient, ): Promise[]> => { const result = await client - .query(gql` - { - costModels { - deployment - model - variables + .query( + gql` + { + costModels { + deployment + model + variables + } } - } - `) + `, + [], + [], + ) .toPromise() if (result.error) { diff --git a/packages/indexer-common/package.json b/packages/indexer-common/package.json index aff40efb8..14d599d18 100644 --- a/packages/indexer-common/package.json +++ b/packages/indexer-common/package.json @@ -22,7 +22,7 @@ "clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo" }, "dependencies": { - "@graphprotocol/common-ts": "2.0.9", + "@graphprotocol/common-ts": "2.0.10", "@graphprotocol/cost-model": "0.1.18", "@semiotic-labs/tap-contracts-bindings": "^1.2.1", "@thi.ng/heaps": "1.2.38", diff --git a/packages/indexer-native/package.json b/packages/indexer-native/package.json index cff92cebf..7d0762dcb 100644 --- a/packages/indexer-native/package.json +++ b/packages/indexer-native/package.json @@ -46,7 +46,7 @@ "clean": "rm -rf ./node_modules ./binary ./build ./coverage ./native/target ./native/artifacts.json ./native/index.node" }, "dependencies": { - "@graphprotocol/common-ts": "2.0.9", + "@graphprotocol/common-ts": "2.0.10", "@mapbox/node-pre-gyp": "1.0.11", "cargo-cp-artifact": "0.1.8", "node-pre-gyp-github": "1.4.4" diff --git a/packages/indexer-service/package.json b/packages/indexer-service/package.json index f6ae9f4fa..c9dcfccbe 100644 --- a/packages/indexer-service/package.json +++ b/packages/indexer-service/package.json @@ -32,14 +32,14 @@ }, "dependencies": { "@google-cloud/profiler": "6.0.1", - "@graphprotocol/common-ts": "2.0.9", + "@graphprotocol/common-ts": "2.0.10", "@graphprotocol/indexer-common": "^0.21.4", "@graphprotocol/indexer-native": "0.21.4", "@graphql-tools/load": "8.0.0", "@graphql-tools/url-loader": "8.0.0", "@graphql-tools/wrap": "10.0.1", "@thi.ng/cache": "1.0.94", - "@urql/core": "2.4.4", + "@urql/core": "3.1.0", "apollo-link-http": "1.5.17", "axios": "0.26.1", "body-parser": "1.20.2", diff --git a/packages/indexer-service/src/query-fees/allocations.ts b/packages/indexer-service/src/query-fees/allocations.ts index 7b09e64c7..cef0c00a3 100644 --- a/packages/indexer-service/src/query-fees/allocations.ts +++ b/packages/indexer-service/src/query-fees/allocations.ts @@ -217,8 +217,7 @@ export class AllocationReceiptManager implements ReceiptManager { allocationReceipt: state, relatedAllocationSummary: summary, }) - }, - ) + }) logger.trace('End database transaction to process receipt') } diff --git a/yarn.lock b/yarn.lock index b1da6e467..212d07f1a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -893,15 +893,15 @@ resolved "https://registry.yarnpkg.com/@google-cloud/promisify/-/promisify-4.0.0.tgz#a906e533ebdd0f754dca2509933334ce58b8c8b1" integrity sha512-Orxzlfb9c67A15cq2JQEyVc7wEsmFBmHjZWZYQMUyJ1qivXyMwdyNOs9odi79hze+2zqdTtu1E19IM/FtqZ10g== -"@graphprotocol/common-ts@2.0.9": - version "2.0.9" - resolved "https://registry.npmjs.org/@graphprotocol/common-ts/-/common-ts-2.0.9.tgz" - integrity sha512-ZPONJg1+uMe6kAIILjl/YjKvK8nTcuz4GqL5yLZjPh/0w5fsGs5KCH6yKMLVAf4ZH6YNY0l9xJlRd1Nkb8JH+w== +"@graphprotocol/common-ts@2.0.10": + version "2.0.10" + resolved "https://registry.yarnpkg.com/@graphprotocol/common-ts/-/common-ts-2.0.10.tgz#a2bd7810b6f2b41a5724bcd45b1320a2c6c316a9" + integrity sha512-7aAoskggNyMTr54es+7C6sXbSxEz0qxeqVeMqslYnLSAhUtO/TF0UOLdRa06A6RhaVZl5xKh4FUPC1Lr2NiBwQ== dependencies: "@graphprotocol/contracts" "5.3.3" "@graphprotocol/pino-sentry-simple" "0.7.1" - "@urql/core" "2.4.4" - "@urql/exchange-execute" "1.2.2" + "@urql/core" "3.1.0" + "@urql/exchange-execute" "2.1.0" body-parser "1.20.2" bs58 "5.0.0" cors "2.8.5" @@ -3645,14 +3645,14 @@ resolved "https://registry.npmjs.org/@uniswap/v2-core/-/v2-core-1.0.1.tgz" integrity sha512-MtybtkUPSyysqLY2U210NBDeCHX+ltHt3oADGdjqoThZaFRDKwM6k1Nb3F0A3hk5hwuQvytFWhrWHOEq6nVJ8Q== -"@urql/core@2.4.4", "@urql/core@3.1.0", "@urql/core@>=3.1.0": +"@urql/core@3.1.0", "@urql/core@>=3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@urql/core/-/core-3.1.0.tgz#b77c6e444da35507b234645caed383cbb04d8ac9" integrity sha512-6pYB4/WGZmuCxCc+h8AX9h+g1o75cPgMrcan+G/pYEDGAd6+PXoEuDumhEXpwu4vnkqCvVnFELEYcqkaM8ddPg== dependencies: wonka "^6.1.2" -"@urql/exchange-execute@1.2.2", "@urql/exchange-execute@2.1.0": +"@urql/exchange-execute@2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@urql/exchange-execute/-/exchange-execute-2.1.0.tgz#70058969248e204494526decf2bb75c11c965ad1" integrity sha512-b84hq5EPgbERmg+98SqmMZqD5W3YrFkFii/6ZWVm5zsVdb+c0ZhRpUrpOCSemh5Jl5X291PG0WUUy2hdMtjraQ==