Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

Commit 00b4696

Browse files
committed
chore: cargo fmt
1 parent a0dad37 commit 00b4696

13 files changed

Lines changed: 209 additions & 156 deletions

File tree

core/src/interfaces.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,7 @@ impl std::fmt::Display for ShastaProposal {
532532
write!(
533533
f,
534534
"{}:{:?}:{}",
535-
self.proposal_id,
536-
self.checkpoint,
537-
self.l1_inclusion_block_number
535+
self.proposal_id, self.checkpoint, self.l1_inclusion_block_number
538536
)
539537
}
540538
}

core/src/provider/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ pub async fn get_task_data(
5757
.hash
5858
.ok_or_else(|| RaikoError::RPC("No block hash for requested block".to_string()))?;
5959
Ok((taiko_chain_spec.chain_id, blockhash))
60-
}
60+
}

lib/src/manifest/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pub mod types;
21
pub mod codec;
2+
pub mod types;
33

4-
pub use types::*;
54
pub use codec::*;
5+
pub use types::*;

lib/src/utils/shasta_rules.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,7 @@ fn calc_next_shasta_base_fee(
453453
.unwrap_or(0);
454454

455455
if adjustment < 1 {
456-
return clamp_shasta_base_fee_with_min(
457-
parent_base_fee.saturating_add(1),
458-
min_base_fee,
459-
);
456+
return clamp_shasta_base_fee_with_min(parent_base_fee.saturating_add(1), min_base_fee);
460457
}
461458
clamp_shasta_base_fee_with_min(parent_base_fee.saturating_add(adjustment), min_base_fee)
462459
} else {

provers/risc0/driver/src/boundless.rs

Lines changed: 168 additions & 121 deletions
Large diffs are not rendered by default.

provers/risc0/driver/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ use raiko_lib::{
1919
},
2020
libhash::hash_shasta_subproof_input,
2121
proof_type::ProofType,
22+
protocol_instance::validate_shasta_proof_carry_data_vec,
2223
prover::{
2324
IdStore, IdWrite, Proof, ProofCarryData, ProofKey, Prover, ProverConfig, ProverError,
2425
ProverResult,
2526
},
26-
protocol_instance::validate_shasta_proof_carry_data_vec,
2727
};
2828
use risc0_zkvm::{
2929
compute_image_id, default_prover,
@@ -207,7 +207,7 @@ impl Prover for Risc0Prover {
207207
let mut id_store = id_store;
208208
let boundless_cfg = config;
209209
let config = Risc0Param::deserialize(config.get("risc0").unwrap()).unwrap();
210-
210+
211211
if config.boundless {
212212
// Delegate to boundless driver (agent-managed) when enabled.
213213
return BoundlessProver::new()
@@ -266,7 +266,7 @@ impl Prover for Risc0Prover {
266266
) -> ProverResult<Proof> {
267267
let boundless_cfg = config;
268268
let config = Risc0Param::deserialize(config.get("risc0").unwrap()).unwrap();
269-
269+
270270
if config.boundless {
271271
// Delegate to boundless driver (agent-managed) when enabled.
272272
return BoundlessProver::new()
@@ -293,9 +293,9 @@ impl Prover for Risc0Prover {
293293
.proofs
294294
.iter()
295295
.map(|proof| {
296-
proof.extra_data
297-
.clone()
298-
.ok_or_else(|| ProverError::GuestError("missing shasta proof carry data".into()))
296+
proof.extra_data.clone().ok_or_else(|| {
297+
ProverError::GuestError("missing shasta proof carry data".into())
298+
})
299299
})
300300
.collect::<Result<Vec<_>, _>>()?;
301301
let block_inputs = build_shasta_block_inputs(&input.proofs, &proof_carry_data_vec)?;
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
2-
pub const BOUNDLESS_AGGREGATION_ELF: &[u8] = include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/boundless-aggregation.bin");
3-
pub const BOUNDLESS_AGGREGATION_ID: [u32; 8] = [55618647, 3377036657, 1929083614, 2482855059, 120956075, 3701986409, 892553791, 4190508197];
1+
pub const BOUNDLESS_AGGREGATION_ELF: &[u8] = include_bytes!(
2+
"../../../guest/target/riscv32im-risc0-zkvm-elf/release/boundless-aggregation.bin"
3+
);
4+
pub const BOUNDLESS_AGGREGATION_ID: [u32; 8] = [
5+
55618647, 3377036657, 1929083614, 2482855059, 120956075, 3701986409, 892553791, 4190508197,
6+
];
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
2-
pub const BOUNDLESS_BATCH_ELF: &[u8] = include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/boundless-batch.bin");
3-
pub const BOUNDLESS_BATCH_ID: [u32; 8] = [1921226688, 1927191714, 1973335244, 1172425234, 3004348566, 2770360705, 811501905, 3652470270];
1+
pub const BOUNDLESS_BATCH_ELF: &[u8] =
2+
include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/boundless-batch.bin");
3+
pub const BOUNDLESS_BATCH_ID: [u32; 8] = [
4+
1921226688, 1927191714, 1973335244, 1172425234, 3004348566, 2770360705, 811501905, 3652470270,
5+
];
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
2-
pub const BOUNDLESS_SHASTA_AGGREGATION_ELF: &[u8] = include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/boundless-shasta-aggregation.bin");
3-
pub const BOUNDLESS_SHASTA_AGGREGATION_ID: [u32; 8] = [727175413, 2017795602, 3719875137, 1057922314, 2476225829, 2064460280, 2963810467, 798644484];
1+
pub const BOUNDLESS_SHASTA_AGGREGATION_ELF: &[u8] = include_bytes!(
2+
"../../../guest/target/riscv32im-risc0-zkvm-elf/release/boundless-shasta-aggregation.bin"
3+
);
4+
pub const BOUNDLESS_SHASTA_AGGREGATION_ID: [u32; 8] = [
5+
727175413, 2017795602, 3719875137, 1057922314, 2476225829, 2064460280, 2963810467, 798644484,
6+
];

provers/risc0/driver/src/snarks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ use std::{str::FromStr, sync::Arc};
1717
use alloy_primitives::B256;
1818
use alloy_sol_types::{sol, SolValue};
1919
use anyhow::Result;
20-
use hex;
2120
use bonsai_sdk::blocking::Client;
2221
use ethers_contract::abigen;
2322
use ethers_core::types::H160;
2423
use ethers_providers::{Http, Provider, RetryClient};
24+
use hex;
2525
use log::{error, info};
2626
use raiko_lib::primitives::keccak::keccak;
2727
use risc0_zkvm::{

0 commit comments

Comments
 (0)