diff options
author | chriseth <c@ethdev.com> | 2015-03-16 23:15:13 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-03-18 01:13:27 +0800 |
commit | 895c08342c4b236c2928a5af9fb23def218eca3d (patch) | |
tree | 8def3be200aa9c7b740dfd98ba48e3c7a961817c /Types.h | |
parent | ed757ba5bf1090ba8a9a5e3e6a29da8785afb861 (diff) | |
download | dexon-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |