Skip to content

Commit bc8d030

Browse files
committed
wip
1 parent c74b05b commit bc8d030

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

crates/katana/storage/provider/src/traits/trie.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ use katana_primitives::Felt;
77

88
use crate::ProviderResult;
99

10+
#[auto_impl::auto_impl(&, Box, Arc)]
11+
pub trait ClassTrieProvider: Send + Sync {
12+
fn proofs(&self, block_number: BlockNumber, class_hashes: Vec<ClassHash>);
13+
14+
fn root(&self);
15+
}
16+
1017
#[auto_impl::auto_impl(&, Box, Arc)]
1118
pub trait ClassTrieWriter: Send + Sync {
1219
fn insert_updates(

crates/katana/trie/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ thiserror.workspace = true
2020
default-features = false
2121
features = [ "std" ]
2222
git = "https://github.com/madara-alliance/bonsai-trie/"
23-
rev = "56d7d62"
23+
rev = "a74f1ae"

0 commit comments

Comments
 (0)