aiken/examples/acceptance_tests/script_context/README.md

1.1 KiB

Script Context Tests

This project contains a few handcrafted validators and transactions whose sole purpose is to test the interpretation of the ScriptContext from within an Aiken's validators.

So validators are meant to work hand-in-hand with an associated context. Because we can't have fully static context (since they contain the validator and its hash), we define templates.

Everything is a bit clunky, but steps have been captured in a test.sh script for convenience.

How to use

./test.sh [VALIDATOR_TITLE]

Test Coverage

  • Purpose

    • Spend
    • Mint
    • Withdraw
    • Publish
  • Transaction

    • inputs
    • reference inputs
    • outputs
      • address
        • verification key
      • script
      • value
      • datum
        • None
        • Hash
        • Inline
      • script
        • None
      • Reference
    • values
      • Pure Ada
      • Native assets
    • fee
    • mint
    • certificates
    • withdrawals
      • verification key
      • script
    • validity range
    • extra signatories
    • redeemers
    • datums