Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptonean committed Oct 2, 2024
2 parents 916767c + 55b2b3a commit 62fd0c5
Showing 1 changed file with 1 addition and 57 deletions.
58 changes: 1 addition & 57 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1 @@
<<<<<<< HEAD
# first_contract

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`

```aiken
validator my_first_validator {
spend(_datum: Option<Data>, _redeemer: Data, _output_reference: Data, _context: Data) {
True
}
}
```

## Building

```sh
aiken build
```

## Testing

You can write tests in any module using the `test` keyword. For example:

```aiken
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).
>>>>>>> 71e364d (Initial commit)
## Aiken Code

0 comments on commit 62fd0c5

Please sign in to comment.