diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-13 09:37:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 09:37:18 +0800 |
commit | 138c952a1ad9a508c3e577d26ab8c514ef911a81 (patch) | |
tree | 3e027108539be90a11e65b5b560506bd97e8216a /libsolidity/interface/CompilerStack.h | |
parent | bd48f181b588978461fb4651839c62bcac7888d4 (diff) | |
parent | 54dcb0e11be09caf35e02792d47695685ba1f4cb (diff) | |
download | dexon-solidity-138c952a1ad9a508c3e577d26ab8c514ef911a81.tar dexon-solidity-138c952a1ad9a508c3e577d26ab8c514ef911a81.tar.gz dexon-solidity-138c952a1ad9a508c3e577d26ab8c514ef911a81.tar.bz2 dexon-solidity-138c952a1ad9a508c3e577d26ab8c514ef911a81.tar.lz dexon-solidity-138c952a1ad9a508c3e577d26ab8c514ef911a81.tar.xz dexon-solidity-138c952a1ad9a508c3e577d26ab8c514ef911a81.tar.zst dexon-solidity-138c952a1ad9a508c3e577d26ab8c514ef911a81.zip |
Merge pull request #2114 from ethereum/compilerstack-gasestimate
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. |