ghost-node/pallets/exodus/runtime-api/src/lib.rs
Uncle Stretch 66ca7545ce
merge EVM chains by type into a single ExodusRequest during Round 7
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2026-10-21 17:25:35 +03:00

18 lines
690 B
Rust

#![cfg_attr(not(feature = "std"), no_std)]
use sp_std::vec::Vec;
use ghost_helpers::networks::{NetworkType, NetworkCurve};
pub type PreparedEvmMessage = Option<(Vec<u8>, Vec<u8>, Vec<u8>)>;
sp_api::decl_runtime_apis! {
pub trait ExodusApi {
fn get_evm_rotation_metadata(dkg_index: u64, network_type: NetworkType) -> PreparedEvmMessage;
fn get_evm_bridge_metadata(dkg_index: u64, network_id: u64, session: u64) -> PreparedEvmMessage;
fn get_evm_governance_metadata(dkg_index: u64, network_id: u64, session: u64) -> PreparedEvmMessage;
fn pending_exodus_request_count() -> u32;
fn is_qualification_ongoing(curve: NetworkCurve) -> bool;
}
}