![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <vm.h>
Public Member Functions | |
| FakeExtVM ()=delete | |
| FakeExtVM (eth::EnvInfo const &_envInfo, unsigned _depth=0) | |
| virtual u256 | store (u256 _n) override |
| Read storage location. More... | |
| virtual void | setStore (u256 _n, u256 _v) override |
| Write a value in storage. More... | |
| virtual bool | exists (Address _a) override |
| Does the account exist? More... | |
| virtual u256 | balance (Address _a) override |
| Read address's balance. More... | |
| virtual void | suicide (Address _a) override |
| Suicide the associated contract and give proceeds to the given address. More... | |
| virtual bytes const & | codeAt (Address _a) override |
| Read address's code. More... | |
| virtual size_t | codeSizeAt (Address _a) override |
| virtual h160 | create (u256 _endowment, u256 &io_gas, bytesConstRef _init, eth::OnOpFunc const &) override |
| Create a new (contract) account. More... | |
| virtual boost::optional< eth::owning_bytes_ref > | call (eth::CallParameters &) override |
| Make a new message call. More... | |
| void | setTransaction (Address _caller, u256 _value, u256 _gasPrice, bytes const &_data) |
| void | setContract (Address _myAddress, u256 _myBalance, u256 _myNonce, std::map< u256, u256 > const &_storage, bytes const &_code) |
| void | set (Address _a, u256 _myBalance, u256 _myNonce, std::map< u256, u256 > const &_storage, bytes const &_code) |
| void | reset (u256 _myBalance, u256 _myNonce, std::map< u256, u256 > const &_storage) |
| u256 | doPosts () |
| json_spirit::mObject | exportEnv () |
| json_spirit::mObject | exportState () |
| void | importState (json_spirit::mObject &_object) |
| json_spirit::mObject | exportExec () |
| void | importExec (json_spirit::mObject &_o) |
| json_spirit::mArray | exportCallCreates () |
| void | importCallCreates (json_spirit::mArray &_callcreates) |
| eth::OnOpFunc | simpleTrace () const |
Public Member Functions inherited from dev::eth::ExtVMFace | |
| ExtVMFace ()=default | |
| Null constructor. More... | |
| ExtVMFace (EnvInfo const &_envInfo, Address _myAddress, Address _caller, Address _origin, u256 _value, u256 _gasPrice, bytesConstRef _data, bytes _code, h256 const &_codeHash, unsigned _depth) | |
| Full constructor. More... | |
| virtual | ~ExtVMFace ()=default |
| ExtVMFace (ExtVMFace const &)=delete | |
| ExtVMFace & | operator= (ExtVMFace const &)=delete |
| virtual void | log (h256s &&_topics, bytesConstRef _data) |
| Revert any changes made (by any of the other calls). More... | |
| h256 | blockHash (u256 _number) |
| Hash of a block if within the last 256 blocks, or h256() otherwise. More... | |
| EnvInfo const & | envInfo () const |
| Get the execution environment information. More... | |
| virtual EVMSchedule const & | evmSchedule () const |
| Return the EVM gas-price schedule for this execution context. More... | |
Static Public Member Functions | |
| static dev::eth::EnvInfo | importEnv (json_spirit::mObject &_o) |
Public Attributes | |
| std::map< Address, std::tuple< u256, u256, std::map< u256, u256 >, bytes > > | addresses |
| eth::Transactions | callcreates |
| bytes | thisTxData |
| bytes | thisTxCode |
| u256 | gas |
| u256 | execGas |
Public Attributes inherited from dev::eth::ExtVMFace | |
| Address | myAddress |
| Address associated with executing code (a contract, or contract-to-be). More... | |
| Address | caller |
| Address which sent the message (either equal to origin or a contract). More... | |
| Address | origin |
| Original transactor. More... | |
| u256 | value |
| Value (in Wei) that was passed to this address. More... | |
| u256 | gasPrice |
| Price of gas (that we already paid). More... | |
| bytesConstRef | data |
| Current input data. More... | |
| bytes | code |
| Current code that is executing. More... | |
| h256 | codeHash |
| SHA3 hash of the executing code. More... | |
| SubState | sub |
| Sub-band VM state (suicides, refund counter, logs). More... | |
| unsigned | depth = 0 |
| Depth of the present call. More... | |
|
delete |
| FakeExtVM::FakeExtVM | ( | eth::EnvInfo const & | _envInfo, |
| unsigned | _depth = 0 |
||
| ) |
|
overridevirtual |
Make a new message call.
Implements dev::eth::ExtVMFace.
Definition at line 49 of file vm.cpp.
|
inlineoverridevirtual |
Reimplemented from dev::eth::ExtVMFace.
Definition at line 56 of file vm.h.
|
overridevirtual |
Create a new (contract) account.
Reimplemented from dev::eth::ExtVMFace.
Definition at line 40 of file vm.cpp.
| u256 dev::test::FakeExtVM::doPosts | ( | ) |
|
inlineoverridevirtual |
| mArray FakeExtVM::exportCallCreates | ( | ) |
| mObject FakeExtVM::exportEnv | ( | ) |
| mObject FakeExtVM::exportExec | ( | ) |
| mObject FakeExtVM::exportState | ( | ) |
| void FakeExtVM::importCallCreates | ( | json_spirit::mArray & | _callcreates | ) |
|
static |
| void FakeExtVM::importExec | ( | json_spirit::mObject & | _o | ) |
| void FakeExtVM::importState | ( | json_spirit::mObject & | _object | ) |
| void dev::test::FakeExtVM::setContract | ( | Address | _myAddress, |
| u256 | _myBalance, | ||
| u256 | _myNonce, | ||
| std::map< u256, u256 > const & | _storage, | ||
| bytes const & | _code | ||
| ) |
Write a value in storage.
Reimplemented from dev::eth::ExtVMFace.
| void dev::test::FakeExtVM::setTransaction | ( | Address | _caller, |
| u256 | _value, | ||
| u256 | _gasPrice, | ||
| bytes const & | _data | ||
| ) |
| eth::OnOpFunc FakeExtVM::simpleTrace | ( | ) | const |
Read storage location.
Reimplemented from dev::eth::ExtVMFace.
Definition at line 50 of file vm.h.
|
inlineoverridevirtual |
Suicide the associated contract and give proceeds to the given address.
Reimplemented from dev::eth::ExtVMFace.
| eth::Transactions dev::test::FakeExtVM::callcreates |
1.8.11