difftreelog
cargo fmt
in: master
18 files changed
common-types/src/lib.rsdiffbeforeafterbothno syntactic changes
node/rpc/src/lib.rsdiffbeforeafterboth41use std::{collections::BTreeMap, sync::Arc};41use std::{collections::BTreeMap, sync::Arc};424243use common_types::opaque::{43use common_types::opaque::{Hash, AccountId, RuntimeInstance, Index, Block, BlockNumber, Balance};44 Hash, AccountId, RuntimeInstance, Index, Block, BlockNumber, Balance,45};464447// RMRK45// RMRKruntime/common/config/ethereum.rsdiffbeforeafterboth21};14};22use pallet_evm::{15use pallet_evm::{EnsureAddressTruncated, HashedAddressMapping};23 EnsureAddressTruncated,24 HashedAddressMapping,25};261627pub type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Runtime>;17pub type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Runtime>;runtime/common/config/mod.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617pub mod substrate;18pub mod ethereum;17pub mod ethereum;19pub mod sponsoring;18pub mod orml;20pub mod pallets;19pub mod pallets;21pub mod parachain;20pub mod parachain;22pub mod xcm;21pub mod sponsoring;23pub mod orml;22pub mod substrate;23pub mod xcm;2424runtime/common/config/orml.rsdiffbeforeafterboth18use frame_system::EnsureSigned;18use frame_system::EnsureSigned;19use crate::{19use crate::{runtime_common::constants::*, Runtime, Event, RelayChainBlockNumberProvider};20 runtime_common::constants::*,21 Runtime, Event, RelayChainBlockNumberProvider,22};23use common_types::{AccountId, Balance};20use common_types::{AccountId, Balance};2421runtime/common/config/pallets/mod.rsdiffbeforeafterboth22 dispatch::CollectionDispatchT,22 dispatch::CollectionDispatchT,23 config::{23 config::{substrate::TreasuryModuleId, ethereum::EvmCollectionHelpersAddress},24 substrate::TreasuryModuleId,25 ethereum::EvmCollectionHelpersAddress,26 },27 weights::CommonWeights,24 weights::CommonWeights,28 RelayChainBlockNumberProvider,25 RelayChainBlockNumberProvider,runtime/common/config/pallets/scheduler.rsdiffbeforeafterboth25use crate::{21use crate::{26 runtime_common::{22 runtime_common::{scheduler::SchedulerPaymentExecutor, config::substrate::RuntimeBlockWeights},27 scheduler::SchedulerPaymentExecutor,28 config::substrate::RuntimeBlockWeights,29 },30 Runtime, Call, Event, Origin, OriginCaller, Balances23 Runtime, Call, Event, Origin, OriginCaller, Balances,31};24};32use common_types::AccountId;25use common_types::AccountId;3326runtime/common/config/parachain.rsdiffbeforeafterboth161617use frame_support::{17use frame_support::{weights::Weight, parameter_types};18 weights::Weight,19 parameter_types,20};21use crate::{18use crate::{runtime_common::constants::*, Runtime, Event, XcmpQueue, DmpQueue};22 runtime_common::constants::*,23 Runtime,24 Event,25 XcmpQueue,26 DmpQueue,27};281929parameter_types! {20parameter_types! {runtime/common/config/sponsoring.rsdiffbeforeafterboth18use crate::{18use crate::{19 runtime_common::{19 runtime_common::{constants::*, sponsoring::UniqueSponsorshipHandler},20 constants::*,21 sponsoring::UniqueSponsorshipHandler,22 },23 Runtime,20 Runtime,24};21};runtime/common/config/substrate.rsdiffbeforeafterboth38use crate::{37use crate::{39 runtime_common::{38 runtime_common::{DealWithFees, constants::*},40 DealWithFees,41 constants::*,42 },43 Runtime,39 Runtime, Event, Call, Origin, PalletInfo, System, Balances, Treasury, SS58Prefix, Version,44 Event,runtime/common/config/xcm.rsdiffbeforeafterboth161617use frame_support::{17use frame_support::{18 traits::{18 traits::{19 tokens::currency::Currency as CurrencyT,19 tokens::currency::Currency as CurrencyT, OnUnbalanced as OnUnbalancedT, Get, Everything,20 OnUnbalanced as OnUnbalancedT,21 Get, Everything22 },20 },26use frame_system::EnsureRoot;24use frame_system::EnsureRoot;27use sp_runtime::{25use sp_runtime::{28 traits::{26 traits::{Saturating, CheckedConversion, Zero},29 Saturating, CheckedConversion, Zero,30 },31 SaturatedConversion,27 SaturatedConversion,32};28};runtime/common/ethereum/mod.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617pub mod sponsoring;17pub mod self_contained_call;18pub mod transaction_converter;18pub mod sponsoring;19pub mod self_contained_call;19pub mod transaction_converter;2020runtime/common/ethereum/self_contained_call.rsdiffbeforeafterbothno syntactic changes
runtime/common/ethereum/sponsoring.rsdiffbeforeafterbothno syntactic changes
runtime/common/ethereum/transaction_converter.rsdiffbeforeafterboth18use crate::{18use crate::{opaque, Runtime, UncheckedExtrinsic};19 opaque,20 Runtime,21 UncheckedExtrinsic,22};231924pub struct TransactionConverter;20pub struct TransactionConverter;runtime/common/instance.rsdiffbeforeafterboth1use crate::{1use crate::{2 runtime_common::{2 runtime_common::{3 config::ethereum::CrossAccountId,3 config::ethereum::CrossAccountId, ethereum::transaction_converter::TransactionConverter,4 ethereum::transaction_converter::TransactionConverter5 },4 },6 Runtime,5 Runtime,runtime/common/mod.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617pub mod config;17pub mod constants;18pub mod constants;18pub mod construct_runtime;19pub mod construct_runtime;19pub mod dispatch;20pub mod dispatch;20pub mod runtime_apis;21pub mod ethereum;21pub mod sponsoring;22pub mod instance;22pub mod weights;23pub mod runtime_apis;23pub mod config;24pub mod scheduler;24pub mod instance;25pub mod sponsoring;25pub mod ethereum;26pub mod weights;26pub mod scheduler;272728use sp_core::H160;28use sp_core::H160;29use frame_support::traits::{Currency, OnUnbalanced, Imbalance};29use frame_support::traits::{Currency, OnUnbalanced, Imbalance};runtime/common/scheduler.rsdiffbeforeafterboth26};26};27use crate::{27use crate::{Runtime, Call, Origin, Balances, ChargeTransactionPayment};28 Runtime, Call, Origin, Balances,29 ChargeTransactionPayment,30};31use common_types::{AccountId, Balance};28use common_types::{AccountId, Balance};32use fp_self_contained::SelfContainedCall;29use fp_self_contained::SelfContainedCall;88 signed:85 signed: fp_self_contained::CheckedSignature::<89 fp_self_contained::CheckedSignature::<AccountId, SignedExtraScheduler, SelfContainedSignedInfo>::Signed(86 AccountId,87 SignedExtraScheduler,88 SelfContainedSignedInfo,90 signer.clone().into(),89 >::Signed(signer.clone().into(), get_signed_extras(signer.into())),91 get_signed_extras(signer.into()),92 ),