-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 939 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 939 Bytes
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
include .env.secrets
export
build_image:
@docker build -t klever-elements .
run_image:
@docker run --env-file .env.docker -d -p 3000:3000 \
-e BREEZ_KEY="${BREEZ_KEY}" \
-e MNEMONIC=${MNEMONIC} \
--name klever-elements-container klever-elements
run_and_open:
CONTAINER_ID=$$(make run_image) ; \
docker exec -it $$CONTAINER_ID /bin/bash
ct_build:
simply build --entrypoint $(FILE) --witness $(WITNESS)
ct_deposit_address:
simply deposit --entrypoint $(FILE) --witness $(WITNESS)
ct_set_balance:
curl -H "Accept: application/json" "https://liquidtestnet.com/faucet?address=$(ADDRESS)&action=lbtc"
ct_get_balance:
curl -H "Accept: application/json" "https://blockstream.info/liquidtestnet/api/address/$(ADDRESS)/utxo"
ct_debug:
simply run --entrypoint $(FILE) --logging debug --witness $(WITNESS)
ct_test:
simply test --entrypoint $(FILE) --witness $(WITNESS)
ct_stats:
simply build --entrypoint $(FILE) --stats