git.delta.rocks / unique-network / refs/commits / 87508406e92a

difftreelog

Fix code fmt

Daniel Shiposha2022-03-09parent: #c672d0b.patch.diff
in: master

6 files changed

modifiedruntime/common/src/constants.rsdiffbeforeafterboth
--- a/runtime/common/src/constants.rs
+++ b/runtime/common/src/constants.rs
@@ -1,9 +1,7 @@
 use sp_runtime::Perbill;
 use frame_support::{
-    parameter_types, weights::{
-        Weight,
-        constants::WEIGHT_PER_SECOND
-    },
+	parameter_types,
+	weights::{Weight, constants::WEIGHT_PER_SECOND},
 };
 use crate::types::BlockNumber;
 
modifiedruntime/common/src/lib.rsdiffbeforeafterboth
--- a/runtime/common/src/lib.rs
+++ b/runtime/common/src/lib.rs
@@ -1,4 +1,4 @@
 #![cfg_attr(not(feature = "std"), no_std)]
 
+pub mod constants;
 pub mod types;
-pub mod constants;
modifiedruntime/common/src/types.rsdiffbeforeafterboth
before · runtime/common/src/types.rs
1use sp_runtime::{2	traits::{3		Verify, IdentifyAccount, BlakeTwo256,4	},5	generic, MultiSignature,6};78pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;910/// Opaque block header type.11pub type Header = generic::Header<BlockNumber, BlakeTwo256>;1213/// Opaque block type.14pub type Block = generic::Block<Header, UncheckedExtrinsic>;1516pub type SessionHandlers = ();1718/// An index to a block.19pub type BlockNumber = u32;2021/// Alias to 512-bit hash when used in the context of a transaction signature on the chain.22pub type Signature = MultiSignature;2324/// Some way of identifying an account on the chain. We intentionally make it equivalent25/// to the public key of our transaction signing scheme.26pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;2728/// The type for looking up accounts. We don't expect more than 4 billion of them, but you29/// never know...30pub type AccountIndex = u32;3132/// Balance of an account.33pub type Balance = u128;3435/// Index of a transaction in the chain.36pub type Index = u32;3738/// A hash of some data used by the chain.39pub type Hash = sp_core::H256;4041/// Digest item type.42pub type DigestItem = generic::DigestItem;
after · runtime/common/src/types.rs
1use sp_runtime::{2	traits::{Verify, IdentifyAccount, BlakeTwo256},3	generic, MultiSignature,4};56pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;78/// Opaque block header type.9pub type Header = generic::Header<BlockNumber, BlakeTwo256>;1011/// Opaque block type.12pub type Block = generic::Block<Header, UncheckedExtrinsic>;1314pub type SessionHandlers = ();1516/// An index to a block.17pub type BlockNumber = u32;1819/// Alias to 512-bit hash when used in the context of a transaction signature on the chain.20pub type Signature = MultiSignature;2122/// Some way of identifying an account on the chain. We intentionally make it equivalent23/// to the public key of our transaction signing scheme.24pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;2526/// The type for looking up accounts. We don't expect more than 4 billion of them, but you27/// never know...28pub type AccountIndex = u32;2930/// Balance of an account.31pub type Balance = u128;3233/// Index of a transaction in the chain.34pub type Index = u32;3536/// A hash of some data used by the chain.37pub type Hash = sp_core::H256;3839/// Digest item type.40pub type DigestItem = generic::DigestItem;
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -33,10 +33,7 @@
 
 use sp_runtime::{
 	Permill, Perbill, Percent, create_runtime_str, generic, impl_opaque_keys,
-	traits::{
-		AccountIdLookup, BlakeTwo256, Block as BlockT,
-		AccountIdConversion, Zero,
-	},
+	traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, AccountIdConversion, Zero},
 	transaction_validity::{TransactionSource, TransactionValidity},
 	ApplyExtrinsicResult, RuntimeAppPublic,
 };
@@ -115,10 +112,7 @@
 //use xcm_executor::traits::MatchesFungible;
 use sp_runtime::traits::CheckedConversion;
 
-use unique_runtime_common::{
-	types::*,
-	constants::*,
-};
+use unique_runtime_common::{types::*, constants::*};
 
 // mod chain_extension;
 // use crate::chain_extension::{NFTExtension, Imbalance};
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -22,10 +22,7 @@
 
 use sp_runtime::{
 	Permill, Perbill, Percent, create_runtime_str, generic, impl_opaque_keys,
-	traits::{
-		AccountIdLookup, BlakeTwo256, Block as BlockT,
-		AccountIdConversion, Zero,
-	},
+	traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, AccountIdConversion, Zero},
 	transaction_validity::{TransactionSource, TransactionValidity},
 	ApplyExtrinsicResult, RuntimeAppPublic,
 };
@@ -103,10 +100,7 @@
 //use xcm_executor::traits::MatchesFungible;
 use sp_runtime::traits::CheckedConversion;
 
-use unique_runtime_common::{
-	types::*,
-	constants::*,
-};
+use unique_runtime_common::{types::*, constants::*};
 
 // mod chain_extension;
 // use crate::chain_extension::{NFTExtension, Imbalance};
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -22,10 +22,7 @@
 
 use sp_runtime::{
 	Permill, Perbill, Percent, create_runtime_str, generic, impl_opaque_keys,
-	traits::{
-		AccountIdLookup, BlakeTwo256, Block as BlockT,
-		AccountIdConversion, Zero,
-	},
+	traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, AccountIdConversion, Zero},
 	transaction_validity::{TransactionSource, TransactionValidity},
 	ApplyExtrinsicResult, RuntimeAppPublic,
 };
@@ -103,10 +100,7 @@
 //use xcm_executor::traits::MatchesFungible;
 use sp_runtime::traits::CheckedConversion;
 
-use unique_runtime_common::{
-	types::*,
-	constants::*,
-};
+use unique_runtime_common::{types::*, constants::*};
 
 // mod chain_extension;
 // use crate::chain_extension::{NFTExtension, Imbalance};