aiken/examples/acceptance_tests/script_context
KtorZ fe7d744946
Split continuous workflow in three jobs.
Doing all steps sequentially is starting to get long. Several of those checks are unrelated and can be done in parallel.
2024-07-16 17:41:14 +02:00
..
ctx Align context diagnostics to use similar syntax. 2023-02-15 17:26:26 +01:00
validators Add now-necessary type-annotations in tests 2024-05-06 15:17:01 -04:00
.gitignore Add succinct README to explain what's going on. 2023-02-14 16:25:48 +01:00
README.md Remove single-argument function call special-case in formatter 2023-02-15 17:22:08 +01:00
aiken.lock Fix tree traversal node selection for a few of the enum variants 2024-06-25 18:50:00 -04:00
aiken.toml fix: fixing tests to account for the new stdlib main. Also added test 75 but commented out for now until a fix is merged 2024-05-04 14:26:06 -04:00
plutus.json Fix tree traversal node selection for a few of the enum variants 2024-06-25 18:50:00 -04:00
test.sh Split continuous workflow in three jobs. 2024-07-16 17:41:14 +02:00

README.md

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
      • pointer
      • 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