Regenerate sushiswap watcher
This commit is contained in:
parent
8397228074
commit
a69a7fecb9
3
packages/sushiswap-watcher/.gitignore
vendored
3
packages/sushiswap-watcher/.gitignore
vendored
@ -1,7 +1,8 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
out/
|
out/
|
||||||
gql-logs/
|
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
gql-logs/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Source
|
## Source
|
||||||
|
|
||||||
* Subgraph: sushiswap-subgraphs release-v0.1.0-watcher
|
* Subgraph: [sushiswap-subgraphs v0.1.0-watcher](https://github.com/cerc-io/sushiswap-subgraphs/releases/tag/v0.1.0-watcher)
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
@ -64,7 +64,6 @@
|
|||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
[upstream.ethServer]
|
[upstream.ethServer]
|
||||||
gqlApiEndpoint = "http://127.0.0.1:8082/graphql"
|
|
||||||
rpcProviderEndpoints = [
|
rpcProviderEndpoints = [
|
||||||
"http://127.0.0.1:8081"
|
"http://127.0.0.1:8081"
|
||||||
]
|
]
|
||||||
@ -93,6 +92,9 @@
|
|||||||
subgraphEventsOrder = true
|
subgraphEventsOrder = true
|
||||||
blockDelayInMilliSecs = 2000
|
blockDelayInMilliSecs = 2000
|
||||||
|
|
||||||
|
# Number of blocks by which block processing lags behind head
|
||||||
|
blockProcessingOffset = 16
|
||||||
|
|
||||||
# Boolean to switch between modes of processing events when starting the server.
|
# Boolean to switch between modes of processing events when starting the server.
|
||||||
# Setting to true will fetch filtered events and required blocks in a range of blocks and then process them.
|
# Setting to true will fetch filtered events and required blocks in a range of blocks and then process them.
|
||||||
# Setting to false will fetch blocks consecutively with its events and then process them (Behaviour is followed in realtime processing near head).
|
# Setting to false will fetch blocks consecutively with its events and then process them (Behaviour is followed in realtime processing near head).
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/cerc-io/watcher-ts.git"
|
"url": "https://github.com/cerc-io/watcher-ts.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
@ -39,11 +39,11 @@
|
|||||||
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
|
"homepage": "https://github.com/cerc-io/watcher-ts#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "^3.3.19",
|
"@apollo/client": "^3.3.19",
|
||||||
"@cerc-io/cli": "^0.2.94",
|
"@cerc-io/cli": "^0.2.97",
|
||||||
"@cerc-io/ipld-eth-client": "^0.2.94",
|
"@cerc-io/ipld-eth-client": "^0.2.97",
|
||||||
"@cerc-io/solidity-mapper": "^0.2.94",
|
"@cerc-io/solidity-mapper": "^0.2.97",
|
||||||
"@cerc-io/util": "^0.2.94",
|
"@cerc-io/util": "^0.2.97",
|
||||||
"@cerc-io/graph-node": "^0.2.94",
|
"@cerc-io/graph-node": "^0.2.97",
|
||||||
"@ethersproject/providers": "^5.4.4",
|
"@ethersproject/providers": "^5.4.4",
|
||||||
"debug": "^4.3.1",
|
"debug": "^4.3.1",
|
||||||
"decimal.js": "^10.3.1",
|
"decimal.js": "^10.3.1",
|
||||||
@ -71,6 +71,7 @@
|
|||||||
"eslint-plugin-standard": "^5.0.0",
|
"eslint-plugin-standard": "^5.0.0",
|
||||||
"husky": "^7.0.2",
|
"husky": "^7.0.2",
|
||||||
"ts-node": "^10.2.1",
|
"ts-node": "^10.2.1",
|
||||||
"typescript": "^5.0.2"
|
"typescript": "^5.0.2",
|
||||||
|
"winston": "^3.13.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,6 +86,8 @@ const executeAndRecordMetrics = async (
|
|||||||
apiKey: expressContext.req.header('x-api-key'),
|
apiKey: expressContext.req.header('x-api-key'),
|
||||||
origin: expressContext.req.headers.origin
|
origin: expressContext.req.headers.origin
|
||||||
});
|
});
|
||||||
|
|
||||||
|
throw error;
|
||||||
} finally {
|
} finally {
|
||||||
endTimer();
|
endTimer();
|
||||||
}
|
}
|
||||||
|
32
yarn.lock
32
yarn.lock
@ -394,37 +394,7 @@
|
|||||||
lodash "^4.17.21"
|
lodash "^4.17.21"
|
||||||
uint8arrays "^4.0.3"
|
uint8arrays "^4.0.3"
|
||||||
|
|
||||||
"@cerc-io/peer@^0.2.65":
|
"@cerc-io/peer@^0.2.65", "@cerc-io/peer@^0.2.97":
|
||||||
version "0.2.93"
|
|
||||||
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.93/peer-0.2.93.tgz#4290d8e279f4e36d6e6673f493395a78230b5567"
|
|
||||||
integrity sha512-LA2x973cp4QtuBhILgX/2HYH5hQFB4su7w/gTQEzgKsnm8Zwv+dKriciJP0vxycMlZFRIDsSheYJkRPBz2vVEQ==
|
|
||||||
dependencies:
|
|
||||||
"@cerc-io/libp2p" "^0.42.2-laconic-0.1.4"
|
|
||||||
"@cerc-io/prometheus-metrics" "1.1.4"
|
|
||||||
"@chainsafe/libp2p-gossipsub" "^6.0.0"
|
|
||||||
"@chainsafe/libp2p-noise" "^11.0.0"
|
|
||||||
"@chainsafe/libp2p-yamux" "3.0.7"
|
|
||||||
"@libp2p/floodsub" "^6.0.0"
|
|
||||||
"@libp2p/mplex" "^7.1.1"
|
|
||||||
"@libp2p/peer-id-factory" "^2.0.0"
|
|
||||||
"@libp2p/pubsub-peer-discovery" "^8.0.0"
|
|
||||||
"@libp2p/websockets" "^5.0.5"
|
|
||||||
"@multiformats/multiaddr" "^11.1.4"
|
|
||||||
assert "^2.0.0"
|
|
||||||
buffer "^6.0.3"
|
|
||||||
chai "^4.3.4"
|
|
||||||
debug "^4.3.1"
|
|
||||||
it-length-prefixed "^8.0.4"
|
|
||||||
it-map "^2.0.0"
|
|
||||||
it-pipe "^2.0.5"
|
|
||||||
it-pushable "^3.1.2"
|
|
||||||
mocha "^8.4.0"
|
|
||||||
p-event "^5.0.1"
|
|
||||||
uint8arrays "^4.0.3"
|
|
||||||
unique-names-generator "^4.7.1"
|
|
||||||
yargs "^17.0.1"
|
|
||||||
|
|
||||||
"@cerc-io/peer@^0.2.97":
|
|
||||||
version "0.2.97"
|
version "0.2.97"
|
||||||
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.97/peer-0.2.97.tgz#6b386a53220bb4b026337eb2ef4246b3eeb947f9"
|
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fpeer/-/0.2.97/peer-0.2.97.tgz#6b386a53220bb4b026337eb2ef4246b3eeb947f9"
|
||||||
integrity sha512-ylJslts/q6uGVlHS27GiHKYVpTTTv/4vryexxqDPA45YJRk0vCleqRDPehRQr40kCgBQjG9W92Uwcwr7HcSQxQ==
|
integrity sha512-ylJslts/q6uGVlHS27GiHKYVpTTTv/4vryexxqDPA45YJRk0vCleqRDPehRQr40kCgBQjG9W92Uwcwr7HcSQxQ==
|
||||||
|
Loading…
Reference in New Issue
Block a user