Trait casper_types::system::handle_payment::MintProvider
source ·
[−]pub trait MintProvider {
fn transfer_purse_to_account(
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>;
fn transfer_purse_to_purse(
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>;
fn balance(&mut self, purse: URef) -> Result<Option<U512>, Error>;
}
Expand description
Provides an access to mint.
Required methods
fn transfer_purse_to_account(
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>
fn transfer_purse_to_account(
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>
Transfer amount
from source
purse to a target
account.
Transfer amount
from source
purse to a target
purse.