ExtVMFace.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. This file is part of cpp-ethereum.
  3. cpp-ethereum is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. cpp-ethereum is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. /** @file ExtVMFace.cpp
  15. * @author Gav Wood <i@gavwood.com>
  16. * @date 2014
  17. */
  18. #include "ExtVMFace.h"
  19. #include <libethcore/SealEngine.h>
  20. using namespace dev;
  21. using namespace dev::eth;
  22. ExtVMFace::ExtVMFace(EnvInfo const& _envInfo, Address _myAddress, Address _caller, Address _origin, u256 _value, u256 _gasPrice, bytesConstRef _data, bytes _code, h256 const& _codeHash, unsigned _depth):
  23. m_envInfo(_envInfo),
  24. myAddress(_myAddress),
  25. caller(_caller),
  26. origin(_origin),
  27. value(_value),
  28. gasPrice(_gasPrice),
  29. data(_data),
  30. code(std::move(_code)),
  31. codeHash(_codeHash),
  32. depth(_depth)
  33. {}