-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathjustfile
50 lines (34 loc) · 1.21 KB
/
justfile
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
#################
# Demo Commands #
#################
status:
RUST_LOG=info ./target/release/purrfect_vault status
deposit:
RUST_LOG=info ./target/release/purrfect_vault deposit
trigger:
RUST_LOG=info ./target/release/purrfect_vault trigger $({{ bcli }} -rpcwallet=miner getnewaddress)
steal:
RUST_LOG=info ./target/release/purrfect_vault steal $({{ bcli }} -rpcwallet=miner getnewaddress)
cancel:
RUST_LOG=info ./target/release/purrfect_vault cancel
complete:
RUST_LOG=info ./target/release/purrfect_vault complete
###################################
# Build and boostrapping commands #
###################################
bitcoin_datadir := "./bitcoin-data"
bcli := "./bitcoin-core-cat/src/bitcoin-cli -regtest -rpcuser=user -rpcpassword=password"
start-bitcoind *ARGS:
mkdir -p {{ bitcoin_datadir }}
./bitcoin-core-cat/src/bitcoind -regtest -timeout=15000 -server=1 -txindex=1 -rpcuser=user -rpcpassword=password -datadir={{bitcoin_datadir}} {{ ARGS }}
stop-bitcoind:
{{ bcli }} stop
clean-bitcoin-data:
rm -rf {{ bitcoin_datadir }}
build:
cargo build --release
bootstrap:
bash ./scripts/build_bitcoincore.sh
just build
just clean-bitcoin-data
just start-bitcoind