graphprotocol / support

Community support for the Hosted Service of The Graph
https://thegraph.com/
10 stars 3 forks source link

Feature request: generic entry point #58

Open eternauta1337 opened 4 years ago

eternauta1337 commented 4 years ago

In some cases, you could have templates that are not generated by a factory contract, or that are generated by a factory contract that does not emit an event, but you somehow know the addresses of these contracts.

An easy workaround is to duplicate code in the yaml config file, or to generate it dynamically.

It would be nice tho to have some sort of entry function that you could call, to instantiate the templates yourself. Something like:

export function handleEntry(event: null): void {
  MyTemplate.create('0x123...')
  MyTemplate.create('0x123...')
  MyTemplate.create('0x123...')
  MyTemplate.create('0x123...')
}