Export all events.

Update tests.

Additional tests

Revert changes to the Natspec
This commit is contained in:
chriseth
2023-03-08 08:50:05 +01:00
committed by Nikola Matic
parent d30ec3548f
commit c95891b6ed
131 changed files with 1726 additions and 7 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ Json::Value ABI::generate(ContractDefinition const& _contractDef)
method["stateMutability"] = stateMutabilityToString(externalFunctionType->stateMutability());
abi.emplace(std::move(method));
}
for (auto const& it: _contractDef.definedInterfaceEvents())
for (auto const& it: _contractDef.interfaceEvents())
{
Json::Value event{Json::objectValue};
event["type"] = "event";
+5 -1
View File
@@ -82,7 +82,11 @@ Json::Value Natspec::userDocumentation(ContractDefinition const& _contractDef)
{
string value = extractDoc(event->annotation().docTags, "notice");
if (!value.empty())
doc["events"][event->functionType(true)->externalSignature()]["notice"] = value;
{
Json::Value eventDoc{Json::objectValue};
eventDoc["notice"] = value;
doc["events"][event->functionType(true)->externalSignature()].append(std::move(eventDoc));
}
}
for (auto const& error: _contractDef.interfaceErrors())