pub trait BalanceAPI<T>{
// Required methods
fn mint_into(
&mut self,
address: &AccountIdFor<T::Runtime>,
amount: <T::Runtime as Config>::Balance,
) -> Result<<T::Runtime as Config>::Balance, DispatchError>;
fn free_balance(
&mut self,
account_id: &AccountIdFor<T::Runtime>,
) -> <T::Runtime as Config>::Balance;
}
Expand description
Balance API for the sandbox.
Required Methods§
Sourcefn mint_into(
&mut self,
address: &AccountIdFor<T::Runtime>,
amount: <T::Runtime as Config>::Balance,
) -> Result<<T::Runtime as Config>::Balance, DispatchError>
fn mint_into( &mut self, address: &AccountIdFor<T::Runtime>, amount: <T::Runtime as Config>::Balance, ) -> Result<<T::Runtime as Config>::Balance, DispatchError>
Mint tokens to an account.
§Arguments
address
- The address of the account to add tokens to.amount
- The number of tokens to add.