snowbridge_system_v2_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 ControlV2Api
10 {
11 /// Provides the Agent ID on Ethereum for the specified location.
12 fn agent_id(location: VersionedLocation) -> Option<AgentId>;
13 }
14}