aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/CompilerStack.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-09-14 20:56:01 +0800
committerchriseth <c@ethdev.com>2015-09-14 20:56:01 +0800
commit9309b6aa82de6bbe7a93d34559b6cfca20c5978d (patch)
tree1457e0d1d8f5627c01c6082252f3050bc6a5dce3 /libsolidity/CompilerStack.h
parent4360e0459622e7843ca9f8d7fb5113da0b8a044e (diff)
parent70c0ed41290f3de001fed5b4f0f28993486ba445 (diff)
downloaddexon-solidity-9309b6aa82de6bbe7a93d34559b6cfca20c5978d.tar.gz
dexon-solidity-9309b6aa82de6bbe7a93d34559b6cfca20c5978d.tar.zst
dexon-solidity-9309b6aa82de6bbe7a93d34559b6cfca20c5978d.zip
Merge pull request #70 from chriseth/sol_libraries2
Commandline interface for linker.
Diffstat (limited to 'libsolidity/CompilerStack.h')
-rw-r--r--libsolidity/CompilerStack.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libsolidity/CompilerStack.h b/libsolidity/CompilerStack.h
index 8db8aff4..99e8af1a 100644
--- a/libsolidity/CompilerStack.h
+++ b/libsolidity/CompilerStack.h
@@ -96,9 +96,12 @@ public:
/// @returns the compiled linker object
eth::LinkerObject const& compile(std::string const& _sourceCode, bool _optimize = false);
- /// @returns the assembled bytecode for a contract (empty if it has to be linked or lacks implementation).
+ /// Inserts the given addresses into the linker objects of all compiled contracts.
+ void link(std::map<std::string, h160> const& _libraries);
+
+ /// @returns the assembled object for a contract.
eth::LinkerObject const& object(std::string const& _contractName = "") const;
- /// @returns the runtime bytecode for the contract (empty if it has to be linked or lacks implementation).
+ /// @returns the runtime object for the contract.
eth::LinkerObject const& runtimeObject(std::string const& _contractName = "") const;
/// @returns the bytecode of a contract that uses an already deployed contract via CALLCODE.
/// The returned bytes will contain a sequence of 20 bytes of the format "XXX...XXX" which have to