1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![cfg_attr(not(feature = "std"), no_std)]
use codec::Codec;
use oracle_rpc_runtime_api::BalanceWrapper;
sp_api::decl_runtime_apis! {
pub trait EscrowApi<AccountId, BlockNumber, Balance> where
AccountId: Codec,
BlockNumber: Codec,
Balance: Codec,
{
fn balance_at(account_id: AccountId, height: Option<BlockNumber>) -> BalanceWrapper<Balance>;
fn free_stakable(account_id: AccountId) -> BalanceWrapper<Balance>;
fn total_supply(height: Option<BlockNumber>) -> BalanceWrapper<Balance>;
}
}