Clean up sushiswap-subgraph stack
This commit is contained in:
parent
ad10afa198
commit
4b33c17b88
@ -10,20 +10,12 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
- APP=v3
|
- APP=v3
|
||||||
# - NETWORK=lotus-fixturenet
|
|
||||||
- NETWORK=filecoin
|
- NETWORK=filecoin
|
||||||
command: ["bash", "-c", "./blocks/run-blocks.sh && ./v3/run-v3.sh"]
|
command: ["bash", "-c", "./blocks/run-blocks.sh && ./v3/run-v3.sh"]
|
||||||
working_dir: /app/subgraphs
|
working_dir: /app/subgraphs
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/sushiswap-subgraph-v3/filecoin.js:/app/config/filecoin.js
|
- ../config/sushiswap-subgraph-v3/filecoin.js:/app/config/filecoin.js
|
||||||
# - ../config/sushiswap-subgraph-v3/lotus-fixturenet.js.template:/app/config/lotus-fixturenet.js.template
|
|
||||||
- ../config/sushiswap-subgraph-v3/run-blocks.sh:/app/subgraphs/blocks/run-blocks.sh
|
- ../config/sushiswap-subgraph-v3/run-blocks.sh:/app/subgraphs/blocks/run-blocks.sh
|
||||||
- ../config/sushiswap-subgraph-v3/run-v3.sh:/app/subgraphs/v3/run-v3.sh
|
- ../config/sushiswap-subgraph-v3/run-v3.sh:/app/subgraphs/v3/run-v3.sh
|
||||||
# - sushiswap_core_deployment:/app/subgraphs/v3/core-deployments/docker
|
|
||||||
# - sushiswap_periphery_deployment:/app/subgraphs/v3/deployments/docker
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# sushiswap_core_deployment:
|
|
||||||
# sushiswap_periphery_deployment:
|
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
network: 'lotus-fixturenet',
|
|
||||||
v3: {
|
|
||||||
factory: {
|
|
||||||
address: 'FACTORY_ADDRESS',
|
|
||||||
startBlock: FACTORY_BLOCK
|
|
||||||
},
|
|
||||||
positionManager: {
|
|
||||||
address: 'NFPM_ADDRESS',
|
|
||||||
startBlock: NFPM_BLOCK
|
|
||||||
},
|
|
||||||
native: { address: 'NATIVE_ADDRESS' },
|
|
||||||
whitelistedTokenAddresses: [
|
|
||||||
'NATIVE_ADDRESS',
|
|
||||||
],
|
|
||||||
stableTokenAddresses: [
|
|
||||||
],
|
|
||||||
minimumEthLocked: 1.5
|
|
||||||
}
|
|
||||||
}
|
|
@ -2,33 +2,6 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Loop until the NFPM deployment is detected
|
|
||||||
# echo "Waiting for sushiswap-periphery deployments to occur"
|
|
||||||
# while [ ! -f ./deployments/docker/NonfungiblePositionManager.json ]; do
|
|
||||||
# sleep 5
|
|
||||||
# done
|
|
||||||
|
|
||||||
# echo "Reading contract addresses and block numbers from deployments"
|
|
||||||
# FACTORY_ADDRESS=$(jq -r '.address' ./core-deployments/docker/UniswapV3Factory.json)
|
|
||||||
# FACTORY_BLOCK=$(jq -r '.receipt.blockNumber' ./core-deployments/docker/UniswapV3Factory.json)
|
|
||||||
# NATIVE_ADDRESS=$(jq -r '.address' ./deployments/docker/WFIL.json)
|
|
||||||
# NFPM_ADDRESS=$(jq -r '.address' ./deployments/docker/NonfungiblePositionManager.json)
|
|
||||||
# NFPM_BLOCK=$(jq -r '.receipt.blockNumber' ./deployments/docker/NonfungiblePositionManager.json)
|
|
||||||
|
|
||||||
# Read the JavaScript file content
|
|
||||||
# file_content=$(</app/config/lotus-fixturenet.js.template)
|
|
||||||
|
|
||||||
# Replace uppercase words with environment variables
|
|
||||||
# echo "Reading values in lotus-fixturenet config"
|
|
||||||
# replaced_content=$(echo "$file_content" | sed -e "s/FACTORY_ADDRESS/$FACTORY_ADDRESS/g" \
|
|
||||||
# -e "s/FACTORY_BLOCK/$FACTORY_BLOCK/g" \
|
|
||||||
# -e "s/NFPM_ADDRESS/$NFPM_ADDRESS/g" \
|
|
||||||
# -e "s/NFPM_BLOCK/$NFPM_BLOCK/g" \
|
|
||||||
# -e "s/NATIVE_ADDRESS/$NATIVE_ADDRESS/g")
|
|
||||||
|
|
||||||
# Write the replaced content back to the JavaScript file
|
|
||||||
# echo "$replaced_content" > /app/config/lotus-fixturenet.js
|
|
||||||
|
|
||||||
echo "Building v3 subgraph and deploying to graph-node..."
|
echo "Building v3 subgraph and deploying to graph-node..."
|
||||||
|
|
||||||
cd v3
|
cd v3
|
||||||
@ -36,8 +9,6 @@ cd v3
|
|||||||
pnpm run generate
|
pnpm run generate
|
||||||
pnpm run build
|
pnpm run build
|
||||||
|
|
||||||
# pnpm exec graph create --node http://graph-node:8020/ sushiswap/v3-lotus
|
|
||||||
# pnpm exec graph deploy --node http://graph-node:8020/ --ipfs http://ipfs:5001 --version-label 0.1.0 sushiswap/v3-lotus
|
|
||||||
pnpm exec graph create --node http://graph-node:8020/ sushiswap/v3-filecoin
|
pnpm exec graph create --node http://graph-node:8020/ sushiswap/v3-filecoin
|
||||||
pnpm exec graph deploy --node http://graph-node:8020/ --ipfs http://ipfs:5001 --version-label 0.1.0 sushiswap/v3-filecoin
|
pnpm exec graph deploy --node http://graph-node:8020/ --ipfs http://ipfs:5001 --version-label 0.1.0 sushiswap/v3-filecoin
|
||||||
|
|
||||||
|
@ -1,28 +1,16 @@
|
|||||||
version: "1.0"
|
version: "1.0"
|
||||||
name: sushiswap-subgraph
|
name: sushiswap-subgraph
|
||||||
description: "An end-to-end SushiSwap Subgraph stack"
|
description: "SushiSwap Subgraph stack"
|
||||||
repos:
|
repos:
|
||||||
## fixturenet-lotus repo
|
|
||||||
# - github.com/filecoin-project/lotus
|
|
||||||
## graph-node repo
|
## graph-node repo
|
||||||
- github.com/graphprotocol/graph-node
|
- github.com/graphprotocol/graph-node
|
||||||
## sushiswap repos
|
## sushiswap subgraph repo
|
||||||
# - github.com/cerc-io/sushiswap-v3-core@watcher-ts
|
|
||||||
# - github.com/cerc-io/sushiswap-v3-periphery@watcher-ts
|
|
||||||
## subgraph repo
|
|
||||||
- github.com/sushiswap/subgraphs
|
- github.com/sushiswap/subgraphs
|
||||||
containers:
|
containers:
|
||||||
## fixturenet-lotus image
|
|
||||||
# - cerc/lotus
|
|
||||||
## graph-node image
|
## graph-node image
|
||||||
- cerc/graph-node
|
- cerc/graph-node
|
||||||
## sushiswap contract deployment images
|
|
||||||
# - cerc/sushiswap-v3-core
|
|
||||||
# - cerc/sushiswap-v3-periphery
|
|
||||||
## sushiswap subgraphs image
|
## sushiswap subgraphs image
|
||||||
- cerc/sushiswap-subgraphs
|
- cerc/sushiswap-subgraphs
|
||||||
pods:
|
pods:
|
||||||
# - fixturenet-lotus
|
|
||||||
- graph-node
|
- graph-node
|
||||||
# - contract-sushiswap
|
|
||||||
- sushiswap-subgraph-v3
|
- sushiswap-subgraph-v3
|
||||||
|
Loading…
Reference in New Issue
Block a user