208 Commits

Author SHA1 Message Date
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
Paweł Bylica
fece3b066c
cmake: Include EVMC.cmake module in the package 2019-07-17 14:17:41 +02:00
Alex Beregszaszi
3d47d3802e rust: pass ExecutionMessage directly to EvmcVm.execute() 2019-07-15 11:22:05 +01:00
Alex Beregszaszi
593ef3b6ac rust: expect output as slice in ExecutionResult 2019-07-03 15:56:40 +01:00
Alex Beregszaszi
87ad703e62 rust: pass output as reference in ExecutionResult 2019-07-03 15:56:32 +01:00
Alex Beregszaszi
315137edd2 rust: prefer getters as opposed to pub members on structs 2019-06-25 19:14:42 +01:00
Alex Beregszaszi
7769f7372b rust: fix some (mostly stylistic) warnings raised by rustc and clippy 2019-06-25 12:03:09 +01:00
Jake Lang
244fed6ebc rust: Remove implicit crate version in order to allow static C strings 2019-06-19 19:39:51 +01:00
Alex Beregszaszi
73951327ba rust: compile examples for cdylib and not dylib
This avoids the issue of depending on a dynamically linked rust-libstd
2019-06-19 02:09:20 +01:00
Jake Lang
2e14aa2d5c rust: Procedural macro for automatic VM declaration 2019-06-04 16:18:23 +01:00
Alex Beregszaszi
32fce24aa8 examples: use EVMC_REJECTED in example_precompiles_vm 2019-06-03 09:26:37 +01:00
Alex Beregszaszi
4eeb42d074 rust: add failure() and success() helpers to ExecutionResult 2019-05-30 14:55:25 +01:00
Alex Beregszaszi
80f99dfe6b examples: Remove explicit namespace in rust-example-vm 2019-05-30 14:55:25 +01:00
Alex Beregszaszi
60bf98fb72 rust: remove support for create_address in ExecutionResult::new 2019-05-22 17:18:45 +01:00