referrerpolicy=no-referrer-when-downgrade

polkadot_omni_node_lib/fake_runtime_api/
mod.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// 	http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! In an ideal world this would be one runtime which would simplify the code massively.
18//! This is not an ideal world - Polkadot Asset Hub has a different key type.
19
20mod utils;
21
22use utils::{impl_node_runtime_apis, imports::*};
23
24type CustomBlock = crate::common::types::Block<u32>;
25pub mod aura_sr25519 {
26	use super::*;
27	#[allow(dead_code)]
28	struct FakeRuntime;
29	impl_node_runtime_apis!(FakeRuntime, CustomBlock, sp_consensus_aura::sr25519::AuthorityId);
30}
31
32pub mod aura_ed25519 {
33	use super::*;
34	#[allow(dead_code)]
35	struct FakeRuntime;
36	impl_node_runtime_apis!(FakeRuntime, CustomBlock, sp_consensus_aura::ed25519::AuthorityId);
37}