176 Commits

Author SHA1 Message Date
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
Alex Beregszaszi
cd9109bfac examples: add EVMC_CREATE example to example_vm 2019-04-24 12:08:49 +01:00
Alex Beregszaszi
4b5880bf94 example: Implement proper Rust VM example 2019-04-24 09:43:11 +01:00
Alex Beregszaszi
79b6d2a9c0 examples: Add dummy Rust VM 2019-04-24 09:42:24 +01:00
Paweł Bylica
0c1e13b485
examples: Rewrite Host example to use Host abstract class 2019-04-02 11:28:22 +02:00
Paweł Bylica
83dae57ceb
examples: Refactor host example 2019-03-15 02:32:32 +01:00
Paweł Bylica
3ef9c1de50
examples: Always build example_vm as shared library 2019-03-14 18:32:27 +01:00
Paweł Bylica
1f1a095208
examples: Fix and extend example VM with NUMBER example code 2019-03-12 17:59:06 +01:00
Paweł Bylica
0a0bb0b92e
go: Add unit test for Execute() 2019-03-12 17:59:06 +01:00
Paweł Bylica
709965077f
examples: Fix example_vm
- Make it compatible with C++
- Properly return project version
2019-01-22 14:15:26 +01:00
Paweł Bylica
d4fc289c80
Rename EVMC_LATEST_REVISION to EVMC_MAX_REVISION 2019-01-21 12:09:20 +01:00
Paweł Bylica
e461b45f1c
Simplify get_block_hash() method by returning null hash 2018-10-19 17:42:19 +02:00
Paweł Bylica
182006bcb7
Fix typo: capabilites -> capabilities 2018-10-18 15:42:01 +02:00
Paweł Bylica
ebccd234b0
docs: Document example_vm.c 2018-10-18 15:38:10 +02:00
Paweł Bylica
997d797816
examples: Document example_vm.c file 2018-10-18 14:06:51 +02:00
Paweł Bylica
9bfb7c8ada
Return code hash from get_code_hash() directly 2018-09-12 23:08:06 +02:00
Paweł Bylica
b0d0bc035b
Return size_t from get_code_size() directly 2018-09-12 23:08:06 +02:00
Paweł Bylica
67441020a4
Return uint256be from get_balance() directly 2018-09-12 23:06:14 +02:00
Paweł Bylica
941c0a9723
Drop EVMC_STORAGE_NON_EXISTING_ACCOUNT status 2018-09-09 10:16:10 +02:00
Paweł Bylica
21e6605f98
Return bytes32 from get_storage() directly 2018-09-09 10:16:10 +02:00
Paweł Bylica
5c8e64915a
Improve C++ helpers 2018-09-08 22:43:04 +02:00
Alex Beregszaszi
3dfa18a393
Move C++ helpers into evmc/helpers.hpp 2018-09-08 22:39:17 +02:00
Paweł Bylica
dc495408be
Improve EVMC capabilities 2018-09-08 22:16:14 +02:00