Alex Beregszaszi
8fb75848bd
rust: remove unneeded mutability in ExecutionContext
2019-11-26 23:45:36 +01:00
Paweł Bylica
015e4b8f5d
EVMC 7.1.0-alpha.0
...
Bump version: 7.0.0 → 7.1.0-alpha.0
2019-11-18 16:36:41 +01:00
Paweł Bylica
e770f78819
EVMC 7.0.0
...
Bump version: 7.0.0-alpha.0 → 7.0.0
2019-11-11 14:46:58 +01:00
Alex Beregszaszi
d61c0a7f65
rust: make ExecutionContext optional in EvmcVm.execute()
2019-11-05 14:48:59 +00:00
Alex Beregszaszi
077bcb3e29
Update Rust bindings to consider host_context as an opaque pointer
2019-11-05 11:54:55 +01:00
Alex Beregszaszi
8c00cdacb4
Update Rust bindings
2019-11-05 11:54:55 +01:00
Alex Beregszaszi
f721642851
Add struct size/alignment tests to Rust
2019-10-30 18:36:58 +00:00
Paweł Bylica
28dfad3930
Rename evmc_instance -> evmc_vm
2019-09-25 21:30:32 +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
Andrei Maiboroda
317b2c18cf
Support CHAINID in rust bindings
2019-08-21 11:46:56 +02:00
Andrei Maiboroda
10f038b57d
EVMC 7.0.0-alpha.0
...
Bump version: 7.0.0-alpha.0 → 7.0.0-alpha.0
2019-08-20 15:39:49 +02:00
Paweł Bylica
e9d4648200
EVMC 6.3.1
...
Bump version: 6.3.0 → 6.3.1
2019-08-19 23:16:43 +02:00
Paweł Bylica
f48ae8ba3b
EVMC 6.3.0
...
Bump version: 6.3.0-alpha.1 → 6.3.0
2019-08-12 12:00:05 +02:00
Alex Beregszaszi
fd26a9570f
rust: change ownership api in container
2019-08-11 10:47:08 +02:00
Alex Beregszaszi
89f26eebd1
rust: use process::abort and not leaking exceptions on EVMC violations
2019-08-10 16:13:19 +02:00
Alex Beregszaszi
1e339d7bb2
Revert "rust: catch exceptions in the entire execute() wrapper"
...
This reverts commit 99ca1e2b634531813301959add6bf435c0db7e8b.
2019-08-10 16:11:19 +02:00
Alex Beregszaszi
cd0a8bc950
rust: derive Debug trait on some abstractions
...
Such as ExecutionResult and ExecutionMessage.
2019-08-10 15:34:56 +02:00
Alex Beregszaszi
788c20f6e1
rust: add more rustdoc documentation
2019-08-09 21:04:17 +02:00
Alex Beregszaszi
850178098c
rust: remove get_ prefix from getters in ExecutionResult to be consistent with ExecutionMessage
2019-08-09 20:50:59 +02:00
Alex Beregszaszi
99ca1e2b63
rust: catch exceptions in the entire execute() wrapper
2019-08-09 20:46:58 +02:00
Alex Beregszaszi
0151bc5d37
rust: introduce from_buf_raw helper
2019-08-09 20:39:11 +02:00
Alex Beregszaszi
52ea24f382
rust: enforce EVMC rules on message and result buffers
2019-08-09 11:21:28 +02:00
Alex Beregszaszi
f9c05b565c
rust: use the where syntax consistenly in EvmcContainer
2019-08-09 10:44:25 +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
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
ad9e525f03
rust: update to bindgen 0.51
2019-08-08 13:12:15 +02:00
Alex Beregszaszi
5ee58d181d
rust: add assertion for evmc_context.host
2019-07-25 14:50:06 +01:00
Alex Beregszaszi
b9de8476dd
rust: ExecutionContext::get_tx_context should not require a mutable self
2019-07-24 13:27:15 +01:00
Alex Beregszaszi
25dac2194b
rust: ExecutionResult::result() should have a gas parameter
2019-07-24 13:26:50 +01:00
Alex Beregszaszi
61805cf4d2
rust: support evmc_revision in execute()
2019-07-23 22:45:08 +01:00
Alex Beregszaszi
1806416689
rust: add ExecutionMessage::revert()
2019-07-23 22:35:37 +01:00
Alex Beregszaszi
f0bf456697
rust: add ExecutionTxContext type alias
2019-07-23 11:34:05 +01:00
Alex Beregszaszi
3d47d3802e
rust: pass ExecutionMessage directly to EvmcVm.execute()
2019-07-15 11:22:05 +01:00
Alex Beregszaszi
2cba139f15
rust: add more tests to EvmcContainer
2019-07-04 20:48:18 +01:00
Alex Beregszaszi
ff3a619b01
rust: add test for ExecutionContext.call()
2019-07-04 20:13:30 +01:00
Alex Beregszaszi
5d72543ac3
rust: make input a slice reference to ExecutionMessage
2019-07-04 20:13:28 +01:00
Alex Beregszaszi
4382bd3662
rust: implement call()
2019-07-04 20:13:00 +01:00
Alex Beregszaszi
f827e174a7
rust: use ExecutionMessage in ExecutionContext.call()
2019-07-04 20:12:57 +01:00
Alex Beregszaszi
d83c19319a
rust: use type aliases
2019-07-04 20:01:00 +01:00
Alex Beregszaszi
c9ce3a10d4
rust: add type aliases for certain ffi types
2019-07-04 20:00:34 +01:00
Alex Beregszaszi
48f1903d9c
rust: fix type typo in get_balance()
2019-07-04 20:00:22 +01:00
Alex Beregszaszi
6391748c9c
rust: add tests for EvmcContainer
2019-07-04 18:09:04 +01:00
Alex Beregszaszi
ddcdbfe944
rust: allow empty code in evmc_execute()
2019-07-04 17:23:33 +01:00
Alex Beregszaszi
568b11d71e
rust: add two test cases to cover ExecutionMessage
2019-07-04 16:54:10 +01:00
Alex Beregszaszi
96a0dd224e
rust: rename some test cases for clarity
2019-07-04 16:36:25 +01:00
Alex Beregszaszi
98ad72ecd9
rust: implement Default for evmc_address/evmc_bytes32
...
Same as with PartialEq: this may be done via bindgen in the future.
2019-07-03 18:07:22 +01:00
Alex Beregszaszi
b52a3dc81b
rust: derive Hash trait for ffi data types
2019-07-03 18:07:22 +01:00
Alex Beregszaszi
c1e8a897b6
rust: implement PartialEq for evmc_address/evmc_bytes32
...
Could also force deriving in bindgen with (derive_partialeq(true)),
but that would insert it for complex structures we don't want it for,
such evmc_message and blacklisthing those is tedious and error prone
in case EVMC introduces new structures.
2019-07-03 18:07:16 +01:00
Alex Beregszaszi
593ef3b6ac
rust: expect output as slice in ExecutionResult
2019-07-03 15:56:40 +01:00