Skip to content

Commit 9633dcd

Browse files
authored
Bump to polkadot-v0.9.32 (#1904)
* update to 0.9.32 * update * update fronter and orml * update xcm-emulator * update cargo * update precompiles utils * update to RuntimeCall * update pallet_amm * update asset-registry * update pallet-bridge * update crowdloan and emergencyshutdown * update pallets and weights * update heiko-runtime and weight * update heiko weight * fix heiko-runtime * update kerria-runtime * fix vanilla rutime * fix parallel-runtime * fix parallel node * fix runtimeorigin * fix parallel node * fix try-runtime * fix integration test * fix evm_service * fix ci * fix integration test * update template and add data migration * fix ci * fix ci * Update Cargo.toml
1 parent f15d2ca commit 9633dcd

File tree

228 files changed

+8902
-9056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+8902
-9056
lines changed

.github/workflows/benchmark.yml

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
toolchain: ${{ matrix.rust }}
6262
target: wasm32-unknown-unknown
6363
override: true
64+
- name: Install Protoc
65+
uses: arduino/setup-protoc@v1
6466

6567
# # Work around https://github.com/actions/cache/issues/403 by using GNU tar
6668
# # instead of BSD tar.

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ jobs:
9797
toolchain: ${{ matrix.rust }}
9898
target: wasm32-unknown-unknown
9999
override: true
100-
100+
- name: Install Protoc
101+
uses: arduino/setup-protoc@v1
101102
# # Work around https://github.com/actions/cache/issues/403 by using GNU tar
102103
# # instead of BSD tar.
103104
# - name: Install GNU tar

.github/workflows/coverage.yml

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
target: wasm32-unknown-unknown
7070
default: true
7171
path: ""
72+
- name: Install Protoc
73+
uses: arduino/setup-protoc@v1
7274
- name: Run cargo-tarpaulin
7375
run: |
7476
wget https://github.com/xd009642/tarpaulin/releases/download/${{ env.TARPAULIN_VERSION }}/cargo-tarpaulin-${{ env.TARPAULIN_VERSION }}-travis.tar.gz

.github/workflows/try-runtime.yml

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
components: rustfmt
5757
target: wasm32-unknown-unknown
5858
default: true
59+
- name: Install Protoc
60+
uses: arduino/setup-protoc@v1
5961
- name: Try Heiko Runtime Upgrade
6062
run: |
6163
make try-heiko-live-upgrade

.maintain/frame-weight-template.hbs

+23-12
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
2121
//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: {{cmd.repeat}}, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}`
22+
//! HOSTNAME: `{{hostname}}`, CPU: `{{cpuname}}`
2223
//! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}}
2324

2425
// Executed Command:
@@ -55,27 +56,31 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
5556
{{#each benchmark.comments as |comment|}}
5657
// {{comment}}
5758
{{/each}}
59+
{{#each benchmark.component_ranges as |range|}}
60+
/// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
61+
{{/each}}
5862
fn {{benchmark.name~}}
5963
(
6064
{{~#each benchmark.components as |c| ~}}
6165
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
6266
) -> Weight {
63-
({{underscore benchmark.base_weight}} as Weight)
67+
// Minimum execution time: {{underscore benchmark.min_execution_time}} nanoseconds.
68+
Weight::from_ref_time({{underscore benchmark.base_weight}})
6469
{{#each benchmark.component_weight as |cw|}}
6570
// Standard Error: {{underscore cw.error}}
66-
.saturating_add(({{underscore cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight))
71+
.saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}}.into()))
6772
{{/each}}
6873
{{#if (ne benchmark.base_reads "0")}}
69-
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}} as Weight))
74+
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}}))
7075
{{/if}}
7176
{{#each benchmark.component_reads as |cr|}}
72-
.saturating_add(T::DbWeight::get().reads(({{cr.slope}} as Weight).saturating_mul({{cr.name}} as Weight)))
77+
.saturating_add(T::DbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
7378
{{/each}}
7479
{{#if (ne benchmark.base_writes "0")}}
75-
.saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}} as Weight))
80+
.saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}}))
7681
{{/if}}
7782
{{#each benchmark.component_writes as |cw|}}
78-
.saturating_add(T::DbWeight::get().writes(({{cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight)))
83+
.saturating_add(T::DbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
7984
{{/each}}
8085
}
8186
{{/each}}
@@ -87,28 +92,34 @@ impl WeightInfo for () {
8792
{{#each benchmark.comments as |comment|}}
8893
// {{comment}}
8994
{{/each}}
95+
{{#each benchmark.component_ranges as |range|}}
96+
/// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
97+
{{/each}}
9098
fn {{benchmark.name~}}
9199
(
92100
{{~#each benchmark.components as |c| ~}}
93101
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
94102
) -> Weight {
95-
({{underscore benchmark.base_weight}} as Weight)
103+
// Minimum execution time: {{underscore benchmark.min_execution_time}} nanoseconds.
104+
Weight::from_ref_time({{underscore benchmark.base_weight}})
96105
{{#each benchmark.component_weight as |cw|}}
97106
// Standard Error: {{underscore cw.error}}
98-
.saturating_add(({{underscore cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight))
107+
.saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}}.into()))
99108
{{/each}}
100109
{{#if (ne benchmark.base_reads "0")}}
101-
.saturating_add(RocksDbWeight::get().reads({{benchmark.base_reads}} as Weight))
110+
.saturating_add(RocksDbWeight::get().reads({{benchmark.base_reads}}))
102111
{{/if}}
103112
{{#each benchmark.component_reads as |cr|}}
104-
.saturating_add(RocksDbWeight::get().reads(({{cr.slope}} as Weight).saturating_mul({{cr.name}} as Weight)))
113+
.saturating_add(RocksDbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
105114
{{/each}}
106115
{{#if (ne benchmark.base_writes "0")}}
107-
.saturating_add(RocksDbWeight::get().writes({{benchmark.base_writes}} as Weight))
116+
.saturating_add(RocksDbWeight::get().writes({{benchmark.base_writes}}))
108117
{{/if}}
109118
{{#each benchmark.component_writes as |cw|}}
110-
.saturating_add(RocksDbWeight::get().writes(({{cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight)))
119+
.saturating_add(RocksDbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
111120
{{/each}}
112121
}
113122
{{/each}}
114123
}
124+
125+

0 commit comments

Comments
 (0)