Skip to content

Commit

Permalink
remove pallet-timestamp requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed Dec 19, 2023
1 parent 45589ff commit aeff0cd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 19 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pallets/ethereum-xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub mod pallet {
use frame_support::pallet_prelude::*;

#[pallet::config]
pub trait Config: frame_system::Config + pallet_timestamp::Config + pallet_evm::Config {
pub trait Config: frame_system::Config + pallet_evm::Config {
/// Invalid transaction error
type InvalidEvmTransactionError: From<TransactionValidationError>;
/// Handler for applying an already validated transaction
Expand Down
4 changes: 0 additions & 4 deletions runtime/moonbase/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ pallet-root-testing = { workspace = true }
pallet-scheduler = { workspace = true }
pallet-society = { workspace = true }
pallet-sudo = { workspace = true }
pallet-timestamp = { workspace = true }
pallet-transaction-payment = { workspace = true }
pallet-transaction-payment-rpc-runtime-api = { workspace = true }
pallet-treasury = { workspace = true }
Expand Down Expand Up @@ -263,7 +262,6 @@ std = [
"pallet-scheduler/std",
"pallet-society/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-treasury/std",
Expand Down Expand Up @@ -346,7 +344,6 @@ runtime-benchmarks = [
"pallet-scheduler/runtime-benchmarks",
"pallet-society/runtime-benchmarks",
"pallet-sudo/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"pallet-whitelist/runtime-benchmarks",
Expand Down Expand Up @@ -380,7 +377,6 @@ try-runtime = [
"pallet-root-testing/try-runtime",
"pallet-scheduler/try-runtime",
"pallet-society/try-runtime",
"pallet-timestamp/try-runtime",
"pallet-xcm-transactor/try-runtime",
]

Expand Down
11 changes: 0 additions & 11 deletions runtime/moonbase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,6 @@ impl pallet_utility::Config for Runtime {
type WeightInfo = moonbeam_weights::pallet_utility::WeightInfo<Runtime>;
}

impl pallet_timestamp::Config for Runtime {
/// A timestamp: milliseconds since the unix epoch.
type Moment = u64;
type OnTimestampSet = ();
#[cfg(feature = "experimental-async-backing")]
type MinimumPeriod = ConstU64<0>;
#[cfg(not(feature = "experimental-async-backing"))]
type MinimumPeriod = ConstU64<6000>;
type WeightInfo = moonbeam_weights::pallet_timestamp::WeightInfo<Runtime>;
}

impl pallet_balances::Config for Runtime {
type MaxReserves = ConstU32<50>;
type ReserveIdentifier = [u8; 4];
Expand Down
4 changes: 2 additions & 2 deletions runtime/moonbase/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ pub fn root_origin() -> <Runtime as frame_system::Config>::RuntimeOrigin {
/// contains the `relay_chain_block_number`, which is used in `author-filter` as a
/// source of randomness to filter valid authors at each block.
pub fn set_parachain_inherent_data() {
use cumulus_primitives_core::PersistedValidationData;
/*use cumulus_primitives_core::PersistedValidationData;
use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
let (relay_parent_storage_root, relay_chain_state) =
RelayStateSproofBuilder::default().into_state_root_and_proof();
Expand All @@ -368,7 +368,7 @@ pub fn set_parachain_inherent_data() {
data: parachain_inherent_data
}
)
.dispatch(inherent_origin()));
.dispatch(inherent_origin()));*/
}

pub fn unchecked_eth_tx(raw_hex_tx: &str) -> UncheckedExtrinsic {
Expand Down

0 comments on commit aeff0cd

Please sign in to comment.