Kian Paimani
084b158031
Optional serde for phragmen support ( #3994 )
...
* Add serde to phragmen
* Update lock file
* and bump a version
* and bump a version again
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* revert impl-tarit for tuple update
* revert session.
* Revert "revert session."
This reverts commit 98086c9db56677068db85f74320868b2c10d1c00.
* Revert "revert impl-tarit for tuple update"
This reverts commit 28a7fddee2e09c5785b19883f743065e0be8f331.
2019-11-01 22:22:37 +01:00
Kian Paimani
9b1dd268bf
Updates to elections-phragmen and some runtime docs. ( #3940 )
...
* minor changes
* Refactors for phragmen-election
* Bump.
* Fix genesis stuff
* Fix rest of the errors
2019-10-28 15:29:53 +01:00
Tomasz Drwięga
20a3989785
Runtime logging. ( #3821 )
...
* Implement Printable for tuples.
* Add debugging function.
* Add debug 1.
* Implement for everything.
* RuntimeDebug derive.
* Introduce RuntimeDebug.
* Add some dummy logging.
* Replace RuntimeDebug with Debug.
* Revert "Replace RuntimeDebug with Debug."
This reverts commit bc47070a8cb30241b2b590b2fa29fd195088162f.
* Working on Debug for all.
* Fix bounds.
* Add debug utils.
* Implement runtime logging.
* Add some docs and clean up.
* Clean up derives.
* Fix custom derive impl.
* Bump runtime.
* Fix long lines.
* Fix doc test.
* Use CARGO_CFG_STD.
* Revert "Use CARGO_CFG_STD."
This reverts commit ea429566de18ed0fa052571b359eb9826a64a9f4.
* Use parse_macro_input
* Update lockfile.
* Apply review suggestions.
* Remove stray re-export.
* Add no-std impl.
* Update lockfile.
2019-10-22 14:13:44 +02:00
Kian Paimani
21fae718c4
Multi-limb arithmetic for runtime ( #3743 )
...
* First working version of all operations.
* New and improved version of everything.
* Minor cleanup.
* Fix build
* Finalize nignum
* Some final works on refactors and tests.
* fix build
* Some review comments
* Bench, better try into and nits
* mutify the API
* rename to big_uint
* unmutify.
* Remove resize
* Apply suggestions from code review
* Update core/sr-primitives/src/sr_arithmetic.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* BEtter proof
* Fix panic doc.
* Bump.
2019-10-10 09:52:08 +02:00
Kian Paimani
f277c4884a
Fix Phragmen equalize loop. ( #3693 )
...
* Fix phragmen loop
* Bump.
2019-09-25 16:43:11 +02:00
Kian Paimani
1c15ca6ad1
Refactor: fixed point arithmetic for SRML. ( #3456 )
...
* Macro-ify perthings.
* Refactor fixed64
* Half-workign phragmen refactor.
* Finalize phragmen refactor.
* Fix creation of perquintill
* Fix build errors
* Line-width
* Fix more build errors.
* Line-width
* Fix offence test
* Resolve all TODOs.
* Apply suggestions from code review
Co-Authored-By: Gavin Wood <gavin@parity.io >
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* Fix most of the review comments.
* Updates to multiply by rational
* Fxi build
* Fix abs issue with Fixed64
* Fix tests and improvements.
* Fix build
* Remove more tests from staking.
* Review comments.
* Add fuzzing stuff.
* Better fuzzing
* Better doc.
* Bump.
* Master.into()
* A bit more hardening.
* Final nits.
* Update lock
* Fix indent.
* Revert lock file.
* Bump.
2019-09-25 11:21:05 +02:00
Kian Paimani
bfe240d1b0
srml-module: Phragmen election ( #3364 )
...
* phragmen election module.
* Add new files.
* Some doc update
* Update weights.
* bump and a few nits.
* Performance improvement.
* Master.into()
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* Fix build
* Some fixes.
* Fix build.
* Proper outgoing and runner-up managment.
* Bit more sensical weight values.
* Update srml/elections-phragmen/src/lib.rs
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* fix lock file
* Fix build.
* Remove runner-ups
* Some refactors.
* Add support for reporting voters.
* Fix member check.
* Remove equlize.rs
* Update srml/elections-phragmen/src/lib.rs
* Update srml/elections-phragmen/src/lib.rs
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* Bring back runner ups.
* use decode_len
* Better weight values.
* Update bogus doc
* Bump.
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* Review comments.
* One more test
* Fix tests
* Fix build
* .. and fix benchmarks.
* Update srml/elections-phragmen/src/lib.rs
* Version bump
2019-09-19 18:04:02 +08:00
Kian Paimani
a6b5d1d155
Move phragmen benchmarks out of Staking ( #3588 )
...
* Move phragmen benches to.. phragmen.
* Move some basic phragmen tests to.. phragmen.
* Line-width
* Add phragmen equ implementation as flot
* Add phragmen equ implementation as flot
* Add mock and test file.
2019-09-13 08:41:33 +02:00
Kian Paimani
f830db9642
Decouple Phragmen from Staking. ( #3498 )
...
* Move phragmen to primitives
* Improved docs
* New crate.
* Update lock.
* Fix dependency.
* Fix build.
* Add basic testing and truth-value implementation with float types
* Update srml/staking/src/lib.rs
* Nits.
* Bump.
* Fix benchmarks.
2019-08-29 11:07:49 +02:00