Export metrics for watcher config and upstream and external chain heads (#497)

* Add a cli to export chain head block numbers

* Use ETH RPC endpoint and allow env overrides

* Use ethers provider

* Export upstream chain head block number in watcher metrics

* Remove unnecessary exports

* Upgrade package versions

* Fix defaults usage

* Export watcher config in metrics

* Add metric for watcher sync mode

* Remove cache flag from watcher config metrics

* Update watcher config field names
This commit is contained in:
prathamesh0
2023-12-19 15:23:25 +05:30
committed by GitHub
parent 37732d1b1e
commit 78e43bc088
18 changed files with 197 additions and 43 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@cerc-io/codegen",
"version": "0.2.78",
"version": "0.2.79",
"description": "Code generator",
"private": true,
"main": "index.js",
@@ -20,7 +20,7 @@
},
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@cerc-io/util": "^0.2.78",
"@cerc-io/util": "^0.2.79",
"@graphql-tools/load-files": "^6.5.2",
"@npmcli/package-json": "^5.0.0",
"@poanet/solidity-flattener": "https://github.com/vulcanize/solidity-flattener.git",
@@ -41,12 +41,12 @@
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/cli": "^0.2.78",
"@cerc-io/ipld-eth-client": "^0.2.78",
"@cerc-io/solidity-mapper": "^0.2.78",
"@cerc-io/util": "^0.2.78",
"@cerc-io/cli": "^0.2.79",
"@cerc-io/ipld-eth-client": "^0.2.79",
"@cerc-io/solidity-mapper": "^0.2.79",
"@cerc-io/util": "^0.2.79",
{{#if (subgraphPath)}}
"@cerc-io/graph-node": "^0.2.78",
"@cerc-io/graph-node": "^0.2.79",
{{/if}}
"@ethersproject/providers": "^5.4.4",
"debug": "^4.3.1",