MCPcopy Create free account
hub / github.com/subquery/subql / getFragmentFormats

Function getFragmentFormats

packages/cli/src/controller/generate-controller.ts:150–155  ·  view source on GitHub ↗
(fragment: T)

Source from the content-addressed store, hash-verified

148}
149
150export function getFragmentFormats<T extends ConstructorFragment | Fragment>(fragment: T): {full: string; min: string} {
151 return {
152 full: removeKeyword(fragment.format('full')),
153 min: removeKeyword(fragment.format('minimal')),
154 };
155}
156
157export function generateHandlerName(name: string, abiName: string, type: 'tx' | 'log'): string {
158 return `handle${upperFirst(name)}${upperFirst(abiName)}${upperFirst(type)}`;

Callers 1

filterExistingFragmentsFunction · 0.85

Calls 1

removeKeywordFunction · 0.85

Tested by

no test coverage detected