diff --git a/architectures/centralized/local-testnet/src/main.rs b/architectures/centralized/local-testnet/src/main.rs index 76ad10a6c..f81d45d2f 100644 --- a/architectures/centralized/local-testnet/src/main.rs +++ b/architectures/centralized/local-testnet/src/main.rs @@ -82,7 +82,7 @@ struct StartArgs { #[clap(long)] first_client_checkpoint: Option, - // HF token for all the clients to fetch the model at the beggining of the run. + // HF token for all the clients to fetch the model at the beginning of the run. #[clap(long)] hf_token: Option, diff --git a/architectures/decentralized/solana-authorizer/README.md b/architectures/decentralized/solana-authorizer/README.md index 3db40e938..7d6fdfea8 100644 --- a/architectures/decentralized/solana-authorizer/README.md +++ b/architectures/decentralized/solana-authorizer/README.md @@ -49,7 +49,7 @@ impl Authorization { The smart contract then exposes a set of instruction to manipulate those `Authorization` PDAs: -- `authoziation_create`, create a new PDA +- `authorization_create`, create a new PDA - `authorization_grantor_update`, allow the grantor to activate/deactivate the authorization - `authorization_grantee_update`, allow the grantee to add/remove delegates - `authorization_close` allow the grantor to remove the PDA diff --git a/architectures/decentralized/solana-client/src/app.rs b/architectures/decentralized/solana-client/src/app.rs index 379e93b63..d6637d474 100644 --- a/architectures/decentralized/solana-client/src/app.rs +++ b/architectures/decentralized/solana-client/src/app.rs @@ -305,7 +305,7 @@ impl App { match ticked.tick(pending_clients_ids, timestamp, rand::rng().next_u64()) { Ok(_) => { if ticked.run_state != latest_update.run_state { - // to avoid *everyone* sending a tick, we probabilisticly send it + // to avoid *everyone* sending a tick, we probabilistically send it // targeting having two clients send it per interval let send_tick = match ticked.epoch_state.clients.len() { 0..=2 => true, diff --git a/architectures/decentralized/solana-client/src/backend.rs b/architectures/decentralized/solana-client/src/backend.rs index 90f94e528..439c880a6 100644 --- a/architectures/decentralized/solana-client/src/backend.rs +++ b/architectures/decentralized/solana-client/src/backend.rs @@ -133,9 +133,9 @@ impl SolanaBackend { cluster: Cluster, backup_clusters: Vec, payer: Arc, - committment: CommitmentConfig, + commitment: CommitmentConfig, ) -> Result { - let client = Client::new_with_options(cluster.clone(), payer.clone(), committment); + let client = Client::new_with_options(cluster.clone(), payer.clone(), commitment); let mut program_coordinators = vec![]; program_coordinators.push(Arc::new(client.program(psyche_solana_coordinator::ID)?)); @@ -143,7 +143,7 @@ impl SolanaBackend { let backup_program_coordinators: Result, _> = backup_clusters .iter() .map(|cluster| { - Client::new_with_options(cluster.clone(), payer.clone(), committment) + Client::new_with_options(cluster.clone(), payer.clone(), commitment) .program(psyche_solana_coordinator::ID) }) .collect(); diff --git a/architectures/decentralized/solana-client/src/command/treasurer_claim_rewards.rs b/architectures/decentralized/solana-client/src/command/treasurer_claim_rewards.rs index bc763be91..7ee211629 100644 --- a/architectures/decentralized/solana-client/src/command/treasurer_claim_rewards.rs +++ b/architectures/decentralized/solana-client/src/command/treasurer_claim_rewards.rs @@ -109,16 +109,16 @@ pub async fn command_treasurer_claim_rewards_execute( } println!("Total earned points: {client_earned_points}"); - let treasurer_participiant_state = backend + let treasurer_participant_state = backend .get_treasurer_participant(&treasurer_participant_address) .await?; println!( "Already claimed earned points: {}", - treasurer_participiant_state.claimed_earned_points + treasurer_participant_state.claimed_earned_points ); let claimable_earned_points = - client_earned_points - treasurer_participiant_state.claimed_earned_points; + client_earned_points - treasurer_participant_state.claimed_earned_points; println!("Claimable earned points: {claimable_earned_points}"); // 1:1 mapping between earned points and collateral amount diff --git a/architectures/decentralized/solana-client/src/command/treasurer_top_up_rewards.rs b/architectures/decentralized/solana-client/src/command/treasurer_top_up_rewards.rs index 78de1cb54..6acc512ec 100644 --- a/architectures/decentralized/solana-client/src/command/treasurer_top_up_rewards.rs +++ b/architectures/decentralized/solana-client/src/command/treasurer_top_up_rewards.rs @@ -85,7 +85,7 @@ pub async fn command_treasurer_top_up_rewards_execute( .send_and_retry("Top-up rewards", &[instruction], &[]) .await?; println!( - "Transfered {} collateral to treasurer in transaction: {}", + "Transferred {} collateral to treasurer in transaction: {}", native_amount_to_ui_amount(collateral_amount, collateral_mint_decimals), signature ); diff --git a/architectures/decentralized/solana-coordinator/programs/solana-coordinator/src/instance_state.rs b/architectures/decentralized/solana-coordinator/programs/solana-coordinator/src/instance_state.rs index 029b40fad..54c198ee8 100644 --- a/architectures/decentralized/solana-coordinator/programs/solana-coordinator/src/instance_state.rs +++ b/architectures/decentralized/solana-coordinator/programs/solana-coordinator/src/instance_state.rs @@ -127,7 +127,7 @@ impl CoordinatorInstanceState { } }, Ok(TickResult::EpochEnd(success)) => { - msg!("Epoch end, sucecsss: {}", success); + msg!("Epoch end, success: {}", success); let finished_clients = &self.coordinator.epoch_state.clients; let exited_clients =