( abiPiece: RawEventAbiDefinition, registerStruct: (struct: StructType) => void, )
| 222 | } |
| 223 | |
| 224 | export function parseEvent( |
| 225 | abiPiece: RawEventAbiDefinition, |
| 226 | registerStruct: (struct: StructType) => void, |
| 227 | ): EventDeclaration { |
| 228 | debug(`Parsing event "${abiPiece.name}"`) |
| 229 | |
| 230 | return { |
| 231 | name: abiPiece.name, |
| 232 | isAnonymous: abiPiece.anonymous ?? false, |
| 233 | inputs: abiPiece.inputs.map(parseRawEventArg.bind(null, registerStruct)), |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | function parseRawEventArg( |
| 238 | registerStruct: (struct: StructType) => void, |
no outgoing calls
no test coverage detected
searching dependent graphs…