Skip to content

Instantly share code, notes, and snippets.

@axiomatic-aardvark
Last active August 11, 2021 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axiomatic-aardvark/46f1fe940c2250ca7b8a45386821a53c to your computer and use it in GitHub Desktop.
Save axiomatic-aardvark/46f1fe940c2250ca7b8a45386821a53c to your computer and use it in GitHub Desktop.
import { addMetadata } from "matchstick-as/assembly/index";
import { ethereum } from "@graphprotocol/graph-ts";
import { NewCustomEntity } from "../generated/MyDataSource/Example";
let base: ethereum.Event = new NewCustomEntity();
let newEntityEvent: NewCustomEntity = addMetadata(base);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment