Module mutate
Functions§
- burn_
from_ best_ effort_ success - Test
Mutate::burn_from
for successfully burning tokens withPrecision::BestEffort
. - burn_
from_ exact_ insufficient_ funds - Test
Mutate::burn_from
handling of insufficient funds when called withPrecision::Exact
. - burn_
from_ exact_ success - Test
Mutate::burn_from
for successfully burning an exact amount of tokens. - can_
deposit_ below_ minimum - Test
Inspect::can_deposit
returnsDepositConsequence::BelowMinimum
when depositing below the minimum balance. - can_
deposit_ overflow - Test
Inspect::can_deposit
returnsDepositConsequence::Overflow
when depositing an amount that would overflow. - can_
deposit_ success - Test
Inspect::can_deposit
works correctly returnsDepositConsequence::Success
when depositing an amount that should succeed. - can_
withdraw_ balance_ low - Test
Inspect::can_withdraw
returnsWithdrawConsequence::BalanceLow
when withdrawing an amount that would result in an account balance below the current balance. - can_
withdraw_ reduced_ to_ zero - Test
Inspect::can_withdraw
returnsWithdrawConsequence::ReducedToZero
when withdrawing an amount that would reduce the account balance below the minimum balance. - can_
withdraw_ success - Test
Inspect::can_withdraw
returnsWithdrawConsequence::Success
when withdrawing an amount that should succeed. - mint_
into_ below_ minimum - Test
Mutate::mint_into
for handling balances below the minimum value. - mint_
into_ overflow - Test
Mutate::mint_into
for overflow prevention. - mint_
into_ success - Test
Mutate::mint_into
for successful token minting. - reducible_
balance_ expendable - Test
Inspect::reducible_balance
returns the full account balance when called withPreservation::Expendable
. - reducible_
balance_ protect_ preserve - Tests
Inspect::reducible_balance
returnsInspect::balance
-Inspect::minimum_balance
when called with eitherPreservation::Protect
orPreservation::Preserve
. - restore_
below_ minimum - Test
Mutate::restore
handles restoration below the minimum balance. - restore_
overflow - Test
Mutate::restore
handles balance overflow. - restore_
success - Test
Mutate::restore
for successful restoration. - set_
balance_ burn_ success - Test
Mutate::set_balance
burns balances correctly. - set_
balance_ mint_ success - Test
Mutate::set_balance
mints balances correctly. - shelve_
insufficient_ funds - Test
Mutate::shelve
handles insufficient funds correctly. - shelve_
success - Test
Mutate::shelve
for successful shelving. - transfer_
expendable_ all - Test calling
Mutate::transfer
withPreservation::Expendable
correctly transfers the entire balance. - transfer_
expendable_ dust - Test calling
Mutate::transfer
function withPreservation::Expendable
and an amount that results in some dust. - transfer_
protect_ preserve - Test
Mutate::transfer
withPreservation::Protect
andPreservation::Preserve
transferring the entire balance. - transfer_
success - Test
Mutate::transfer
for a successful transfer.