orml_tokens_runtime_api/lib.rs
1//! Runtime API definition for orml tokens pallet.
2
3#![cfg_attr(not(feature = "std"), no_std)]
4// The `too_many_arguments` warning originates from `decl_runtime_apis` macro.
5#![allow(clippy::too_many_arguments)]
6// The `unnecessary_mut_passed` warning originates from `decl_runtime_apis` macro.
7#![allow(clippy::unnecessary_mut_passed)]
8
9use parity_scale_codec::Codec;
10
11sp_api::decl_runtime_apis! {
12 pub trait TokensApi<CurrencyId, Balance> where
13 Balance: Codec,
14 CurrencyId: Codec
15 {
16 fn query_existential_deposit(currency_id: CurrencyId) -> Balance;
17 }
18}