Trait pallet_plasma::ERC20Trait [−][src]
pub trait ERC20Trait<AccountId> { type C: Currency<AccountId>; type B: AtLeast32BitUnsigned + FullCodec + Copy + MaybeSerializeDeserialize + Debug + Default; fn transfer_from(
&self,
from: &AccountId,
to: &AccountId,
amount: Self::B
) -> DispatchResult; fn transfer(&self, to: &AccountId, amount: Self::B) -> DispatchResult; }
Associated Types
type B: AtLeast32BitUnsigned + FullCodec + Copy + MaybeSerializeDeserialize + Debug + Default
Required methods
fn transfer_from(
&self,
from: &AccountId,
to: &AccountId,
amount: Self::B
) -> DispatchResult
fn transfer(&self, to: &AccountId, amount: Self::B) -> DispatchResult