UNPKG

quasvel

Version:

Access and interact with Aragon Organizations and their apps.

23 lines (20 loc) 782 B
import { Address } from '@graphprotocol/graph-ts' /* * Called when an app proxy is detected. * * Return the name of a data source template if you would like to create it for a given appId. * Return null otherwise. * * The returned name is used to instantiate a template declared in the subgraph manifest file, * which must have the same name. */ export function getTemplateForApp(appId: string): string | null { if (appId == '0x9fa3927f639745e587912d4b0fea7ef9013bf93fb907d29faeab57417ba6e1d4') { return 'Voting' } else { return null } } export function onOrgTemplateCreated(orgAddress: Address): void {} export function onAppTemplateCreated(appAddress: Address, appId: string): void {} export function onTokenTemplateCreated(tokenAddress: Address): void {}