|
|
@ -179,6 +179,24 @@ string const& CompilerStack::getMetadata(string const& _contractName, Documentat |
|
|
|
return *(*doc); |
|
|
|
} |
|
|
|
|
|
|
|
std::string const CompilerStack::getFunctionHashes(std::string const& _contractName) |
|
|
|
{ |
|
|
|
if (!m_parseSuccessful) |
|
|
|
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Parsing was not successful.")); |
|
|
|
|
|
|
|
std::string ret = ""; |
|
|
|
Contract const& contract = getContract(_contractName); |
|
|
|
auto interfaceFunctions = contract.contract->getInterfaceFunctions(); |
|
|
|
|
|
|
|
for (auto const& it: interfaceFunctions) |
|
|
|
{ |
|
|
|
ret += it.first.abridged(); |
|
|
|
ret += " :"; |
|
|
|
ret += it.second->getName() + "\n"; |
|
|
|
} |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|
Scanner const& CompilerStack::getScanner(string const& _sourceName) const |
|
|
|
{ |
|
|
|
return *getSource(_sourceName).scanner; |
|
|
|