Skip to content

Commit

Permalink
feat: init escrow
Browse files Browse the repository at this point in the history
  • Loading branch information
SIDANWhatever committed Apr 17, 2024
1 parent 0d88086 commit f634e63
Show file tree
Hide file tree
Showing 10 changed files with 140 additions and 0 deletions.
@@ -0,0 +1,20 @@
name: Tests

on:
push:
branches: ["main"]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: aiken-lang/setup-aiken@v0.1.0
with:
version: v1.0.24-alpha

- run: aiken fmt --check
- run: aiken check -D
- run: aiken build
6 changes: 6 additions & 0 deletions packages/contracts/src/escrow/aiken-workspace/.gitignore
@@ -0,0 +1,6 @@
# Aiken compilation artifacts
artifacts/
# Aiken's project working directory
build/
# Aiken's default documentation export
docs/
26 changes: 26 additions & 0 deletions packages/contracts/src/escrow/aiken-workspace/aiken.lock
@@ -0,0 +1,26 @@
# This file was generated by Aiken
# You typically do not need to edit this file

[[requirements]]
name = "aiken-lang/stdlib"
version = "1.8.0"
source = "github"

[[requirements]]
name = "sidan-lab/aiken-utils"
version = "0.0.4-beta"
source = "github"

[[packages]]
name = "aiken-lang/stdlib"
version = "1.8.0"
requirements = []
source = "github"

[[packages]]
name = "sidan-lab/aiken-utils"
version = "0.0.4-beta"
requirements = []
source = "github"

[etags]
19 changes: 19 additions & 0 deletions packages/contracts/src/escrow/aiken-workspace/aiken.toml
@@ -0,0 +1,19 @@
name = "meshjs/escrow"
version = "0.0.0"
license = "Apache-2.0"
description = "Aiken contracts for project 'meshjs/escrow'"

[repository]
user = "meshjs"
project = "escrow"
platform = "github"

[[dependencies]]
name = "aiken-lang/stdlib"
version = "1.8.0"
source = "github"

[[dependencies]]
name = "sidan-lab/aiken-utils"
version = "0.0.4-beta"
source = "github"
Empty file.
Empty file.
14 changes: 14 additions & 0 deletions packages/contracts/src/escrow/aiken-workspace/plutus.json
@@ -0,0 +1,14 @@
{
"preamble": {
"title": "meshjs/escrow",
"description": "Aiken contracts for project 'meshjs/escrow'",
"version": "0.0.0",
"plutusVersion": "v2",
"compiler": {
"name": "Aiken",
"version": "v1.0.24-alpha+982eff4"
},
"license": "Apache-2.0"
},
"validators": []
}
55 changes: 55 additions & 0 deletions packages/contracts/src/escrow/aiken-workspace/readme.md
@@ -0,0 +1,55 @@
# escrow

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).
Empty file.
Empty file.

0 comments on commit f634e63

Please sign in to comment.