git.delta.rocks / unique-network / refs/commits / aec0c5d2f20d

difftreelog

feat set state trie migration origin

Yaroslav Bolyukin2023-06-12parent: #02c6b6f.patch.diff
in: master

4 files changed

modifiedruntime/common/config/substrate.rsdiffbeforeafterboth
before · runtime/common/config/substrate.rs
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// This file is part of Unique Network.34// Unique Network is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.89// Unique Network is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617use frame_support::{18	traits::{Everything, ConstU32, NeverEnsureOrigin},19	weights::{20		constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight},21		ConstantMultiplier,22	},23	dispatch::DispatchClass,24	parameter_types, PalletId,25};26use sp_runtime::{27	generic,28	traits::{BlakeTwo256, AccountIdLookup},29	Perbill, Permill, Percent,30};31use sp_arithmetic::traits::One;32use frame_system::{33	limits::{BlockLength, BlockWeights},34	EnsureRoot, EnsureNever,35};36use pallet_transaction_payment::{Multiplier, ConstFeeMultiplier};37use crate::{38	runtime_common::DealWithFees, Runtime, RuntimeEvent, RuntimeCall, RuntimeOrigin, PalletInfo,39	System, Balances, SS58Prefix, Version,40};41use up_common::{types::*, constants::*};4243parameter_types! {44	pub const BlockHashCount: BlockNumber = 2400;45	pub RuntimeBlockLength: BlockLength =46		BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);47	pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);48	pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;49	pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()50		.base_block(BlockExecutionWeight::get())51		.for_class(DispatchClass::all(), |weights| {52			weights.base_extrinsic = ExtrinsicBaseWeight::get();53		})54		.for_class(DispatchClass::Normal, |weights| {55			weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);56		})57		.for_class(DispatchClass::Operational, |weights| {58			weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT);59			// Operational transactions have some extra reserved space, so that they60			// are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.61			weights.reserved = Some(62				MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT63			);64		})65		.avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)66		.build_or_panic();67}6869impl frame_system::Config for Runtime {70	/// The data to be stored in an account.71	type AccountData = pallet_balances::AccountData<Balance>;72	/// The identifier used to distinguish between accounts.73	type AccountId = AccountId;74	/// The basic call filter to use in dispatchable.75	type BaseCallFilter = Everything;76	/// Maximum number of block number to block hash mappings to keep (oldest pruned first).77	type BlockHashCount = BlockHashCount;78	/// The maximum length of a block (in bytes).79	type BlockLength = RuntimeBlockLength;80	/// The index type for blocks.81	type BlockNumber = BlockNumber;82	/// The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block.83	type BlockWeights = RuntimeBlockWeights;84	/// The aggregated dispatch type that is available for extrinsics.85	type RuntimeCall = RuntimeCall;86	/// The weight of database operations that the runtime can invoke.87	type DbWeight = RocksDbWeight;88	/// The ubiquitous event type.89	type RuntimeEvent = RuntimeEvent;90	/// The type for hashing blocks and tries.91	type Hash = Hash;92	/// The hashing algorithm used.93	type Hashing = BlakeTwo256;94	/// The header type.95	type Header = generic::Header<BlockNumber, BlakeTwo256>;96	/// The index type for storing how many extrinsics an account has signed.97	type Index = Index;98	/// The lookup mechanism to get account ID from whatever is passed in dispatchers.99	type Lookup = AccountIdLookup<AccountId, ()>;100	/// What to do if an account is fully reaped from the system.101	type OnKilledAccount = ();102	/// What to do if a new account is created.103	type OnNewAccount = ();104	type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;105	/// The ubiquitous origin type.106	type RuntimeOrigin = RuntimeOrigin;107	/// This type is being generated by `construct_runtime!`.108	type PalletInfo = PalletInfo;109	/// This is used as an identifier of the chain. 42 is the generic substrate prefix.110	type SS58Prefix = SS58Prefix;111	/// Weight information for the extrinsics of this pallet.112	type SystemWeightInfo = frame_system::weights::SubstrateWeight<Self>;113	/// Version of the runtime.114	type Version = Version;115	type MaxConsumers = ConstU32<16>;116}117118parameter_types! {119	pub const MigrationMaxKeyLen: u32 = 512;120}121122impl pallet_state_trie_migration::Config for Runtime {123	type WeightInfo = pallet_state_trie_migration::weights::SubstrateWeight<Self>;124	type RuntimeEvent = RuntimeEvent;125	type Currency = Balances;126	type SignedDepositPerItem = ();127	type SignedDepositBase = ();128	type ControlOrigin = EnsureRoot<AccountId>;129	// Only root can perform this migration130	type SignedFilter = EnsureNever<AccountId>;131	type MaxKeyLen = MigrationMaxKeyLen;132}133134parameter_types! {135	pub const MinimumPeriod: u64 = SLOT_DURATION / 2;136}137138impl pallet_timestamp::Config for Runtime {139	/// A timestamp: milliseconds since the unix epoch.140	type Moment = u64;141	type OnTimestampSet = ();142	type MinimumPeriod = MinimumPeriod;143	type WeightInfo = ();144}145146parameter_types! {147	// pub const ExistentialDeposit: u128 = 500;148	pub const ExistentialDeposit: u128 = EXISTENTIAL_DEPOSIT;149	pub const MaxLocks: u32 = 50;150	pub const MaxReserves: u32 = 50;151	pub const MaxHolds: u32 = 10;152	pub const MaxFreezes: u32 = 10;153}154155impl pallet_balances::Config for Runtime {156	type MaxLocks = MaxLocks;157	type MaxReserves = MaxReserves;158	type ReserveIdentifier = [u8; 16];159	/// The type for recording an account's balance.160	type Balance = Balance;161	/// The ubiquitous event type.162	type RuntimeEvent = RuntimeEvent;163	// FIXME: Is () the new treasury?164	// Switch to real treasury once we start having dust removals165	// Related issue: https://github.com/paritytech/polkadot/issues/7323166	type DustRemoval = ();167	type ExistentialDeposit = ExistentialDeposit;168	type AccountStore = System;169	type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;170	type HoldIdentifier = [u8; 16];171	type FreezeIdentifier = [u8; 16];172	type MaxHolds = MaxHolds;173	type MaxFreezes = MaxFreezes;174}175176parameter_types! {177	/// This value increases the priority of `Operational` transactions by adding178	/// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.179	pub const OperationalFeeMultiplier: u8 = 5;180181	pub FeeMultiplier: Multiplier = Multiplier::one();182}183184impl pallet_transaction_payment::Config for Runtime {185	type RuntimeEvent = RuntimeEvent;186	type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;187	type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;188	type OperationalFeeMultiplier = OperationalFeeMultiplier;189	type WeightToFee = pallet_configuration::WeightToFee<Self, Balance>;190	type FeeMultiplierUpdate = ConstFeeMultiplier<FeeMultiplier>;191}192193parameter_types! {194	pub const ProposalBond: Permill = Permill::from_percent(5);195	pub const ProposalBondMinimum: Balance = 1 * UNIQUE;196	pub const ProposalBondMaximum: Balance = 1000 * UNIQUE;197	pub const SpendPeriod: BlockNumber = 5 * MINUTES;198	pub const Burn: Permill = Permill::from_percent(0);199	pub const TipCountdown: BlockNumber = 1 * DAYS;200	pub const TipFindersFee: Percent = Percent::from_percent(20);201	pub const TipReportDepositBase: Balance = 1 * UNIQUE;202	pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;203	pub const BountyDepositBase: Balance = 1 * UNIQUE;204	pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;205	pub const TreasuryModuleId: PalletId = PalletId(*b"py/trsry");206	pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;207	pub const MaximumReasonLength: u32 = 16384;208	pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);209	pub const BountyValueMinimum: Balance = 5 * UNIQUE;210	pub const MaxApprovals: u32 = 100;211}212213impl pallet_treasury::Config for Runtime {214	type PalletId = TreasuryModuleId;215	type Currency = Balances;216	type ApproveOrigin = EnsureRoot<AccountId>;217	type RejectOrigin = EnsureRoot<AccountId>;218	type SpendOrigin = NeverEnsureOrigin<u128>;219	type RuntimeEvent = RuntimeEvent;220	type OnSlash = ();221	type ProposalBond = ProposalBond;222	type ProposalBondMinimum = ProposalBondMinimum;223	type ProposalBondMaximum = ProposalBondMaximum;224	type SpendPeriod = SpendPeriod;225	type Burn = Burn;226	type BurnDestination = ();227	type SpendFunds = ();228	type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;229	type MaxApprovals = MaxApprovals;230}231232impl pallet_sudo::Config for Runtime {233	type RuntimeEvent = RuntimeEvent;234	type RuntimeCall = RuntimeCall;235}236237parameter_types! {238	pub const MaxAuthorities: u32 = 100_000;239}240241impl pallet_aura::Config for Runtime {242	type AuthorityId = AuraId;243	type DisabledValidators = ();244	type MaxAuthorities = MaxAuthorities;245}
after · runtime/common/config/substrate.rs
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// This file is part of Unique Network.34// Unique Network is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.89// Unique Network is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617use frame_support::{18	traits::{Everything, ConstU32, NeverEnsureOrigin},19	weights::{20		constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight},21		ConstantMultiplier,22	},23	dispatch::DispatchClass,24	parameter_types, ord_parameter_types, PalletId,25};26use sp_runtime::{27	generic,28	traits::{BlakeTwo256, AccountIdLookup},29	Perbill, Permill, Percent,30};31use sp_arithmetic::traits::One;32use frame_system::{33	limits::{BlockLength, BlockWeights},34	EnsureRoot, EnsureSignedBy,35};36use pallet_transaction_payment::{Multiplier, ConstFeeMultiplier};37use crate::{38	runtime_common::DealWithFees, Runtime, RuntimeEvent, RuntimeCall, RuntimeOrigin, PalletInfo,39	System, Balances, SS58Prefix, Version,40};41use up_common::{types::*, constants::*};42use sp_std::vec;4344parameter_types! {45	pub const BlockHashCount: BlockNumber = 2400;46	pub RuntimeBlockLength: BlockLength =47		BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);48	pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);49	pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;50	pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder()51		.base_block(BlockExecutionWeight::get())52		.for_class(DispatchClass::all(), |weights| {53			weights.base_extrinsic = ExtrinsicBaseWeight::get();54		})55		.for_class(DispatchClass::Normal, |weights| {56			weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);57		})58		.for_class(DispatchClass::Operational, |weights| {59			weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT);60			// Operational transactions have some extra reserved space, so that they61			// are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.62			weights.reserved = Some(63				MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT64			);65		})66		.avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)67		.build_or_panic();68}6970impl frame_system::Config for Runtime {71	/// The data to be stored in an account.72	type AccountData = pallet_balances::AccountData<Balance>;73	/// The identifier used to distinguish between accounts.74	type AccountId = AccountId;75	/// The basic call filter to use in dispatchable.76	type BaseCallFilter = Everything;77	/// Maximum number of block number to block hash mappings to keep (oldest pruned first).78	type BlockHashCount = BlockHashCount;79	/// The maximum length of a block (in bytes).80	type BlockLength = RuntimeBlockLength;81	/// The index type for blocks.82	type BlockNumber = BlockNumber;83	/// The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block.84	type BlockWeights = RuntimeBlockWeights;85	/// The aggregated dispatch type that is available for extrinsics.86	type RuntimeCall = RuntimeCall;87	/// The weight of database operations that the runtime can invoke.88	type DbWeight = RocksDbWeight;89	/// The ubiquitous event type.90	type RuntimeEvent = RuntimeEvent;91	/// The type for hashing blocks and tries.92	type Hash = Hash;93	/// The hashing algorithm used.94	type Hashing = BlakeTwo256;95	/// The header type.96	type Header = generic::Header<BlockNumber, BlakeTwo256>;97	/// The index type for storing how many extrinsics an account has signed.98	type Index = Index;99	/// The lookup mechanism to get account ID from whatever is passed in dispatchers.100	type Lookup = AccountIdLookup<AccountId, ()>;101	/// What to do if an account is fully reaped from the system.102	type OnKilledAccount = ();103	/// What to do if a new account is created.104	type OnNewAccount = ();105	type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;106	/// The ubiquitous origin type.107	type RuntimeOrigin = RuntimeOrigin;108	/// This type is being generated by `construct_runtime!`.109	type PalletInfo = PalletInfo;110	/// This is used as an identifier of the chain. 42 is the generic substrate prefix.111	type SS58Prefix = SS58Prefix;112	/// Weight information for the extrinsics of this pallet.113	type SystemWeightInfo = frame_system::weights::SubstrateWeight<Self>;114	/// Version of the runtime.115	type Version = Version;116	type MaxConsumers = ConstU32<16>;117}118119parameter_types! {120	pub const MigrationMaxKeyLen: u32 = 512;121}122ord_parameter_types! {123	pub const TrieMigrationSigned: AccountId = AccountId::from(hex_literal::hex!("3e2ee9b68b52c239488e8abbeb31284c0d4342ec7c3b53f8e50855051d54a319"));124}125126impl pallet_state_trie_migration::Config for Runtime {127	type WeightInfo = pallet_state_trie_migration::weights::SubstrateWeight<Self>;128	type RuntimeEvent = RuntimeEvent;129	type Currency = Balances;130	type SignedDepositPerItem = ();131	type SignedDepositBase = ();132	type ControlOrigin = EnsureRoot<AccountId>;133	// Only root can perform this migration134	type SignedFilter = EnsureSignedBy<TrieMigrationSigned, AccountId>;135	type MaxKeyLen = MigrationMaxKeyLen;136}137138parameter_types! {139	pub const MinimumPeriod: u64 = SLOT_DURATION / 2;140}141142impl pallet_timestamp::Config for Runtime {143	/// A timestamp: milliseconds since the unix epoch.144	type Moment = u64;145	type OnTimestampSet = ();146	type MinimumPeriod = MinimumPeriod;147	type WeightInfo = ();148}149150parameter_types! {151	// pub const ExistentialDeposit: u128 = 500;152	pub const ExistentialDeposit: u128 = EXISTENTIAL_DEPOSIT;153	pub const MaxLocks: u32 = 50;154	pub const MaxReserves: u32 = 50;155	pub const MaxHolds: u32 = 10;156	pub const MaxFreezes: u32 = 10;157}158159impl pallet_balances::Config for Runtime {160	type MaxLocks = MaxLocks;161	type MaxReserves = MaxReserves;162	type ReserveIdentifier = [u8; 16];163	/// The type for recording an account's balance.164	type Balance = Balance;165	/// The ubiquitous event type.166	type RuntimeEvent = RuntimeEvent;167	// FIXME: Is () the new treasury?168	// Switch to real treasury once we start having dust removals169	// Related issue: https://github.com/paritytech/polkadot/issues/7323170	type DustRemoval = ();171	type ExistentialDeposit = ExistentialDeposit;172	type AccountStore = System;173	type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;174	type HoldIdentifier = [u8; 16];175	type FreezeIdentifier = [u8; 16];176	type MaxHolds = MaxHolds;177	type MaxFreezes = MaxFreezes;178}179180parameter_types! {181	/// This value increases the priority of `Operational` transactions by adding182	/// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.183	pub const OperationalFeeMultiplier: u8 = 5;184185	pub FeeMultiplier: Multiplier = Multiplier::one();186}187188impl pallet_transaction_payment::Config for Runtime {189	type RuntimeEvent = RuntimeEvent;190	type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;191	type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;192	type OperationalFeeMultiplier = OperationalFeeMultiplier;193	type WeightToFee = pallet_configuration::WeightToFee<Self, Balance>;194	type FeeMultiplierUpdate = ConstFeeMultiplier<FeeMultiplier>;195}196197parameter_types! {198	pub const ProposalBond: Permill = Permill::from_percent(5);199	pub const ProposalBondMinimum: Balance = 1 * UNIQUE;200	pub const ProposalBondMaximum: Balance = 1000 * UNIQUE;201	pub const SpendPeriod: BlockNumber = 5 * MINUTES;202	pub const Burn: Permill = Permill::from_percent(0);203	pub const TipCountdown: BlockNumber = 1 * DAYS;204	pub const TipFindersFee: Percent = Percent::from_percent(20);205	pub const TipReportDepositBase: Balance = 1 * UNIQUE;206	pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;207	pub const BountyDepositBase: Balance = 1 * UNIQUE;208	pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;209	pub const TreasuryModuleId: PalletId = PalletId(*b"py/trsry");210	pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;211	pub const MaximumReasonLength: u32 = 16384;212	pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);213	pub const BountyValueMinimum: Balance = 5 * UNIQUE;214	pub const MaxApprovals: u32 = 100;215}216217impl pallet_treasury::Config for Runtime {218	type PalletId = TreasuryModuleId;219	type Currency = Balances;220	type ApproveOrigin = EnsureRoot<AccountId>;221	type RejectOrigin = EnsureRoot<AccountId>;222	type SpendOrigin = NeverEnsureOrigin<u128>;223	type RuntimeEvent = RuntimeEvent;224	type OnSlash = ();225	type ProposalBond = ProposalBond;226	type ProposalBondMinimum = ProposalBondMinimum;227	type ProposalBondMaximum = ProposalBondMaximum;228	type SpendPeriod = SpendPeriod;229	type Burn = Burn;230	type BurnDestination = ();231	type SpendFunds = ();232	type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;233	type MaxApprovals = MaxApprovals;234}235236impl pallet_sudo::Config for Runtime {237	type RuntimeEvent = RuntimeEvent;238	type RuntimeCall = RuntimeCall;239}240241parameter_types! {242	pub const MaxAuthorities: u32 = 100_000;243}244245impl pallet_aura::Config for Runtime {246	type AuthorityId = AuraId;247	type DisabledValidators = ();248	type MaxAuthorities = MaxAuthorities;249}
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -28,7 +28,6 @@
 	'frame-support/runtime-benchmarks',
 	'frame-system-benchmarking',
 	'frame-system/runtime-benchmarks',
-	'hex-literal',
 	'pallet-app-promotion/runtime-benchmarks',
 	'pallet-balances/runtime-benchmarks',
 	'pallet-collator-selection/runtime-benchmarks',
@@ -301,7 +300,6 @@
 frame-benchmarking = { workspace = true, optional = true }
 frame-system-benchmarking = { workspace = true, optional = true }
 frame-try-runtime = { workspace = true, optional = true }
-hex-literal = { workspace = true, optional = true }
 serde = { workspace = true, optional = true }
 
 ################################################################################
@@ -313,6 +311,7 @@
 # Other Dependencies
 
 impl-trait-for-tuples = { workspace = true }
+hex-literal = { workspace = true }
 
 [build-dependencies]
 substrate-wasm-builder = { workspace = true }
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -29,7 +29,6 @@
 	'frame-support/runtime-benchmarks',
 	'frame-system-benchmarking',
 	'frame-system/runtime-benchmarks',
-	'hex-literal',
 	'pallet-app-promotion/runtime-benchmarks',
 	'pallet-balances/runtime-benchmarks',
 	'pallet-collator-selection/runtime-benchmarks',
@@ -293,7 +292,6 @@
 frame-benchmarking = { workspace = true, optional = true }
 frame-system-benchmarking = { workspace = true, optional = true }
 frame-try-runtime = { workspace = true, optional = true }
-hex-literal = { workspace = true, optional = true }
 serde = { workspace = true, optional = true }
 
 
@@ -306,6 +304,7 @@
 # Other Dependencies
 
 impl-trait-for-tuples = { workspace = true }
+hex-literal = { workspace = true }
 
 [build-dependencies]
 substrate-wasm-builder = { workspace = true }
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -26,7 +26,6 @@
 	'frame-support/runtime-benchmarks',
 	'frame-system-benchmarking',
 	'frame-system/runtime-benchmarks',
-	'hex-literal',
 	'pallet-app-promotion/runtime-benchmarks',
 	'pallet-balances/runtime-benchmarks',
 	'pallet-collator-selection/runtime-benchmarks',
@@ -292,7 +291,6 @@
 frame-benchmarking = { workspace = true, optional = true }
 frame-system-benchmarking = { workspace = true, optional = true }
 frame-try-runtime = { workspace = true, optional = true }
-hex-literal = { workspace = true, optional = true }
 serde = { workspace = true, optional = true }
 
 ################################################################################
@@ -304,6 +302,7 @@
 # Other Dependencies
 
 impl-trait-for-tuples = { workspace = true }
+hex-literal = { workspace = true }
 
 [build-dependencies]
 substrate-wasm-builder = { workspace = true }