update for slow-claps: remove companions, updgrade block range storage, new way of commission accumulation

Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
Uncle Stinky
2025-05-31 14:30:15 +03:00
parent 561d4430b4
commit fa2cb811a8
4 changed files with 365 additions and 677 deletions

1023
pallets/slow-clap/src/lib.rs Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,18 +1,11 @@
use frame_support::weights::Weight;
pub trait WeightInfo {
fn slow_clap(claps_len: u32, companions_len: u32) -> Weight;
fn propose_companion() -> Weight;
fn release_companion() -> Weight;
fn kill_companion() -> Weight;
fn slow_clap() -> Weight;
fn applause()-> Weight;
}
impl WeightInfo for () {
fn slow_clap(
_claps_len: u32,
_companions_len: u32,
) -> Weight { Weight::zero() }
fn propose_companion() -> Weight { Weight::zero() }
fn release_companion() -> Weight { Weight::zero() }
fn kill_companion() -> Weight { Weight::zero() }
fn slow_clap()-> Weight { Weight::zero() }
fn applause()-> Weight { Weight::zero() }
}