Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant committed Nov 20, 2024
1 parent 0108e72 commit 9d00674
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use dep::types::{
utils::reader::Reader,
};

global BASE_ROLLUP_TYPE = 0;
global MERGE_ROLLUP_TYPE = 1;
pub(crate) global BASE_ROLLUP_TYPE = 0;
pub(crate) global MERGE_ROLLUP_TYPE = 1;

pub struct BaseOrMergeRollupPublicInputs {
// rollup_type is either 0 (base) or 1 (merge)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ use dep::types::{
abis::{
accumulated_data::CombinedAccumulatedData,
append_only_tree_snapshot::AppendOnlyTreeSnapshot,
avm::AvmProofData,
avm_circuit_public_inputs::AvmProofData,
combined_constant_data::CombinedConstantData,
kernel_circuit_public_inputs::KernelCircuitPublicInputs,
log_hash::{LogHash, ScopedLogHash},
nullifier_leaf_preimage::NullifierLeafPreimage,
public_data_write::PublicDataWrite,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod append_only_tree_snapshot;
pub mod avm;
pub mod avm_circuit_public_inputs;

pub mod contract_class_function_leaf_preimage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use crate::{
};

pub struct PublicTubeData {
public_inputs: PrivateToPublicKernelCircuitPublicInputs,
proof: TubeProof,
vk_data: VkData<HONK_VERIFICATION_KEY_LENGTH_IN_FIELDS>,
pub public_inputs: PrivateToPublicKernelCircuitPublicInputs,
pub proof: TubeProof,
pub vk_data: VkData<HONK_VERIFICATION_KEY_LENGTH_IN_FIELDS>,
}

impl Verifiable for PublicTubeData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
avm_accumulated_data::AvmAccumulatedData, CombinedAccumulatedData,
PrivateAccumulatedData, PrivateAccumulatedDataBuilder, PrivateToPublicAccumulatedData,
},
avm::AvmProofData,
avm_circuit_public_inputs::AvmProofData,
call_context::CallContext,
combined_constant_data::CombinedConstantData,
function_data::FunctionData,
Expand Down

0 comments on commit 9d00674

Please sign in to comment.