Skip to content

subgraph resolve error #58

@ancjf

Description

@ancjf

I run the command:
yarn setup

You get an error:
✖ Failed to deploy to Graph node http://127.0.0.1:8020/: subgraph resolve error: resolve error: Serialization error: Invalid operation type error. at line 28 column 3
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I deleted the contents of the schema.graphql file:

  • kind: ethereum/contract
    name: NameWrapper
    network: ethereum
    source:
    abi: NameWrapper
    mapping:
    kind: ethereum/events
    apiVersion: 0.0.5
    language: wasm/assemblyscript
    file: ./src/nameWrapper.ts
    entities:
    - NameWrapper
    abis:
    - name: NameWrapper
    file: ./abis/NameWrapper.json
    eventHandlers:
    - event: "NameWrapped(indexed bytes32,bytes,address,uint32,uint64)"
    handler: handleNameWrapped
    - event: "NameUnwrapped(indexed bytes32,address)"
    handler: handleNameUnwrapped
    - event: "FusesSet(indexed bytes32,uint32,uint64)"
    handler: handleFusesSet

yarn setup
It works.

Revision: 64564ba

Please help me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions