122 Commits

Author SHA1 Message Date
Paweł Bylica
a48893437f
Return bool from get_storage() to indicate non-existing accounts 2018-09-06 23:12:00 +02:00
Paweł Bylica
d128fe45d7
Introduce EVMC_STORAGE_NON_EXISTING_ACCOUNT for set_storage() Host method 2018-09-06 23:12:00 +02:00
Paweł Bylica
f41fccd21e
Add test for EVMC_SET_OPTION_INVALID_VALUE 2018-09-06 17:57:49 +02:00
Paweł Bylica
8ea48035ea
examples: Make some example Host methods a bit more interesting 2018-09-06 14:21:51 +02:00
Paweł Bylica
b8b3719fb9
Return bool from evmc_get_code_size_fn() 2018-09-06 14:21:51 +02:00
Paweł Bylica
d6ef551541
Return bool from evmc_get_code_hash_fn() 2018-09-06 14:21:51 +02:00
Paweł Bylica
ca85b77f57
Return bool from evmc_get_balance_fn() 2018-09-06 14:21:51 +02:00
Alex Beregszaszi
50c254fb98 Introduce evmc_set_option_result enum 2018-09-06 09:54:09 +01:00
Paweł Bylica
280ff99363
Use bool type instead of int with 1 and 0 2018-09-06 00:28:27 +02:00
Paweł Bylica
9a2d07e595
Remove code hash from evmc_message 2018-09-03 19:58:57 +02:00
Paweł Bylica
ced1c2676f
examples: Better get_block_hash example 2018-09-03 17:24:15 +02:00
Alex Beregszaszi
d9f7ff25f5
Add return code to get_block_hash_fn 2018-09-03 16:45:08 +02:00
Paweł Bylica
e2cff68587
Rename context_fn_table to host_interface 2018-08-31 13:39:41 +02:00
Paweł Bylica
759e67a1c6
Rename examplevm to example-vm 2018-08-31 13:10:07 +02:00
Paweł Bylica
0bb3a67284
CMake: Flatten examplevm 2018-08-31 13:10:07 +02:00
Paweł Bylica
f858f79e2a
CMake: Flatten example_host 2018-08-31 13:10:06 +02:00
Paweł Bylica
98213f93ec
Add back main example that uses example Host and VM 2018-08-31 13:09:05 +02:00
Paweł Bylica
78888b57a9
Create header for example_host 2018-08-31 13:09:04 +02:00
Paweł Bylica
43dce45a5b
Create context in example host 2018-08-31 13:09:04 +02:00
Paweł Bylica
5aefc4faf3
Replace capi.c example with example_host.cpp 2018-08-31 13:09:04 +02:00
Alex Beregszaszi
0403343779 Return evmc_tx_context in get_tx_context (as opposed to pointer parameter) 2018-08-30 14:03:50 +01:00
Paweł Bylica
3c86a6b934
Return result from call_fn
This changes the evmc_call_fn signature to return evmc_result object instead of getting result as an output parameter.
2018-08-29 23:00:27 +02:00
Paweł Bylica
a777a13f87 Include project version in examplevm 2018-08-28 20:34:48 +01:00
Alex Beregszaszi
8726fc9a33 Use nicer example EVM bytecode in examples/capi.c 2018-08-28 20:34:38 +01:00
Alex Beregszaszi
3403282827 Do not keep sample EVM code as hex string, but as proper binary in examples/examplevm 2018-08-28 20:34:38 +01:00
Paweł Bylica
43fc619a7e
Update license note in headers of source files 2018-08-22 13:57:25 +02:00
Paweł Bylica
0659e24db0
Update copyright notice 2018-08-21 09:44:18 +02:00
Paweł Bylica
36b7976121
Merge pull request #68 from ethereum/abi-version-helper
Add evmc_is_abi_compatible helper
2018-08-20 16:23:29 +02:00
Alex Beregszaszi
3fe4f28867 Add evmc_is_abi_compatible helper 2018-08-20 15:05:41 +01:00
Alex Beregszaszi
f014e4fc77 Add evmc_execute helper 2018-08-20 14:59:52 +01:00
Alex Beregszaszi
afed355232 examples: use evmc helpers 2018-08-20 05:24:21 +01:00
Alex Beregszaszi
4e513a6541 examples: use vm instead of jit in capi 2018-08-20 05:23:01 +01:00
Paweł Bylica
e16f19e38d
examples: Rename evm_log() to emit_log() 2018-08-08 15:39:40 +02:00
Paweł Bylica
8cf24c7dd9
Extend set_storage() by reporting the storage status 2018-08-08 15:39:04 +02:00
Andrei Maiboroda
2e25d34c11
Support for EXTCODEHASH 2018-07-31 14:42:13 +02:00
Paweł Bylica
d2ac75f6a8
Do not allow set_tracer function to be null 2018-07-25 18:22:08 +02:00
Paweł Bylica
4ad5b52492
Cleanup examplevm 2018-06-26 10:41:02 +02:00
Paweł Bylica
fda9851e96
CMake: Move examplevm artifacts to parent dir 2018-06-26 10:41:01 +02:00
Paweł Bylica
5372417ca6
Properly export symbols from DLLs 2018-06-25 18:48:03 +02:00
Paweł Bylica
cdd53518b6 Fix building with Visual Studio 2018-06-25 13:20:18 +02:00
Paweł Bylica
9af6c35b48
Add examples how to use CMake packages 2018-06-19 22:30:36 +02:00
Paweł Bylica
cb2288b49d
Merge pull request #14 from ethereum/clang-format-config
Add clang-format config
2018-06-16 12:36:00 +02:00
Paweł Bylica
889f8d74b4
Fix compiler warning 2018-06-11 11:44:13 +02:00
Paweł Bylica
4ca2d9c66b
Reformat files 2018-05-11 13:26:58 +02:00
Paweł Bylica
262211ab68
Move evmc.h to include/evmc dir 2018-04-19 09:41:48 +02:00
Paweł Bylica
c5c34599b9
Change naming convention for "create" function
Now should be prefixed with "evmc_create_".
2018-04-17 11:11:31 +02:00
Paweł Bylica
630d8be405
Add name and version to evmc_instance 2018-04-17 11:11:30 +02:00
Paweł Bylica
8830ab0d7d
Move examplevm to its own dir 2018-04-13 08:40:13 +02:00
Paweł Bylica
4578e80c38
Use common compiler settings from Cable 2018-04-12 23:01:38 +02:00
Paweł Bylica
a800ae7aa5
Fix examples build config 2018-04-10 14:12:12 +02:00