aiken/examples/acceptance_tests/script_context/v2
KtorZ 0dec4dc533
Move script context e2e tests under a nested 'v2' directory.
And rework scripts to run them in anticipation of new v3 contexts.
2024-08-13 10:55:21 +02:00
..
ctx Move script context e2e tests under a nested 'v2' directory. 2024-08-13 10:55:21 +02:00
validators Move script context e2e tests under a nested 'v2' directory. 2024-08-13 10:55:21 +02:00
.gitignore Move script context e2e tests under a nested 'v2' directory. 2024-08-13 10:55:21 +02:00
README.md Move script context e2e tests under a nested 'v2' directory. 2024-08-13 10:55:21 +02:00
aiken.lock Move script context e2e tests under a nested 'v2' directory. 2024-08-13 10:55:21 +02:00
aiken.toml Move script context e2e tests under a nested 'v2' directory. 2024-08-13 10:55:21 +02:00
plutus.json Move script context e2e tests under a nested 'v2' directory. 2024-08-13 10:55:21 +02:00
test.sh Move script context e2e tests under a nested 'v2' directory. 2024-08-13 10:55:21 +02:00

README.md

V2 Script Context Tests

This project contains a few handcrafted Plutus V2 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