-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
executable file
·50 lines (40 loc) · 1.14 KB
/
Justfile
File metadata and controls
executable file
·50 lines (40 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env -S just -f
DENO_RUN := "deno run -P --unstable-kv --allow-run=$(which elementsd)"
CLIENT := "./service/client.ts"
SERVER := "./service/server.ts"
# Display available commands
[private]
usage:
@just -l
# Build the WASM binary
wasm:
cd fadroma/platform/SimplicityHL && just wasm
# Typecheck the source code
check:
deno check --allow-import program/*.ts service/*.ts
# Run the application's test suite
test:
deno test -P --no-check test.ts
# Run the platform integration test suite
test-simf:
cd fadroma/platform/SimplicityHL && just test
# Run the framework test suite
test-fadroma:
cd fadroma && just test
# Run the command-line client
client +ARGS='':
#!/usr/bin/env bash
set -xueo pipefail
{{DENO_RUN}} {{CLIENT}} {{ARGS}}
# Run the escrow service
server +ARGS='':
#!/usr/bin/env bash
set -xueo pipefail
{{DENO_RUN}} {{SERVER}} --rpcurl=spawn {{ARGS}}
#BIN_PROGRAM := "./program/escrow.ts"
# Deposit funds as escrow program
#deploy price="1" amount="1":
# {{BIN_PROGRAM}} deploy {{price}} {{amount}}
# Withdraw funds from program
#consume price="1" amount="1":
# {{BIN_PROGRAM}} consume {{price}} {{amount}}