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