datahaven/operator/runtime/testnet/src/benchmarks.rs
Gonza Montiel bd99fb7c4e
fix: pallet collective weights aliases (#337)
We have two instances of `pallet_collective`
- `pallet_collective_treasury_council`
- `pallet_collective_technical_committee`

Our weights template automatically generates an implementation for
`pallet_collective_treasury_council::WeightInfo` or
`pallet_collective_technical_committee::WeightInfo`, which don't exist,
making the compilation fail right after running benches.
I created aliases for both pallet names, and added a small tweak to the
template so it does not break anymore.

---------

Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com>
2025-12-05 14:22:52 +01:00

68 lines
2.4 KiB
Rust

// Copyright 2025 DataHaven
// This file is part of DataHaven.
// DataHaven is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// DataHaven is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with DataHaven. If not, see <http://www.gnu.org/licenses/>.
frame_benchmarking::define_benchmarks!(
// System benchmarks
[frame_system, SystemBench::<Runtime>]
// Consensus pallets
[pallet_mmr, Mmr]
[pallet_beefy_mmr, BeefyMmrLeaf]
[pallet_babe, Babe]
[pallet_grandpa, Grandpa]
[pallet_randomness, Randomness]
// Substrate pallets
[pallet_balances, Balances]
[pallet_identity, Identity]
[pallet_im_online, ImOnline]
[pallet_multisig, Multisig]
[pallet_preimage, Preimage]
[pallet_scheduler, Scheduler]
[pallet_timestamp, Timestamp]
[pallet_treasury, Treasury]
[pallet_utility, Utility]
[pallet_sudo, Sudo]
[pallet_proxy, Proxy]
[pallet_transaction_payment, TransactionPayment]
[pallet_parameters, Parameters]
[pallet_message_queue, MessageQueue]
[pallet_safe_mode, SafeMode]
[pallet_tx_pause, TxPause]
// EVM pallets
[pallet_evm, EVM]
// Governance pallets
[pallet_collective_technical_committee, TechnicalCommittee]
[pallet_collective_treasury_council, TreasuryCouncil]
[pallet_conviction_voting, ConvictionVoting]
[pallet_referenda, Referenda]
[pallet_whitelist, Whitelist]
// DataHaven custom pallets
[pallet_external_validators, ExternalValidators]
[pallet_external_validators_rewards, ExternalValidatorsRewards]
[pallet_external_validator_slashes, ExternalValidatorsSlashes]
[pallet_datahaven_native_transfer, DataHavenNativeTransfer]
// Snowbridge pallets
[snowbridge_pallet_ethereum_client, EthereumBeaconClient]
[snowbridge_pallet_inbound_queue_v2, EthereumInboundQueueV2]
[snowbridge_pallet_outbound_queue_v2, EthereumOutboundQueueV2]
[snowbridge_pallet_system, SnowbridgeSystem]
[snowbridge_pallet_system_v2, SnowbridgeSystemV2]
);