Oliver Tale-Yazdi
e80c24733f
Lift dependencies to the workspace (Part 1) ( #2070 )
...
Changes (partial https://github.com/paritytech/polkadot-sdk/issues/994 ):
- Set log to `0.4.20` everywhere
- Lift `log` to the workspace
Starting with a simpler one after seeing
https://github.com/paritytech/polkadot-sdk/pull/2065 from @jsdw.
This sets the `default-features` to `false` in the root and then
overwrites that in each create to its original value. This is necessary
since otherwise the `default` features are additive and its impossible
to disable them in the crate again once they are enabled in the
workspace.
I am using a tool to do this, so its mostly a test to see that it works
as expected.
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2024-02-12 11:19:20 +00:00
Squirrel
be8e626806
Set clippy lints in workspace (requires rust 1.74) ( #2390 )
...
We currently use a bit of a hack in `.cargo/config` to make sure that
clippy isn't too annoying by specifying the list of lints.
There is now a stable way to define lints for a workspace. The only down
side is that every crate seems to have to opt into this so there's a
*few* files modified in this PR.
Dependencies:
- [x] PR that upgrades CI to use rust 1.74 is merged.
---------
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Branislav Kontur <bkontur@gmail.com >
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
2023-12-13 15:11:07 +01:00
Oliver Tale-Yazdi
dcda0e50f5
Fix build profiles ( #1229 )
...
* Fix build profiles
Closes https://github.com/paritytech/polkadot-sdk/issues/1155
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Manually set version to 1.0.0
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use workspace repo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* 'Authors and Edition from workspace
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-08-29 13:39:41 +02:00
Ross Bulat
20d5e3584d
Nomination Pool Commission ( #13128 )
...
* + nomination pool commission
* fmt
* use register_update()
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* fmt
* amend comments
* + test for set_commission
* fix
* Update frame/nomination-pools/fuzzer/src/call.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* rm comment
* use PalletError
* some feedback item amendments
* update weights
* revert PalletError stuff
* ".git/.scripts/commands/fmt/fmt.sh"
* make pool_events_since_last_call more modular
* fmt
* fix call indexes + test
* add payout teste
* add event to max_commisson updating current
* begin refactor
* some debugging
* update
* more tests
* rewardpol not working
* commission refactor
* pending rewards returns commission
* fmt
* add claim_commission call
* + claim_commission
* fix benchmarks
* weight 0 for now
* + claim_commission benchmark
* fmt
* apply commission to benchmarks
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools
* ".git/.scripts/commands/fmt/fmt.sh"
* clippy
* + pending
* add RewardPool.total_rewards_acounted
* fixes
* println
* more logs
* Fix plus cleanups
* fix assert
* tidy up
* tests work + tidy up
* rm unused
* clippy fix
* persist reward_pool update
* claim_commission_works tests
* .
* some test formatting
* add high level docs
* add calls
* docs
* rename
* rename
* docs
* rename
* fmt
* use matches!
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* Update frame/nomination-pools/src/tests.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* comment
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* .
* weights order
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools
* use from_parts
* comment
* ".git/.scripts/commands/fmt/fmt.sh"
* revert clippy suggestions on old migrations
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools
* add InitialGlobalMaxCommission
* fix migration
* reward counter comments & explanations
* format
* add commission implementation note
* fmt
* revert InitialGlobalMaxCommission
* global max commission migration generic
* text
* 100% commission no payout test
* add commission_accumulates_on_multiple_rewards
* non-zero fuzzer GlobalMaxCommission
* add last_recorded_total_payouts_needs_commission
* commission event fix + claim commission test
---------
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: command-bot <>
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-03-15 04:07:55 +00:00
Vivek Pandya
bc53b9a03a
Remove years from copyright notes. ( #13415 )
...
* Change copyright year to 2023 from 2022
* Fix incorrect update of copyright year
* Remove years from copy right header
* Fix remaining files
* Fix typo in a header and remove update-copyright.sh
2023-02-21 18:46:41 +00:00
Ross Bulat
00e159f770
Nomination Pools: Rename state-toggler to bouncer ( #13421 )
...
* rename state-toggler to bouncer
* add migration
* fmt
* bump storage version
* rm migration
* revert version
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-02-21 11:39:52 +00:00
Kian Paimani
9979acb1e7
More testing and fuzzing and docs for pools ( #12624 )
...
* move pools fuzzing to hongfuzz
* merge more small fixes
* fix all tests
* Update frame/nomination-pools/fuzzer/src/call.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* remove transactional
* fmt
* fix CI
* fmt
* fix build again
* fix CI
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
2022-11-10 02:34:00 +00:00