Skip to content

Commit

Permalink
fix: add lst benchmarking (#787)
Browse files Browse the repository at this point in the history
* add lst benchmarking

* refactor imports

* clippy

* more fixes

* replace mocks

* clippy

* fmt
  • Loading branch information
1xstj authored Oct 10, 2024
1 parent d8a7725 commit 53870dc
Show file tree
Hide file tree
Showing 8 changed files with 929 additions and 1 deletion.
27 changes: 27 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ members = [
"pallets/*",
"pallets/services/rpc",
"pallets/services/rpc/runtime-api",
"pallets/tangle-lst/benchmarking",
"frost",
"frost/frost-*",
"precompiles/pallet-democracy",
Expand Down Expand Up @@ -118,7 +119,7 @@ pallet-services = { path = "pallets/services", default-features = false }
pallet-services-rpc-runtime-api = { path = "pallets/services/rpc/runtime-api", default-features = false }
pallet-services-rpc = { path = "pallets/services/rpc" }
pallet-multi-asset-delegation = { path = "pallets/multi-asset-delegation", default-features = false }

pallet-tangle-lst-benchmarking = { path = "pallets/tangle-lst/benchmarking", default-features = false }

k256 = { version = "0.13.3", default-features = false }
p256 = { version = "0.13.2", default-features = false }
Expand Down
70 changes: 70 additions & 0 deletions pallets/tangle-lst/benchmarking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[package]
name = "pallet-tangle-lst-benchmarking"
version = "35.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage = "https://substrate.io"
repository.workspace = true
description = "FRAME nomination pools pallet benchmarking (polkadot v1.15.0)"
readme = "README.md"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
# parity
parity-scale-codec = { features = ["derive"], workspace = true }
scale-info = { features = ["derive"], workspace = true }
frame-benchmarking.workspace = true
frame-election-provider-support.workspace = true
frame-support.workspace = true
frame-system.workspace = true
pallet-bags-list.workspace = true
pallet-staking.workspace = true
pallet-tangle-lst.workspace = true
sp-runtime.workspace = true
sp-runtime-interface.workspace = true
sp-staking.workspace = true
pallet-assets.workspace = true
sp-std.workspace = true

[dev-dependencies]
pallet-balances = { workspace = true }
pallet-timestamp = { workspace = true }
pallet-staking-reward-curve = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }

[features]
default = ["std"]

std = [
"parity-scale-codec/std",
"frame-benchmarking/std",
"frame-election-provider-support/std",
"frame-support/std",
"frame-system/std",
"pallet-bags-list/std",
"pallet-tangle-lst/std",
"pallet-staking/std",
"scale-info/std",
"sp-runtime-interface/std",
"sp-runtime/std",
"sp-staking/std",
"pallet-assets/std",
"sp-std/std",
]

runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-election-provider-support/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-bags-list/runtime-benchmarks",
"pallet-tangle-lst/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
]
Loading

0 comments on commit 53870dc

Please sign in to comment.