Skip to content

Commit

Permalink
Merge pull request #2 from rhystmorgan/tests
Browse files Browse the repository at this point in the history
list function tests
  • Loading branch information
rhystmorgan authored Apr 27, 2024
2 parents 3f39913 + 3ebf983 commit 1061558
Show file tree
Hide file tree
Showing 34 changed files with 180 additions and 2,315 deletions.
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
# Fresh project
# Okapi

Your new Fresh project is ready to go. You can follow the Fresh "Getting
Started" guide here: https://fresh.deno.dev/docs/getting-started
Okapi is a helper function library written aiken to make drafting cardano smart contracts easier and faster.

### Usage

Make sure to install Deno: https://deno.land/manual/getting_started/installation

Then start the project:
add the `lib/okapi-aiken` directory to your aiken project and import it with

```
deno task start
use okapi-aiken/okapi as ok
```

This will watch the project directory and restart as necessary.

in case of deno commad issues:
now you can use any of the okapi helper functions to your validators

```
export DENO_INSTALL="/home/plutus/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
validator(o: VerificationKeyCredential) {
fn spend(d: Datum, r: Redeemer, c: ScriptContext) -> Bool {
ok.tx_signed_by(c.transaction, o)
}
}
```
1 change: 0 additions & 1 deletion beneficiary.addr

This file was deleted.

1 change: 0 additions & 1 deletion beneficiary.sk

This file was deleted.

12 changes: 0 additions & 12 deletions components/Button.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions components/Input.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions deno.json

This file was deleted.

8 changes: 0 additions & 8 deletions dev.ts

This file was deleted.

7 changes: 0 additions & 7 deletions fresh.config.ts

This file was deleted.

24 changes: 0 additions & 24 deletions fresh.gen.ts

This file was deleted.

14 changes: 0 additions & 14 deletions generate-credentials.ts

This file was deleted.

19 changes: 0 additions & 19 deletions generate-owner-beneficiary.ts

This file was deleted.

173 changes: 0 additions & 173 deletions inc.ts

This file was deleted.

Loading

0 comments on commit 1061558

Please sign in to comment.