Trait serp_traits::stp258::Stp258AssetExtended [−][src]
Extended Stp258Asset
with additional helper types and methods.
Associated Types
type Amount: Signed + TryInto<Self::Balance> + TryFrom<Self::Balance> + SimpleArithmetic + Codec + Copy + MaybeSerializeDeserialize + Debug + Default
[src]
The signed type for balance related operations, typically signed int.
Required methods
fn update_balance(who: &AccountId, by_amount: Self::Amount) -> DispatchResult
[src]
Add or remove abs(by_amount
) from the balance of who
. If positive
by_amount
, do add, else do remove.