aiken-lang 1.1.19

Cardano smart contract language and toolchain
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
source: crates/aiken-lang/src/tests/format.rs
description: "Code:\n\n    validator foo( param1 : ByteArray ) {\n    spend(d: Datum, r: Redeemer, ctx: ScriptContext) -> Bool {\n    True\n    }\n    /// This is bar\nmint(r: Redeemer, ctx    : ScriptContext  )   ->   Bool { True }\n    }\n"
---
validator foo(param1: ByteArray) {
  spend(d: Datum, r: Redeemer, ctx: ScriptContext) {
    True
  }

  /// This is bar
  mint(r: Redeemer, ctx: ScriptContext) {
    True
  }

  else(_) {
    fail
  }
}