mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-24 09:53:09 -05:00
* feat(wallet): Use mempool.space as a secondary fee estimation source * fix: warn if mempool client cannot be instantiated * make clippy happy * nitpick: rename clippy_check to clippy in justfile * rename `estimate_fee_rate_from_mempool` to `estimate_fee_rate_from_histogram` for clarity * dprint fmt * make clippy happy * change teacing level back to debug! * change log levels * refactors * refactor: estimate_fee and min_relay_fee * serde camel case Co-authored-by: Byron Hambly <byron@hambly.dev> * refactors * Add comments, use Weight struct where possible * fmt, fix testrs * dont fallback to bitcoin::MAX, fail instead * make mempool space optional * fmt * refactor: use estimate_fee(...) in max_giveable(...) * refactor max_giveable(...) * refactor max_giveeable to return fee as well, remove safety margin for fee * fix compile * fmtr * fix(integration test): Use pre-calculated cancel / punish fees for assert_alice_punished * fix(integration test): Use real fees for asserts * sync wallet before transaction_fee call * split send_to_address into sweep_balance_to_address_dynamic_fee --------- Co-authored-by: Byron Hambly <byron@hambly.dev>
74 lines
1.6 KiB
Makefile
74 lines
1.6 KiB
Makefile
# Show help for each of the justfile recipes
|
|
help:
|
|
@just --list
|
|
|
|
# Build Monero C++ Codebase (currently disabled)
|
|
# build_monero_cpp:
|
|
# just update_submodules
|
|
# cd monero-sys/monero && make -j8 release
|
|
|
|
# Clean the Monero C++ Codebase
|
|
clean_monero_cpp:
|
|
rm -rf monero-sys/monero/
|
|
just update_submodules
|
|
|
|
# Builds the Rust bindings for Monero
|
|
monero_sys:
|
|
just update_submodules
|
|
cd monero-sys && cargo build
|
|
|
|
# Start the Tauri app
|
|
tauri:
|
|
cd src-tauri && cargo tauri dev --no-watch -- -- --testnet
|
|
|
|
# Install the GUI dependencies
|
|
gui_install:
|
|
cd src-gui && yarn install
|
|
|
|
# Start the GUI Dev Server
|
|
gui:
|
|
cd src-gui && yarn dev
|
|
|
|
# Build the GUI
|
|
gui_build:
|
|
cd src-gui && yarn build
|
|
|
|
# Run the Rust tests
|
|
tests:
|
|
cargo nextest run
|
|
|
|
# Tests the Rust bindings for Monero
|
|
test_monero_sys:
|
|
cd monero-sys && cargo nextest run
|
|
|
|
# Builds the ASB and Swap binaries
|
|
swap:
|
|
cd swap && cargo build --bin asb --bin=swap
|
|
|
|
# Updates our submodules (currently only Monero C++ codebase)
|
|
update_submodules:
|
|
cd monero-sys && git submodule update --init --recursive --force
|
|
|
|
# Run clippy checks
|
|
clippy:
|
|
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
# Check the bindings for the Tauri API
|
|
check_bindings:
|
|
cd src-gui && yarn run check-bindings
|
|
|
|
# Generate the bindings for the Tauri API
|
|
bindings:
|
|
cd src-gui && yarn run gen-bindings
|
|
|
|
# Kill all instances of monero-wallet-rpc running in the background
|
|
kill_monero_wallet_rpc:
|
|
killall monero-wallet-rpc && pkill -f monero-wallet-rpc
|
|
|
|
# Format the code
|
|
fmt:
|
|
dprint fmt
|
|
|
|
# Sometimes you have to prune the docker network to get the integration tests to work
|
|
docker-prune-network:
|
|
docker network prune -f
|