diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-07 00:59:16 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-19 22:57:36 +0800 |
commit | 8169e149c98b14861cc6467f9f796010f617c521 (patch) | |
tree | 2771e94fd75f6d6eeace1eb11b3320094fa10897 | |
parent | 6f9428e9008f9d979caf7ff2f67ae85c784a0111 (diff) | |
download | dexon-solidity-8169e149c98b14861cc6467f9f796010f617c521.tar dexon-solidity-8169e149c98b14861cc6467f9f796010f617c521.tar.gz dexon-solidity-8169e149c98b14861cc6467f9f796010f617c521.tar.bz2 dexon-solidity-8169e149c98b14861cc6467f9f796010f617c521.tar.lz dexon-solidity-8169e149c98b14861cc6467f9f796010f617c521.tar.xz dexon-solidity-8169e149c98b14861cc6467f9f796010f617c521.tar.zst dexon-solidity-8169e149c98b14861cc6467f9f796010f617c521.zip |
Rename CompilerStack.interface to CompilerStack.contractABI
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 2 | ||||
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 4 | ||||
-rw-r--r-- | solc/CommandLineInterface.cpp | 2 | ||||
-rw-r--r-- | solc/jsonCompiler.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 5c836358..7887a2cb 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -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); } diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index c1d344ca..e98c3b82 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -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. diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 0f2e83dc..badebf38 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -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)) diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp index 42c25de0..92a102b6 100644 --- a/solc/jsonCompiler.cpp +++ b/solc/jsonCompiler.cpp @@ -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); |