1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use near_sdk::{ ext_contract, AccountId, PromiseOrValue };
use near_sdk::json_types::U128;
#[ext_contract(ext_ft)]
pub trait ExtFtReceiver {
fn ft_transfer(&mut self, receiver_id: AccountId, amount: U128, memo: Option<String>);
fn ft_transfer_call(
&mut self,
receiver_id: AccountId,
amount: U128,
memo: Option<String>,
msg: String
) -> PromiseOrValue<U128>;
fn ft_total_supply(&self) -> U128;
fn ft_balance_of(&self, account_id: AccountId) -> U128;
}