mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename CompilerStack.interface to CompilerStack.contractABI
This commit is contained in:
parent
6f9428e900
commit
8169e149c9
@ -444,7 +444,7 @@ map<string, unsigned> CompilerStack::sourceIndices() const
|
||||
return indices;
|
||||
}
|
||||
|
||||
Json::Value const& CompilerStack::interface(string const& _contractName) const
|
||||
Json::Value const& CompilerStack::contractABI(string const& _contractName) const
|
||||
{
|
||||
return metadata(_contractName, DocumentationType::ABIInterface);
|
||||
}
|
||||
|
@ -173,9 +173,9 @@ public:
|
||||
/// @returns a mapping assigning each source name its index inside the vector returned
|
||||
/// by sourceNames().
|
||||
std::map<std::string, unsigned> sourceIndices() const;
|
||||
/// @returns a JSON representing the contract interface.
|
||||
/// @returns a JSON representing the contract ABI.
|
||||
/// Prerequisite: Successful call to parse or compile.
|
||||
Json::Value const& interface(std::string const& _contractName = "") const;
|
||||
Json::Value const& contractABI(std::string const& _contractName = "") const;
|
||||
/// @returns a JSON representing the contract's documentation.
|
||||
/// Prerequisite: Successful call to parse or compile.
|
||||
/// @param type The type of the documentation to get.
|
||||
|
@ -787,7 +787,7 @@ void CommandLineInterface::handleCombinedJSON()
|
||||
{
|
||||
Json::Value contractData(Json::objectValue);
|
||||
if (requests.count(g_strAbi))
|
||||
contractData[g_strAbi] = dev::jsonCompactPrint(m_compiler->interface(contractName));
|
||||
contractData[g_strAbi] = dev::jsonCompactPrint(m_compiler->contractABI(contractName));
|
||||
if (requests.count("metadata"))
|
||||
contractData["metadata"] = m_compiler->onChainMetadata(contractName);
|
||||
if (requests.count(g_strBinary))
|
||||
|
@ -193,7 +193,7 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback
|
||||
for (string const& contractName: compiler.contractNames())
|
||||
{
|
||||
Json::Value contractData(Json::objectValue);
|
||||
contractData["interface"] = dev::jsonCompactPrint(compiler.interface(contractName));
|
||||
contractData["interface"] = dev::jsonCompactPrint(compiler.contractABI(contractName));
|
||||
contractData["bytecode"] = compiler.object(contractName).toHex();
|
||||
contractData["runtimeBytecode"] = compiler.runtimeObject(contractName).toHex();
|
||||
contractData["opcodes"] = solidity::disassemble(compiler.object(contractName).bytecode);
|
||||
|
Loading…
Reference in New Issue
Block a user