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:
@@ -0,0 +1,58 @@
|
||||
// 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_support::*;
|
||||
|
||||
pub trait Animal {
|
||||
type Locomotion;
|
||||
type Diet;
|
||||
type SleepingStrategy;
|
||||
type Environment;
|
||||
|
||||
fn animal_name() -> &'static str;
|
||||
}
|
||||
|
||||
pub type RunsOnFourLegs = (usize, usize, usize, usize);
|
||||
pub type RunsOnTwoLegs = (usize, usize);
|
||||
pub type Swims = isize;
|
||||
pub type Diurnal = bool;
|
||||
pub type Nocturnal = Option<bool>;
|
||||
pub type Omnivore = char;
|
||||
pub type Land = ((), ());
|
||||
pub type Sea = ((), (), ());
|
||||
pub type Carnivore = (char, char);
|
||||
|
||||
pub struct FourLeggedAnimal {}
|
||||
|
||||
#[register_default_impl(FourLeggedAnimal)]
|
||||
impl Animal for FourLeggedAnimal {
|
||||
type Locomotion = RunsOnFourLegs;
|
||||
type Diet = Omnivore;
|
||||
type SleepingStrategy = Diurnal;
|
||||
type Environment = Land;
|
||||
|
||||
fn animal_name() -> &'static str {
|
||||
"A Four-Legged Animal"
|
||||
}
|
||||
}
|
||||
|
||||
pub struct AquaticMammal {}
|
||||
|
||||
#[derive_impl(FourLeggedAnimal as Animal)]
|
||||
struct Something {}
|
||||
|
||||
fn main() {}
|
||||
@@ -0,0 +1,5 @@
|
||||
error: expected `impl`
|
||||
--> tests/derive_impl_ui/attached_to_non_impl.rs:56:1
|
||||
|
|
||||
56 | struct Something {}
|
||||
| ^^^^^^
|
||||
@@ -0,0 +1,65 @@
|
||||
// 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_support::*;
|
||||
|
||||
pub trait Animal {
|
||||
type Locomotion;
|
||||
type Diet;
|
||||
type SleepingStrategy;
|
||||
type Environment;
|
||||
|
||||
fn animal_name() -> &'static str;
|
||||
}
|
||||
|
||||
pub type RunsOnFourLegs = (usize, usize, usize, usize);
|
||||
pub type RunsOnTwoLegs = (usize, usize);
|
||||
pub type Swims = isize;
|
||||
pub type Diurnal = bool;
|
||||
pub type Nocturnal = Option<bool>;
|
||||
pub type Omnivore = char;
|
||||
pub type Land = ((), ());
|
||||
pub type Sea = ((), (), ());
|
||||
pub type Carnivore = (char, char);
|
||||
|
||||
pub struct FourLeggedAnimal {}
|
||||
|
||||
#[register_default_impl(FourLeggedAnimal)]
|
||||
impl Animal for FourLeggedAnimal {
|
||||
type Locomotion = RunsOnFourLegs;
|
||||
type Diet = Omnivore;
|
||||
type SleepingStrategy = Diurnal;
|
||||
type Environment = Land;
|
||||
|
||||
fn animal_name() -> &'static str {
|
||||
"A Four-Legged Animal"
|
||||
}
|
||||
}
|
||||
|
||||
pub struct AquaticMammal {}
|
||||
|
||||
// Should throw: `error: cannot find macro `__export_tokens_tt_tiger` in this scope`
|
||||
//
|
||||
// Note that there is really no better way to clean up this error, tt_call suffers from the
|
||||
// same downside but this is really the only rough edge when using macro magic.
|
||||
#[derive_impl(Tiger as Animal)]
|
||||
impl Animal for AquaticMammal {
|
||||
type Locomotion = (Swims, RunsOnFourLegs);
|
||||
type Environment = (Land, Sea);
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
@@ -0,0 +1,5 @@
|
||||
error: cannot find macro `Tiger` in this scope
|
||||
--> tests/derive_impl_ui/bad_default_impl_path.rs:59:15
|
||||
|
|
||||
59 | #[derive_impl(Tiger as Animal)]
|
||||
| ^^^^^
|
||||
@@ -0,0 +1,61 @@
|
||||
// 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_support::*;
|
||||
|
||||
pub trait Animal {
|
||||
type Locomotion;
|
||||
type Diet;
|
||||
type SleepingStrategy;
|
||||
type Environment;
|
||||
|
||||
fn animal_name() -> &'static str;
|
||||
}
|
||||
|
||||
pub type RunsOnFourLegs = (usize, usize, usize, usize);
|
||||
pub type RunsOnTwoLegs = (usize, usize);
|
||||
pub type Swims = isize;
|
||||
pub type Diurnal = bool;
|
||||
pub type Nocturnal = Option<bool>;
|
||||
pub type Omnivore = char;
|
||||
pub type Land = ((), ());
|
||||
pub type Sea = ((), (), ());
|
||||
pub type Carnivore = (char, char);
|
||||
|
||||
pub struct FourLeggedAnimal {}
|
||||
|
||||
#[register_default_impl(FourLeggedAnimal)]
|
||||
impl Animal for FourLeggedAnimal {
|
||||
type Locomotion = RunsOnFourLegs;
|
||||
type Diet = Omnivore;
|
||||
type SleepingStrategy = Diurnal;
|
||||
type Environment = Land;
|
||||
|
||||
fn animal_name() -> &'static str {
|
||||
"A Four-Legged Animal"
|
||||
}
|
||||
}
|
||||
|
||||
pub struct AquaticMammal {}
|
||||
|
||||
#[derive_impl(FourLeggedAnimal as Insect)]
|
||||
impl Animal for AquaticMammal {
|
||||
type Locomotion = (Swims, RunsOnFourLegs);
|
||||
type Environment = (Land, Sea);
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
@@ -0,0 +1,5 @@
|
||||
error[E0405]: cannot find trait `Insect` in this scope
|
||||
--> tests/derive_impl_ui/bad_disambiguation_path.rs:55:35
|
||||
|
|
||||
55 | #[derive_impl(FourLeggedAnimal as Insect)]
|
||||
| ^^^^^^ not found in this scope
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
// 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_support::{*, pezpallet_prelude::inject_runtime_type};
|
||||
use static_assertions::assert_type_eq_all;
|
||||
|
||||
pub trait Config {
|
||||
type RuntimeCall;
|
||||
}
|
||||
|
||||
struct Pallet;
|
||||
|
||||
#[register_default_impl(Pallet)]
|
||||
impl Config for Pallet {
|
||||
#[inject_runtime_type]
|
||||
type RuntimeCall = ();
|
||||
}
|
||||
|
||||
struct SomePallet;
|
||||
|
||||
#[derive_impl(Pallet)] // Injects type RuntimeCall = RuntimeCall;
|
||||
impl Config for SomePallet {}
|
||||
|
||||
assert_type_eq_all!(<SomePallet as Config>::RuntimeCall, u32);
|
||||
|
||||
fn main() {}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
error[E0412]: cannot find type `RuntimeCall` in this scope
|
||||
--> tests/derive_impl_ui/inject_runtime_type_fails_when_type_not_in_scope.rs:30:10
|
||||
|
|
||||
30 | type RuntimeCall = ();
|
||||
| ^^^^^^^^^^^
|
||||
...
|
||||
35 | #[derive_impl(Pallet)] // Injects type RuntimeCall = RuntimeCall;
|
||||
| ---------------------- in this macro invocation
|
||||
|
|
||||
= note: this error originates in the macro `Pallet` which comes from the expansion of the macro `frame_support::macro_magic::forward_tokens_verbatim` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: you might have meant to use the associated type
|
||||
|
|
||||
30 | type Self::RuntimeCall = ();
|
||||
| ++++++
|
||||
@@ -0,0 +1,42 @@
|
||||
// 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_support::{*, pezpallet_prelude::inject_runtime_type};
|
||||
use static_assertions::assert_type_eq_all;
|
||||
|
||||
pub trait Config {
|
||||
type RuntimeInfo;
|
||||
}
|
||||
|
||||
type RuntimeInfo = u32;
|
||||
|
||||
struct Pallet;
|
||||
|
||||
#[register_default_impl(Pallet)]
|
||||
impl Config for Pallet {
|
||||
#[inject_runtime_type]
|
||||
type RuntimeInfo = ();
|
||||
}
|
||||
|
||||
struct SomePallet;
|
||||
|
||||
#[derive_impl(Pallet)] // Injects type RuntimeInfo = RuntimeInfo;
|
||||
impl Config for SomePallet {}
|
||||
|
||||
assert_type_eq_all!(<SomePallet as Config>::RuntimeInfo, u32);
|
||||
|
||||
fn main() {}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
error: `#[inject_runtime_type]` can only be attached to `RuntimeCall`, `RuntimeEvent`, `RuntimeTask`, `RuntimeViewFunction`, `RuntimeOrigin`, `RuntimeParameters` or `PalletInfo`
|
||||
--> tests/derive_impl_ui/inject_runtime_type_invalid.rs:32:5
|
||||
|
|
||||
32 | type RuntimeInfo = ();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0046]: not all trait items implemented, missing: `RuntimeInfo`
|
||||
--> tests/derive_impl_ui/inject_runtime_type_invalid.rs:30:1
|
||||
|
|
||||
22 | type RuntimeInfo;
|
||||
| ---------------- `RuntimeInfo` from trait
|
||||
...
|
||||
30 | impl Config for Pallet {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^ missing `RuntimeInfo` in implementation
|
||||
@@ -0,0 +1,61 @@
|
||||
// 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_support::*;
|
||||
|
||||
pub trait Animal {
|
||||
type Locomotion;
|
||||
type Diet;
|
||||
type SleepingStrategy;
|
||||
type Environment;
|
||||
|
||||
fn animal_name() -> &'static str;
|
||||
}
|
||||
|
||||
pub type RunsOnFourLegs = (usize, usize, usize, usize);
|
||||
pub type RunsOnTwoLegs = (usize, usize);
|
||||
pub type Swims = isize;
|
||||
pub type Diurnal = bool;
|
||||
pub type Nocturnal = Option<bool>;
|
||||
pub type Omnivore = char;
|
||||
pub type Land = ((), ());
|
||||
pub type Sea = ((), (), ());
|
||||
pub type Carnivore = (char, char);
|
||||
|
||||
pub struct FourLeggedAnimal {}
|
||||
|
||||
#[register_default_impl(FourLeggedAnimal)]
|
||||
impl Animal for FourLeggedAnimal {
|
||||
type Locomotion = RunsOnFourLegs;
|
||||
type Diet = Omnivore;
|
||||
type SleepingStrategy = Diurnal;
|
||||
type Environment = Land;
|
||||
|
||||
fn animal_name() -> &'static str {
|
||||
"A Four-Legged Animal"
|
||||
}
|
||||
}
|
||||
|
||||
pub struct AquaticMammal {}
|
||||
|
||||
#[derive_impl(FourLeggedAnimal as)]
|
||||
impl Animal for AquaticMammal {
|
||||
type Locomotion = (Swims, RunsOnFourLegs);
|
||||
type Environment = (Land, Sea);
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
error: unexpected end of input, expected identifier
|
||||
--> tests/derive_impl_ui/missing_disambiguation_path.rs:55:1
|
||||
|
|
||||
55 | #[derive_impl(FourLeggedAnimal as)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in the attribute macro `derive_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
@@ -0,0 +1,86 @@
|
||||
// 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_support::*;
|
||||
use static_assertions::assert_type_eq_all;
|
||||
|
||||
pub trait Animal {
|
||||
type Locomotion;
|
||||
type Diet;
|
||||
type SleepingStrategy;
|
||||
type Environment;
|
||||
|
||||
fn animal_name() -> &'static str;
|
||||
}
|
||||
|
||||
pub type RunsOnFourLegs = (usize, usize, usize, usize);
|
||||
pub type RunsOnTwoLegs = (usize, usize);
|
||||
pub type Swims = isize;
|
||||
pub type Diurnal = bool;
|
||||
pub type Nocturnal = Option<bool>;
|
||||
pub type Omnivore = char;
|
||||
pub type Land = ((), ());
|
||||
pub type Sea = ((), (), ());
|
||||
pub type Carnivore = (char, char);
|
||||
|
||||
pub struct FourLeggedAnimal {}
|
||||
|
||||
#[register_default_impl(FourLeggedAnimal)]
|
||||
impl Animal for FourLeggedAnimal {
|
||||
type Locomotion = RunsOnFourLegs;
|
||||
type Diet = Omnivore;
|
||||
type SleepingStrategy = Diurnal;
|
||||
type Environment = Land;
|
||||
|
||||
fn animal_name() -> &'static str {
|
||||
"A Four-Legged Animal"
|
||||
}
|
||||
}
|
||||
|
||||
pub struct AquaticMammal {}
|
||||
|
||||
// without omitting the `as X`
|
||||
#[derive_impl(FourLeggedAnimal as Animal)]
|
||||
impl Animal for AquaticMammal {
|
||||
type Locomotion = (Swims, RunsOnFourLegs);
|
||||
type Environment = (Land, Sea);
|
||||
}
|
||||
|
||||
assert_type_eq_all!(<AquaticMammal as Animal>::Locomotion, (Swims, RunsOnFourLegs));
|
||||
assert_type_eq_all!(<AquaticMammal as Animal>::Environment, (Land, Sea));
|
||||
assert_type_eq_all!(<AquaticMammal as Animal>::Diet, Omnivore);
|
||||
assert_type_eq_all!(<AquaticMammal as Animal>::SleepingStrategy, Diurnal);
|
||||
|
||||
pub struct Lion {}
|
||||
|
||||
// test omitting the `as X`
|
||||
#[derive_impl(FourLeggedAnimal)]
|
||||
impl Animal for Lion {
|
||||
type Diet = Carnivore;
|
||||
type SleepingStrategy = Nocturnal;
|
||||
|
||||
fn animal_name() -> &'static str {
|
||||
"Lion"
|
||||
}
|
||||
}
|
||||
|
||||
assert_type_eq_all!(<Lion as Animal>::Diet, Carnivore);
|
||||
assert_type_eq_all!(<Lion as Animal>::SleepingStrategy, Nocturnal);
|
||||
assert_type_eq_all!(<Lion as Animal>::Environment, Land);
|
||||
assert_type_eq_all!(<Lion as Animal>::Locomotion, RunsOnFourLegs);
|
||||
|
||||
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.
|
||||
|
||||
#[pezframe_support::macro_magic::export_tokens]
|
||||
struct MyCoolStruct {
|
||||
field: u32,
|
||||
}
|
||||
|
||||
// create a test receiver since `proc_support` isn't enabled so we're on our own in terms of
|
||||
// what we can call
|
||||
macro_rules! receiver {
|
||||
($_tokens_var:ident, $($tokens:tt)*) => {
|
||||
stringify!($($tokens)*)
|
||||
};
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _instance: MyCoolStruct = MyCoolStruct { field: 3 };
|
||||
let _str = __export_tokens_tt_my_cool_struct!(tokens, receiver);
|
||||
// this compiling demonstrates that macro_magic is working properly
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
// 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_support::{*, pezpallet_prelude::inject_runtime_type};
|
||||
use static_assertions::assert_type_eq_all;
|
||||
|
||||
pub trait Config {
|
||||
type RuntimeCall;
|
||||
}
|
||||
|
||||
type RuntimeCall = u32;
|
||||
|
||||
struct Pallet;
|
||||
|
||||
#[register_default_impl(Pallet)]
|
||||
impl Config for Pallet {
|
||||
#[inject_runtime_type]
|
||||
type RuntimeCall = ();
|
||||
}
|
||||
|
||||
struct SomePallet;
|
||||
|
||||
#[derive_impl(Pallet)] // Injects type RuntimeCall = RuntimeCall;
|
||||
impl Config for SomePallet {}
|
||||
|
||||
assert_type_eq_all!(<SomePallet as Config>::RuntimeCall, u32);
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user