Kian Paimani
79feb23a22
Refactor sr_primitives. ( #3214 )
...
* refactor sr_primitives.
* Fix try build error.
* Line-width
* Ui test.
* Final fixes.
* Fix build again.
* bring back ui test.
* Fix unsigned import.
* Another ui fix.
* Also refactor substrate-primitives
* Fix benchmarks.
* Fix doc test.
* fix doc tests
2019-07-29 14:43:53 +02:00
Black3HDF
0feb91d045
srml-contracts: minor documentation improvements ( #3086 )
...
* fix typos
* update information about ink
* fix typos
* fix typo
* fix typos
2019-07-10 17:49:00 +02:00
David Craven
cf036f685e
Turn storage items into parameters ( #2883 )
...
* balances: Turn storage items into parameters.
* contract: Turn storage items into parameters.
* council: Turn storage items into parameters.
* finality-tracker: Turn storage items into parameters.
* treasury: Turn storage items into parameters.
* democracy: Fix tests.
* example: Fix tests.
* executive: Fix tests.
* staking: Fix tests.
* Update runtime.
* Update template-node.
* Update runtime version.
* Fix executor tests.
* Fix node cli tests.
* Address grumbles.
* Add removed default values to docs.
* Make gas price a storage item.
* Set associated consts must be callable outside of build.
* Fix not enough gas to pay for transfer fee.
* Fix build.
* Emit metadata.
* Fix build.
* Add default values for all parameter types.
* Fix build.
* Fix build.
* Fix build.
* Fix build.
2019-07-02 12:52:58 +02:00
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
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
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
Sergei Pepyakin
828485ec08
Rename: srml-contract → srml-contracts ( #2905 )
...
* srml-contract → srml-contracts
* Trim.
* Bump version
2019-06-19 15:26:33 +02:00