feat: new check for valid purpose names

This commit is contained in:
rvcas
2024-08-15 12:15:45 -04:00
committed by KtorZ
parent 5cf0a4d294
commit c2c4bddfb3
9 changed files with 60 additions and 13 deletions

View File

@@ -1,9 +1,9 @@
---
source: crates/aiken-project/src/blueprint/validator.rs
description: "Code:\n\nvalidator {\n fn mint(redeemer: Data, ctx: Data) {\n True\n }\n}\n// "
description: "Code:\n\nvalidator thing {\n mint(redeemer: Data, policy_id: Data, transaction: Data) {\n True\n }\n}\n// "
---
{
"title": "test_module.mint",
"title": "test_module.thing_mint",
"redeemer": {
"title": "redeemer",
"schema": {

View File

@@ -1,6 +1,6 @@
---
source: crates/aiken-project/src/blueprint/validator.rs
description: "Code:\n\npub opaque type Rational {\n numerator: Int,\n denominator: Int,\n}\n\nvalidator {\n fn opaque_singleton_multi_variants(redeemer: Rational, ctx: Void) {\n True\n }\n}\n"
description: "Code:\n\npub opaque type Rational {\n numerator: Int,\n denominator: Int,\n}\n\nvalidator opaque_singleton_multi_variants {\n spend(redeemer: Rational, oref: Data, ctx: Void) {\n True\n }\n}\n"
---
Schema {
error: Error {
@@ -16,7 +16,7 @@ Schema {
},
],
},
location: 117..135,
location: 120..138,
source_code: NamedSource {
name: "",
source: "<redacted>",