forked from ghostchain/ghost-node
		
	rustfmt the ghost-traits pallet
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
		
							parent
							
								
									8464da831f
								
							
						
					
					
						commit
						116ca39dc4
					
				@ -1,6 +1,6 @@
 | 
				
			|||||||
[package]
 | 
					[package]
 | 
				
			||||||
name = "ghost-traits"
 | 
					name = "ghost-traits"
 | 
				
			||||||
version = "0.3.22"
 | 
					version = "0.3.23"
 | 
				
			||||||
license.workspace = true
 | 
					license.workspace = true
 | 
				
			||||||
authors.workspace = true
 | 
					authors.workspace = true
 | 
				
			||||||
edition.workspace = true
 | 
					edition.workspace = true
 | 
				
			||||||
 | 
				
			|||||||
@ -1,10 +1,7 @@
 | 
				
			|||||||
use frame_support::{
 | 
					use frame_support::{pallet_prelude::*, storage::PrefixIterator};
 | 
				
			||||||
    pallet_prelude::*,
 | 
					 | 
				
			||||||
    storage::PrefixIterator,
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
use sp_runtime::{
 | 
					use sp_runtime::{
 | 
				
			||||||
    DispatchResult,
 | 
					 | 
				
			||||||
    traits::{AtLeast32BitUnsigned, Member},
 | 
					    traits::{AtLeast32BitUnsigned, Member},
 | 
				
			||||||
 | 
					    DispatchResult,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pub trait NetworkDataBasicHandler {
 | 
					pub trait NetworkDataBasicHandler {
 | 
				
			||||||
@ -28,8 +25,14 @@ pub trait NetworkDataMutateHandler<Network, Balance>: NetworkDataInspectHandler<
 | 
				
			|||||||
    fn register(chain_id: Self::NetworkId, network: Network) -> DispatchResult;
 | 
					    fn register(chain_id: Self::NetworkId, network: Network) -> DispatchResult;
 | 
				
			||||||
    fn remove(chain_id: Self::NetworkId) -> DispatchResult;
 | 
					    fn remove(chain_id: Self::NetworkId) -> DispatchResult;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    fn increase_gatekeeper_amount(chain_id: &Self::NetworkId, amount: &Balance) -> Result<Balance, ()>;
 | 
					    fn increase_gatekeeper_amount(
 | 
				
			||||||
    fn decrease_gatekeeper_amount(chain_id: &Self::NetworkId, amount: &Balance) -> Result<Balance, ()>;
 | 
					        chain_id: &Self::NetworkId,
 | 
				
			||||||
 | 
					        amount: &Balance,
 | 
				
			||||||
 | 
					    ) -> Result<Balance, ()>;
 | 
				
			||||||
 | 
					    fn decrease_gatekeeper_amount(
 | 
				
			||||||
 | 
					        chain_id: &Self::NetworkId,
 | 
				
			||||||
 | 
					        amount: &Balance,
 | 
				
			||||||
 | 
					    ) -> Result<Balance, ()>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    fn accumulate_outgoing_imbalance(amount: &Balance) -> Result<Balance, ()>;
 | 
					    fn accumulate_outgoing_imbalance(amount: &Balance) -> Result<Balance, ()>;
 | 
				
			||||||
    fn accumulate_incoming_imbalance(amount: &Balance) -> Result<Balance, ()>;
 | 
					    fn accumulate_incoming_imbalance(amount: &Balance) -> Result<Balance, ()>;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user