Skip to content

Instantly share code, notes, and snippets.

@cargopete
Last active August 11, 2021 14:29
Show Gist options
  • Select an option

  • Save cargopete/46f1fe940c2250ca7b8a45386821a53c to your computer and use it in GitHub Desktop.

Select an option

Save cargopete/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