Functions§
- burn_
from_ best_ effort_ success - Test
Mutate::burn_fromfor successfully burning tokens withPrecision::BestEffort. - burn_
from_ exact_ insufficient_ funds - Test
Mutate::burn_fromhandling of insufficient funds when called withPrecision::Exact. - burn_
from_ exact_ success - Test
Mutate::burn_fromfor successfully burning an exact amount of tokens. - can_
deposit_ below_ minimum - Test
Inspect::can_depositreturnsDepositConsequence::BelowMinimumwhen depositing below the minimum balance. - can_
deposit_ overflow - Test
Inspect::can_depositreturnsDepositConsequence::Overflowwhen depositing an amount that would overflow. - can_
deposit_ success - Test
Inspect::can_depositworks correctly returnsDepositConsequence::Successwhen depositing an amount that should succeed. - can_
withdraw_ balance_ low - Test
Inspect::can_withdrawreturnsWithdrawConsequence::BalanceLowwhen withdrawing an amount that would result in an account balance below the current balance. - can_
withdraw_ reduced_ to_ zero - Test
Inspect::can_withdrawreturnsWithdrawConsequence::ReducedToZerowhen withdrawing an amount that would reduce the account balance below the minimum balance. - can_
withdraw_ success - Test
Inspect::can_withdrawreturnsWithdrawConsequence::Successwhen withdrawing an amount that should succeed. - mint_
into_ below_ minimum - Test
Mutate::mint_intofor handling balances below the minimum value. - mint_
into_ overflow - Test
Mutate::mint_intofor overflow prevention. - mint_
into_ success - Test
Mutate::mint_intofor successful token minting. - reducible_
balance_ expendable - Test
Inspect::reducible_balancereturns the full account balance when called withPreservation::Expendable. - reducible_
balance_ protect_ preserve - Tests
Inspect::reducible_balancereturnsInspect::balance-Inspect::minimum_balancewhen called with eitherPreservation::ProtectorPreservation::Preserve. - restore_
below_ minimum - Test
Mutate::restorehandles restoration below the minimum balance. - restore_
overflow - Test
Mutate::restorehandles balance overflow. - restore_
success - Test
Mutate::restorefor successful restoration. - set_
balance_ burn_ success - Test
Mutate::set_balanceburns balances correctly. - set_
balance_ mint_ success - Test
Mutate::set_balancemints balances correctly. - shelve_
insufficient_ funds - Test
Mutate::shelvehandles insufficient funds correctly. - shelve_
success - Test
Mutate::shelvefor successful shelving. - transfer_
expendable_ all - Test calling
Mutate::transferwithPreservation::Expendablecorrectly transfers the entire balance. - transfer_
expendable_ dust - Test calling
Mutate::transferfunction withPreservation::Expendableand an amount that results in some dust. - transfer_
protect_ preserve - Test
Mutate::transferwithPreservation::ProtectandPreservation::Preservetransferring the entire balance. - transfer_
success - Test
Mutate::transferfor a successful transfer.