Kian Paimani
ed5d31a22b
Remove Self vote from phragmen ( #4081 )
...
* first draft of everything that works
* Some test fixes
2019-11-11 00:41:44 +01:00
Kian Paimani
a0e24f3aa2
Storage migration of elections-phragmen ( #3948 )
...
* Initial sotrage migration
* Fix some deps
* test added
* another dep removed
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* a bit nicer
2019-10-29 15:46:34 +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
Gavin Wood
ec7655cc7b
Tip payment is a different withdraw reason. ( #3937 )
...
* Tip payment is a different withdraw reason.
* Bump runtime version.
* Test fix.
* Fix lock type
2019-10-28 13:04:20 +01:00
Kian Paimani
311be1d071
Fix phragmen election to wasm ( #3898 )
...
* Fix phragmen-election compile to wasm
* Fix chain_spec stuff
* Fix panic with no term duration
2019-10-23 22:04:42 +02:00
Robert Habermeier
5d5e71028e
Explicitly declare decl_storage! getters as functions ( #3870 )
...
* parse decl_storage getters with fn keyword
* test for get in decl_storage
* update all decl_storage! getters
* bump version
* adjust missed doc line
2019-10-22 09:53:58 +02:00
Kian Paimani
183c188111
refactor: Transaction-Payment module ( #3816 )
...
* Initial draft that compiles
* Extract payment stuff from balances
* Extract multiplier update stuff from system
* Some fixes.
* Update len-fee as well
* some review comments.
* Remove todo
* bump
2019-10-17 14:21:32 +02:00
Bastian Köcher
4dbc9265ee
Add execute_with to TestExternalities ( #3793 )
...
This function executes the given closure in a context where the test
externalities are set. This makes the srml tests easier to write, as the
test externalities need to be created anyway.
2019-10-10 15:01:30 +02:00
Bastian Köcher
8a39be474e
Move Externalities into its own crate ( #3775 )
...
* Move `Externalities` into `substrate-externalities`
- `Externalities` now support generic extensions
- Split of `primtives-storage` for storage primitive types
* Move the externalities scoping into `substrate-externalities`
* Fix compilation
* Review feedback
* Adds macro for declaring extensions
* Fix benchmarks
* Introduce `ExtensionStore` trait
* Last review comments
* Implement it for `ExtensionStore`
2019-10-09 15:50:30 +02:00
Xiliang Chen
67a4bc4bdd
Minor fixes ( #3751 )
...
* fix warning
* use compact for balance type
* bump version
2019-10-03 03:16:07 +02:00
thiolliere
53e0ddee4e
Use EncodeLike for storages traits ( #3676 )
...
* impl
* patch
* lock
* some refactor
* some avoided copy
* new api without ref for doublemap
* fix
* version bump
* fix
* point to incoming release
* use codec latest
* bumpd impl version
* fix unused
* fix
* Update srml/support/src/storage/mod.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
2019-10-01 19:45:24 +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
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