thiolliere
66b0e00651
Fix linkedmap instance head of ( #3690 )
2019-09-25 22:38:29 +02:00
thiolliere
1835c3f9a1
Fix head not hashed ( #3680 )
...
* fix head not hashed
* bump version
2019-09-24 17:46:41 +02:00
Ashley
5c39f588be
Change decl_storage! to import the storage traits automatically ( #3674 )
...
* decl_storage imports needed traits
* bump impl_version
* Update srml/system/src/lib.rs
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update srml/system/src/lib.rs
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2019-09-24 10:05:15 +02:00
Bastian Köcher
45d64a711c
Clean up sr-io ( #3609 )
...
* Move trait `Printable` into `sr-primitives`
* Cleanup runtime io trie_root interfaces
* Remove last generic bits from sr-io interface
* Fix srml-sudo after master merge
* Fix benchmarks
* Runtime bump
2019-09-13 16:39:50 +02:00
Shawn Tabrizi
c284ca2138
Normalize Crate Names in SRML/Node Template ( #3543 )
...
* Fix some instances of `runtime-io`
* Patch a bunch
* More patches for consistancy
* more patch
* Fix various build issues
* Fix tests
* Patch `srml-support-*` crates
* Fix doc tests
* Revert "Fix doc tests"
This reverts commit ba2ec61da7acc36821a70e76a31a6a5bf13bbe95.
* Revert "Patch `srml-support-*` crates"
This reverts commit 9a6070450107dec17784ba34af4b871023f6dc81.
* Missed one
* Fix doc tests
2019-09-04 14:44:28 +02:00
thiolliere
9900562389
srml_support storage reorganize (#3344 )
...
* impl
* file split
* old comment
* better error message
* WIP
* basti test works
* comment
* remove old files
* impl swap for storage map
* fix
* fix and comment
* code refactor
* code refactor
* code format
* code refactor
* fix
* fix
* fix
* document generators
* license
* doc
* doc
* fmt
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* some comment addressed
* storage_items small refactor
* fix storage_items
* more precise returned type
* fix
* code fmt suggestion
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* remove box allocation
* bump version
* rename function as behavior has changed
* fix doc
2019-08-29 17:04:46 +02:00
cheme
b0e1212d48
Child storage tests and genesis fix. ( #3185 )
...
* Using child storage, (srml-support only), test failing .
* fix simple tests.
* Enumerable by requiring owned struct (previous form only allow
&'static).
Broken tests are from genesis init.
* implement for_child_keys_with_prefix
* indent
* clear_child_prefix fix.
* clear_child_prefix fix 2.
* fix for storage_impl, if/when allowing child and not child this could be
reverted.
* Fix lot of urlinked child genesis, still need to look upon actual
genesis srml module code.
Probably still a lot of broken code needing debugging.
* switch well_known_key to their associated module child trie.
Fix a genesis init (balance).
Complete some testing.
Comment some tests before using.
* fixing test runtime child keys
* latest commit fix broken genesis init
* fix system balances child name.
* Important fix: storage_root from test externalities need children (it is
already the case for ext).
* executive root with child calculation
* Avoid empty trie on test ext.
* Symetric removal of key for system.
* commenting changes related tests.
* Remove child module specifics.
* fix issues.
* fix some formatting
* fix bench and bump runtime
* Remove extend_storage_overlays, assimilate_storage do the same as is
proper considering srml macro.
* Fix warning for assimilate.
* Removing kill as they do not impact any test cases.
* Use tuple of storage map instead of two parameters. This changes the
behavior of decl_storage genesis build closure (breaking api).
* Do not use build storage before assimilate.
* fix error
* Update core/state-machine/src/backend.rs
2019-08-08 15:05:25 +02:00
thiolliere
4ed67e03a4
Update to parity-scale-codec ( #3232 )
...
* WIP: update codec
* WIP
* compiling
* WIP
* rename parity-scale-codec to codec
* WIP
* fix
* remove old comments
* use published crates
* fix expected error msg
* bump version
* fmt and fix
* remove old comment
* fix wrong decoding impl
* implement encode like for structures
* undo removal of old pending changes
* trailingzeroinput
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* update codec
* fmt
* version is 1.0.0
* show more error
* fmt
2019-08-06 19:36:23 +02:00
Bastian Köcher
5d58d583e3
Switch srml-session keys to decl_storage! ( #3184 )
...
* Switch `srml-session` keys to `decl_storage!`
* Expose `DEDUP_KEY_PREFIX` in constants
* Fix test
* Bump spec version
2019-07-24 16:40:04 +08: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
Bastian Köcher
d50b717ff6
Generate correct serde bound for GenesisConfig ( #2585 )
...
* Generate correct serde bound for GenesisConfig
* Handle double map as well
* Adapt double map test
2019-05-15 11:54:00 +02:00
thiolliere
dfbaedd535
Allow modules to validate transaction, second attempt ( #2463 )
...
* first impl
* rename origin::inherent to none
* fix
* fix
* Apply suggestions from code review
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* comment
* better error
* doc
* (add unsigned module 🤦 )
* doc
* fix
* implement for node-template as well
* add validated unsigned to executor
* fix
* fix
* bump version
* testing xt
* remove extraneous logic
* licence
* impl test
2019-05-10 14:13:04 +02:00
thiolliere
b0c21da94f
optimize double map first key hash ( #2451 )
...
* fix double map encoding it is now encoded as specified in the doc
2019-05-06 08:44:36 +02:00