aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/Version.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-06 20:13:07 +0800
committerchriseth <c@ethdev.com>2015-10-06 20:20:06 +0800
commit99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54 (patch)
treefd0c7d5797454be93d4c767142ed6042ebf4d00f /libsolidity/Version.h
parent44e42bf52e481f4f653a669291812b4d31f06022 (diff)
downloaddexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.tar
dexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.tar.gz
dexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.tar.bz2
dexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.tar.lz
dexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.tar.xz
dexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.tar.zst
dexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.zip
Compiler version stamp.
Diffstat (limited to 'libsolidity/Version.h')
-rw-r--r--libsolidity/Version.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/Version.h b/libsolidity/Version.h
index 6e00f07b..fea73997 100644
--- a/libsolidity/Version.h
+++ b/libsolidity/Version.h
@@ -23,6 +23,7 @@
#pragma once
#include <string>
+#include <libdevcore/Common.h>
namespace dev
{
@@ -32,5 +33,10 @@ namespace solidity
extern char const* VersionNumber;
extern std::string const VersionString;
+/// @returns a binary form of the version string, where A.B.C-HASH is encoded such that
+/// the first byte is zero, the following three bytes encode A B and C (interpreted as decimals)
+/// and HASH is interpreted as 8 hex digits and encoded into the last four bytes.
+bytes binaryVersion();
+
}
}