-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from rhystmorgan/tests
list function tests
- Loading branch information
Showing
34 changed files
with
180 additions
and
2,315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.