Commit Graph

24 Commits

Author SHA1 Message Date
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
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 e461b45f1c
Simplify get_block_hash() method by returning null hash 2018-10-19 17:42:19 +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 1ab90eb80a
examples: Use evmc_bytes32 in the Host example 2018-09-07 00:14:21 +02:00
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 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
Paweł Bylica 280ff99363
Use bool type instead of int with 1 and 0 2018-09-06 00:28:27 +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 f858f79e2a
CMake: Flatten example_host 2018-08-31 13:10:06 +02:00