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]]
name = "ghost-slow-clap"
version = "0.3.15"
version = "0.3.16"
dependencies = [
"frame-benchmarking",
"frame-support",

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-slow-clap"
version = "0.3.15"
version = "0.3.16"
description = "Applause protocol for the EVM bridge"
license.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;
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() }
}