Skip to content
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

chore: sort runtime benchmarks and toml #1044

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/btc-relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ std = [
"security/std",
]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
]
try-runtime = [ "frame-support/try-runtime" ]
8 changes: 4 additions & 4 deletions crates/dex-general/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std = [
"sp-core/std",
"frame-support/std",
"frame-system/std",
"frame-benchmarking/std",
"frame-benchmarking/std",
"sp-runtime/std",
"sp-std/std",
"sp-arithmetic/std",
Expand All @@ -50,8 +50,8 @@ std = [
]
runtime-benchmarks = [
"frame-benchmarking",
"frame-system/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
try-runtime = [ "frame-support/try-runtime" ]
8 changes: 4 additions & 4 deletions crates/dex-stable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ std = [
"sp-core/std",
"frame-support/std",
"frame-system/std",
"frame-benchmarking/std",
"frame-benchmarking/std",
"sp-runtime/std",
"sp-std/std",
"sp-arithmetic/std",
Expand All @@ -47,8 +47,8 @@ std = [

runtime-benchmarks = [
"frame-benchmarking",
"frame-system/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
try-runtime = [ "frame-support/try-runtime" ]
2 changes: 1 addition & 1 deletion crates/issue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ std = [
"vault-registry/std",
"nomination/std",

"primitives/std",
"primitives/std",

"orml-tokens/std",
"orml-traits/std",
Expand Down
16 changes: 8 additions & 8 deletions crates/nomination/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,23 @@ std = [

"currency/std",
"security/std",
"vault-registry/std",
"vault-registry/std",
"fee/std",
"reward/std",
"oracle/std",
"staking/std",

"primitives/std",

"orml-tokens/std",
"orml-traits/std",
"orml-tokens/std",
"orml-traits/std",
]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",

"orml-tokens",
"orml-traits",
"orml-tokens",
"orml-traits",
]
try-runtime = [ "frame-support/try-runtime" ]
8 changes: 4 additions & 4 deletions crates/oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ std = [
"primitives/std",
]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",

"pallet-timestamp/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
]
try-runtime = [ "frame-support/try-runtime" ]
2 changes: 1 addition & 1 deletion crates/redeem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ std = [
"security/std",
"vault-registry/std",
"nomination/std",
"primitives/std",
"primitives/std",

"orml-tokens/std",
"orml-traits/std",
Expand Down
2 changes: 1 addition & 1 deletion crates/replace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ std = [
"currency/std",
"vault-registry/std",
"nomination/std",
"primitives/std",
"primitives/std",

"orml-tokens/std",
"orml-traits/std",
Expand Down
2 changes: 1 addition & 1 deletion crates/replace/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! # Replace Pallet
//! Based on the [specification](https://spec.interlay.io/spec/replace.html).

// #![deny(warnings)]
#![deny(warnings)]
#![cfg_attr(test, feature(proc_macro_hygiene))]
#![cfg_attr(not(feature = "std"), no_std)]

Expand Down
2 changes: 1 addition & 1 deletion crates/security/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ try-runtime = [ "frame-support/try-runtime" ]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks"
"frame-system/runtime-benchmarks"
]
6 changes: 3 additions & 3 deletions crates/vault-registry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ std = [
"primitives/std",
]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",

"bitcoin/runtime-benchmarks",
]
Expand Down
74 changes: 36 additions & 38 deletions parachain/runtime/interlay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,45 +198,44 @@ std = [
"xcm-builder/std",
"xcm-executor/std",
"pallet-xcm/std",
"parachain-info/std",

"runtime-common/std",
"annuity/std",
"btc-relay/std",
"clients-info/std",
"collator-selection/std",
"currency/std",
"security/std",
"vault-registry/std",
"oracle/std",
"democracy/std",
"dex-general/std",
"escrow/std",
"fee/std",
"issue/std",
"nomination/std",
"oracle/std",
"redeem/std",
"replace/std",
"nomination/std",
"reward/std",
"security/std",
"staking/std",
"escrow/std",
"democracy/std",
"annuity/std",
"supply/std",
"collator-selection/std",
"clients-info/std",
"traits/std",
"tx-pause/std",
"dex-general/std",
"vault-registry/std",

"primitives/std",

"parachain-info/std",
"runtime-common/std",

"btc-relay-rpc-runtime-api/std",
"oracle-rpc-runtime-api/std",
"vault-registry-rpc-runtime-api/std",
"dex-general-rpc-runtime-api/std",
"dex-stable-rpc-runtime-api/std",
"escrow-rpc-runtime-api/std",
"reward-rpc-runtime-api/std",
"issue-rpc-runtime-api/std",
"loans-rpc-runtime-api/std",
"oracle-rpc-runtime-api/std",
"redeem-rpc-runtime-api/std",
"replace-rpc-runtime-api/std",
"loans-rpc-runtime-api/std",
"dex-general-rpc-runtime-api/std",
"dex-stable-rpc-runtime-api/std",
"reward-rpc-runtime-api/std",
"vault-registry-rpc-runtime-api/std",

"orml-tokens/std",
"orml-traits/std",
Expand All @@ -252,42 +251,41 @@ runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"frame-system-benchmarking/runtime-benchmarks",
"pallet-xcm-benchmarks/runtime-benchmarks",
"pallet-society/runtime-benchmarks",
"pallet-collective/runtime-benchmarks",
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"pallet-scheduler/runtime-benchmarks",
"pallet-multisig/runtime-benchmarks",
"pallet-collective/runtime-benchmarks",
"pallet-identity/runtime-benchmarks",
"pallet-membership/runtime-benchmarks",
"pallet-multisig/runtime-benchmarks",
"pallet-preimage/runtime-benchmarks",
"pallet-identity/runtime-benchmarks",
"pallet-proxy/runtime-benchmarks",
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
"collator-selection/runtime-benchmarks",

"xcm-builder/runtime-benchmarks",
"pallet-scheduler/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"pallet-society/runtime-benchmarks",
"pallet-xcm-benchmarks/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",

"runtime-common/runtime-benchmarks",
"annuity/runtime-benchmarks",
"btc-relay/runtime-benchmarks",
"clients-info/runtime-benchmarks",
"collator-selection/runtime-benchmarks",
"democracy/runtime-benchmarks",
"escrow/runtime-benchmarks",
"fee/runtime-benchmarks",
"issue/runtime-benchmarks",
"nomination/runtime-benchmarks",
"oracle/runtime-benchmarks",
"primitives/runtime-benchmarks",
"redeem/runtime-benchmarks",
"replace/runtime-benchmarks",
"tx-pause/runtime-benchmarks",
"vault-registry/runtime-benchmarks",
"security/runtime-benchmarks",
"democracy/runtime-benchmarks",
"supply/runtime-benchmarks",
"collator-selection/runtime-benchmarks",
"tx-pause/runtime-benchmarks",
"vault-registry/runtime-benchmarks",

"runtime-common/runtime-benchmarks",
"primitives/runtime-benchmarks",
]
disable-runtime-api = []
try-runtime = [
Expand All @@ -296,7 +294,6 @@ try-runtime = [
"frame-system/try-runtime",
"frame-support/try-runtime",

"frame-system/try-runtime",
"pallet-timestamp/try-runtime",
"pallet-utility/try-runtime",
"pallet-transaction-payment/try-runtime",
Expand All @@ -306,6 +303,7 @@ try-runtime = [
"pallet-identity/try-runtime",
"pallet-proxy/try-runtime",
"pallet-sudo/try-runtime",

"currency/try-runtime",
"orml-tokens/try-runtime",
"supply/try-runtime",
Expand Down
51 changes: 27 additions & 24 deletions parachain/runtime/interlay/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1292,42 +1292,45 @@ extern crate frame_benchmarking;
#[cfg(feature = "runtime-benchmarks")]
mod benches {
define_benchmarks!(
[pallet_timestamp, Timestamp]
[pallet_utility, Utility]
[pallet_scheduler, Scheduler]
[pallet_preimage, Preimage]
[pallet_multisig, Multisig]
[pallet_identity, Identity]
[pallet_proxy, Proxy]
[tx_pause, TxPause]
[issue, Issue]
[supply, Supply]
[escrow, Escrow]
// Parachain
[annuity, EscrowAnnuity]
[annuity, VaultAnnuity]
[btc_relay, BTCRelay]
[security, Security]
[vault_registry, VaultRegistry]
[clients_info, ClientsInfo]
[collator_selection, CollatorSelection]
[democracy, Democracy]
[oracle, Oracle]
[escrow, Escrow]
[fee, Fee]
[issue, Issue]
[nomination, Nomination]
[clients_info, ClientsInfo]
[collator_selection, CollatorSelection]
[pallet_collective, TechnicalCommittee]
[pallet_membership, TechnicalMembership]
[oracle, Oracle]
[redeem, Redeem]
[replace, Replace]
[security, Security]
[supply, Supply]
[tx_pause, TxPause]
[vault_registry, VaultRegistry]

// Other
[cumulus_pallet_xcmp_queue, XcmpQueue]
[pallet_xcm, PolkadotXcm]
[frame_system, frame_system_benchmarking::Pallet::<Runtime>]
[orml_asset_registry, runtime_common::benchmarking::orml_asset_registry::Pallet::<Runtime>]
[replace, Replace]
[redeem, Redeem]
[pallet_xcm_benchmarks::generic, pallet_xcm_benchmarks::generic::Pallet::<Runtime>]
// [orml_tokens, runtime_common::benchmarking::orml_tokens::Pallet::<Runtime>]
[orml_vesting, runtime_common::benchmarking::orml_vesting::Pallet::<Runtime>]
[pallet_collective, TechnicalCommittee]
[pallet_identity, Identity]
[pallet_membership, TechnicalMembership]
[pallet_multisig, Multisig]
[pallet_preimage, Preimage]
[pallet_proxy, Proxy]
[pallet_scheduler, Scheduler]
[pallet_timestamp, Timestamp]
[pallet_utility, Utility]
[pallet_xcm_benchmarks::fungible, pallet_xcm_benchmarks::fungible::Pallet::<Runtime>]
[pallet_xcm_benchmarks::generic, pallet_xcm_benchmarks::generic::Pallet::<Runtime>]
[pallet_xcm, PolkadotXcm]
);
}
// [orml_tokens, runtime_common::benchmarking::orml_tokens::Pallet::<Runtime>]
// [orml_vesting, runtime_common::benchmarking::orml_vesting::Pallet::<Runtime>]

#[cfg(not(feature = "disable-runtime-api"))]
impl_runtime_apis! {
Expand Down
Loading