(project: SubqueryProject)
| 131 | } |
| 132 | |
| 133 | export function isOnlyEventHandlers(project: SubqueryProject): boolean { |
| 134 | const hasNonEventHandler = !!project.dataSources.find((ds) => |
| 135 | dsContainsNonEventHandlers(ds), |
| 136 | ); |
| 137 | const hasNonEventTemplate = !!project.templates.find((ds) => |
| 138 | dsContainsNonEventHandlers(ds as SubstrateProjectDs), |
| 139 | ); |
| 140 | |
| 141 | return !hasNonEventHandler && !hasNonEventTemplate; |
| 142 | } |
no test coverage detected