launches multiple instances of farcaster to take offers from farcaster.dev. a lot of functionality is not exposed yet, but quite trivial to do - just open up issues/PRs.
use a configuration .edn file to configure:
:address-btcis the equivalent of the--btc-addroption forswap-cli makeandswap-cli take:address-xmris the equivalent of the--xmr-addroption forswap-cli makeandswap-cli take:data-dir-rootpoints to the directory where your.data_dir_$SWAP_INDEXdirs will live:farcaster-binaries-pathpoints to the directory containingfarcasterdandswap-cli:farcaster-config-toml-filepoints to the.tomlfile containing your configuration:monero-wallet-rpc-binarypoints to themonero-wallet-rpcbinary:monero-wallet-rpc-optionsis a string of options to pass tomonero-wallet-rpc:monero-wallet-rpc-start-rpc-portis the start of the rpc port to use for themonero-wallet-rpcinstances spawned
A sample configuration file can be found here. The config file's location is passed to parallel-offer-taker with the --config flag, else config-sample.edn will be read in.
clj -M:native-imageor download binary from the latest action build from https://github.com/farcaster-project/parallel-offer-taker/actions/workflows/native-image.yaml?query=branch%3Amain to the directory containingconfig.edn- recommendation: first test whether your farcasterd works manually with the
:farcaster-config-toml-file. - launch with
./parallel-offer-taker $SWAP_START_INDEX_INCLUSIVE $SWAP_END_INDEX_EXCLUSIVE. i.e../parallel-offer-taker 0 50would launch 50 swaps, with their respective.data_dir_$SWAP_INDEXenumerated from 0 - 49. currently, these directories must be created ahead of time - the binary won't do it for you. - any farcasterd instance spawned that finishes all its running swaps will be killed automatically. If you want the number of swaps to be sustained, pass the
--sustainflag toparallel-offer-taker. - if you kill
parallel-offer-taker, all swaps it spawned will die too. - if you relaunch
parallel-offer-takerand any swaps in the range$SWAP_START_INDEX_INCLUSIVE..$SWAP_END_INDEX_EXCLUSIVEwere left unfinished before,parallel-offer-takerwill automatically restore their latest checkpoint