Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6fcc3f1
Substrate monthly update.
Neopallium Nov 21, 2022
e1c0386
Apply substrate monthly 2022-11 changes.
Neopallium Nov 21, 2022
f57c4bb
Apply more monthly 2022-11 changes.
Neopallium Nov 22, 2022
d78a398
cargo fmt and update `clap`
Neopallium Nov 23, 2022
2b58c6e
Fix no_std build errors.
Neopallium Nov 23, 2022
35aaf3a
Fix benchmarks.
Neopallium Nov 23, 2022
8b54cb7
Fix compiling of tests.
Neopallium Nov 29, 2022
3255660
Fix staking & transaction-payment tests.
Neopallium Nov 29, 2022
cdb39a3
Allow use of deprecated remove_prefix.
Neopallium Nov 29, 2022
e2722ee
Fix benchmarks.
Neopallium Nov 30, 2022
0e0fca5
Cargo fmt
Neopallium Dec 12, 2022
2e98fbc
Fixup.
Neopallium Dec 12, 2022
933d77f
Allow use of kill_prefix
Neopallium Dec 21, 2022
26f307d
FIXUP: Settlement weights.
Neopallium Dec 21, 2022
928c6a9
Fix issue with schedule weight limit.
Neopallium Dec 22, 2022
243aa3b
Fix contracts GAS_LIMIT to include a proof_size.
Neopallium Dec 22, 2022
2a8d026
Fix expected bridge weights in tests.
Neopallium Dec 22, 2022
dd37154
Add missing migrations.
Neopallium Jan 13, 2023
caa2f9c
Fixup: transaction payment RPC endpoints.
Neopallium Jan 16, 2023
5b57917
Cargo lock updates.
Neopallium Jan 16, 2023
3b5e536
Apply commit
Neopallium Jan 17, 2023
122cc19
Add more changes from Substrate balances pallet.
Neopallium Jan 17, 2023
72cbfa7
Update benchmark weights template.
Neopallium Jan 18, 2023
4ee04ec
Update weights type name.
Neopallium Jan 18, 2023
dc2a9f7
Charge minimal fee if the caller is not authorized.
Neopallium Jan 18, 2023
5c2c6f2
Update weights.
Neopallium Jan 19, 2023
d75689a
Update weights in bridge tests.
Neopallium Jan 19, 2023
ec9316b
Update Substrate crates.
Neopallium Jan 19, 2023
e20c6eb
Code cleanup in transaction-payment.
Neopallium Jan 20, 2023
85d9071
Fix issue with events in transaction-payment.
Neopallium Jan 20, 2023
674cffa
Update Substrate again.
Neopallium Jan 20, 2023
d8fd0cb
Add missing RuntimeEvent.
Neopallium Jan 20, 2023
18dd63e
Apply commit https://github.com/paritytech/substrate/pull/12633
Neopallium Jan 20, 2023
7557a0a
Allow use of remove_prefix.
Neopallium Jan 20, 2023
28244f9
Cargo fmt
Neopallium Jan 20, 2023
db8bcb3
Fix event count in tests.
Neopallium Jan 20, 2023
4ea375e
Update Substrate again.
Neopallium Jan 24, 2023
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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
at: .
- run:
name: Run benchmarks
command: ./polymesh-benchmarks benchmark pallet -p=* -e=* -r 1 -s 1 --execution native --db-cache 512 --heap-pages=2048
command: ./polymesh-benchmarks benchmark pallet -p=* -e=* -r 1 -s 2 --execution wasm --wasm-execution compiled --db-cache 512 --heap-pages=4096
no_output_timeout: 1h
migration-tests:
docker:
Expand Down
21 changes: 13 additions & 8 deletions .maintain/frame-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: {{cmd.repeat}}, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}`
//! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}}
//! HOSTNAME: `{{hostname}}`, CPU: `{{cpuname}}`

// Executed Command:
{{#each args as |arg|~}}
Expand All @@ -32,33 +33,37 @@
use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};

/// Weights for {{pallet}} using the Substrate node and recommended hardware.
pub struct WeightInfo;
impl {{pallet}}::WeightInfo for WeightInfo {
pub struct SubstrateWeight;
impl {{pallet}}::WeightInfo for SubstrateWeight {
{{#each benchmarks as |benchmark|}}
{{#each benchmark.comments as |comment|}}
// {{comment}}
{{/each}}
{{#each benchmark.component_ranges as |range|}}
/// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
{{/each}}
fn {{benchmark.name~}}
(
{{~#each benchmark.components as |c| ~}}
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
) -> Weight {
({{underscore benchmark.base_weight}} as Weight)
// Minimum execution time: {{underscore benchmark.min_execution_time}} nanoseconds.
Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
{{#each benchmark.component_weight as |cw|}}
// Standard Error: {{underscore cw.error}}
.saturating_add(({{underscore cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight))
.saturating_add(Weight::from_ref_time({{underscore cw.slope}} as u64).saturating_mul({{cw.name}} as u64))
{{/each}}
{{#if (ne benchmark.base_reads "0")}}
.saturating_add(DbWeight::get().reads({{benchmark.base_reads}} as Weight))
.saturating_add(DbWeight::get().reads({{benchmark.base_reads}} as u64))
{{/if}}
{{#each benchmark.component_reads as |cr|}}
.saturating_add(DbWeight::get().reads(({{cr.slope}} as Weight).saturating_mul({{cr.name}} as Weight)))
.saturating_add(DbWeight::get().reads(({{cr.slope}} as u64).saturating_mul({{cr.name}} as u64)))
{{/each}}
{{#if (ne benchmark.base_writes "0")}}
.saturating_add(DbWeight::get().writes({{benchmark.base_writes}} as Weight))
.saturating_add(DbWeight::get().writes({{benchmark.base_writes}} as u64))
{{/if}}
{{#each benchmark.component_writes as |cw|}}
.saturating_add(DbWeight::get().writes(({{cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight)))
.saturating_add(DbWeight::get().writes(({{cw.slope}} as u64).saturating_mul({{cw.name}} as u64)))
{{/each}}
}
{{/each}}
Expand Down
Loading