Skip to content

Commit 041c8f1

Browse files
committed
Fix zkapps imports
1 parent fe840e8 commit 041c8f1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

ledger/src/proofs/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ pub mod verifier_index;
2323
pub mod witness;
2424
pub mod wrap;
2525
pub mod zkapp;
26-
pub mod zkapp_logic;
2726

2827
pub type VerifierIndex = kimchi::verifier_index::VerifierIndex<Pallas>;
2928
pub type ProverProof = kimchi::proof::ProverProof<Pallas>;

ledger/src/proofs/zkapp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ use crate::{
3636
verifier_index::make_zkapp_verifier_index,
3737
wrap::{self, WrapParams, WrapProofState, WrapStatement},
3838
zkapp::group::{State, ZkappCommandIntermediateState},
39-
zkapp_logic::{self, ApplyZkappParams},
4039
},
4140
scan_state::{
4241
currency::{Amount, Index, Signed, Slot},
@@ -63,6 +62,7 @@ use crate::{
6362
zkapps::{
6463
intefaces::ZkappApplication,
6564
snark::{zkapp_check::InSnarkCheck, AccountUnhashed, ZkappSnark},
65+
zkapp_logic::{self, ApplyZkappParams},
6666
},
6767
AccountId, ControlTag, MyCow, ToInputs, TokenId, ZkAppAccount,
6868
};

ledger/src/zkapps/intefaces.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use crate::proofs::field::{Boolean, FieldWitness};
77
use crate::proofs::to_field_elements::ToFieldElements;
88
use crate::proofs::transaction::Check;
99

10-
use crate::proofs::zkapp_logic;
1110
use crate::scan_state::currency::{self, SlotSpan};
11+
use crate::zkapps::zkapp_logic;
1212

1313
use crate::scan_state::transaction_logic::zkapp_command::{
1414
self, CheckAuthorizationResult, SetOrKeep,

ledger/src/zkapps/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
pub mod intefaces;
44
pub mod non_snark;
55
pub mod snark;
6+
pub mod zkapp_logic;

ledger/src/zkapps/snark.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use crate::{
2121
},
2222
witness::Witness,
2323
zkapp::{GlobalStateForProof, LedgerWithHash, WithStackHash, ZkappSingleData},
24-
zkapp_logic,
2524
},
2625
scan_state::{
2726
currency::{Amount, SlotSpan},
@@ -37,6 +36,7 @@ use crate::{
3736
},
3837
},
3938
sparse_ledger::SparseLedger,
39+
zkapps::zkapp_logic,
4040
Account, AccountId, AuthRequired, AuthRequiredEncoded, Inputs, MyCow, ReceiptChainHash,
4141
ToInputs, TokenId, VerificationKey, ZkAppAccount,
4242
};

ledger/src/zkapps/zkapp_logic.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::{
2222
};
2323
use ark_ff::{One, Zero};
2424

25-
use super::{
25+
use crate::proofs::{
2626
field::{Boolean, ToBoolean},
2727
zkapp::{StartDataSkeleton, ZkappSingleData},
2828
};
@@ -40,11 +40,11 @@ enum PerformResult<Z: ZkappApplication> {
4040
}
4141

4242
struct GetNextAccountUpdateResult<Z: ZkappApplication> {
43-
pub account_update: Z::AccountUpdate,
44-
pub caller_id: TokenId,
45-
pub account_update_forest: Z::CallForest,
46-
pub new_call_stack: Z::CallStack,
47-
pub new_frame: Z::StackFrame,
43+
account_update: Z::AccountUpdate,
44+
caller_id: TokenId,
45+
account_update_forest: Z::CallForest,
46+
new_call_stack: Z::CallStack,
47+
new_frame: Z::StackFrame,
4848
}
4949

5050
fn assert_<Z: ZkappApplication>(_b: Z::Bool) -> Result<(), String> {

0 commit comments

Comments
 (0)