Koute
9d1741eb3c
Bump parity-scale-codec to 3.6.1 ( #14428 )
2023-06-21 11:37:11 +00:00
Alexandru Vasile
3da9449067
Bump sp-crates from latest crates.io version + release ( #14265 )
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-05-31 12:11:01 +00:00
Alexandru Vasile
98a0550ea2
Release: Bump SP crates to release on crates.io ( #14237 )
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-05-29 10:40:59 +00:00
Bastian Köcher
05da6d8e84
HoldReason: Improve usage ( #13869 )
...
* HoldReason: Improve usage
`HoldReason` was switched recently to use the `composite_enum` attribute that will merge the enums
from all pallets in the runtime to `RuntimeHoldReason`. `pallet-nis` was still requiring that the
variant was passed as constant to call `hold`. The proper implementation is to use the `HoldReason`
from inside the pallet directly when calling `hold`. This is done by adding a `RuntimeHoldReason` as
type to the `Config` trait and requiring that `Currency` is using the same reason. Besides that the
pr changes the name `HoldIdentifier` in `pallet_balances::Config` to `RuntimeHoldReason`.
* Update frame/nis/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review comment
* Fixes
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-05-24 21:59:34 +00:00
Gonçalo Pestana
5854ef0fd1
Adds integration test for slashed/chilled validator with subsequent validation intention ( #13717 )
...
* Adds integration test for slashed/chilled validator with subsequent validation intention
* Removes unecessary comment
* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Addresses PR review comments
* Fixes after conflict resolved
---------
Co-authored-by: parity-processbot <>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-05-15 12:04:29 +00:00
Ross Bulat
56940bc874
Staking::{bond, set_controller} to set controllers to stash only. ( #14039 )
...
* update set_controller
* clone
* bond uses `stash`
* remove controller from bond(), chill_other test works
* remove ctlr from testing_utils & dead ctlr -> dead payee
* mvs controllers to stashes for 3 tests
* migrate mock bond fns & fix 1 test
* mvs controllers to stashes for 7 tests
* mvs controllers to stashes for 9 tests
* remove double_controlling_should_fail
* remove double_staking_should_fail
* mvs controllers to stashes for 10 tests
* mvs controllers to stashes for 2 tests
* remove payout_creates_controller
* mvs controllers to stashes for 27 tests
* remove println!
* fix rewards_should_work
* fix test_payout_stakers
* fix bond benchmark
* clone
* rm unused import
* rm unused var
* rm controller from create_offender
* fix GenesisConfig stakers
* fix controllers in consensus pallets
* fix unqiue controller in chain_spec
* fmt
* fix create_offender
* fix set_controller benchmark
* add TODO
* create_unique_stash_controller
* staking benchmarks working
* fmt
* fix args
* rm println
* import
* import
* fix fast unstake tests
* fix staking-tests-e2e
* fix root-offenses
* fmt
* differentiate controller to stash
* bring back change_controller_works w. unique ctrl
* bring back double_staking_should_fail
* double_controlling_attempt_should_fail
* bring back payout_creates_controller
* add commnet to controller balances
* + set_controller call description
* fmt
* rm clones
* fmt
* clippy fixes
* fmt
* update README
* small fixes
* use controller_to_be_deprecated
* .comment
* comment
* bump zombienet version
* ci
---------
Co-authored-by: parity-processbot <>
Co-authored-by: Javier Viola <javier@parity.io >
2023-05-11 18:22:15 +00:00
Bastian Köcher
13cab3a4b7
test-staking-e2e: Add to main Cargo.toml. ( #14062 )
...
This ensures that it is actually tested as part of the CI. There is also no need to have it separate.
2023-05-03 15:15:49 +02:00
Gonçalo Pestana
ce08e1354f
Integration tests for staking + election-provider-multi-phase ( #12972 )
...
* EPM and staking pallets: Adds new crate for integration tests
a
* Adds ExtBuilder and helpers with initial conditions assertions
* removes account helpers; adds staking, session, etc genesis
* Adds kusama incident test case
* Prepare for slashing test
* Adds solution submission
* slash_through_offending_threshold
* Renames e2e integration tests dir and crate
* consistently slash 10% of validator set
* finishes continous_slashes_below_offending_threshold test
* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com >
* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com >
* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/election-provider-multi-phase/test-staking-e2e/src/mock.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/election-provider-multi-phase/test-staking-e2e/src/mock.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/election-provider-multi-phase/test-staking-e2e/src/mock.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* mock fixes
* Additional checks to delayed solution eras and mock fixes
* nits and addresses review comments; splits ext_builder into one per pallet
* helper to set balances ext builder
* bring up mock.rs to master
* integration test fixes and additions
---------
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-03-16 12:09:50 +00:00