Trait casper_types::system::handle_payment::MintProvider[][src]

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

Transfer amount from source purse to a target account.

Transfer amount from source purse to a target purse.

Checks balance of a purse. Returns None if given purse does not exist.

Implementors