Regenerate watcher with latest codegen

This commit is contained in:
Prathamesh Musale 2024-05-14 11:04:37 +05:30
parent 8634ab2ba2
commit ce1bbaf2e7
4 changed files with 65 additions and 53 deletions

View File

@ -58,7 +58,9 @@
[upstream]
[upstream.ethServer]
rpcProviderEndpoint = "http://127.0.0.1:8081"
rpcProviderEndpoints = [
"http://127.0.0.1:8081"
]
# Boolean flag to specify if rpc-eth-client should be used for RPC endpoint instead of ipld-eth-client (ipld-eth-server GQL client)
rpcClient = true
@ -95,3 +97,6 @@
# Max block range of historical processing after which it waits for completion of events processing
# If set to -1 historical processing does not wait for events processing and completes till latest canonical block
historicalMaxFetchAhead = 10000
# Max number of retries to fetch new block after which watcher will failover to other RPC endpoints
maxNewBlockRetries = 3

View File

@ -39,11 +39,11 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "^0.2.84",
"@cerc-io/ipld-eth-client": "^0.2.84",
"@cerc-io/solidity-mapper": "^0.2.84",
"@cerc-io/util": "^0.2.84",
"@cerc-io/graph-node": "^0.2.84",
"@cerc-io/cli": "^0.2.86",
"@cerc-io/ipld-eth-client": "^0.2.86",
"@cerc-io/solidity-mapper": "^0.2.86",
"@cerc-io/util": "^0.2.86",
"@cerc-io/graph-node": "^0.2.86",
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",
"decimal.js": "^10.3.1",

View File

@ -326,6 +326,13 @@ export class Indexer implements IndexerInterface {
await this._baseIndexer.fetchStateStatus();
}
switchClients ({ ethClient, ethProvider }: { ethClient: EthClient, ethProvider: BaseProvider }): void {
this._ethClient = ethClient;
this._ethProvider = ethProvider;
this._baseIndexer.switchClients({ ethClient, ethProvider });
this._graphWatcher.switchClients({ ethClient, ethProvider });
}
async getMetaData (block: BlockHeight): Promise<ResultMeta | null> {
return this._baseIndexer.getMetaData(block);
}

View File

@ -176,10 +176,10 @@
binaryen "101.0.0-nightly.20210723"
long "^4.0.0"
"@cerc-io/cache@^0.2.84":
version "0.2.84"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcache/-/0.2.84/cache-0.2.84.tgz#03c0f1669af33c869e93662522fd1e8065a8f95f"
integrity sha512-I2nUJDbMuG0zV/fDY0wy19YVV/4d6CLCaA/lmbNoMjgZlqQni6k3vjf8Pa40oOCGx2YUMzSWRYWdSqMe5fY36g==
"@cerc-io/cache@^0.2.86":
version "0.2.86"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcache/-/0.2.86/cache-0.2.86.tgz#17ba76a53ae8810e72b3e3f0a425354b8a7de62c"
integrity sha512-T8EMkjTplyAsYvDpw175WTzRav+OZsgSP1DAoVWXFF16JeDu07obcMYBB2vygJI9IUXLJGZfpkqi5rN9C56iCQ==
dependencies:
canonical-json "^0.0.4"
debug "^4.3.1"
@ -187,19 +187,19 @@
fs-extra "^10.0.0"
level "^7.0.0"
"@cerc-io/cli@^0.2.84":
version "0.2.84"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcli/-/0.2.84/cli-0.2.84.tgz#bc82407a06fddfaa1a2fc5f2356fd4c3999e91f0"
integrity sha512-PiXuNlDJQN74vHRgSxPKCcG5+EhbxKzvGCVeSXGvDiaeOQHTjQndOkbOD4+PlLehOACjYB5LKgmHszFw1sy2Jw==
"@cerc-io/cli@^0.2.86":
version "0.2.86"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fcli/-/0.2.86/cli-0.2.86.tgz#18134a0fe56664a92de4acdb8040ebb1f6e7a65b"
integrity sha512-wCw8uCDhiUWGLUHX3QQ8SGa8TTFY0QuWz9CqCUCpEMursCYzVr9aCpfR/g8u7JQ1RiG+0MkmTL6qDcE/BaCq+A==
dependencies:
"@apollo/client" "^3.7.1"
"@cerc-io/cache" "^0.2.84"
"@cerc-io/ipld-eth-client" "^0.2.84"
"@cerc-io/cache" "^0.2.86"
"@cerc-io/ipld-eth-client" "^0.2.86"
"@cerc-io/libp2p" "^0.42.2-laconic-0.1.4"
"@cerc-io/nitro-node" "^0.1.15"
"@cerc-io/peer" "^0.2.84"
"@cerc-io/rpc-eth-client" "^0.2.84"
"@cerc-io/util" "^0.2.84"
"@cerc-io/peer" "^0.2.86"
"@cerc-io/rpc-eth-client" "^0.2.86"
"@cerc-io/util" "^0.2.86"
"@ethersproject/providers" "^5.4.4"
"@graphql-tools/utils" "^9.1.1"
"@ipld/dag-cbor" "^8.0.0"
@ -220,16 +220,16 @@
typeorm "0.2.37"
yargs "^17.0.1"
"@cerc-io/graph-node@^0.2.84":
version "0.2.84"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fgraph-node/-/0.2.84/graph-node-0.2.84.tgz#ad090f8f95599ace08f2e8107631e97b210307d8"
integrity sha512-2DxM7uNBxgRsQewPBqLDGYAz0KIY2GQEzPx3GIMug3FS+CJqF9/ZSE6oo6Xu1VaWxiMJrlYp40+tkC3pPE8JfA==
"@cerc-io/graph-node@^0.2.86":
version "0.2.86"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fgraph-node/-/0.2.86/graph-node-0.2.86.tgz#f9d9409f440c0291f45c5f0850587308e254fbf2"
integrity sha512-iyo6cNwKdQdOAR+L5nYKcOoIb5psZOHTKRYpfcKdjChHmNG84a9ZGa9FuSW5raXTWp8xpvvf38vh9ZgL3//V4Q==
dependencies:
"@apollo/client" "^3.3.19"
"@cerc-io/assemblyscript" "0.19.10-watcher-ts-0.1.2"
"@cerc-io/cache" "^0.2.84"
"@cerc-io/ipld-eth-client" "^0.2.84"
"@cerc-io/util" "^0.2.84"
"@cerc-io/cache" "^0.2.86"
"@cerc-io/ipld-eth-client" "^0.2.86"
"@cerc-io/util" "^0.2.86"
"@types/json-diff" "^0.5.2"
"@types/yargs" "^17.0.0"
bn.js "^4.11.9"
@ -246,14 +246,14 @@
typeorm-naming-strategies "^2.0.0"
yargs "^17.0.1"
"@cerc-io/ipld-eth-client@^0.2.84":
version "0.2.84"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fipld-eth-client/-/0.2.84/ipld-eth-client-0.2.84.tgz#7de294a233fadb34cddc1e995ee2fe5263aafd8c"
integrity sha512-45NH17v7U170w2phjA+w7ReCdVrREPCI9EpQN6OHkdCRbgYVoCG0+GU+D3lhU/XpkyiHoLZ5EIs/QImbOXuAvg==
"@cerc-io/ipld-eth-client@^0.2.86":
version "0.2.86"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fipld-eth-client/-/0.2.86/ipld-eth-client-0.2.86.tgz#f3ec4d79237cd5a831a14230a6f1fc8ff6ee862f"
integrity sha512-7d34yU+tPkh7QqUSOW0QQpMiaOWSXKf68Ym4SBKpBzHEOp0Z+F99SBD+59hOd/PpExdZ1U1sENSqmlaDEvWGmw==
dependencies:
"@apollo/client" "^3.7.1"
"@cerc-io/cache" "^0.2.84"
"@cerc-io/util" "^0.2.84"
"@cerc-io/cache" "^0.2.86"
"@cerc-io/util" "^0.2.86"
cross-fetch "^3.1.4"
debug "^4.3.1"
ethers "^5.4.4"
@ -406,10 +406,10 @@
unique-names-generator "^4.7.1"
yargs "^17.0.1"
"@cerc-io/peer@^0.2.84":
version "0.2.84"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.84/peer-0.2.84.tgz#ebe28375af90744485ff08abe9858743fe21a8d8"
integrity sha512-W5yUbzR+fUcy7UrMXbL1Yu0K/n15KgiZugkk7+bX7Q0yPlfdvCiS7WdCMlb+5XktNrmd6NfDAfP/ADL5fgXFWg==
"@cerc-io/peer@^0.2.86":
version "0.2.86"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.86/peer-0.2.86.tgz#a12355c2cf935c09d9d48acca5791ccd2fe75738"
integrity sha512-jRo65vAjvuzTKSj2TqQruyURrCwH1KywjWcsQENOTNQYshlw1cb+I1ygQsbSfBTtwIOKfGU7DIG2jIYUeqlCTA==
dependencies:
"@cerc-io/libp2p" "^0.42.2-laconic-0.1.4"
"@cerc-io/prometheus-metrics" "1.1.4"
@ -448,23 +448,23 @@
it-stream-types "^1.0.4"
promjs "^0.4.2"
"@cerc-io/rpc-eth-client@^0.2.84":
version "0.2.84"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Frpc-eth-client/-/0.2.84/rpc-eth-client-0.2.84.tgz#1ac4550c522a05dd1bbb043b2aa16e0cf3d8f206"
integrity sha512-+SW5y1MmMb7RFKUdG5yFtoBtfjeo02cyzd1PYdbtQHeRZnr5e7ABbguIAXFBG9FwhlPlgg72KH0CvhwbS+i+Ug==
"@cerc-io/rpc-eth-client@^0.2.86":
version "0.2.86"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Frpc-eth-client/-/0.2.86/rpc-eth-client-0.2.86.tgz#e89e31e9b0306a390f94bbdd5aba25afe19ecd11"
integrity sha512-Yd+EFGVvf9FWQEYGNrNtnMayvWWTi4/m23niFM6lerdPS36cfRVlixE61C8ZAGRkgHUz7U15D80coTc+Dfn4SQ==
dependencies:
"@cerc-io/cache" "^0.2.84"
"@cerc-io/ipld-eth-client" "^0.2.84"
"@cerc-io/util" "^0.2.84"
"@cerc-io/cache" "^0.2.86"
"@cerc-io/ipld-eth-client" "^0.2.86"
"@cerc-io/util" "^0.2.86"
chai "^4.3.4"
ethers "^5.4.4"
left-pad "^1.3.0"
mocha "^8.4.0"
"@cerc-io/solidity-mapper@^0.2.84":
version "0.2.84"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fsolidity-mapper/-/0.2.84/solidity-mapper-0.2.84.tgz#b35ba8c3d11eaabb9d425c31c7ea03bdadf0854b"
integrity sha512-xmTi0Beo9X6OVyWKUcdbZiFqwUiv6XJeyCLxFfdCqGChFmDfRGSAWhFFpCePrO/D7SLXZTUb/Py3/SNQhGiETw==
"@cerc-io/solidity-mapper@^0.2.86":
version "0.2.86"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fsolidity-mapper/-/0.2.86/solidity-mapper-0.2.86.tgz#f53ce86e976751a24d1a28bdbcbd7d65f61101b7"
integrity sha512-9oihUAOCyLa///GWvYddjEpS3k3On5SOEFE+Lx1r7oS4DLHgIDebXV5/2TsWagYLQVVFONbRfUu+l0tiI7VWRw==
dependencies:
dotenv "^10.0.0"
@ -473,15 +473,15 @@
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fts-channel/-/1.0.3-ts-nitro-0.1.1/ts-channel-1.0.3-ts-nitro-0.1.1.tgz#0768781313a167295c0bf21307f47e02dc17e936"
integrity sha512-2jFICUSyffuZ+8+qRhXuLSJq4GJ6Y02wxiXoubH0Kzv2lIKkJtWICY1ZQQhtXAvP0ncAQB85WJHqtqwH8l7J3Q==
"@cerc-io/util@^0.2.84":
version "0.2.84"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Futil/-/0.2.84/util-0.2.84.tgz#5815cd08a8b3aabb1ed8f8112b0cd0f124aac7a9"
integrity sha512-54NUv3T0saHXJlg2JxHFrClpjrQp/I/t7TW/l4uy3L/mp/l63sUiM1xSHOMa41g7QMKXVWw0c1nifC8xtNrq2g==
"@cerc-io/util@^0.2.86":
version "0.2.86"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Futil/-/0.2.86/util-0.2.86.tgz#7234f60b3ee4a116f0c90b7fc84b0fa4d29d923a"
integrity sha512-LZ4PDwEYEtykPhHQ2FjlpuMDzEHg8ggrVvxJiLrtF5DWVzqC0w2ukng+H0oRRQBdmT3Kv5UyV0r0KJqodRdwaQ==
dependencies:
"@apollo/utils.keyvaluecache" "^1.0.1"
"@cerc-io/nitro-node" "^0.1.15"
"@cerc-io/peer" "^0.2.84"
"@cerc-io/solidity-mapper" "^0.2.84"
"@cerc-io/peer" "^0.2.86"
"@cerc-io/solidity-mapper" "^0.2.86"
"@cerc-io/ts-channel" "1.0.3-ts-nitro-0.1.1"
"@ethersproject/properties" "^5.7.0"
"@ethersproject/providers" "^5.4.4"