Wei Tang
ff716e7799
Remove pass-by-reference return data value from executive ( #9211 )
...
* Remove pass-by-reference return data value from executive
* Fix tests
* Fix a missing test output
* typo: wasm_activation_test
* Tracing change in output
* json_tests: fix compile
* typo: 0..32 -> ..32 to keep it consistent with other occurance
* Fix tests
2018-08-14 05:27:13 +08:00
Wei Tang
9c595aff95
Allow single opcode stepping for EVM ( #9051 )
...
* Feed in ActionParams on VM creation
* Fix ethcore after Vm interface change
* Move informant inside Interpreter struct
* Move do_trace to Interpreter struct
* Move all remaining exec variables to Interpreter struct
* Refactor VM to allow single opcode step
* Fix all EVM tests
* Fix all wasm tests
* Fix wasm runner tests
* Fix a check case where code length is zero
* Fix jsontests compile
* Fix cargo lock
* Use match instead of expect
* Use cheaper check reader.len() == 0 for the initial special case
* Get rid of try_and_done! macro by using Result<(), ReturnType>
* Use Never instead of ()
* Fix parity-bytes path
* Bypass gasometer lifetime problem by borrow only for a instance
* typo: missing {
* Fix ethcore test compile
* Fix evm tests
2018-08-14 04:06:15 +08:00
Wei Tang
e8b13cb77e
Implement KIP4: create2 for wasm ( #9277 )
...
* Basic implementation for kip4
* Add KIP-4 config flags
* typo: docs fix
* Fix args offset
* Add tests for create2
* tests: evm
* Update wasm-tests and fix all gas costs
* Update wasm-tests
* Update wasm-tests and fix gas costs
2018-08-06 23:15:52 +08:00
Sergey Pepyakin
4839294c86
Recursive test ( #9042 )
2018-07-05 10:09:01 +03:00
Wei Tang
e3e2fcc285
bump parking_lot to 0.6 ( #9013 )
...
* Bump parking_lot to 0.6
* Bump parity-wasm to 0.31 so it gets rid of parking_lot
ref https://github.com/paritytech/parity-wasm/pull/206
* Update jsonrpc versions
* Update wasmi and pwasm-utils version
* Fix compile
* Update jsonrpc crates
2018-07-03 17:31:08 +02:00
Niklas Adolfsson
98b7c07171
Update license header
and scripts
( #8666 )
...
* Update `add_license` script
* run script
* add `remove duplicate lines script` and run it
* Revert changes `English spaces`
* strip whitespaces
* Revert `GPL` in files with `apache/mit license`
* don't append `gpl license` in files with other lic
* Don't append `gpl header` in files with other lic.
* re-ran script
* include c and cpp files too
* remove duplicate header
* rebase nit
2018-06-04 10:19:50 +02:00
Sergey Pepyakin
cab073ba00
Add missing license header for runtime.rs ( #8252 )
...
* Add missing license header for runtime.rs
* Update year
2018-03-29 13:48:57 +01:00
Nikolay Volf
bd45cd4a5e
bump wasmi version ( #8209 )
2018-03-26 16:55:48 +08:00
Alexey
acd7192b17
Fix comment for fn gas() in wasm/runtime ( #8122 )
...
* Update runtime.rs
* Update runtime.rs
2018-03-15 15:34:11 +03:00
Nikolay Volf
1bad20ae38
more dos protection ( #8104 )
2018-03-14 15:27:56 +03:00
Alexey
5c47116889
fix comment for gas extern in Wasm runtime ( #8101 )
2018-03-14 12:27:18 +01:00
Nikolay Volf
58a1671076
add some dos protection ( #8084 )
2018-03-12 15:55:28 +03:00
Nikolay Volf
e0a21e5aae
WASM libraries bump ( #7970 )
...
* update wasmi, parity-wasm, wasm-utils to latest version
* Update to new wasmi & error handling
* also utilize new stack limiter
* fix typo
* replace dependency url
* Cargo.lock update
2018-03-12 11:37:32 +00:00
Nikolay Volf
684322cd6f
Kovan WASM fork code ( #7849 )
...
* kovan fork code
* introduce ethcore level vm_factory and let it fail
* fix json tests
* wasmcosts as option
* review changes
* wasm costs in parser
* fix evm tests
* review fixes
* fix test
* remove redundant json field
2018-02-19 12:27:42 +01:00
Alexey
a30de1b8d8
Clean up docs formatting for Wasm runtime ( #7869 )
...
* Clean up docs formatting for Wasm runtime
* Update runtime.rs
2018-02-12 17:59:41 +01:00
Nikolay Volf
fab03398dd
disable internal memory ( #7842 )
2018-02-12 11:19:43 +01:00
Nikolay Volf
0a7cebe316
adjust storage update evm-style ( #7812 )
2018-02-06 11:57:29 +01:00
Nikolay Volf
fb4582a90e
wasmi interpreter ( #7796 )
2018-02-05 20:59:27 +01:00
Alexey
534692cdae
[Wasm] memcmp fix and test added ( #7590 )
...
* [Wasm] memcmp fix and test added
* [Wasm] use reqrep_test! macro for memcmp test
2018-01-17 13:13:17 +04:00
Alexey
d927320719
[WASM] mem_cmp added to the Wasm runtime ( #7539 )
...
* mem_cmp added to the Wasm runtime
* schedule.wasm.mem_copy to schedule.wasm.mem_cmp for mem_cmp
2018-01-15 18:24:24 +04:00
Marek Kotewicz
e95b093483
dissolve util ( #7460 )
...
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor finished
* removed obsolete util/src/lib.rs
* removed commented out code
2018-01-10 15:35:18 +03:00
Nikolay Volf
82340c058a
Wasm runtime update ( #7356 )
...
* call augmented, wasm-tests updated
* fix all call tests
* fix comments
2017-12-22 21:54:35 +03:00
Sergey Pepyakin
359b4de3ff
WASM Remove blockhash error ( #7121 )
...
* Remove blockhash error
* Update tests.
2017-11-26 23:18:58 +03:00
Sergey Pepyakin
66b2db0137
Update gas values
2017-11-21 17:03:14 +03:00
Sergey Pepyakin
7564b05572
Make storage_read/write return nothing
2017-11-21 17:03:13 +03:00
Sergey Pepyakin
3e4e00fc6a
spaces to tabs.
2017-11-21 15:39:34 +03:00
Nikolay Volf
9798e3c45a
Update panic_payload.rs
2017-11-20 18:12:31 +03:00
Sergey Pepyakin
3d0616c1ae
Parse payload from panic
...
Impl payload
empty str is none
Update tests
Clean
Update wasm-tests
2017-11-20 13:09:57 +03:00
Sergey Pepyakin
bcdfc50a0b
pwasm-std update ( #7018 )
2017-11-13 00:21:15 +03:00
NikVolf
bed82e5cc0
elog (events) for wasm runtime
2017-11-05 18:54:35 +03:00
Nikolay Volf
f72858ee0a
Add hint in ActionParams for splitting code/data ( #6957 )
...
* Action params and embedded params handling
* fix namespaces
2017-11-02 12:49:57 +01:00
Tomasz Drwięga
8dfdebc2a2
Refactor static context check in CREATE. ( #6886 )
...
* Refactor static context check in CREATE.
* Fix wasm.
2017-10-25 11:27:18 +02:00
David Dorgan
bdf1e6afcc
Revert "Sync parity-ewf with parity"
...
This reverts commit f7ba063b22
.
2017-10-24 13:31:58 +01:00
David Dorgan
f7ba063b22
Sync parity-ewf with parity
2017-10-24 12:31:50 +01:00
Nikolay Volf
1601030081
WASM gas schedule ( #6638 )
...
* some failing tests
* finalize
* fallable -> fallible
* alter mul/div/static_i64
* Update schedule.rs
* to u32
* balance charge also
* review fixes
* remove redundant line
2017-10-09 13:12:58 +02:00
fro
6956d218b5
address balance extern provided for wasm
2017-10-04 19:09:18 +03:00
Nikolay Volf
4260910db6
WASM Runtime refactoring ( #6596 )
...
* refactoring to new pwasm-std
* pass reference
* remove ref
* missing underscores
2017-10-04 13:15:59 +02:00
Arkadiy Paronyan
25b35ebddd
Byzantium updates ( #5855 )
...
* EIP-211 updates
* benchmarks
* blockhash instruction gas cost updated
* More benches
* EIP-684
* EIP-649
* EIP-658
* Updated some tests
* Modexp fixes
* STATICCALL fixes
* Pairing fixes
* More STATICALL fixes
* Use paritytech/bn
* Fixed REVERTing of contract creation
* Fixed more tests
* Fixed more tests
* Blockchain tests
* Enable previously broken tests
* Transition test
* Updated tests
* Fixed modexp reading huge numbers
* Enabled max_code_size test
* Review fixes
* Updated pairing pricing
* missing commas (style)
* Update test.rs
* Small improvements
* eip161abc
2017-09-15 21:07:54 +02:00
Alexey
79659bdc76
WASM sha3 test ( #6512 )
...
* sha3 test for empty input implemented
* rename sha3-> keccak
* update keccak test. Now it expects input to hash
* fix gas_left in tests
2017-09-14 19:32:29 +02:00
Svyatoslav Nikolsky
03e039b13d
wasm: math_sub_with_overflow test ( #6474 )
2017-09-11 11:43:33 +02:00
Nikolay Volf
ee14a3fb31
WASM runtime update ( #6467 )
...
* refactor to new parity-wasm
* more errors refactoring
* final test
* update tests
* fix merge bugs
2017-09-10 18:02:31 +02:00
Fredrik
308f36a532
Don't reexport bigint from util
2017-09-04 16:36:49 +02:00
Nikolay Volf
abecd80f54
Wasm math tests extended ( #6354 )
...
* extend math tests
* use latest wasm-tests
* cleanup
* avoid overflow
* use correct gas-
* and division
2017-08-28 14:12:40 +02:00
Nikolay Volf
9e4c122cf3
WASM math test ( #6305 )
...
* wasm tests initial
* fix bug in bitswap
2017-08-20 12:02:59 +08:00
Nikolay Volf
4ab607d4de
wasm-std refactoring ( #6278 )
2017-08-14 12:33:52 +03:00
Alexey
d209100a60
Wasm storage read test ( #6255 )
...
* Test for read from prepopulated storage implemented
* wasm-tests submodule update
* fix identation
* comment for storage_read added
2017-08-09 10:57:54 +02:00
NikVolf
c1108da6e9
fixed wasm tests
2017-08-01 14:35:43 +03:00
NikVolf
017430e803
fixed evm tests
2017-08-01 14:33:49 +03:00
Nikolay Volf
b7006034b1
Decouple virtual machines ( #6184 )
...
* work in progress for splitting vms
* evm working
* Evm -> Vm
* wasm converted
* ethcore working
* test fixes
2017-08-01 13:37:57 +03:00