pub trait BalanceAPI<T>{
// Required methods
fn mint_into(
&mut self,
address: &<<T as Sandbox>::Runtime as Config>::AccountId,
amount: <<T as Sandbox>::Runtime as Config>::Balance,
) -> Result<<<T as Sandbox>::Runtime as Config>::Balance, DispatchError>;
fn free_balance(
&mut self,
address: &<<T as Sandbox>::Runtime as Config>::AccountId,
) -> <<T as Sandbox>::Runtime as Config>::Balance;
}Expand description
Balance API for the sandbox.
Required Methods§
Sourcefn mint_into(
&mut self,
address: &<<T as Sandbox>::Runtime as Config>::AccountId,
amount: <<T as Sandbox>::Runtime as Config>::Balance,
) -> Result<<<T as Sandbox>::Runtime as Config>::Balance, DispatchError>
fn mint_into( &mut self, address: &<<T as Sandbox>::Runtime as Config>::AccountId, amount: <<T as Sandbox>::Runtime as Config>::Balance, ) -> Result<<<T as Sandbox>::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.