[][src]Trait casper_types::proof_of_stake::MintProvider

pub trait MintProvider {
    fn transfer_purse_to_account(
        &mut self,
        source: URef,
        target: AccountHash,
        amount: U512
    ) -> TransferResult;
fn transfer_purse_to_purse(
        &mut self,
        source: URef,
        target: URef,
        amount: U512
    ) -> Result<(), ()>;
fn balance(&mut self, purse: URef) -> Option<U512>; }

Provides an access to mint.

Required methods

fn transfer_purse_to_account(
    &mut self,
    source: URef,
    target: AccountHash,
    amount: U512
) -> TransferResult

Transfer amount from source purse to a target account.

fn transfer_purse_to_purse(
    &mut self,
    source: URef,
    target: URef,
    amount: U512
) -> Result<(), ()>

Transfer amount from source purse to a target purse.

fn balance(&mut self, purse: URef) -> Option<U512>

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

Loading content...

Implementors

Loading content...