Add UserRocksDb - initial attemp to rewrite UserDb with persistent st… (#10)

* Use RocksDb + PmTree for UserDb persistent storage
This commit is contained in:
Sydhds
2025-06-27 15:41:41 +02:00
committed by GitHub
parent cbb058d330
commit 9f4027ed2b
23 changed files with 2174 additions and 964 deletions

View File

@@ -61,6 +61,12 @@ impl KarmaTiersSC::KarmaTiersSCInstance<AlloyWsProvider> {
#[derive(Debug, Clone, Default, Copy, From, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct TierIndex(u8);
impl From<&TierIndex> for u8 {
fn from(value: &TierIndex) -> u8 {
value.0
}
}
#[derive(Debug, Clone, PartialEq)]
pub struct Tier {
pub min_karma: U256,