snowbridge_outbound_queue_runtime_api/
lib.rs1#![cfg_attr(not(feature = "std"), no_std)]
4
5use frame_support::traits::tokens::Balance as BalanceT;
6use snowbridge_core::{
7 outbound::{Command, Fee},
8 PricingParameters,
9};
10use snowbridge_outbound_queue_merkle_tree::MerkleProof;
11
12sp_api::decl_runtime_apis! {
13 pub trait OutboundQueueApi<Balance> where Balance: BalanceT
14 {
15 fn prove_message(leaf_index: u64) -> Option<MerkleProof>;
19
20 fn calculate_fee(command: Command, parameters: Option<PricingParameters<Balance>>) -> Fee<Balance>;
22 }
23}