-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
32 lines (24 loc) · 1.28 KB
/
justfile
File metadata and controls
32 lines (24 loc) · 1.28 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
# Usage:
# just pay <address> <amount>
# Example:
# just pay mtsCkPiHCE5gdvhV9aGD4AbpArMQADc3Ju 1.0
pay address amount:
@echo "Loading wallet..."
docker exec -it esplora-esplora-1 /srv/explorer/bitcoin/bin/bitcoin-cli -regtest -rpcwallet=default -rpccookiefile=/data/bitcoin/regtest/.cookie loadwallet default || true
@echo "generate funds..."
docker exec -it esplora-esplora-1 /srv/explorer/bitcoin/bin/bitcoin-cli -regtest -rpcwallet=default -rpccookiefile=/data/bitcoin/regtest/.cookie -generate 1 || true
@echo "Sending {{amount}} BTC to {{address}}..."
docker exec -it esplora-esplora-1 /srv/explorer/bitcoin/bin/bitcoin-cli -regtest -rpcwallet=default -rpccookiefile=/data/bitcoin/regtest/.cookie sendtoaddress {{address}} {{amount}}
@echo "Mining block to {{address}}..."
docker exec -it esplora-esplora-1 /srv/explorer/bitcoin/bin/bitcoin-cli -regtest -rpcwallet=default -rpccookiefile=/data/bitcoin/regtest/.cookie generatetoaddress 1 {{address}}
@echo "Done."
check: wasm
cargo fmt -- --check
cargo check
cargo test --all
cargo clippy --all-targets --all-features -- -D warnings
cargo deny check
wasm:
wasm-pack build --dev --target web --out-name index ./crates/bcr-ebill-wasm
serve:
http-server -g -c-1 -p 8081 ./crates/bcr-ebill-wasm/