mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Aggregate all liquidity restrictions in a single place (#1921)
* Clean up session key rotation * Fix build * Bump version * Introduce feature to balances. * Move staking locking logic over to central point * ^^^ rest * First part of assimilation * More assimilation * More assimilation * Fix most tests * Fix build * Move Balances to new locking system * :q! * Bump runtime version * Build runtime * Convenience function * Test fix. * Whitespace * Improve type legibility. * Fix comment. * More tests. * More tests. * Bump version * Caps * Whitespace * Whitespace * Remove unneeded function.
This commit is contained in:
@@ -318,9 +318,9 @@ mod tests {
|
||||
sudo: Some(Default::default()),
|
||||
grandpa: Some(GrandpaConfig {
|
||||
authorities: vec![ // set these so no GRANDPA events fire when session changes
|
||||
(keyring::ed25519::Keyring::Alice.to_raw_public().into(), 1),
|
||||
(keyring::ed25519::Keyring::Bob.to_raw_public().into(), 1),
|
||||
(keyring::ed25519::Keyring::Charlie.to_raw_public().into(), 1),
|
||||
(keyring::ed25519::Keyring::Bob.to_raw_public().into(), 1),
|
||||
(keyring::ed25519::Keyring::Alice.to_raw_public().into(), 1),
|
||||
],
|
||||
}),
|
||||
fees: Some(FeesConfig {
|
||||
@@ -449,9 +449,9 @@ mod tests {
|
||||
|
||||
let mut digest = generic::Digest::<Log>::default();
|
||||
digest.push(Log::from(::grandpa::RawLog::AuthoritiesChangeSignal(0, vec![
|
||||
(Keyring::One.to_raw_public().into(), 1),
|
||||
(Keyring::Two.to_raw_public().into(), 1),
|
||||
([3u8; 32].into(), 1),
|
||||
(Keyring::Charlie.to_raw_public().into(), 1),
|
||||
(Keyring::Alice.to_raw_public().into(), 1),
|
||||
(Keyring::Bob.to_raw_public().into(), 1),
|
||||
])));
|
||||
assert_eq!(Header::decode(&mut &block2.0[..]).unwrap().digest, digest);
|
||||
|
||||
@@ -592,9 +592,9 @@ mod tests {
|
||||
EventRecord {
|
||||
phase: Phase::Finalization,
|
||||
event: Event::grandpa(::grandpa::RawEvent::NewAuthorities(vec![
|
||||
(Keyring::One.to_raw_public().into(), 1),
|
||||
(Keyring::Two.to_raw_public().into(), 1),
|
||||
([3u8; 32].into(), 1),
|
||||
(Keyring::Charlie.to_raw_public().into(), 1),
|
||||
(Keyring::Alice.to_raw_public().into(), 1),
|
||||
(Keyring::Bob.to_raw_public().into(), 1),
|
||||
])),
|
||||
},
|
||||
EventRecord {
|
||||
|
||||
Reference in New Issue
Block a user