mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
clippy && cargo update
This commit is contained in:
389
Cargo.lock
generated
389
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -73,7 +73,7 @@ pub async fn allocate_stake(
|
|||||||
nonce: u32,
|
nonce: u32,
|
||||||
) -> [u8; 32] {
|
) -> [u8; 32] {
|
||||||
// get the call
|
// get the call
|
||||||
let tx = serai.sign(&pair, SeraiValidatorSets::allocate(network, amount), nonce, 0);
|
let tx = serai.sign(pair, SeraiValidatorSets::allocate(network, amount), nonce, 0);
|
||||||
publish_tx(serai, &tx).await
|
publish_tx(serai, &tx).await
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,6 +86,6 @@ pub async fn deallocate_stake(
|
|||||||
nonce: u32,
|
nonce: u32,
|
||||||
) -> [u8; 32] {
|
) -> [u8; 32] {
|
||||||
// get the call
|
// get the call
|
||||||
let tx = serai.sign(&pair, SeraiValidatorSets::deallocate(network, amount), nonce, 0);
|
let tx = serai.sign(pair, SeraiValidatorSets::deallocate(network, amount), nonce, 0);
|
||||||
publish_tx(serai, &tx).await
|
publish_tx(serai, &tx).await
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ async fn validator_set_rotation() {
|
|||||||
|
|
||||||
// we start the chain with 4 default participants that has a single key share each
|
// we start the chain with 4 default participants that has a single key share each
|
||||||
participants.sort();
|
participants.sort();
|
||||||
verify_session_and_active_validators(&serai, network, 0, &participants).await;
|
verify_session_and_active_validators(&serai, network, 0, participants).await;
|
||||||
|
|
||||||
// add 1 participant & verify
|
// add 1 participant & verify
|
||||||
let hash =
|
let hash =
|
||||||
@@ -188,7 +188,7 @@ async fn validator_set_rotation() {
|
|||||||
&serai,
|
&serai,
|
||||||
network,
|
network,
|
||||||
get_active_session(&serai, network, hash).await,
|
get_active_session(&serai, network, hash).await,
|
||||||
&participants,
|
participants,
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
@@ -199,7 +199,7 @@ async fn validator_set_rotation() {
|
|||||||
participants.swap_remove(participants.iter().position(|k| *k == pair2.public()).unwrap());
|
participants.swap_remove(participants.iter().position(|k| *k == pair2.public()).unwrap());
|
||||||
let active_session = get_active_session(&serai, network, hash).await;
|
let active_session = get_active_session(&serai, network, hash).await;
|
||||||
participants.sort();
|
participants.sort();
|
||||||
verify_session_and_active_validators(&serai, network, active_session, &participants).await;
|
verify_session_and_active_validators(&serai, network, active_session, participants).await;
|
||||||
|
|
||||||
// check pending deallocations
|
// check pending deallocations
|
||||||
let pending = serai
|
let pending = serai
|
||||||
|
|||||||
Reference in New Issue
Block a user