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
CLI

Running a check

Command-line options, which test account each check uses, and how long a run takes.

sep56-vault-guard

SIGNATURE

terminal
sep56-vault-guard [--vault <CONTRACT_ADDRESS>] [--output text|json|markdown] [--status-file <PATH>]

PARAMETERS

--vaultstringoptional
Contract address of the vault to check (starts with C, 56 characters). Defaults to the project's reference vault CAMDXP2QABDOUMU6F6WPQ5HVKVXCD4MOWPLBZF4KHIBXAD7NT3AGYTNF.
--outputtext | json | markdownoptional
Output format. Default text. json prints an array for programs. markdown prints a report you can save as a .md file (since v0.5.0).
--status-filepathoptional
Writes a JSON snapshot that is updated as each check starts and finishes. Reporting only; it never changes a result.
--versionflagoptional
Prints the version, for example sep56-vault-guard 0.5.0.
--helpflagoptional
Prints usage.

EXAMPLE

terminal
# Reference vault, text output
./sep56-vault-guard

# A specific vault, JSON output
./sep56-vault-guard --vault <CONTRACT_ADDRESS> --output json

# A specific vault, Markdown report
./sep56-vault-guard --vault <CONTRACT_ADDRESS> --output markdown > report.md

# With a live status file
./sep56-vault-guard --vault <CONTRACT_ADDRESS> --status-file ./status.json

Which account each check uses

The 7 conformance checks run one after another on the target vault. The 4 security checks run at the same time as each other and as the conformance sequence, so each has its own account.

AccountCheck
aliceall 7 conformance checks (on the target vault)
grace, bobdonation_attack (attacker, victim)
caroloverflow_protection
daverounding_direction
erin, frankaccess_control_probing (owner, operator)

Run time and network

A run usually takes about a minute, sometimes longer. Every chain interaction calls stellar contract invoke or stellar contract deploy against Testnet.

Verified

The network is fixed to Testnet in cli/src/rpc.rs. There is no flag for another network.

Do not run two checks at the same time with the same identities: transactions from one account race on sequence numbers, and the failures would be about the collision, not about the vault.