Skip to content

Commit

Permalink
all: bump urql and common-ts to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerner committed Oct 8, 2024
1 parent 8332751 commit 8d3e7c4
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 42 deletions.
2 changes: 1 addition & 1 deletion packages/indexer-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
40 changes: 22 additions & 18 deletions packages/indexer-cli/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,25 +236,29 @@ export async function executeApprovedActions(
client: IndexerManagementClient,
): Promise<ActionResult[]> {
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) {
Expand Down
20 changes: 12 additions & 8 deletions packages/indexer-cli/src/cost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,19 @@ export const costModels = async (
client: IndexerManagementClient,
): Promise<Partial<CostModelAttributes>[]> => {
const result = await client
.query(gql`
{
costModels {
deployment
model
variables
.query(
gql`
{
costModels {
deployment
model
variables
}
}
}
`)
`,
[],
[],
)
.toPromise()

if (result.error) {
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions packages/indexer-service/src/query-fees/allocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ export class AllocationReceiptManager implements ReceiptManager {
allocationReceipt: state,
relatedAllocationSummary: summary,
})
},
)
})
logger.trace('End database transaction to process receipt')
}

Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -893,15 +893,15 @@
resolved "https://registry.yarnpkg.com/@google-cloud/promisify/-/promisify-4.0.0.tgz#a906e533ebdd0f754dca2509933334ce58b8c8b1"
integrity sha512-Orxzlfb9c67A15cq2JQEyVc7wEsmFBmHjZWZYQMUyJ1qivXyMwdyNOs9odi79hze+2zqdTtu1E19IM/FtqZ10g==

"@graphprotocol/[email protected].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/[email protected].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"
Expand Down Expand Up @@ -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/[email protected]", "@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/[email protected]":
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==
Expand Down

0 comments on commit 8d3e7c4

Please sign in to comment.