Module frame_support::traits::tokens::fungible::conformance_tests::regular::mutate
source · Functions§
- Test
Mutate::burn_from
for successfully burning tokens withPrecision::BestEffort
. - Test
Mutate::burn_from
handling of insufficient funds when called withPrecision::Exact
. - Test
Mutate::burn_from
for successfully burning an exact amount of tokens. - Test
Inspect::can_deposit
returnsDepositConsequence::BelowMinimum
when depositing below the minimum balance. - Test
Inspect::can_deposit
returnsDepositConsequence::Overflow
when depositing an amount that would overflow. - Test
Inspect::can_deposit
works correctly returnsDepositConsequence::Success
when depositing an amount that should succeed. - Test
Inspect::can_withdraw
returnsWithdrawConsequence::BalanceLow
when withdrawing an amount that would result in an account balance below the current balance. - Test
Inspect::can_withdraw
returnsWithdrawConsequence::ReducedToZero
when withdrawing an amount that would reduce the account balance below the minimum balance. - Test
Inspect::can_withdraw
returnsWithdrawConsequence::Success
when withdrawing an amount that should succeed. - Test
Mutate::mint_into
for handling balances below the minimum value. - Test
Mutate::mint_into
for overflow prevention. - Test
Mutate::mint_into
for successful token minting. - Test
Inspect::reducible_balance
returns the full account balance when called withPreservation::Expendable
. - Tests
Inspect::reducible_balance
returnsInspect::balance
-Inspect::minimum_balance
when called with eitherPreservation::Protect
orPreservation::Preserve
. - Test
Mutate::restore
handles restoration below the minimum balance. - Test
Mutate::restore
handles balance overflow. - Test
Mutate::restore
for successful restoration. - Test
Mutate::set_balance
burns balances correctly. - Test
Mutate::set_balance
mints balances correctly. - Test
Mutate::shelve
handles insufficient funds correctly. - Test
Mutate::shelve
for successful shelving. - Test calling
Mutate::transfer
withPreservation::Expendable
correctly transfers the entire balance. - Test calling
Mutate::transfer
function withPreservation::Expendable
and an amount that results in some dust. - Test
Mutate::transfer
withPreservation::Protect
andPreservation::Preserve
transferring the entire balance. - Test
Mutate::transfer
for a successful transfer.