Skip to content

Commit 4943634

Browse files
committed
Remove scan_state/zkapp_logic.rs
This is now fully replaced by `zkapps/{non_snark.rs,zkapp_logic.rs}`
1 parent ddb1ac8 commit 4943634

File tree

6 files changed

+51
-1229
lines changed

6 files changed

+51
-1229
lines changed

ledger/src/generators/zkapp_command.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ use crate::{
3333
},
3434
Memo,
3535
},
36-
zkapp_logic::{self, ZkAppCommandElt},
36+
},
37+
zkapps::{
38+
non_snark::ZkappNonSnark,
39+
zkapp_logic::{update_action_state, ZkAppCommandElt},
3740
},
3841
Account, AccountId, AuthRequired, BaseLedger, ControlTag, Mask, MutableFp, MyCowMut,
3942
Permissions, ReceiptChainHash, SetVerificationKey, TokenId, VerificationKeyWire, VotingFor,
@@ -907,11 +910,12 @@ fn gen_account_update_body_components<A, B, C, D>(
907910
Some(ps) => ps.global_slot_since_genesis,
908911
};
909912

910-
let (action_state, _last_action_slot) = zkapp_logic::update_action_state(
911-
zk.action_state,
912-
actions.clone(),
913+
let (action_state, _last_action_slot) = update_action_state::<ZkappNonSnark<Mask>>(
914+
&zk.action_state,
915+
&actions,
913916
txn_global_slot,
914917
last_action_slot,
918+
&mut (),
915919
);
916920

917921
action_state

ledger/src/scan_state/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pub mod protocol_state;
99
pub mod scan_state;
1010
pub mod snark_work;
1111
pub mod transaction_logic;
12-
pub mod zkapp_logic;
1312
pub use parallel_scan::SpacePartition;
1413

1514
pub struct GenesisConstant {

ledger/src/scan_state/transaction_logic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ use self::{
4141

4242
use super::currency::SlotSpan;
4343
use super::fee_rate::FeeRate;
44-
use super::zkapp_logic::ZkAppCommandElt;
4544
use super::{
4645
currency::{Amount, Balance, Fee, Index, Length, Magnitude, Nonce, Signed, Slot},
4746
fee_excess::FeeExcess,
4847
scan_state::transaction_snark::OneOrTwo,
4948
};
49+
use crate::zkapps::zkapp_logic::ZkAppCommandElt;
5050

5151
/// https://github.com/MinaProtocol/mina/blob/2ee6e004ba8c6a0541056076aab22ea162f7eb3a/src/lib/mina_base/transaction_status.ml#L9
5252
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]

0 commit comments

Comments
 (0)