Jim Posen
068d99d481
srml-contract: Contract refactors ( #2924 )
...
* srml-contract: Refactor away unnecessary Option.
* srml-contract: Add assertion to gas_left test.
* srml-contract: Refactor try_evict_or_and_pay_rent to make tests pass.
* srml-contract: Add tests and comments for bugs in rent payment logic.
* srml-contract: Minor cleanup using GasMeter constructor.
* Bump node runtime impl version.
2019-06-27 14:49:53 +02:00
Bastian Köcher
62b7c05def
Implement a proper generic resolution in decl_storage! ( #2913 )
...
* Add failing test case
* move storage maps to blake2_128 (#2268 )
* remove default hash, introduce twox_128 and blake2
* use blake2_128 & create ext_blake2_128
* refactor code
* add benchmark
* factorize generator
* fix
* parameterizable hasher
* some fix
* fix
* fix
* fix
* metadata
* fix
* remove debug print
* map -> blake2_256
* fix test
* fix test
* Apply suggestions from code review
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* impl twox 128 concat (#2353 )
* impl twox_128_concat
* comment addressed
* fix
* impl twox_128->64_concat
* fix test
* Fix compilation and cleanup some docs
* Lol
* Remove traits from storage types that are not generic
* Get instance test almost working as wanted
* Make `srml-support-test` compile again :)
* Fixes test of srml-support
* Fix compilation
* Break some lines
* Remove incorrect macro match arm
* Integrates review feedback
* Update documentation
* Fix compilation
2019-06-27 13:40:22 +02:00
Stanislav Tkach
443ad90b47
Update codec version to the 4.1 version ( #2948 )
...
* Update codec version to the 4.1 version
* Bump impl_version
* Update lock files
* Update codec to 4.1.1 version
* Bump impl version
2019-06-26 16:26:24 +02:00
Jim Posen
4c52aec260
srml-contract: Fix Gas type to u64 ( #2944 )
...
* srml-contract: Move gas costs from Config to Schedule.
* srml-contract: Define Gas units fixed as u64.
This removes Gas as a configurable type on the contracts Trait.
* Bump node runtime spec/impl versions.
2019-06-26 14:17:45 +02:00
thiolliere
8b89c7ae62
Update parity-scale codec minor version ( #2951 )
...
* update parity-scale codec minor version
* update to 3.5.3
* update locks
* increase impl version
* Update to 3.5.4
* Update WASM lockfiles
2019-06-26 08:48:12 +02:00
Sergei Pepyakin
183931a8a2
Allow spending all available gas. ( #2947 )
...
* Allow spending all gas.
* Bump node runtime version
2019-06-25 17:05:48 +02:00
Andrew Jones
770b94c20c
srml-contract: test calls not dispatched if tx fails ( #2917 )
...
* Test for not dispatching calls if top level execution fails
* Add comment to test
* Only dispatch calls if contract execution succeeded
Note that `calls` should be empty in this case, but this makes things
clearer
* Add comment to test
Co-Authored-By: Sergei Pepyakin <s.pepyakin@gmail.com >
* Revert: Only dispatch calls if contract execution succeeded
2019-06-24 17:38:49 +02:00
Jim Posen
1af51f4234
srml-contract: Use encode_to rather than encode to reduce allocations. ( #2919 )
2019-06-21 12:09:52 +02:00
Sergei Pepyakin
83d3881542
Ditch the input buffer ( #2911 )
...
* Pass input data via the scratch buffer.
Remove calls to ext_input_*.
* Fix tests and docs
* Bump the version.
* Remove ext_input_* from COMPLEXITY.md
* Return back the length check and add more comments
* Update the documentation of the scratch buffer.
* Fix a silly mistake.
2019-06-20 17:06:12 +02:00
Sergei Pepyakin
828485ec08
Rename: srml-contract → srml-contracts ( #2905 )
...
* srml-contract → srml-contracts
* Trim.
* Bump version
2019-06-19 15:26:33 +02:00