snowbridge_system_runtime_api/lib.rs
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
3#![cfg_attr(not(feature = "std"), no_std)]
4
5use snowbridge_core::AgentId;
6use xcm::VersionedLocation;
7
8sp_api::decl_runtime_apis! {
9 pub trait ControlApi
10 {
11 fn agent_id(location: VersionedLocation) -> Option<AgentId>;
12 }
13}