Trait pallet_capacity::Nontransferable
pub trait Nontransferable {
type Balance: Balance;
// Required methods
fn balance(msa_id: u64) -> Self::Balance;
fn deduct(
msa_id: u64,
capacity_amount: Self::Balance
) -> Result<(), DispatchError>;
fn deposit(
msa_id: u64,
token_amount: Self::Balance,
capacity_amount: Self::Balance
) -> Result<(), DispatchError>;
}
Expand description
A trait for Non-transferable asset
Required Associated Types§
type Balance: Balance
type Balance: Balance
Scalar type for representing balance of an account.
Required Methods§
Object Safety§
This trait is not object safe.