(sourceCode: string)
| 203 | } |
| 204 | |
| 205 | export function parseCode2(sourceCode: string): { |
| 206 | functions: AbiFunction[]; |
| 207 | errors: AbiError[]; |
| 208 | structs: AbiType<true>[], |
| 209 | events: AbiEvent[] |
| 210 | } { |
| 211 | const input = Parser.parseFile(sourceCode); |
| 212 | const handler = new ParserWrapper(input); |
| 213 | return { |
| 214 | functions: handler.allFunctions, |
| 215 | errors: handler.allErrors, |
| 216 | structs: handler.allStructs, |
| 217 | events: handler.allEvents |
| 218 | }; |
| 219 | } |
| 220 | |
| 221 | export const elementaryToTypeDef = (typeName: string): AbiElementaryType => { |
| 222 | const isBool = /bool/g.exec(typeName); |
nothing calls this directly
no outgoing calls
no test coverage detected