Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion architectures/centralized/local-testnet/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct StartArgs {
#[clap(long)]
first_client_checkpoint: Option<String>,

// 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<String>,

Expand Down
2 changes: 1 addition & 1 deletion architectures/decentralized/solana-authorizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion architectures/decentralized/solana-client/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions architectures/decentralized/solana-client/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ impl SolanaBackend {
cluster: Cluster,
backup_clusters: Vec<Cluster>,
payer: Arc<Keypair>,
committment: CommitmentConfig,
commitment: CommitmentConfig,
) -> Result<Self> {
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)?));

let backup_program_coordinators: Result<Vec<_>, _> = 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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down