1
2
3
4
5
6
7
8
9
10
11
12
13
use frame_support::{traits::Get, weights::RuntimeDbWeight};

pub struct ZeroDbWeight;

impl ZeroDbWeight {
    pub const WEIGHT: RuntimeDbWeight = RuntimeDbWeight { read: 0, write: 0 };
}

impl Get<RuntimeDbWeight> for ZeroDbWeight {
    fn get() -> RuntimeDbWeight {
        Self::WEIGHT
    }
}