feat: Rebrand Polkadot/Substrate references to PezkuwiChain

This commit systematically rebrands various references from Parity Technologies'
Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk.

Key changes include:
- Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks.
- Modified internal documentation and code comments to reflect PezkuwiChain naming and structure.
- Replaced direct references to  with  or specific paths within the  for XCM, Pezkuwi, and other modules.
- Cleaned up deprecated  issue and PR references in various  and  files, particularly in  and  modules.
- Adjusted image and logo URLs in documentation to point to PezkuwiChain assets.
- Removed or rephrased comments related to external Polkadot/Substrate PRs and issues.

This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
This commit is contained in:
2025-12-14 00:04:10 +03:00
parent 286de54384
commit 1c0e57d984
9084 changed files with 997839 additions and 997557 deletions
@@ -0,0 +1,31 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(pov_mode = Wrong)]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: expected one of: `MaxEncodedLen`, `Measured`, `Ignored`
--> tests/benchmark_ui/bad_attr_pov_mode_1.rs:24:25
|
24 | #[benchmark(pov_mode = Wrong)]
| ^^^^^
@@ -0,0 +1,33 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(pov_mode = Measured {
Key: Wrong
})]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: expected one of: `MaxEncodedLen`, `Measured`, `Ignored`
--> tests/benchmark_ui/bad_attr_pov_mode_2.rs:25:8
|
25 | Key: Wrong
| ^^^^^
@@ -0,0 +1,31 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(pov_mode)]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: expected `=`
--> tests/benchmark_ui/bad_attr_pov_mode_3.rs:24:22
|
24 | #[benchmark(pov_mode)]
| ^
@@ -0,0 +1,31 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(pov_mode =)]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: unexpected end of input, expected one of: `MaxEncodedLen`, `Measured`, `Ignored`
--> tests/benchmark_ui/bad_attr_pov_mode_4.rs:24:24
|
24 | #[benchmark(pov_mode =)]
| ^
@@ -0,0 +1,35 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench(winton: Linear<1, 2>) {
let a = 2 + 2;
#[block]
{}
assert_eq!(a, 4);
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Benchmark parameter names must consist of a single lowercase letter (a-z) and no other characters.
--> tests/benchmark_ui/bad_param_name.rs:27:11
|
27 | fn bench(winton: Linear<1, 2>) {
| ^^^^^^
@@ -0,0 +1,31 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benchmarks {
#[benchmark]
fn bench(xx: Linear<1, 2>) {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Benchmark parameter names must consist of a single lowercase letter (a-z) and no other characters.
--> tests/benchmark_ui/bad_param_name_too_long.rs:25:11
|
25 | fn bench(xx: Linear<1, 2>) {
| ^^
@@ -0,0 +1,31 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
#[benchmark]
fn bench(D: Linear<1, 2>) {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Benchmark parameter names must consist of a single lowercase letter (a-z) and no other characters.
--> tests/benchmark_ui/bad_param_name_upper_case.rs:25:11
|
25 | fn bench(D: Linear<1, 2>) {
| ^
@@ -0,0 +1,35 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench(y: Linear<1, 2>, x: u32) {
let a = 2 + 2;
#[block]
{}
assert_eq!(a, 4);
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Invalid benchmark function param. A valid example would be `x: Linear<5, 10>`.
--> tests/benchmark_ui/bad_params.rs:27:31
|
27 | fn bench(y: Linear<1, 2>, x: u32) {
| ^^^
@@ -0,0 +1,36 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() -> Result<(), BenchmarkException> {
let a = 2 + 2;
#[block]
{}
assert_eq!(a, 4);
Ok(())
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: expected `BenchmarkError`
--> tests/benchmark_ui/bad_return_non_benchmark_err.rs:27:27
|
27 | fn bench() -> Result<(), BenchmarkException> {
| ^^^^^^^^^^^^^^^^^^
@@ -0,0 +1,34 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benchmarks {
use super::*;
#[benchmark]
fn bench() -> (String, u32) {
#[block]
{}
(String::from("hey"), 23)
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Only `Result<(), BenchmarkError>` or a blank return type is allowed on benchmark function definitions
--> tests/benchmark_ui/bad_return_non_type_path.rs:27:16
|
27 | fn bench() -> (String, u32) {
| ^^^^^^^^^^^^^
@@ -0,0 +1,32 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benchmarks {
#[benchmark]
fn bench() -> Result<u32, BenchmarkError> {
#[block]
{}
Ok(10)
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: expected `()`
--> tests/benchmark_ui/bad_return_non_unit_t.rs:25:23
|
25 | fn bench() -> Result<u32, BenchmarkError> {
| ^^^
@@ -0,0 +1,39 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
fn something() -> Result<(), BenchmarkError> {
Ok(())
}
#[benchmark]
fn bench() {
something()?;
#[block]
{}
assert_eq!(2 + 2, 4);
}
}
fn main() {}
@@ -0,0 +1,13 @@
error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
--> tests/benchmark_ui/bad_return_type_blank_with_question.rs:32:14
|
22 | #[benchmarks]
| ------------- this function should return `Result` or `Option` to accept `?`
...
32 | something()?;
| ^ cannot use the `?` operator in a function that returns `()`
|
help: consider adding return type
|
31 | fn bench() -> Result<(), Box<dyn std::error::Error>> {
| +++++++++++++++++++++++++++++++++++++++++
@@ -0,0 +1,33 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() -> Result<(), BenchmarkError> {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,9 @@
error: Benchmark `#[block]` or `#[extrinsic_call]` item cannot be the last statement of your benchmark function definition if you have defined a return type. You should return something compatible with Result<(), BenchmarkError> (i.e. `Ok(())`) as the last statement or change your signature to a blank return type.
--> tests/benchmark_ui/bad_return_type_no_last_stmt.rs:27:43
|
27 | fn bench() -> Result<(), BenchmarkError> {
| ______________________________________________^
28 | | #[block]
29 | | {}
30 | | }
| |_____^
@@ -0,0 +1,36 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench(y: Linear<1, 2>) -> String {
let a = 2 + 2;
#[block]
{}
assert_eq!(a, 4);
String::from("test")
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: expected `Result`
--> tests/benchmark_ui/bad_return_type_non_result.rs:27:31
|
27 | fn bench(y: Linear<1, 2>) -> String {
| ^^^^^^
@@ -0,0 +1,35 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() -> Option<BenchmarkError> {
#[block]
{}
assert_eq!(2 + 2, 4);
None
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: expected `Result`
--> tests/benchmark_ui/bad_return_type_option.rs:27:16
|
27 | fn bench() -> Option<BenchmarkError> {
| ^^^^^^
@@ -0,0 +1,32 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(pov_mode = Measured, pov_mode = MaxEncodedLen)]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,14 @@
error: unexpected end of input, `pov_mode` can only be specified once
--> tests/benchmark_ui/dup_attr_pov_mode.rs:25:59
|
25 | #[benchmark(pov_mode = Measured, pov_mode = MaxEncodedLen)]
| ^
error: unused import: `frame_support_test::Config`
--> tests/benchmark_ui/dup_attr_pov_mode.rs:19:5
|
19 | use frame_support_test::Config;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
@@ -0,0 +1,37 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() {
let a = 2 + 2;
#[block]
{}
#[block]
{}
assert_eq!(a, 4);
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Only one #[extrinsic_call] or #[block] attribute is allowed per benchmark.
--> tests/benchmark_ui/dup_block.rs:31:3
|
31 | #[block]
| ^
@@ -0,0 +1,37 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() {
let a = 2 + 2;
#[extrinsic_call]
_(stuff);
#[extrinsic_call]
_(other_stuff);
assert_eq!(a, 4);
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Only one #[extrinsic_call] or #[block] attribute is allowed per benchmark.
--> tests/benchmark_ui/dup_extrinsic_call.rs:31:3
|
31 | #[extrinsic_call]
| ^
@@ -0,0 +1,30 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() {}
}
fn main() {}
@@ -0,0 +1,5 @@
error: No valid #[extrinsic_call] or #[block] annotation could be found in benchmark function body.
--> tests/benchmark_ui/empty_function.rs:27:13
|
27 | fn bench() {}
| ^^
@@ -0,0 +1,33 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(extra, extra)]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: unexpected end of input, `extra` can only be specified once
--> tests/benchmark_ui/extra_extra.rs:26:26
|
26 | #[benchmark(extra, extra)]
| ^
@@ -0,0 +1,33 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(skip_meta, skip_meta)]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: unexpected end of input, `skip_meta` can only be specified once
--> tests/benchmark_ui/extra_skip_meta.rs:26:34
|
26 | #[benchmark(skip_meta, skip_meta)]
| ^
@@ -0,0 +1,23 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[extrinsic_call]
mod stuff {}
fn main() {}
@@ -0,0 +1,7 @@
error: `#[extrinsic_call]` must be in a benchmark function definition labeled with `#[benchmark]`.
--> tests/benchmark_ui/extrinsic_call_out_of_fn.rs:20:1
|
20 | #[extrinsic_call]
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `extrinsic_call` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -0,0 +1,56 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[pezframe_support::pallet]
mod pallet {
use pezframe_system::pezpallet_prelude::*;
use pezframe_support::pezpallet_prelude::*;
#[pallet::pallet]
pub struct Pallet<T>(_);
#[pallet::config]
pub trait Config: pezframe_system::Config {}
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::call_index(1)]
#[pallet::weight(Weight::default())]
pub fn call_1(_origin: OriginFor<T>) -> DispatchResult {
Ok(())
}
}
}
pub use pallet::*;
#[benchmarks]
mod benches {
use super::*;
use pezframe_support::traits::OriginTrait;
#[benchmark]
fn call_1() {
let origin = 3u8;
#[extrinsic_call]
_(origin);
}
}
fn main() {}
@@ -0,0 +1,16 @@
error: unused import: `frame_support::traits::OriginTrait`
--> tests/benchmark_ui/extrinsic_call_wrong_origin.rs:46:6
|
46 | use frame_support::traits::OriginTrait;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
error[E0277]: the trait bound `<T as frame_system::Config>::RuntimeOrigin: From<u8>` is not satisfied
--> tests/benchmark_ui/extrinsic_call_wrong_origin.rs:52:5
|
52 | _(origin);
| ^^^^^^ the trait `From<u8>` is not implemented for `<T as frame_system::Config>::RuntimeOrigin`
|
= note: required for `u8` to implement `Into<<T as frame_system::Config>::RuntimeOrigin>`
@@ -0,0 +1,34 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
use pezframe_support_test::Call;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() {
#[extrinsic_call]
noop(1);
}
}
fn main() {}
@@ -0,0 +1,18 @@
error[E0277]: the trait bound `T: frame_system::Config` is not satisfied
--> tests/benchmark_ui/invalid_origin.rs:30:8
|
30 | noop(1);
| ^ the trait `frame_system::Config` is not implemented for `T`
|
help: consider further restricting type parameter `T` with trait `Config`
|
23 | #[benchmarks], T: frame_system::Config
| +++++++++++++++++++++++++
error[E0277]: the trait bound `<T as frame_support_test::Config>::RuntimeOrigin: From<{integer}>` is not satisfied
--> tests/benchmark_ui/invalid_origin.rs:30:8
|
30 | noop(1);
| ^ the trait `From<{integer}>` is not implemented for `<T as frame_support_test::Config>::RuntimeOrigin`
|
= note: required for `{integer}` to implement `Into<<T as frame_support_test::Config>::RuntimeOrigin>`
@@ -0,0 +1,32 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() {
assert_eq!(2 + 2, 4);
}
}
fn main() {}
@@ -0,0 +1,8 @@
error: No valid #[extrinsic_call] or #[block] annotation could be found in benchmark function body.
--> tests/benchmark_ui/missing_call.rs:27:13
|
27 | fn bench() {
| ________________^
28 | | assert_eq!(2 + 2, 4);
29 | | }
| |_____^
@@ -0,0 +1,33 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() {
#[extrinsic_call]
thing();
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Single-item extrinsic calls must specify their origin as the first argument.
--> tests/benchmark_ui/missing_origin.rs:29:3
|
29 | thing();
| ^^^^^
@@ -0,0 +1,74 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(skip_meta, extra, pov_mode = Measured)]
fn bench1() {
#[block]
{}
}
#[benchmark(pov_mode = Measured, extra, skip_meta)]
fn bench2() {
#[block]
{}
}
#[benchmark(extra, pov_mode = Measured {
Pallet: Measured,
Pallet::Storage: MaxEncodedLen,
}, skip_meta)]
fn bench3() {
#[block]
{}
}
#[benchmark(skip_meta, extra, pov_mode = Measured {
Pallet::Storage: MaxEncodedLen,
Pallet::StorageSubKey: Measured,
})]
fn bench4() {
#[block]
{}
}
#[benchmark(pov_mode = MaxEncodedLen {
Pallet::Storage: Measured,
Pallet::StorageSubKey: Measured
}, extra, skip_meta)]
fn bench5() {
#[block]
{}
}
#[benchmark(pov_mode = MaxEncodedLen {
Pallet::Storage: Measured,
Pallet::Storage::Nested: Ignored
}, extra, skip_meta)]
fn bench6() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,34 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(skip_meta, pov_mode = Measured, extra)]
fn bench() {
let a = 2 + 2;
#[block]
{}
assert_eq!(a, 4);
}
}
fn main() {}
@@ -0,0 +1,34 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() -> Result<(), pezframe_benchmarking::v2::BenchmarkError> {
#[block]
{}
Ok(())
}
}
fn main() {}
@@ -0,0 +1,46 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
use pezframe_support_test::Config;
use pezframe_support::parameter_types;
#[benchmarks]
mod benches {
use super::*;
const MY_CONST: u32 = 100;
#[allow(dead_code)]
const fn my_fn() -> u32 {
200
}
parameter_types! {
const MyConst: u32 = MY_CONST;
}
#[benchmark(skip_meta, extra)]
fn bench(a: Linear<{MY_CONST * 2}, {my_fn() + MyConst::get()}>) {
let a = 2 + 2;
#[block]
{}
assert_eq!(a, 4);
}
}
fn main() {}
@@ -0,0 +1,33 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,34 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() -> Result<(), pezframe_benchmarking::v2::BenchmarkError> {
#[block]
{}
Ok(())
}
}
fn main() {}
@@ -0,0 +1,35 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark]
fn bench() -> Result<(), BenchmarkError> {
let a = 2 + 2;
#[block]
{}
assert_eq!(a, 4);
Ok(())
}
}
fn main() {}
@@ -0,0 +1,33 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use pezframe_benchmarking::v2::*;
#[allow(unused_imports)]
use pezframe_support_test::Config;
#[benchmarks]
mod benches {
use super::*;
#[benchmark(skip_meta, extra, bad)]
fn bench() {
#[block]
{}
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: expected one of: `extra`, `skip_meta`, `pov_mode`
--> tests/benchmark_ui/unrecognized_option.rs:26:32
|
26 | #[benchmark(skip_meta, extra, bad)]
| ^^^