~/talk

Something good is always possible: testing smart contracts with QuickCheck

Talkat Craft Conference 2021 · 2021-06-02..06-04· [smart-contracts]
slides:none on file

A QuickCheck-based framework for Cardano Plutus contracts generates random sequences of wallet actions, models contract state, and shrinks failing runs; it finds real crashes (one failure required 10 tests and 6 shrinks) and exposes missing preconditions (start-once, token ownership). The example builds a passworded guessing game that forges a game token, shows off-chain/on-chain testing with Plutus and QuickCheck, adds a small strategy language to prove a liveness goal, and runs 100 (typically 10,000) tests to validate that recovery always works.

AI-written summary · about

  1. 0:00Smart contract testing intro
  2. 1:56Cardano and Haskell matter
  3. 4:02Cardano smart contracts
  4. 7:08On-chain vs off-chain testing
  5. 9:37QuickCheck for smart contracts
  6. 13:24Guessing game contract model
  7. 15:08First test failure and shrinking
  8. 17:38Adding preconditions
  9. 20:08Beyond safety: liveness tests
  10. 22:35Goal-reaching strategies
  11. 26:28Recovery strategy refinement
  12. 28:57New PBT opportunities
  13. 29:20Closing remarks and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.