aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/CompilerStack.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-10 21:00:24 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-04-13 09:17:37 +0800
commite6221108b601938d6165cc1a0583d70c30e6e364 (patch)
treec838fb8e6fcc46285d9b0df59bd8ca898bc00ab9 /libsolidity/interface/CompilerStack.h
parentbd48f181b588978461fb4651839c62bcac7888d4 (diff)
downloaddexon-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.h3
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.