Fix sushiswap subgraph config in fixturenet stack
This commit is contained in:
parent
ba38e6b047
commit
5886972fd7
@ -19,8 +19,9 @@ services:
|
|||||||
GRAPH_LOG: debug
|
GRAPH_LOG: debug
|
||||||
ETHEREUM_REORG_THRESHOLD: 3
|
ETHEREUM_REORG_THRESHOLD: 3
|
||||||
entrypoint: ["bash", "-c"]
|
entrypoint: ["bash", "-c"]
|
||||||
|
# Wait for ETH RPC endpoint to be up when running with fixturenet-lotus
|
||||||
command: |
|
command: |
|
||||||
"wait_for ${ETH_RPC_HOST:-lotus-node-1}:${ETH_RPC_PORT:-1234} -t 60 -- start"
|
"wait_for ${ETH_RPC_HOST:-lotus-node-1}:${ETH_RPC_PORT:-1234} -t 1800 -- start"
|
||||||
ports:
|
ports:
|
||||||
- "8000"
|
- "8000"
|
||||||
- "8001"
|
- "8001"
|
||||||
|
@ -17,8 +17,8 @@ module.exports = {
|
|||||||
whitelistedTokenAddresses: [
|
whitelistedTokenAddresses: [
|
||||||
'NATIVE_ADDRESS',
|
'NATIVE_ADDRESS',
|
||||||
],
|
],
|
||||||
stableTokenAddresses: [
|
stableTokenAddresses: [],
|
||||||
],
|
nativePricePool: '0x0000000000000000000000000000000000000000',
|
||||||
minimumEthLocked: 1.5
|
minimumEthLocked: 1.5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,6 +143,42 @@ http://127.0.0.1:<HOST_PORT>/subgraphs/name/sushiswap/v3-lotus/graphql
|
|||||||
docker exec -it sushigraph-sushiswap-v3-core-1 pnpm run pool:burn:docker --pool $POOL_ADDRESS --amount 10
|
docker exec -it sushigraph-sushiswap-v3-core-1 pnpm run pool:burn:docker --pool $POOL_ADDRESS --amount 10
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Query the sushiswap v3-lotus subgraph GQL after running above commands
|
||||||
|
|
||||||
|
```graphql
|
||||||
|
{
|
||||||
|
_meta {
|
||||||
|
block {
|
||||||
|
number
|
||||||
|
}
|
||||||
|
deployment
|
||||||
|
hasIndexingErrors
|
||||||
|
}
|
||||||
|
|
||||||
|
factories {
|
||||||
|
poolCount
|
||||||
|
id
|
||||||
|
}
|
||||||
|
|
||||||
|
pools {
|
||||||
|
id
|
||||||
|
token0 {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
symbol
|
||||||
|
}
|
||||||
|
mints {
|
||||||
|
id
|
||||||
|
owner
|
||||||
|
}
|
||||||
|
burns {
|
||||||
|
id
|
||||||
|
owner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Clean up
|
## Clean up
|
||||||
|
|
||||||
Stop all the services running in background run:
|
Stop all the services running in background run:
|
||||||
|
Loading…
Reference in New Issue
Block a user