MCPcopy Create free account
hub / github.com/argotorg/solidity / interfaceEvents

Method interfaceEvents

libsolidity/ast/AST.cpp:250–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250std::vector<EventDefinition const*> ContractDefinition::interfaceEvents(bool _requireCallGraph) const
251{
252 std::set<EventDefinition const*, CompareByID> result;
253 for (ContractDefinition const* contract: annotation().linearizedBaseContracts)
254 result += contract->events();
255 solAssert(annotation().creationCallGraph.set() == annotation().deployedCallGraph.set());
256 if (_requireCallGraph)
257 solAssert(annotation().creationCallGraph.set());
258 if (annotation().creationCallGraph.set())
259 result += usedInterfaceEvents();
260 // We could filter out all events that do not have an external interface
261 // if _requireCallGraph is false.
262 return util::convertContainer<std::vector<EventDefinition const*>>(std::move(result));
263}
264
265std::vector<ErrorDefinition const*> ContractDefinition::interfaceErrors(bool _requireCallGraph) const
266{

Callers 2

generateMethod · 0.80
visitMethod · 0.80

Calls 2

eventsMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected