Skip to content

Commit

Permalink
feat: initial pox handler for clarinet
Browse files Browse the repository at this point in the history
  • Loading branch information
kantai authored and hugocaillard committed Sep 21, 2023
1 parent edf98aa commit 79c2a1c
Show file tree
Hide file tree
Showing 3 changed files with 1,396 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/clarity-repl/src/repl/datastore.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::repl::special;
use sha2::{Digest, Sha512_256};

use clarity::types::chainstate::BlockHeaderHash;
Expand Down Expand Up @@ -286,6 +287,10 @@ impl ClarityBackingStore for Datastore {
fn get_side_store(&mut self) -> &::clarity::rusqlite::Connection {
panic!("Datastore cannot get_side_store")
}

fn get_cc_special_cases_handler(&self) -> Option<::clarity::vm::database::SpecialCaseHandler> {
Some(&special::handle_contract_call_special_cases)
}
}

impl BurnDatastore {
Expand Down
1 change: 1 addition & 0 deletions components/clarity-repl/src/repl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod diagnostic;
pub mod interpreter;
pub mod session;
pub mod settings;
pub mod special;
pub mod tracer;

use serde::ser::{Serialize, SerializeMap, Serializer};
Expand Down
Loading

0 comments on commit 79c2a1c

Please sign in to comment.