aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-03-16 23:15:13 +0800
committerchriseth <c@ethdev.com>2015-03-18 01:13:27 +0800
commit895c08342c4b236c2928a5af9fb23def218eca3d (patch)
tree8def3be200aa9c7b740dfd98ba48e3c7a961817c /Types.h
parented757ba5bf1090ba8a9a5e3e6a29da8785afb861 (diff)
downloaddexon-solidity-895c08342c4b236c2928a5af9fb23def218eca3d.tar.gz
dexon-solidity-895c08342c4b236c2928a5af9fb23def218eca3d.tar.zst
dexon-solidity-895c08342c4b236c2928a5af9fb23def218eca3d.zip
Provide access to storage offsets via contract type.
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Types.h b/Types.h
index e7601fde..c7dbcdeb 100644
--- a/Types.h
+++ b/Types.h
@@ -403,6 +403,10 @@ public:
/// not exist.
u256 getFunctionIdentifier(std::string const& _functionName) const;
+ /// @returns a list of all state variables (including inherited) of the contract and their
+ /// offsets in storage.
+ std::vector<std::tuple<VariableDeclaration const*, u256, unsigned>> getStateVariables() const;
+
private:
ContractDefinition const& m_contract;
/// If true, it is the "super" type of the current contract, i.e. it contains only inherited