(fragment: T)
| 148 | } |
| 149 | |
| 150 | export 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 | |
| 157 | export function generateHandlerName(name: string, abiName: string, type: 'tx' | 'log'): string { |
| 158 | return `handle${upperFirst(name)}${upperFirst(abiName)}${upperFirst(type)}`; |
no test coverage detected