DOCS
  • Getting Started
  • Custom token vaults
  • Running a check
  • Output and exit codes
  • Preflight errors
  • Conformance checks
  • Security checks
  • Check API
  • Limits and queue
  • Function coverage
  • Result types
  • Test vaults
SEP-56

Function coverage

How the 11 checks map to SEP-56, and which Interface functions the checker calls.

Specification used

stellar/stellar-protocol, ecosystem/sep-0056.md, Version 0.1.2, Status Draft. SEP-56 has no numbered clauses, so references use its section headings.

Check to SEP-56 mapping

CheckSEP-56 sectionKind of reference
total_assetsInterface, fn total_assetsFunction contract
depositInterface, fn depositFunction contract
mintInterface, fn mintFunction contract
withdrawInterface, fn withdrawFunction contract
redeemInterface, fn redeemFunction contract
convert_to_sharesInterface, fn convert_to_sharesFunction contract
convert_to_assetsInterface, fn convert_to_assetsFunction contract
donation_attackNotes On Decimals Offset; Security ConcernsSecurity concern
overflow_protectionSecurity ConcernsSecurity concern
rounding_directionSecurity Concerns; Interface doc commentsSecurity concern
access_control_probingDesign Rationale, Authorization Pattern; Security ConcernsImplementation guidance

A failure in the first seven means a function did not behave as specified. A failure in the last four is a security finding, not a violation of an Interface function.

Interface functions called

GroupFunctionsHow they are used
Checked directly (7)total_assets, deposit, mint, withdraw, redeem, convert_to_shares, convert_to_assetsSubject of a check
Compared with execution (4)preview_deposit, preview_mint, preview_withdraw, preview_redeemMust match the executed call
Read and asserted, since v0.4.0 (5)max_deposit, max_mint, max_withdraw, max_redeem, total_supplyLower bound and exact supply change, inside the deposit, mint, withdraw and redeem checks
Used to build the copy (1)query_assetNot a conformance assertion
EventsDeposit, WithdrawNot checked
Verified

Taken from the function calls in cli/src/checks/mod.rs at v0.4.0.