git.delta.rocks / unique-network / refs/commits / 07fe7b5a5c87

difftreelog

refactor optimize common runtime imports

Daniel Shiposha2022-08-08parent: #8a2ef94.patch.diff
in: master

7 files changed

modifiedruntime/common/config/ethereum.rsdiffbeforeafterboth
9 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 },
modifiedruntime/common/config/mod.rsdiffbeforeafterboth
22pub mod xcm;22pub mod xcm;
23pub mod orml;23pub mod orml;
24
25pub use {
26 substrate::*,
27 ethereum::*,
28 sponsoring::*,
29 pallets::*,
30 parachain::*,
31 self::xcm::*,
32 orml::*,
33};
3424
modifiedruntime/common/config/pallets/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
17use 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::{
modifiedruntime/common/ethereum/mod.rsdiffbeforeafterboth
18pub mod transaction_converter;18pub mod transaction_converter;
19pub mod self_contained_call;19pub mod self_contained_call;
20
21pub use {
22 sponsoring::*,
23 transaction_converter::*,
24 self_contained_call::*,
25};
2620
modifiedruntime/common/instance.rsdiffbeforeafterboth
1use crate::{1use crate::{
2 runtime_common::{2 runtime_common::{
3 config::ethereum::CrossAccountId,3 config::ethereum::CrossAccountId,
4 ethereum::TransactionConverter4 ethereum::transaction_converter::TransactionConverter
5 },5 },
6 Runtime,6 Runtime,
7};7};
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
17mod 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;
27
28pub use {
29 constants::*,
30 dispatch::*,
31 sponsoring::*,
32 weights::*,
33 config::*,
34 instance::*,
35 ethereum::*,
36};
3727
38use sp_core::H160;28use sp_core::H160;
39use frame_support::traits::{Currency, OnUnbalanced, Imbalance};29use frame_support::traits::{Currency, OnUnbalanced, Imbalance};
modifiedruntime/common/runtime_apis.rsdiffbeforeafterboth
50 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::*;
5459
5560