Clean up sushiswap-subgraph stack
This commit is contained in:
parent
ad10afa198
commit
4b33c17b88
@ -10,20 +10,12 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- APP=v3
|
||||
# - NETWORK=lotus-fixturenet
|
||||
- NETWORK=filecoin
|
||||
command: ["bash", "-c", "./blocks/run-blocks.sh && ./v3/run-v3.sh"]
|
||||
working_dir: /app/subgraphs
|
||||
volumes:
|
||||
- ../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-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:
|
||||
- "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
|
||||
|
||||
# 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..."
|
||||
|
||||
cd v3
|
||||
@ -36,8 +9,6 @@ cd v3
|
||||
pnpm run generate
|
||||
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 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"
|
||||
name: sushiswap-subgraph
|
||||
description: "An end-to-end SushiSwap Subgraph stack"
|
||||
description: "SushiSwap Subgraph stack"
|
||||
repos:
|
||||
## fixturenet-lotus repo
|
||||
# - github.com/filecoin-project/lotus
|
||||
## graph-node repo
|
||||
- github.com/graphprotocol/graph-node
|
||||
## sushiswap repos
|
||||
# - github.com/cerc-io/sushiswap-v3-core@watcher-ts
|
||||
# - github.com/cerc-io/sushiswap-v3-periphery@watcher-ts
|
||||
## subgraph repo
|
||||
## sushiswap subgraph repo
|
||||
- github.com/sushiswap/subgraphs
|
||||
containers:
|
||||
## fixturenet-lotus image
|
||||
# - cerc/lotus
|
||||
## graph-node image
|
||||
- cerc/graph-node
|
||||
## sushiswap contract deployment images
|
||||
# - cerc/sushiswap-v3-core
|
||||
# - cerc/sushiswap-v3-periphery
|
||||
## sushiswap subgraphs image
|
||||
- cerc/sushiswap-subgraphs
|
||||
pods:
|
||||
# - fixturenet-lotus
|
||||
- graph-node
|
||||
# - contract-sushiswap
|
||||
- sushiswap-subgraph-v3
|
||||
|
Loading…
Reference in New Issue
Block a user