difftreelog
refactor optimize common runtime imports
in: master
7 files changed
runtime/common/config/ethereum.rsdiffbeforeafterboth9 runtime_common::{9 runtime_common::{10 constants::*,10 constants::*,11 dispatch::CollectionDispatchT,11 dispatch::CollectionDispatchT,12 ethereum::{EvmSponsorshipHandler},12 ethereum::sponsoring::EvmSponsorshipHandler,13 config::sponsoring::DefaultSponsoringRateLimit,13 config::sponsoring::DefaultSponsoringRateLimit,14 DealWithFees,14 DealWithFees,15 },15 },runtime/common/config/mod.rsdiffbeforeafterboth22pub mod xcm;22pub mod xcm;23pub mod orml;23pub mod orml;2425pub use {26 substrate::*,27 ethereum::*,28 sponsoring::*,29 pallets::*,30 parachain::*,31 self::xcm::*,32 orml::*,33};3424runtime/common/config/pallets/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/>.161617use frame_support::{17use frame_support::parameter_types;18 // weights::{Weight, constants::WEIGHT_PER_SECOND},19 parameter_types,20};21use sp_runtime::traits::AccountIdConversion;18use sp_runtime::traits::AccountIdConversion;22use crate::{19use crate::{23 runtime_common::{20 runtime_common::{runtime/common/ethereum/mod.rsdiffbeforeafterboth18pub mod transaction_converter;18pub mod transaction_converter;19pub mod self_contained_call;19pub mod self_contained_call;2021pub use {22 sponsoring::*,23 transaction_converter::*,24 self_contained_call::*,25};2620runtime/common/instance.rsdiffbeforeafterboth1use crate::{1use crate::{2 runtime_common::{2 runtime_common::{3 config::ethereum::CrossAccountId,3 config::ethereum::CrossAccountId,4 ethereum::TransactionConverter4 ethereum::transaction_converter::TransactionConverter5 },5 },6 Runtime,6 Runtime,7};7};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/>.161617mod constants;17pub mod constants;18mod construct_runtime;18pub mod construct_runtime;19mod dispatch;19pub mod dispatch;20mod runtime_apis;20pub mod runtime_apis;21mod sponsoring;21pub mod sponsoring;22mod weights;22pub mod weights;23mod config;23pub mod config;24mod instance;24pub mod instance;25mod ethereum;25pub mod ethereum;26mod scheduler;26pub mod scheduler;2728pub use {29 constants::*,30 dispatch::*,31 sponsoring::*,32 weights::*,33 config::*,34 instance::*,35 ethereum::*,36};372738use sp_core::H160;28use sp_core::H160;39use frame_support::traits::{Currency, OnUnbalanced, Imbalance};29use frame_support::traits::{Currency, OnUnbalanced, Imbalance};runtime/common/runtime_apis.rsdiffbeforeafterboth50 Runner, account::CrossAccountId as _,50 Runner, account::CrossAccountId as _,51 Account as EVMAccount, FeeCalculator,51 Account as EVMAccount, FeeCalculator,52 };52 };53 use runtime_common::{54 sponsoring::{SponsorshipPredict, UniqueSponsorshipPredict},55 dispatch::CollectionDispatch,56 config::ethereum::CrossAccountId,57 };53 use up_data_structs::*;58 use up_data_structs::*;54595560