/src/solidity/libevmasm/AbstractAssemblyStack.h
Line | Count | Source |
1 | | /* |
2 | | This file is part of solidity. |
3 | | |
4 | | solidity is free software: you can redistribute it and/or modify |
5 | | it under the terms of the GNU General Public License as published by |
6 | | the Free Software Foundation, either version 3 of the License, or |
7 | | (at your option) any later version. |
8 | | |
9 | | solidity is distributed in the hope that it will be useful, |
10 | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | | GNU General Public License for more details. |
13 | | |
14 | | You should have received a copy of the GNU General Public License |
15 | | along with solidity. If not, see <http://www.gnu.org/licenses/>. |
16 | | */ |
17 | | // SPDX-License-Identifier: GPL-3.0 |
18 | | |
19 | | #pragma once |
20 | | |
21 | | #include <libevmasm/LinkerObject.h> |
22 | | |
23 | | #include <libsolutil/Common.h> |
24 | | #include <libsolutil/JSON.h> |
25 | | |
26 | | #include <string> |
27 | | #include <vector> |
28 | | |
29 | | namespace solidity::evmasm |
30 | | { |
31 | | |
32 | | class AbstractAssemblyStack |
33 | | { |
34 | | public: |
35 | 32.7k | virtual ~AbstractAssemblyStack() {} |
36 | | |
37 | | virtual LinkerObject const& object(std::string const& _contractName) const = 0; |
38 | | virtual LinkerObject const& runtimeObject(std::string const& _contractName) const = 0; |
39 | | |
40 | | virtual std::string const* sourceMapping(std::string const& _contractName) const = 0; |
41 | | virtual std::string const* runtimeSourceMapping(std::string const& _contractName) const = 0; |
42 | | |
43 | | virtual Json ethdebug(std::string const& _contractName) const = 0; |
44 | | virtual Json ethdebugRuntime(std::string const& _contractName) const = 0; |
45 | | virtual Json ethdebug() const = 0; |
46 | | |
47 | | virtual Json assemblyJSON(std::string const& _contractName) const = 0; |
48 | | virtual std::string assemblyString(std::string const& _contractName, StringMap const& _sourceCodes) const = 0; |
49 | | |
50 | | virtual std::string const filesystemFriendlyName(std::string const& _contractName) const = 0; |
51 | | |
52 | | virtual std::vector<std::string> contractNames() const = 0; |
53 | | virtual std::vector<std::string> sourceNames() const = 0; |
54 | | |
55 | | virtual bool compilationSuccessful() const = 0; |
56 | | }; |
57 | | |
58 | | } // namespace solidity::evmasm |