Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aiken-lang/marlowe
An implementation of the Marlowe validators in Aiken
https://github.com/aiken-lang/marlowe
aiken cardano marlowe smart-contracts
Last synced: about 2 months ago
JSON representation
An implementation of the Marlowe validators in Aiken
- Host: GitHub
- URL: https://github.com/aiken-lang/marlowe
- Owner: aiken-lang
- Created: 2023-06-13T23:03:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-09T18:32:31.000Z (9 months ago)
- Last Synced: 2024-05-21T03:12:37.179Z (8 months ago)
- Topics: aiken, cardano, marlowe, smart-contracts
- Language: Shell
- Homepage: https://marlowe.iohk.io/
- Size: 178 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# marlowe
Write validators in the `validators` folder, and supporting functions in the
`lib` folder using `.ak` as a file extension.For example, as `validators/always_true.ak`
```gleam
validator {
fn spend(_datum: Data, _redeemer: Data, _context: Data) -> Bool {
True
}
}
```## Building
```sh
aiken build
```## Testing
You can write tests in any module using the `test` keyword. For example:
```gleam
test foo() {
1 + 1 == 2
}
```To run all tests, simply do:
```sh
aiken check
```To run only tests matching the string `foo`, do:
```sh
aiken check -m foo
```## Documentation
If you're writing a library, you might want to generate an HTML documentation
for it.Use:
```sh
aiken docs
```## Resources
Find more on the [Aiken's user manual](https://aiken-lang.org).