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
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
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
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
Benjamin Kampmann
eaa0ab014a
Move import lock onto backend ( #2797 )
...
* Drop import_lock from client, move it into backend, impl default version via static mutex
* still need to allow depcretion because of client.backend
* additional docs
* Remove default impl of get_import_lock, impl on instances
* Bump parking_lot to 0.8.0 accross the board
2019-06-05 15:46:01 +02:00
André Silva
9d23d2a25a
Bump master to v2.0.0 ( #2514 )
...
* bump crates to v2.0.0
* fix crate authors
* bump node runtime spec_version
* remove unused import for no-std
2019-05-10 16:55:15 +02:00
Stanislav Tkach
0f02bed702
Update hex-literal version, simplify imports and remove unused dependencies ( #2371 )
2019-04-25 11:17:40 +02:00
Sergei Pepyakin
e2bb429711
Use serde derive feature. ( #2351 )
...
* core/primitives
* sr-primitives
* sr-primitives
* srml-treasury
* substrate-executor
* substrate-keystore
* network-libp2p
* substrate-service
* srml-system
* substrate-rpc
* sr-version
* substrate-telemetry
* substrate-test-runtime
* substrate-transaction-pool
* node-template-runtime
* node-primitives
* srml-consensus
* srml-contract
* srml-democracy
* srml-finality-tracker
* srml-grandpa
* srml-metadata
* srml-support
* Clean
* Update locks
2019-04-23 18:42:42 +02:00
thiolliere
7e3b2d464a
skip phantom for decl_event ( #2158 )
...
* use parity-codec-derive from parity-codec everywhere
* codec v3.2 -> v3.3
* skip phantom when deriving event
* fix decl_module call
* update impl version of node + builds
2019-04-02 12:04:23 +02:00
Gav Wood
eca163ba64
Bump version to 1.0.0 globally ( #2149 )
...
* Bump versionb globally
* Rebuild and fix
* Rename fixes
* Rebuild
* Minor fix and code formatting for validator election
* Fix tests
* More test fixes
* Fix several bugs in phragmen elections.
* Rebuild, remove pointless closures
2019-04-01 15:16:06 +02:00
thiolliere
d743a8b71f
Implement parameterisable modules ( #1800 )
...
* first implementation
* remove done comment
* origin done
* impl log for instance
* impl inherent for instance
* Fix wasm build + full example build
this requires parity codec implements codec for core::marker::PhantomData
* patch parity-codec link to github branch
* improve internal names and fix instance prefix
* Fix in macros
* add test modules for support
this allow to test for construct_runtime as well.
The reason to have put that in another crate is:
* if we put test in `tests/` dir of srml/support then decl_storage fails to get
srml-support access because it believes it is inside srml-support
crate and so derive access to `quote!{ crate }` but this is wrong
(and I don't see any way to prevent that, and it only bother us so I
don't think that matters that much)
* if we put test inside lib.rs then contruct_runtime cannot be used
because it call some macros that are defined with macros
(decl_outer_event and decl_outer_origin) and thus rustc complains.
* defaultinstance to its own struct to avoid errors
* enforce <T, I> for Event and Config, impl test
* add origin, log, inherent to test
* test more code generation
* basic storage test
* fix typo
* rename a few imports and field
* delete wip test in example and runtime
* change default prefix to make it backward compatible with test
* rename Instance to I and Instantiable to Instance
note: the name of generic parameter I is only enforce by decl_module!
and this could be rewritten
* doc
* clean old TODOs
* update parity-codec to 3.2
* update node impl version + builds
* fix warning
* fix unrelated grandpa test
* refactor code
2019-03-15 19:25:18 +01:00
郭光华
b5f6a77d3b
Delete unused import in finaly-tracker module ( #1931 )
...
* Delete unused import in finaly-tracker module
* Fix test build error
* Revert spec_version
* Rebuild wasm
2019-03-06 13:16:12 +01:00
Robert Habermeier
dfb48a2405
Offline fallback for GRANDPA ( #1619 )
...
Co-authored-by: André Silva <andre.beat@gmail.com >
* skeleton for finality tracker
* dispatch events when nothing finalized for a long time
* begin integrating finality tracker into grandpa
* add delay field to pending change
* add has_api_with function to sr_version for querying APIs
* partially integrate new force changes into grandpa
* implement forced changes
* get srml-grandpa compiling
* Update core/finality-grandpa/src/authorities.rs
Co-Authored-By: rphmeier <rphmeier@gmail.com >
* Update core/finality-grandpa/src/authorities.rs
Co-Authored-By: rphmeier <rphmeier@gmail.com >
* Update core/finality-grandpa/src/authorities.rs
Co-Authored-By: rphmeier <rphmeier@gmail.com >
* remove explicit dependence on CoreApi
* increase node runtime version
* integrate grandpa forced changes into node runtime
* add some tests to finality-tracker
* integrate finality tracking into node-runtime
* test forced-change logic
* test forced changes in the authority-set handler
* kill some unneeded bounds in client
* test forced-changes in finality-grandpa and fix logic
* build wasm and finality-tracker is no-std
* restart voter on forced change
* allow returning custom error type from lock_import_and_run
* extract out most DB logic to aux_schema and use atomic client ops
* unify authority set writing
* implement set pausing
* bump runtime version
* note on DB when we pause.
* core: grandpa: integrate forced changes with multiple pending standard changes
* core: grandpa: fix AuthoritySet tests
* runtime: bump impl_version
* core: clear pending justification requests after forced change import
* srml: finality-tracker: use FinalizedInherentData
* core: log requests for clearing justification requests
* core, node: update runtimes
* core: grandpa: fix tests
* core: grandpa: remove todos and add comments
* core: grandpa: use has_api_with from ApiExt
* core: fix tests
* core: grandpa: remove unnecessary mut modifier
* core: replace PostImportActions bitflags with struct
* core: grandpa: restrict genesis on forced authority set change
* core: grandpa: add more docs
* core: grandpa: prevent safety violations in Environment::finalize_block
* core: grandpa: register finality tracker inherent data provider
* core: grandpa: fix tests
* node: update runtime blobs
* core: grandpa: remove outdated todo
* core: aura: fix typo in log message
* core: grandpa: check re-finalization is on canonical chain
* srml: finality-tracker: fix initialization
* node: update runtime wasm
* srml: finality-tracker: don't re-initialize config keys
2019-03-05 15:41:35 +00:00