diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-10 21:00:24 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-13 09:17:37 +0800 |
commit | e6221108b601938d6165cc1a0583d70c30e6e364 (patch) | |
tree | c838fb8e6fcc46285d9b0df59bd8ca898bc00ab9 /libsolidity/interface/CompilerStack.h | |
parent | bd48f181b588978461fb4651839c62bcac7888d4 (diff) | |
download | dexon-solidity-e6221108b601938d6165cc1a0583d70c30e6e364.tar.gz dexon-solidity-e6221108b601938d6165cc1a0583d70c30e6e364.tar.zst dexon-solidity-e6221108b601938d6165cc1a0583d70c30e6e364.zip |
Move gasEstimate into CompilerStack
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index 9c37eead..a34a34bb 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -173,6 +173,9 @@ public: std::string const& onChainMetadata(std::string const& _contractName) const; void useMetadataLiteralSources(bool _metadataLiteralSources) { m_metadataLiteralSources = _metadataLiteralSources; } + /// @returns a JSON representing the estimated gas usage for contract creation, internal and external functions + Json::Value gasEstimates(std::string const& _contractName) const; + /// @returns the previously used scanner, useful for counting lines during error reporting. Scanner const& scanner(std::string const& _sourceName = "") const; /// @returns the parsed source unit with the supplied name. |