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
Signed by: st1nky
GPG Key ID: 016064BD97603B40
4 changed files with 365 additions and 677 deletions

2
Cargo.lock generated
View File

@ -3834,7 +3834,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-slow-clap" name = "ghost-slow-clap"
version = "0.3.15" version = "0.3.16"
dependencies = [ dependencies = [
"frame-benchmarking", "frame-benchmarking",
"frame-support", "frame-support",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ghost-slow-clap" name = "ghost-slow-clap"
version = "0.3.15" version = "0.3.16"
description = "Applause protocol for the EVM bridge" description = "Applause protocol for the EVM bridge"
license.workspace = true license.workspace = true
authors.workspace = true authors.workspace = true

949
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; use frame_support::weights::Weight;
pub trait WeightInfo { pub trait WeightInfo {
fn slow_clap(claps_len: u32, companions_len: u32) -> Weight; fn slow_clap() -> Weight;
fn propose_companion() -> Weight; fn applause()-> Weight;
fn release_companion() -> Weight;
fn kill_companion() -> Weight;
} }
impl WeightInfo for () { impl WeightInfo for () {
fn slow_clap( fn slow_clap()-> Weight { Weight::zero() }
_claps_len: u32, fn applause()-> Weight { Weight::zero() }
_companions_len: u32,
) -> Weight { Weight::zero() }
fn propose_companion() -> Weight { Weight::zero() }
fn release_companion() -> Weight { Weight::zero() }
fn kill_companion() -> Weight { Weight::zero() }
} }