Skip to content

Commit

Permalink
Generate WeightInfo Automatically (#380)
Browse files Browse the repository at this point in the history
* 🐛 ($PALLET) Fix bancor bench error

* 🐛 ($PALLET) Fix vtoken-mint bench error

* 🔧 ($PROJ) Add more phony

* 🐛 ($PALLETS) Fix benchmark errors that occur by compile

* ✨ ($RUNTIME) Supple the benchmark settings that missing on Bifrost

* 🔥 ($RUNTIME) Unlist pallet_* benchmarks

* ♻️ ($SCRIPT) Refactor script that generates weightInfos

* 🔥 ($RUNTIME) Remove useless code

* ♻️ ($SCRIPT) Refactor ..

* 👷 ($CI) Try to generate all-runtime weight files

* 🎨 ($RUNTIME) Format ..

* 🚧 ($CI) Close check & test temporarily

* 🚧 ($CI) Working around..

* 🐛 ($SCRIPT) Fix Syntax error 2

* 👷 ($CI) Modify ci flow

* 🐛 ($CI) Fix ci syntax error

* 🐛 ($PALLET) Fix bench errors of lightening-redeem

* 🐛 ($CI) Remove file_pattern option

* 🤖 ($WEIGHT) Generate weightInfo files automatically

Co-authored-by: AllenPocketGamer <AllenPocketGamer@users.noreply.github.com>
Co-authored-by: Edwin <lark930@gmail.com>
  • Loading branch information
3 people authored Nov 2, 2021
1 parent 88b13da commit 73dd47a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/bifrost/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ runtime-benchmarks = [
"xcm-builder/runtime-benchmarks",
"bifrost-flexible-fee/runtime-benchmarks",
"bifrost-salp/runtime-benchmarks",
"bifrost-salp-lite/runtime-benchmarks",
# "bifrost-salp-lite/runtime-benchmarks",
"bifrost-liquidity-mining/runtime-benchmarks",
"bifrost-token-issuer/runtime-benchmarks",
"bifrost-lightening-redeem/runtime-benchmarks",
Expand Down
3 changes: 1 addition & 2 deletions runtime/bifrost/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,6 @@ impl_runtime_apis! {

list_benchmark!(list, extra, bifrost_flexible_fee, FlexibleFee);
list_benchmark!(list, extra, bifrost_salp, Salp);
list_benchmark!(list, extra, bifrost_salp_lite, SalpLite);
// list_benchmark!(list, extra, bifrost_salp_lite, SalpLite);
list_benchmark!(list, extra, bifrost_liquidity_mining, LiquidityMining);
list_benchmark!(list, extra, bifrost_token_issuer, TokenIssuer);
Expand Down Expand Up @@ -1847,7 +1846,7 @@ impl_runtime_apis! {

add_benchmark!(params, batches, bifrost_flexible_fee, FlexibleFee);
add_benchmark!(params, batches, bifrost_salp, Salp);
add_benchmark!(params, batches, bifrost_salp_lite, SalpLite);
// add_benchmark!(params, batches, bifrost_salp_lite, SalpLite);
add_benchmark!(params, batches, bifrost_liquidity_mining, LiquidityMining);
add_benchmark!(params, batches, bifrost_token_issuer, TokenIssuer);
add_benchmark!(params, batches, bifrost_lightening_redeem, LighteningRedeem);
Expand Down

0 comments on commit 73dd47a

Please sign in to comment.