Commit Graph

221 Commits

Author SHA1 Message Date
Paweł Bylica beb0d92c11
cmake: Add evmc::evmc_cpp INTERFACE library for evmc.hpp 2019-11-29 11:55:51 +01:00
Paweł Bylica 9ef44b8f8c
cmake: Do not set C++ standard specially for examples 2019-11-28 19:38:20 +01:00
Alex Beregszaszi a88ae70cee rust: add type aliases for more enums 2019-11-27 23:10:50 +01:00
Paweł Bylica d8ab2489dd
cpp: Add const to HostInterface 2019-11-27 16:23:30 +01:00
Paweł Bylica 168c77457f
examples: Rewrite get_storage() not to create empty entries 2019-11-27 16:05:50 +01:00
Paweł Bylica 774a21f46c
Fix some clang-tidy warning 2019-11-21 11:23:34 +01:00
Paweł Bylica 79aad8ae08
cpp: Return reference (not pointer) from Host::get_interface() 2019-11-06 19:42:53 +01:00
Alex Beregszaszi d4e2ef190f rust: add precompiles capability to example-rust-vm 2019-11-05 14:49:42 +00:00
Alex Beregszaszi d61c0a7f65 rust: make ExecutionContext optional in EvmcVm.execute() 2019-11-05 14:48:59 +00:00
Paweł Bylica a94829acc1
cmake: Add static variant of Precompiles VM example for unittests 2019-11-05 14:59:43 +01:00
Paweł Bylica 3f6ea7ac7d
examples: Fix condition in example Precompiles VM 2019-11-05 14:56:08 +01:00
Paweł Bylica 206eb71c9e
examples: Add header for example Precompiles VM 2019-11-05 14:56:07 +01:00
Paweł Bylica ef52f2954a
cmake: Add example_vm.h file to CMake targets 2019-11-05 14:56:07 +01:00
Paweł Bylica e3b84b8b48
Move evmc_host_interface out of evmc_host_context 2019-11-05 11:54:54 +01:00
Paweł Bylica 7b38c1da2d
cmake: Drop evmc- prefix from example VM targets 2019-11-04 17:48:58 +01:00
Paweł Bylica db2e830da4
examples: Fix and update ExampleHost::copy_code() 2019-10-30 19:03:57 +01:00
Alex Beregszaszi 9376fa9716
examples: add constructor with passing accounts to ExampleHost 2019-10-30 19:00:11 +01:00
Alex Beregszaszi d64de97ebd
examples: add evmc::accounts alias 2019-10-30 19:00:10 +01:00
Alex Beregszaszi fb67e57986
examples: move account into evmc namespace 2019-10-30 19:00:10 +01:00
Alex Beregszaszi 2536d50cff
examples: add support code account::code_hash and also derive code_size from code 2019-10-30 19:00:10 +01:00
Alex Beregszaszi e3dc816263
examples: add support for code_copy 2019-10-30 19:00:09 +01:00
Paweł Bylica a9cc2483b4
instructions: Rename .num_stack_arguments -> .stack_height_required 2019-09-28 11:17:35 +02:00
Paweł Bylica 28dfad3930
Rename evmc_instance -> evmc_vm 2019-09-25 21:30:32 +02:00
Paweł Bylica 2441aa223c
examples: Fix typo 2019-09-25 13:51:24 +02:00
Paweł Bylica 89e6fb2342
Remove deprecated tracing API 2019-09-25 08:58:03 +02:00
Paweł Bylica 5ba077a384
Rename evmc_context to evmc_host_context 2019-09-20 12:49:58 +02:00
Paweł Bylica aaba11390b
cpp: Use evmc::uint256be instead of evmc_uint256be in get_balance() 2019-08-14 18:32:09 +02:00
Jake Lang 1c39d46321 rust: properly bind lifetimes to ensure that execute() can propagate references to ExecutionContext 2019-08-09 10:44:25 +02:00
Alex Beregszaszi e2ebfbae77 examples: make sure to set call_kind 2019-08-08 21:36:39 +02:00
Alex Beregszaszi 9c5c2a106e rust: implement the save_return_block_number example in example-rust-vm 2019-08-08 19:54:29 +02:00
Alex Beregszaszi a17fd0ed6e rust: pass ExecutionContext mutable so it can actually be used with host functions
Co-authored-by: Jake Lang <jak3lang@gmail.com>
2019-08-08 18:52:14 +02:00
Alex Beregszaszi 63334c331a examples: run the save_return_block_number example 2019-08-08 18:11:32 +02:00
Alex Beregszaszi 4973da1802 examples: fill out some values in tx_context 2019-08-08 18:11:32 +02:00
Alex Beregszaszi ca7d5d91aa examples: dump storage key "0" because some examples write to it 2019-08-08 18:11:32 +02:00
Alex Beregszaszi dd065265d9 examples: add evmc_tx_context to ExampleHost 2019-08-08 18:11:28 +02:00
Alex Beregszaszi bea35ea084 examples: add new roundtrip example in example-vm which accesses tx_context and set_storage 2019-08-08 17:21:24 +02:00
Alex Beregszaszi 85498a1d42 example: allow passing in evmc path as an argument 2019-08-08 13:07:21 +02:00
Alex Beregszaszi ef986804fd examples: extend example to support dynamic loading 2019-08-08 13:07:18 +02:00
Alex Beregszaszi c7999062c5
example: return error code on failure
Co-authored-by: Paweł Bylica <chfast@gmail.com>
2019-08-07 10:14:23 +02:00
Paweł Bylica 2caa00bae8
cpp: Use new address and bytes32 wrappers in HostInterface 2019-08-07 09:55:39 +02:00
Paweł Bylica a6ee9a81d3
examples: Learn example_vm how to make calls 2019-08-06 12:27:41 +02:00
Paweł Bylica e4ae2162c5
cpp: Add evmc::result constructor to copy output 2019-08-06 09:52:42 +02:00
Paweł Bylica b12e24f52f
Deprecate tracing API 2019-08-05 18:18:41 +02:00
Paweł Bylica 4ac70471ec
cpp: Rename literal suffixes: _addr -> _address, _b32 -> _bytes32 2019-07-24 13:17:28 +02:00
Paweł Bylica 8e5056aef0
examples: Update example host with usage of evmc::literals 2019-07-24 13:17:27 +02:00
Alex Beregszaszi 61805cf4d2 rust: support evmc_revision in execute() 2019-07-23 22:45:08 +01:00
Paweł Bylica 2e221a7303
examples: Update example host 2019-07-23 14:07:44 +02:00
Alex Beregszaszi ab841c35f8 examples: install example-precompiles-vm as well 2019-07-23 12:16:44 +01:00
Alex Beregszaszi be56b092b5 examples: Move example_vm into the examples/example_vm subdirectory 2019-07-23 12:16:44 +01:00
Paweł Bylica 56ceca3b29
cmake: Add option to disable install 2019-07-23 12:29:31 +02:00