-
Notifications
You must be signed in to change notification settings - Fork 154
Add storage-weight-reclaim to polkadot system chains #1047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
be39f06
ea14bbf
1854d62
2d4bcb4
94a24b2
6d53ce8
a4e34df
6ba74f1
05d48b0
42c2515
f2c673c
7b4184a
7e5f974
16641d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1454,6 +1454,10 @@ impl pallet_revive::Config for Runtime { | |
| type GasScale = ConstU32<80_000>; | ||
| } | ||
|
|
||
| impl cumulus_pallet_weight_reclaim::Config for Runtime { | ||
| type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>; | ||
| } | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A whitespace-only line was added (diff shows a standalone added line). Remove trailing whitespace/blank lines containing spaces to avoid formatting/CI checks that fail on whitespace-only changes. |
||
| // Create the runtime by composing the FRAME pallets that were previously configured. | ||
| construct_runtime!( | ||
| pub enum Runtime | ||
|
|
@@ -1467,6 +1471,7 @@ construct_runtime!( | |
| Preimage: pallet_preimage = 5, | ||
| Scheduler: pallet_scheduler = 6, | ||
| Parameters: pallet_parameters = 7, | ||
| WeightReclaim: cumulus_pallet_weight_reclaim = 8, | ||
|
|
||
| // Monetary stuff. | ||
| Balances: pallet_balances = 10, | ||
|
|
@@ -1546,18 +1551,21 @@ pub type SignedBlock = generic::SignedBlock<Block>; | |
| /// BlockId type as expected by this runtime. | ||
| pub type BlockId = generic::BlockId<Block>; | ||
| /// The `TransactionExtension` to the basic transaction logic. | ||
| pub type TxExtension = ( | ||
| frame_system::CheckNonZeroSender<Runtime>, | ||
| frame_system::CheckSpecVersion<Runtime>, | ||
| frame_system::CheckTxVersion<Runtime>, | ||
| frame_system::CheckGenesis<Runtime>, | ||
| frame_system::CheckEra<Runtime>, | ||
| frame_system::CheckNonce<Runtime>, | ||
| frame_system::CheckWeight<Runtime>, | ||
| pallet_asset_conversion_tx_payment::ChargeAssetTxPayment<Runtime>, | ||
| frame_metadata_hash_extension::CheckMetadataHash<Runtime>, | ||
| pallet_revive::evm::tx_extension::SetOrigin<Runtime>, | ||
| ); | ||
| pub type TxExtension = cumulus_pallet_weight_reclaim::StorageWeightReclaim< | ||
| Runtime, | ||
| ( | ||
| frame_system::CheckNonZeroSender<Runtime>, | ||
| frame_system::CheckSpecVersion<Runtime>, | ||
| frame_system::CheckTxVersion<Runtime>, | ||
| frame_system::CheckGenesis<Runtime>, | ||
| frame_system::CheckEra<Runtime>, | ||
| frame_system::CheckNonce<Runtime>, | ||
| frame_system::CheckWeight<Runtime>, | ||
| pallet_asset_conversion_tx_payment::ChargeAssetTxPayment<Runtime>, | ||
| frame_metadata_hash_extension::CheckMetadataHash<Runtime>, | ||
| pallet_revive::evm::tx_extension::SetOrigin<Runtime>, | ||
| ), | ||
| >; | ||
|
skunert marked this conversation as resolved.
|
||
|
|
||
| /// Default extensions applied to Ethereum transactions. | ||
| #[derive(Clone, PartialEq, Eq, Debug)] | ||
|
|
@@ -1580,6 +1588,7 @@ impl pallet_revive::evm::runtime::EthExtra for EthExtraImpl { | |
| frame_metadata_hash_extension::CheckMetadataHash::<Runtime>::new(false), | ||
| pallet_revive::evm::tx_extension::SetOrigin::<Runtime>::new_from_eth_transaction(), | ||
| ) | ||
| .into() | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -1716,6 +1725,7 @@ mod benches { | |
| [pallet_transaction_payment, TransactionPayment] | ||
| [pallet_collator_selection, CollatorSelection] | ||
| [cumulus_pallet_parachain_system, ParachainSystem] | ||
| [cumulus_pallet_weight_reclaim, WeightReclaim] | ||
| [cumulus_pallet_xcmp_queue, XcmpQueue] | ||
| [pallet_conviction_voting, ConvictionVoting] | ||
| [pallet_referenda, Referenda] | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,19 +116,22 @@ pub type SignedBlock = generic::SignedBlock<Block>; | |
| pub type BlockId = generic::BlockId<Block>; | ||
|
|
||
| /// The `TransactionExtension` to the basic transaction logic. | ||
| pub type TxExtension = ( | ||
| frame_system::CheckNonZeroSender<Runtime>, | ||
| frame_system::CheckSpecVersion<Runtime>, | ||
| frame_system::CheckTxVersion<Runtime>, | ||
| frame_system::CheckGenesis<Runtime>, | ||
| frame_system::CheckEra<Runtime>, | ||
| frame_system::CheckNonce<Runtime>, | ||
| frame_system::CheckWeight<Runtime>, | ||
| pallet_transaction_payment::ChargeTransactionPayment<Runtime>, | ||
| BridgeRejectObsoleteHeadersAndMessages, | ||
| bridge_to_kusama_config::OnBridgeHubPolkadotRefundBridgeHubKusamaMessages, | ||
| frame_metadata_hash_extension::CheckMetadataHash<Runtime>, | ||
| ); | ||
| pub type TxExtension = cumulus_pallet_weight_reclaim::StorageWeightReclaim< | ||
| Runtime, | ||
| ( | ||
| frame_system::CheckNonZeroSender<Runtime>, | ||
| frame_system::CheckSpecVersion<Runtime>, | ||
| frame_system::CheckTxVersion<Runtime>, | ||
| frame_system::CheckGenesis<Runtime>, | ||
| frame_system::CheckEra<Runtime>, | ||
| frame_system::CheckNonce<Runtime>, | ||
| frame_system::CheckWeight<Runtime>, | ||
| pallet_transaction_payment::ChargeTransactionPayment<Runtime>, | ||
| BridgeRejectObsoleteHeadersAndMessages, | ||
| bridge_to_kusama_config::OnBridgeHubPolkadotRefundBridgeHubKusamaMessages, | ||
| frame_metadata_hash_extension::CheckMetadataHash<Runtime>, | ||
| ), | ||
| >; | ||
|
skunert marked this conversation as resolved.
|
||
|
|
||
| bridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! { | ||
| RuntimeCall, AccountId, | ||
|
|
@@ -652,6 +655,10 @@ impl pallet_proxy::Config for Runtime { | |
| type BlockNumberProvider = System; | ||
| } | ||
|
|
||
| impl cumulus_pallet_weight_reclaim::Config for Runtime { | ||
| type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>; | ||
| } | ||
|
|
||
|
skunert marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A whitespace-only line was added (diff shows a standalone added line). Remove trailing whitespace/blank lines containing spaces to avoid formatting/CI checks that fail on whitespace-only changes. |
||
| // Create the runtime by composing the FRAME pallets that were previously configured. | ||
| construct_runtime!( | ||
| pub enum Runtime | ||
|
|
@@ -661,6 +668,7 @@ construct_runtime!( | |
| ParachainSystem: cumulus_pallet_parachain_system = 1, | ||
| Timestamp: pallet_timestamp = 2, | ||
| ParachainInfo: parachain_info = 3, | ||
| WeightReclaim: cumulus_pallet_weight_reclaim = 4, | ||
|
|
||
| // Monetary stuff. | ||
| Balances: pallet_balances = 10, | ||
|
|
@@ -733,6 +741,7 @@ mod benches { | |
| [pallet_transaction_payment, TransactionPayment] | ||
| [pallet_collator_selection, CollatorSelection] | ||
| [cumulus_pallet_parachain_system, ParachainSystem] | ||
| [cumulus_pallet_weight_reclaim, WeightReclaim] | ||
| [cumulus_pallet_xcmp_queue, XcmpQueue] | ||
| // XCM | ||
| [pallet_xcm, PalletXcmExtrinsicsBenchmark::<Runtime>] | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.