git.delta.rocks / unique-network / refs/commits / 23712510829a

difftreelog

cargo fmt

Daniel Shiposha2022-08-09parent: #2a76b29.patch.diff
in: master

18 files changed

modifiedcommon-types/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiednode/rpc/src/lib.rsdiffbeforeafterboth
41use std::{collections::BTreeMap, sync::Arc};41use std::{collections::BTreeMap, sync::Arc};
4242
43use common_types::opaque::{43use common_types::opaque::{Hash, AccountId, RuntimeInstance, Index, Block, BlockNumber, Balance};
44 Hash, AccountId, RuntimeInstance, Index, Block, BlockNumber, Balance,
45};
4644
47// RMRK45// RMRK
modifiedruntime/common/config/ethereum.rsdiffbeforeafterboth
21};14};
22use pallet_evm::{15use pallet_evm::{EnsureAddressTruncated, HashedAddressMapping};
23 EnsureAddressTruncated,
24 HashedAddressMapping,
25};
2616
27pub type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Runtime>;17pub type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Runtime>;
modifiedruntime/common/config/mod.rsdiffbeforeafterboth
14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License
15// 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/>.
1616
17pub 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;
2424
modifiedruntime/common/config/orml.rsdiffbeforeafterboth
18use 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};
2421
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
22 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,
modifiedruntime/common/config/pallets/scheduler.rsdiffbeforeafterboth
25use 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;
3326
modifiedruntime/common/config/parachain.rsdiffbeforeafterboth
1616
17use 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};
2819
29parameter_types! {20parameter_types! {
modifiedruntime/common/config/sponsoring.rsdiffbeforeafterboth
18use crate::{18use crate::{
19 runtime_common::{19 runtime_common::{constants::*, sponsoring::UniqueSponsorshipHandler},
20 constants::*,
21 sponsoring::UniqueSponsorshipHandler,
22 },
23 Runtime,20 Runtime,
24};21};
modifiedruntime/common/config/substrate.rsdiffbeforeafterboth
38use 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,
modifiedruntime/common/config/xcm.rsdiffbeforeafterboth
1616
17use 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, Everything
22 },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};
modifiedruntime/common/ethereum/mod.rsdiffbeforeafterboth
14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License
15// 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/>.
1616
17pub mod sponsoring;17pub mod self_contained_call;
18pub mod transaction_converter;18pub mod sponsoring;
19pub mod self_contained_call;19pub mod transaction_converter;
2020
modifiedruntime/common/ethereum/self_contained_call.rsdiffbeforeafterboth

no syntactic changes

modifiedruntime/common/ethereum/sponsoring.rsdiffbeforeafterboth

no syntactic changes

modifiedruntime/common/ethereum/transaction_converter.rsdiffbeforeafterboth
18use crate::{18use crate::{opaque, Runtime, UncheckedExtrinsic};
19 opaque,
20 Runtime,
21 UncheckedExtrinsic,
22};
2319
24pub struct TransactionConverter;20pub struct TransactionConverter;
modifiedruntime/common/instance.rsdiffbeforeafterboth
1use 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::TransactionConverter
5 },4 },
6 Runtime,5 Runtime,
modifiedruntime/common/mod.rsdiffbeforeafterboth
14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License
15// 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/>.
1616
17pub 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;
2727
28use sp_core::H160;28use sp_core::H160;
29use frame_support::traits::{Currency, OnUnbalanced, Imbalance};29use frame_support::traits::{Currency, OnUnbalanced, Imbalance};
modifiedruntime/common/scheduler.rsdiffbeforeafterboth
26};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 ),