forked from ghostchain/ghost-node
		
	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:
		
							parent
							
								
									561d4430b4
								
							
						
					
					
						commit
						fa2cb811a8
					
				
							
								
								
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							@ -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",
 | 
				
			||||||
 | 
				
			|||||||
@ -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
									
								
							
							
						
						
									
										949
									
								
								pallets/slow-clap/src/lib.rs
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -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() }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user