referrerpolicy=no-referrer-when-downgrade

snowbridge_system_v2_runtime_api/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
#![cfg_attr(not(feature = "std"), no_std)]

use snowbridge_core::AgentId;
use xcm::VersionedLocation;

sp_api::decl_runtime_apis! {
	pub trait ControlV2Api
	{
		/// Provides the Agent ID on Ethereum for the specified location.
		fn agent_id(location: VersionedLocation) -> Option<AgentId>;
	}
}