userbox020 / Substreams-Powered-Subgraph-SpS-

Uniswap V3 Test
0 stars 0 forks source link

hello #1

Open userbox020 opened 5 months ago

userbox020 commented 5 months ago

I do the follow steps but cant deploy, here next the steps to reproduce the error:

git clone https://github.com/streamingfast/substreams-uniswap-v3.git

cd substreams-uniswap-v3/

make build

make package

cargo build --target wasm32-unknown-unknown --release

substreams pack -o substreams.spkg substreams.yaml

make deploy_local

error

(base) mruserbox@guru-X99:/media/guru/8TB_HHD/graph-node/substreams-uniswap-v3$ make deploy_local
cargo build --target wasm32-unknown-unknown --release
   Compiling substreams-uniswap-v3 v0.1.0 (/media/guru/8TB_HHD/graph-node/substreams-uniswap-v3)
    Finished release [optimized] target(s) in 2m 12s
substreams pack -o substreams.spkg substreams.yaml
Successfully wrote "substreams.spkg".
mkdir build 2> /dev/null || true
graph build --ipfs http://localhost:5001 subgraph.yaml
  Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2 (graph-ts dependency not installed yet)
  Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3 (graph-ts dependency not installed yet)
  Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4 (graph-ts dependency not installed yet)
  Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5 (graph-ts dependency not installed yet)
  Skip migration: Bump mapping apiVersion from 0.0.5 to 0.0.6 (graph-ts dependency not installed yet)
  Skip migration: Bump manifest specVersion from 0.0.1 to 0.0.2
  Skip migration: Bump manifest specVersion from 0.0.2 to 0.0.4
✔ Apply migrations
✔ Load subgraph from subgraph.yaml
✔ Compile subgraph
  Copy schema file build/schema.graphql
  Write subgraph file build/uniswap_v3/substreams.spkg
  Write subgraph manifest build/subgraph.yaml
✔ Write compiled subgraph to build/
  Add file to IPFS build/schema.graphql
                .. QmUgUVBCvnN7VW5dCoV5rp8gfUGGxai56u2rWtiwDStYUm
  Add file to IPFS build/uniswap_v3/substreams.spkg
                .. QmUMgQbLhL6qdYQtdJjyCdfAJdzS3UNakBpxNCYzhjvuEN
✔ Upload subgraph to IPFS

Build completed: QmagygjECxUq55gxUVv1XmR4QaK36CA81iGeR9tVJX1LUt

graph create uniswap_v3 --node http://127.0.0.1:8020
 ›   Warning: In next major version, this command will be merged as a subcommand for `graph local`.
Created subgraph: uniswap_v3
graph deploy --node http://127.0.0.1:8020 --ipfs http://127.0.0.1:5001 --version-label v0.0.1 uniswap_v3 subgraph.yaml
  Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2 (graph-ts dependency not installed yet)
  Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3 (graph-ts dependency not installed yet)
  Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4 (graph-ts dependency not installed yet)
  Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5 (graph-ts dependency not installed yet)
  Skip migration: Bump mapping apiVersion from 0.0.5 to 0.0.6 (graph-ts dependency not installed yet)
  Skip migration: Bump manifest specVersion from 0.0.1 to 0.0.2
  Skip migration: Bump manifest specVersion from 0.0.2 to 0.0.4
✔ Apply migrations
✔ Load subgraph from subgraph.yaml
✔ Compile subgraph
  Copy schema file build/schema.graphql
  Write subgraph file build/uniswap_v3/substreams.spkg
  Write subgraph manifest build/subgraph.yaml
✔ Write compiled subgraph to build/
  Add file to IPFS build/schema.graphql
                .. QmUgUVBCvnN7VW5dCoV5rp8gfUGGxai56u2rWtiwDStYUm
  Add file to IPFS build/uniswap_v3/substreams.spkg
                .. QmUMgQbLhL6qdYQtdJjyCdfAJdzS3UNakBpxNCYzhjvuEN
✔ Upload subgraph to IPFS

Build completed: QmagygjECxUq55gxUVv1XmR4QaK36CA81iGeR9tVJX1LUt

✖ Failed to deploy to Graph node http://127.0.0.1:8020/: network not supported by registrar: no network mainnet found on chain substreams
/home/mruserbox/.nvm/versions/node/v22.2.0/lib/node_modules/@graphprotocol/graph-cli/node_modules/gluegun/build/index.js:15
    throw up;
    ^

ExitError: EEXIT: 1
    at Object.exit (/home/mruserbox/.nvm/versions/node/v22.2.0/lib/node_modules/@graphprotocol/graph-cli/node_modules/@oclif/core/lib/errors/index.js:21:11)
    at DeployCommand.exit (/home/mruserbox/.nvm/versions/node/v22.2.0/lib/node_modules/@graphprotocol/graph-cli/node_modules/@oclif/core/lib/command.js:131:23)
    at /home/mruserbox/.nvm/versions/node/v22.2.0/lib/node_modules/@graphprotocol/graph-cli/dist/commands/deploy.js:254:26
    at Client._parseResponse (/home/mruserbox/.nvm/versions/node/v22.2.0/lib/node_modules/@graphprotocol/graph-cli/node_modules/jayson/lib/client/index.js:212:14)
    at /home/mruserbox/.nvm/versions/node/v22.2.0/lib/node_modules/@graphprotocol/graph-cli/node_modules/jayson/lib/client/index.js:149:10
    at Utils.JSON.parse (/home/mruserbox/.nvm/versions/node/v22.2.0/lib/node_modules/@graphprotocol/graph-cli/node_modules/jayson/lib/utils.js:328:3)
    at IncomingMessage.<anonymous> (/home/mruserbox/.nvm/versions/node/v22.2.0/lib/node_modules/@graphprotocol/graph-cli/node_modules/jayson/lib/client/http.js:86:22)
    at IncomingMessage.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  oclif: { exit: 1 },
  code: 'EEXIT'
}

Node.js v22.2.0
make: *** [Makefile:30: deploy_local] Error 1
userbox020 commented 5 months ago

test

userbox020 commented 5 months ago

@dosu-bot

userbox020 commented 5 months ago

@dosu-bot