The V3 Script Context Tests project uses handcrafted Plutus V3 validators and transactions to verify how Aiken interprets the ScriptContext.
To run the tests for a specific validator group, use the test.sh script. The test requires a specific directory structure for each VALIDATOR_GROUP:
- A validator file located at
validators/{VALIDATOR_GROUP}.ak. - A transaction template at
ctx/{VALIDATOR_GROUP}/tx.template. - A resolved inputs template at
ctx/{VALIDATOR_GROUP}/resolved_inputs.template.
Templates support mustache-style variables:
{VALIDATOR_GROUP}.{VALIDATOR_TITLE}.hash{VALIDATOR_GROUP}.{VALIDATOR_TITLE}.cbor
Note: {VALIDATOR_TITLE} corresponds to the validator's name in Aiken.
./test.sh VALIDATOR_GROUP