Commit Graph

198 Commits

Author SHA1 Message Date
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
Paweł Bylica ff14830784
Do not shadow variable names 2019-05-15 12:04:29 +02:00
Paweł Bylica 2e9bd6ffc5
examples: Add "Precompiles VM" example 2019-05-09 16:04:06 +02:00
Paweł Bylica 3779b533a1
vmtester: Change tests for result::create_address 2019-05-09 13:20:56 +02:00
Paweł Bylica 644fd9cce1
examples: Simplify passing PROJECT_VERSION 2019-05-08 14:57:10 +02:00
Jake Lang 8d9d206ad0 rust: Implement ExecutionContext (host interface) 2019-05-03 21:06:29 +01:00
Paweł Bylica 489d832a5c
cpp: Extend Host::call() unit test to show double free bug 2019-04-29 15:47:55 +02:00
Paweł Bylica 39162766df
Update copyright year, include the years of files creation 2019-04-24 18:36:28 +02:00
Alex Beregszaszi 0a66479c78 rust: make create_address optional in ExecutionResult::new() 2019-04-24 12:42:44 +01:00
Alex Beregszaszi 2e7dccb23e examples: return an output buffer in Rust 2019-04-24 12:20:29 +01:00
Alex Beregszaszi 5b07ae0342 examples: update Rust to support EVMC_CREATE 2019-04-24 12:08:49 +01:00