Trait casper_types::auction::MintProvider [−][src]
Provides an access to mint.
Required methods
fn transfer_purse_to_account(
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>
[src]
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>
Transfers amount
from source
purse to a target
account.
fn transfer_purse_to_purse(
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>
[src]
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>
Transfers amount
from source
purse to a target
purse.
fn balance(&mut self, purse: URef) -> Result<Option<U512>, Error>
[src]
Checks balance of a purse
. Returns None
if given purse does not exist.
fn read_base_round_reward(&mut self) -> Result<U512, Error>
[src]
Reads the base round reward.
fn mint(&mut self, amount: U512) -> Result<URef, Error>
[src]
Mints new token with given initial_balance
balance. Returns new purse on success,
otherwise an error.
fn reduce_total_supply(&mut self, amount: U512) -> Result<(), Error>
[src]
Reduce total supply by amount
. Returns unit on success, otherwise
an error.