Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subgraph resolve error #58

Open
ancjf opened this issue Dec 2, 2022 · 0 comments
Open

subgraph resolve error #58

ancjf opened this issue Dec 2, 2022 · 0 comments

Comments

@ancjf
Copy link

ancjf commented Dec 2, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant