Skip to content

Commit

Permalink
*: Upgrade common-ts dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
fordN committed Nov 17, 2023
1 parent 5bc4a12 commit b3cd6d5
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 18 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.7",
"@graphprotocol/common-ts": "2.0.9",
"@graphprotocol/indexer-common": "^0.20.23",
"@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.7",
"@graphprotocol/common-ts": "2.0.9",
"@graphprotocol/indexer-common": "^0.20.23",
"@iarna/toml": "2.2.5",
"@thi.ng/iterators": "5.1.74",
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.7",
"@graphprotocol/common-ts": "2.0.9",
"@graphprotocol/cost-model": "0.1.16",
"@thi.ng/heaps": "1.2.38",
"@types/lodash.clonedeep": "^4.5.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const setupMonitor = async () => {
level: __LOG_LEVEL__ ?? 'error',
})
ethereum = getTestProvider('goerli')
contracts = await connectContracts(ethereum, 5)
contracts = await connectContracts(ethereum, 5, undefined)

const subgraphFreshnessChecker = new SubgraphFreshnessChecker(
'Test Subgraph',
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-common/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ async function connectToProtocolContracts(

let contracts
try {
contracts = await connectContracts(wallet, numericNetworkId)
contracts = await connectContracts(wallet, numericNetworkId, undefined)
} catch (error) {
const errorMessage =
'Failed to connect to contracts, please ensure you are using the intended protocol network.'
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.7",
"@graphprotocol/common-ts": "2.0.9",
"@mapbox/node-pre-gyp": "1.0.10",
"cargo-cp-artifact": "0.1.7",
"node-pre-gyp-github": "1.4.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@google-cloud/profiler": "4.1.7",
"@graphprotocol/common-ts": "2.0.7",
"@graphprotocol/common-ts": "2.0.9",
"@graphprotocol/indexer-common": "^0.20.23",
"@graphprotocol/indexer-native": "0.20.11",
"@graphql-tools/load": "8.0.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/indexer-service/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,11 @@ export default {

let contracts = undefined
try {
contracts = await connectContracts(networkProvider, networkIdentifier.chainId)
contracts = await connectContracts(
networkProvider,
networkIdentifier.chainId,
undefined,
)
} catch (error) {
logger.error(
`Failed to connect to contracts, please ensure you are using the intended Ethereum Network`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const setup = async () => {
queryFeeModels = defineQueryFeeModels(sequelize)
models = defineIndexerManagementModels(sequelize)
address = '0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1'
contracts = await connectContracts(getTestProvider('goerli'), 5)
contracts = await connectContracts(getTestProvider('goerli'), 5, undefined)
sequelize = await sequelize.sync({ force: true })
const statusEndpoint = 'http://localhost:8030/graphql'
indexingStatusResolver = new IndexingStatusResolver({
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -831,12 +831,12 @@
resolved "https://registry.npmjs.org/@google-cloud/promisify/-/promisify-2.0.4.tgz#9d8705ecb2baa41b6b2673f3a8e9b7b7e1abc52a"
integrity sha512-j8yRSSqswWi1QqUGKVEKOG03Q7qOoZP6/h2zN2YO+F5h2+DHU0bSrHCK9Y7lo2DI9fBd8qGAw795sf+3Jva4yA==

"@graphprotocol/[email protected].7":
version "2.0.7"
resolved "https://registry.npmjs.org/@graphprotocol/common-ts/-/common-ts-2.0.7.tgz#733ac3d46c9e24f997e7f8d00ffc9128d129285e"
integrity sha512-1O2bvXibViMTkiWNvOjijHR5+cMsuEXIZiUxR3pl4Lan9U2kBfGqJAas8qnrpdc/RdRGooYRMP3hXVB9N8bERA==
"@graphprotocol/[email protected].9":
version "2.0.9"
resolved "https://registry.npmjs.org/@graphprotocol/common-ts/-/common-ts-2.0.9.tgz#c92ba7bb7bd5eb662c424b14a67a674228e2c37d"
integrity sha512-ZPONJg1+uMe6kAIILjl/YjKvK8nTcuz4GqL5yLZjPh/0w5fsGs5KCH6yKMLVAf4ZH6YNY0l9xJlRd1Nkb8JH+w==
dependencies:
"@graphprotocol/contracts" "5.2.1"
"@graphprotocol/contracts" "5.3.3"
"@graphprotocol/pino-sentry-simple" "0.7.1"
"@urql/core" "2.4.4"
"@urql/exchange-execute" "1.2.2"
Expand All @@ -858,10 +858,10 @@
prom-client "14.2.0"
sequelize "6.33.0"

"@graphprotocol/contracts@5.2.1":
version "5.2.1"
resolved "https://registry.npmjs.org/@graphprotocol/contracts/-/contracts-5.2.1.tgz#537e13697ca83c78498242706708b65550a656f7"
integrity sha512-32L6TN50hUcvVg5LDKQfUeJcrAN+sHMGEXVagMbJf9tLSCFAIheg0MPq0s9lQ+89GS1TJPA/fwwv8o268EtU4Q==
"@graphprotocol/contracts@5.3.3":
version "5.3.3"
resolved "https://registry.npmjs.org/@graphprotocol/contracts/-/contracts-5.3.3.tgz#89c383ce244d9ed6cf1146baafde379cbbdfdfe6"
integrity sha512-fmFSKr+VDinWWotj2q/Ztn92PppcRrYXeO/62gLgkLos/DcYa7bGWKbcOWyMUw0vsUvXxk6QAtr5o/LG3yQ1WQ==
dependencies:
console-table-printer "^2.11.1"
ethers "^5.6.0"
Expand Down

0 comments on commit b3cd6d5

Please sign in to comment.