Trait casper_types::system::mint::Mint [−][src]
pub trait Mint: RuntimeProvider + StorageProvider + SystemProvider { fn mint(&mut self, initial_balance: U512) -> Result<URef, Error> { ... } fn reduce_total_supply(&mut self, amount: U512) -> Result<(), Error> { ... } fn balance(&mut self, purse: URef) -> Result<Option<U512>, Error> { ... } fn transfer(
&mut self,
maybe_to: Option<AccountHash>,
source: URef,
target: URef,
amount: U512,
id: Option<u64>
) -> Result<(), Error> { ... } fn read_base_round_reward(&mut self) -> Result<U512, Error> { ... } }
Expand description
Mint trait.
Provided methods
Mint new token with given initial_balance balance. Returns new purse on success, otherwise
an error.
Reduce total supply by amount. Returns unit on success, otherwise
an error.
Transfers amount of tokens from source purse to a target purse.
fn read_base_round_reward(&mut self) -> Result<U512, Error>
fn read_base_round_reward(&mut self) -> Result<U512, Error>Retrieves the base round reward.