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

Add YAML parsing support to WASM runtime #5785

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

isum
Copy link
Member

@isum isum commented Jan 31, 2025

This PR implements two host functions that are exported to WASM mappings, allowing them to easily parse YAML documents.

The main use case for this feature is to parse subgrah manifests, but it is flexible enough to allow parsing any YAML document.

Part of #5772
AssemblyScript types are defined in graphprotocol/graph-tooling#1935

Tests

I have created and deployed a subgraph locally and tested the new host functions and all features/methods from graphprotocol/graph-tooling#1935

Todos

  • Add WASM runtime tests
  • Open a PR in graph-tooling repo with AssemblyScript type definitions

@isum isum self-assigned this Jan 31, 2025
@isum isum marked this pull request as ready for review January 31, 2025 19:24
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

Successfully merging this pull request may close these issues.

1 participant