This repository contains a TLA+ model and configuration file for model checking (with Apalache BMC) the HyperLedger Fabric BaseToken logic. The model follows the logic of the token implementation and focuses on core operations (transfers, buy/buyback, emission, rates, limits, fees). The reference implementation: https://github.com/anoideaopen/foundation/tree/main/token
Follow the Apalache installation guide: https://apalache-mc.org/docs/apalache/installation/index.html
Bounded Model Checking:
apalache-mc check --config=BaseTokenApalache.cfg --length=5 --discard-disabled BaseToken.tlaSimulation mode:
apalache-mc simulate --config=BaseTokenApalache.cfg --length=12 --max-run=100 --discard-disabled BaseToken.tlaArticle (in Russian): https://habr.com/p/993688/