hirosystems / chainhook

Extract transactions from Stacks and Bitcoin and build event driven re-org resistant indexers and databases.
GNU General Public License v3.0
158 stars 65 forks source link

refactor: use clarity crate #628

Closed hugocaillard closed 4 months ago

hugocaillard commented 4 months ago

I'm willing to remove this pattern from stacks-codec and clarity repl https://github.com/hirosystems/clarinet/blob/ce1ffeaaf645de2d9a581d1d727e660cacb1e288/components/stacks-codec/src/lib.rs#L6-L10

pub mod clarity {
    #![allow(ambiguous_glob_reexports)]
    pub use ::clarity::types::*;
    pub use ::clarity::vm::*;
    pub use ::clarity::*;
}

It's error prone, adds complexity, for no value in this context. It's easier for packages to simply rely on the clarity crates (that will soon™ be imported from crates.io)