( registerStruct: (struct: StructType) => void, outputs?: Array<RawAbiParameter>, )
| 211 | } |
| 212 | |
| 213 | function parseOutputs( |
| 214 | registerStruct: (struct: StructType) => void, |
| 215 | outputs?: Array<RawAbiParameter>, |
| 216 | ): AbiOutputParameter[] { |
| 217 | if (!outputs || outputs.length === 0) { |
| 218 | return [{ name: '', type: { type: 'void' } }] |
| 219 | } else { |
| 220 | return outputs.map(parseRawAbiParameter.bind(null, registerStruct)) |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | export function parseEvent( |
| 225 | abiPiece: RawEventAbiDefinition, |
no outgoing calls
no test coverage detected
searching dependent graphs…