Commit graph

58 commits

Author SHA1 Message Date
theborakompanioni
037bf95784
chore(dev): expose orderbook watcher for dev container 2026-08-09 20:37:53 +02:00
theborakompanioni
c41b40bec9 dev(regtest): fund jar 0, 1 and 4 of dev wallet 2026-07-26 15:42:24 +02:00
Thebora Kompanioni
64ecd7ad77
feat: plan scheduled sweep (#1339)
Some checks are pending
Build / build (v26.3.0) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Deploy Storybook / deploy (push) Waiting to run
* refactor: add reason to scheduler error messages

* fix: dismiss schedule confirm dialog on error

* chore(i18n): distinct scheduler starting/stopping messages

* chore(sweep): remove redundant manual destination validation

* chore(sweep): initial sweep options

* chore(ui): add slider component

* chore(sweep): add rounding chance option

* feat(sweep): ability to add/remove destinations

* chore(sweep): use plan tumbler mutation

* refactor(sweep): use tumblerstartMutation

* refactor(sweep): externalize SweepForm

* feat(sweep): ability to set min/max number of collaborators

* chore(sweep): increase time_lambda_seconds in insecure test options

* chore(sweep): fix progress step of quick sweep

* chore(sweep): start refactor schedule entry

* chore(sweep): preserve raw data in ScheduleEntry

* feat(sweep): show destination addresses

* chore(sweep): scroll to top after start/stop

* chore(ui): add Item component

* fix: only abort single taker runs on send page

* chore(sweep): schedule entries with Item component

* chore(sweep): show wait time before next action

* chore(sweep): schedule entries in accordion

* chore(sweep): remove scheduler.progress_current_state_wait_before_next message

* chore(sweep): tab for completed entries

* refactor(sweep): align Schedule object structure

* chore(sweep): display error message on failed actions

* chore(sweep): display completed scheduled sweep

* chore(sweep): move stop button from child component to page

* feat(sweep): ability to review scheduled sweep plan

* chore(sweep): increase schedule polling from 3s to 10s

* chore(sweep): hourglass icon for waiting alerts

* chore(sweep): adapt buttons, labels and alert texts

* fix(sweep): default min confirmations between phases

* chore(sweep): improve time estimate on sweeps

* chore(sweep): show pending tasks in details

* feat(sweep): ability to configure mintxcount

* chore(storybook): add slider, sidebar and item stories

* test(sweep): verify add/remove sweep destination input

* test: load decorators from story meta config

* chore(sweep): add makeSessionIdleTimeoutSeconds to form values

* chore(sweep): reload schedule if not stale or terminated

* chore(sweep): more details in sections

* chore(sweep): reorder entry details

* chore(sweep): show transaction info in destination section

* chore(sweep): estimate duration with fixed runtime info of maker phases

* chore(regtest): setup dummy wallet fidelity bonds

* fix(sweep): maker idle timeout less than runtime duration

* chore(sweep): use taker_utxo_age as min confs in sweep preconditions

* chore(build): add task test:coverage

* chore(sweep): max number of destination addresses

* chore(sweep): maxNumberOfDestinations
2026-07-23 13:06:40 +02:00
Thebora Kompanioni
290044e9d2
dev(regtest): fix regtest init of standalone-ng containers (#1321)
* dev(regtest): remove unnecessary env vars

* dev(regtest): expose jmwalletd port for init routine

* Fix typo in BITCOIN__RPC_PASSWORD to "regtest"

---------

Co-authored-by: Kishore B <kishorebsm8@gmail.com>
2026-07-08 10:37:26 +05:30
Thebora Kompanioni
50562ba897
dev(regtest): rectify tor setup and upgrade to core v29 (#1298)
Some checks are pending
Build / build (v26.3.0) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Deploy Storybook / deploy (push) Waiting to run
* dev(regtest): adapt bitcoin rpc users

* dev(regtest): update to bitcoind v30.0

* chore(regtest): create descriptor wallets for clientserver regtest containers

* chore(regtest): add backend descriptor to clientserver directory node

* chore(regtest): rectify tor setup and downgrade to core v29

* dev(regtest): set ENSURE_WALLET to false and remove unused DESCRIPTOR_WALLET_NAME for ng nodes
2026-06-28 14:22:36 +02:00
Kishore B
f0457b34ee
chore(regtest): joinmarket-ng as the default primary backend (#1281) 2026-06-16 17:44:44 +02:00
Kishore B
84a0e4d98a
feat: integrate standalone-ng docker wrapper with Jam Web UI (#1265)
Some checks are pending
Build / build (v24.11.1) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Deploy Storybook / deploy (push) Waiting to run
* feat: integrate standalone-ng docker wrapper with Jam Web UI

- Add Dockerfile and entrypoint for standalone-ng wrapper service
- Update docker-compose files to support standalone-ng container(joinmarket6)
- Enhance log retrieval and frontend logic for new log file layout
- Update Vite config and constants for standalone-ng backend mode
- Improve documentation for regtest and backend selection

Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>

* chore(regtest): zero absolute offers for makers in regtest env

* chore: align npm dev command names

* chore(regtest): set minimum makers to 2 for joinmarket-ng backends

* chore(regtest): use jam-dev-standalone-ng:master image

---------

Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
Co-authored-by: theborakompanioni <theborakompanioni+github@gmail.com>
2026-06-07 18:37:53 +02:00
Thebora Kompanioni
454daa2839
chore(regtest): initial joinmarket-ng backend for regtest environment (#1240)
* chore(regtest): initial joinmarket-ng backend for regtest environment

Adds jmwalletd, directory servers, makers, and bitcoind to the regtest
docker-compose environment so jam can be developed against the jm-ng
backend end-to-end.

chore(regtest): wire docker compose env and vite dev proxy for jm-ng

Connects the local regtest containers into a single compose network,
adds tor and fund-wallet helpers, and points Vite's dev proxy at the
local jmwalletd instance.

fix(tags): recognize cj-change, used-empty, and flagged UTXO statuses

joinmarket-ng's WalletService emits four statuses jam's JmPlainTagValue
didn't cover: 'cj-change' (deanonymising change from our CJ),
'used-empty' (previously-used address with zero balance), and 'flagged'
(address shared in a CJ that later failed). They fell through to the
generic 'default' badge with no distinguishing styling.

Add them to JmPlainTagValue and the status->variant map. 'used-empty'
maps to the existing 'used' variant, 'flagged' to 'reused' (both signal
a used address the user should avoid reusing). Add a dedicated
'cj-change' badge variant (emerald) next to 'cj-out' so the
deanonymising change output is visually distinct from an equal-amount
CJ output.

fix(send): keep direct send available with maker

Only block collaborative sends while the maker service is running. Direct sends stay enabled and the form explains why the collaborative toggle is unavailable.

Changelog: Allow direct sends while the maker service is running

docs(dev): explain jm-ng backend workflow

fix(auth): only clear auth on invalid_token 401s

Previously every 401 response cleared the session and logged the user out. jm-ng returns 401 for service-state errors (e.g. POST /tumbler/stop when nothing is running), which should never drop the session. Inspect the WWW-Authenticate header and only clear auth when the server signals ``error="invalid_token"``.

Changelog: Non-auth 401 responses no longer log the user out.

fix(dev): proxy /jmws to the jm-ng HTTPS port

jm-ng serves WebSocket on the same port as the HTTPS API. The `jm-ng:dev` script used to override JMWALLETD_WEBSOCKET_PORT to 32283, but the regtest stack exposes that port without a matching listener, so vite proxied WebSocket upgrades into a dead port and the handshake returned empty. Default the env var to JMWALLETD_API_PORT and drop the override.

Changelog: Fix WebSocket proxying in the local jm-ng dev setup.

fix(dev): correct jm-ng websocket port and proxy targets

Update the README and developer docs to reflect that both ports must be
set when overriding for a custom jm-ng setup.

fix(dev): correct jm-ng websocket port (#1237)

chore(dev): distinct server configs for various backends

* chore(regtest): address jm-ng review comments

---------

Co-authored-by: m0wer <m0wer@sgn.space>
Co-authored-by: Parth Bandwal <143504541+parrth20@users.noreply.github.com>
2026-05-05 13:52:41 +02:00
theborakompanioni
29134dc463
dev(regtest): demo cookie file auth config param 2026-04-09 20:29:35 +02:00
Nischal Shetty
3e1b4b80b5
initialize Jam V2
Co-authored-by: theborakompanioni <theborakompanioni+github@gmail.com>
2026-04-09 20:29:28 +02:00
theborakompanioni
e79e3d3183
chore(regtest): use prebuilt vanitytorgen image 2025-06-15 12:38:26 +02:00
Thebora Kompanioni
5491e88b53
chore: update regtest deps (#882)
* dev(regtest): update ergochat to v2.15.0

* dev(regtest): add new config param wallet_caching_disabled

* dev(regtest): update bitcoin core to v28

* dev(regtest): detach and wait for docker services

* dev(regtest): pin nginx image version

* dev(regtest): add healthcheck to bitcoind

* dev(regtest): add healtcheck to secondary jm containers

* dev(regtest): add healthcheck to primary jm containers

* dev(regtest): add healthcheck to nginx

* dev(regtest): update vanitytorgen repo ref
2025-05-02 15:19:31 +02:00
theborakompanioni
11c524b8aa
dev(regtest): update ergochat to v2.15.0 2025-03-16 19:53:45 +01:00
theborakompanioni
9c2734884b
dev(regtest): adapt regtest docker files 2025-03-14 18:31:40 +01:00
Thebora Kompanioni
d0d13e9e3d
dev: use 'npm run dev' to run app in dev mode (#840) 2024-09-11 13:09:28 +02:00
Thebora Kompanioni
707f210335
dev(regtest): update bitcoin core from v26 to v27 (#795)
* dev(regtest): use polarlightning/bitcoind docker image

* dev(regtest): update bitcoin core from v26 to v27
2024-07-19 13:56:17 +02:00
Thebora Kompanioni
da8b0a908e
dev(setup): switch to docker compose v2 (#784)
* dev(setup): switch to docker compose v2

* dev(setup): remove deprecated version property from docker files
2024-07-04 22:19:23 +02:00
Thebora Kompanioni
d4466a056c
dev(regtest): update bitcoin core to v26 (#710) 2023-12-20 23:23:06 +01:00
Overload3910
e48d1b332d
dev(regtest): update btc-rpc-explorer to v3.4.0 (#704) 2023-12-06 11:32:42 +01:00
Thebora Kompanioni
26bb17badc
chore(dev): dev setup info page (#686) 2023-10-31 10:09:47 +01:00
Thebora Kompanioni
11ee5b4fa3
refactor: Consistent use of walletName vs walletFileName (#671)
* refactor: consistent use of displayName vs walletFileName

* refactor: Settings component from jsx to tsx

* refactor: Wallets component from jsx to tsx

* refactor: Onboarding component from jsx to tsx

* refactor: ScheduleProgress component from jsx to tsx

* chore(i18n): consistent use of global.errors.reason_unknown

* refactor: CreateWallet component from jsx to tsx

* refactor: BitcoinQR from jsx to tsx

* refactor: Receive component from jsx to tsx

* refactor: Earn component from jsx to tsx

* dev(regtest): switch to python:3.11-slim-bookworm as base image

see https://github.com/JoinMarket-Org/joinmarket-clientserver/pull/1484#issuecomment-1751814593

* chore(dev): do not log error when fetch was aborted
2023-10-08 15:44:31 +02:00
Thebora Kompanioni
4c76d6ae23
feat: new authentication mechanism (access/refresh token) (#665)
* dev(auth): add method postToken to JmWalletApi

* refactor: remove type ServiceInfoUpdate

* dev(auth): add Single- and RefreshTokenContext types

* Revert "config: use joinmarket v0.9.10 (#664)"

Commit was temporarily till the new auth mechanism can be handled.
This reverts commit c31ba67bfb.

* dev(auth): save auth context to session

* dev(auth): refresh token periodically

* dev(auth): maintain CurrentWallet reference when renewing auth token

* refactor: server.version must be present

* dev(auth): lower token refresh interval in dev mode

* dev(auth): add distinct method to parse auth props
2023-10-08 15:08:52 +02:00
Gigi
c31ba67bfb
config: use joinmarket v0.9.10 (#664) 2023-09-22 02:42:16 +02:00
Thebora Kompanioni
028f32166a
feat: import wallet (#621)
* chore(regtest): do not build tor locally in regtest env

* feat(import): add rescanning param to session request

* feat(api): add rescanblockchain request to JmWalletApi

* feat: add import wallet button to wallets page

* refactor: externalize component PreventLeavingPageByMistake

* refactor: externalize component WalletCreationForm

* wip: use WalletCreationForm in ImportWallet

* refactor: externalize SeedWordInput and rename to MnemonicWordInput

* feat(api): add wallet recover request to JmWalletApi

* build(deps): bump caniuse-lite to v1.0.30001511

* wip(import): start wallet after successful import

* refactor: externalize component WalletCreationConfirmation

* wip(import): use WalletCreationConfirmation view in component WalletImport

* dev(regtest): add funds to dummy wallet during initialization of local setup

* wip(import): update gaplimit before rescanning chain

* wip(import): prevent import if rescan is in progress

* wip(import): ability to customize gaplimit and blockheight

* wip(import): show duration hint when importing wallet

* wip(import): hide sensitive info while importing wallet

* wip(import): reset gaplimit to original value after importing

* wip(import): add description for blockheight and gaplimit

* wip(import): add cancel button to WalletCreationForm

* refactor: externalize component MnemonicPhraseInput

* wip(import): show rescanning indicator on main wallet view

* wip(import): show rescanning indicator in navbar

* wip(import): disable sending when rescanning is in progress

* wip(import): disable navbar/earn/jam when rescanning is in progress

* Update src/i18n/locales/en/translation.json

Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>

* fix(import): disable viewing jars on main wallet if rescanning is active

* wip(import): prevent creating new address when rescanning

* fix(import): reload wallet info after rescanning finishes

* refactor: move auto reloading code from WalletContext to WalletInfoAutoReload

* refactor: remove unused method reloadDisplay

* wip(import): reload recursively till balance is found

* wip(import): expand import options by default

* ui: add 'dev' badge to buttons only visible in dev env

---------

Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
2023-09-08 13:26:59 +02:00
Overload3910
da39aa3516
dev(regtest): expose port of bitcoind in development setup (#630) 2023-07-06 21:55:12 +02:00
Thebora Kompanioni
53a16d954d
dev(regtest): upgrade bitcoin core from v23 to v25 (#629) 2023-07-05 15:13:10 +02:00
Thebora Kompanioni
cbdeb3c3db
dev(regtest): add block explorer to dev environment (#622) 2023-07-05 15:00:03 +02:00
Thebora Kompanioni
531adb6ffa
feat(Jam): add success message (#599)
* refactor: add type SimpleAlert

* refactor(Jam): jsx to tsx

* feat(Jam): add success message

* chore: clarify workaround and add hint for dev mode

* refactor(PageTitle): jsx to tsx

* fix(Jam): reload data when leaving success screen

* feat(regtest): set time between blocks to 11s

* feat(regtest): set liquiditywait to 13s

---------

Co-authored-by: Gigi <dergigi@pm.me>
2023-02-08 13:44:49 +01:00
Thebora Kompanioni
d9b0415dff
fix: install python3-venv in regtest environment (#585)
* fix: install python3-venv in regtest environment

* chore: change payjoin port from 8080 to 8082
2023-02-01 14:43:06 -06:00
Thebora Kompanioni
6e2ee47538
dev(regtest): 'wait-for-bitcoind' feature (#559)
* dev(regtest): 'wait-for-bitcoind' feature
2022-11-09 18:45:19 +01:00
Thebora Kompanioni
fda77c202d
fix: do not enable debug features on npm start (#549)
* dev(flags): add distinct dev mode for local development

* docs(dev): npm start -> npm run dev:start

* chore(features): move skipWalletBackupConfirmation flag to debugFeatures.ts
2022-10-26 15:11:41 +02:00
Thebora Kompanioni
a6d515076a
regtest: start additional maker service (#520)
* regtest: adapt regtest params for easier testing

* regtest: start two makers in dev setup

* regtest: own bitcoin rpcauth for tertiary jm instance

* docs(regtest): add info about tertiary container
2022-10-13 14:07:48 +02:00
Thebora Kompanioni
5ee1fdcd6c
regtest(fees): randomize max fee settings (#533) 2022-10-06 14:01:36 +02:00
Thebora Kompanioni
db292356f5
fix: precondition for collaborative transactions (#485)
* fix: min confs of preconditions for all utxos instead of single

* fix: i18n phrases of collaborative transaction preconditions

* wip: use new scheduler preconditions in Jam component

* fix: only report utxos without retries of no retry is left within jar

* feat(regtest): set taker_utxo_retries and maker_timeout_sec config vars for improved testability

* test(preconditions): add test for CoinjoinRequirements

* fix: enable starting scheduler even if preconditions are not fulfilled

* review: fix wording

Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
2022-09-15 18:52:49 +02:00
Thebora Kompanioni
0d704158f4
fix: create non-descriptor wallet (#487)
* dev(regtest): remove nbxplorer in favor of simpler custom regtest-initializer

* dev(regtest): use jsonrpc 2.0 requests to create and load wallet

* dev(regtest): upgrade bitcoin core from v22 to v23

* fix(regtest): wait-for-bitcoind should wait for at least >=0 blocks

* dev(regtest): use jam-dev-standalone

* dev(regtest): add npm script regtest:build

this command will build the development setup with docker cache
enabled. usually must fast as it will only pull in newer base
images and not download and recompile jm again. this is the
preferred way if you made only a few adaptions to the images
and e.g. not want to fetch the current master of jm.
2022-09-09 17:25:52 +02:00
Thebora Kompanioni
ace3734712
feat: ability to retrieve logs (#478)
* feat: ability to retrieve logs

* feat: automatically scroll to bottom of log content div

* dev: switch regtest target container with env var

* dev: change secondary container image to new jam namespace

* dev: add backend types 'native' and 'jam-standalone' to setupProxy
2022-09-09 11:08:01 +02:00
Thebora Kompanioni
0a7b709d59
dev: bullseye as base image for regtest containers (#467) 2022-08-18 11:44:42 +02:00
Thebora Kompanioni
9907901df9
dev: install gpg in regtest containers (#466) 2022-08-11 12:58:21 +02:00
Thebora Kompanioni
dd7943b979
fix: serialize values of /maker/start request body as strings (#458)
* fix: serialize values of /maker/start request body as strings

* Update src/libs/JmWalletApi.ts

Co-authored-by: D <10026790+dnlggr@users.noreply.github.com>
2022-08-11 12:19:00 +02:00
Thebora Kompanioni
b70b114ffa
regtest: rename default wallet to Satoshi (#460) 2022-08-09 12:47:01 +02:00
Thebora Kompanioni
81b3e73f24
regtest: setup with local tor in container (#396) 2022-08-02 13:15:51 +02:00
Thebora Kompanioni
ba265dea72
regtest: delete wallet lockfiles before startup (#374)
* regtest: delete wallet lockfiles before startup

* regtest: expose external tor directory to primary regtest container

* dev: adhere to new standalone image changes
2022-07-13 14:10:46 +02:00
Thebora Kompanioni
141fb0c2b3
docs: update dev setup readme (#306) 2022-06-06 11:21:39 +02:00
Thebora Kompanioni
fd954d1c8d
docs: describe 'common flow' in regtest readme (#291) 2022-06-02 13:17:59 +02:00
Thebora Kompanioni
44fbe0169c
dev: directory node setup for regtest (#259)
* dev: update regtest config for JM v0.9.6 in dev setup

* dev: use jam's 'default' cj_max fee settings in dev setup

* dev: update secondary dev container config

* dev: start directory node in dev setup

dev: start instance 1 with access local directory node

dev: connect primary and secondary instances to local directory node

dev: ability to specify jm branch in primary container

dev: remove symlink for tor in directory-node as #1271 is fixed upstream

dev: inject hs dir in directory-node instance

dev: add script to create onion addresses for regtest setup

dev: add prepare-setup.sh script to write .env.generated file

dev: cleanup directory-node setup and scripts

* cleanup: clarify hs directory handling

* cleanup: fix typos and remove unneeded commands in prepare setup script

* dev: revert changes to regtest fee settings

* dev: use example env file for all other commands than 'up'

* dev: fix directory node setup on restarts

* dev: adapt permissions of hs directory in regtest directory node

* dev: ability to follow logs of directory node via npm script

* fix: directory node scripts compatibility

* Update docker/regtest/dockerfile-deps/joinmarket/directory_node/README.md

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* Update docker/regtest/.gitignore

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* Update docker/regtest/dockerfile-deps/joinmarket/directory_node/README.md

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* review: fix newlines and typos

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-18 15:42:59 +02:00
Thebora Kompanioni
c63bd25248
dev: regtest config alignment (#268)
* dev: use same fee settings as jam release in regtest setup

* dev: use default value for 'taker_utxo_retries' in regtest setup

* dev: use default value for 'taker_utxo_age' in regtest setup

* fix: move comment to own line in regtest default.cfg
2022-05-16 17:20:41 +02:00
Daniel
0e1d0a8a69
feat: scheduled transactions prototype (#242)
* Use backend fork

* Add minimal schedule tab

* Add feature flag

* Update title

* Change branch in regtest setup

* Revert ts config

* Change weird formik behavior

* Fix warning

* Reset alerts

* Use loading flag when starting / stopping
2022-05-11 10:05:01 +02:00
Gigi
a83638284b
docs: add npm start 2022-04-27 10:14:40 +02:00
Thebora Kompanioni
f8aa3e786b
Update regtest env (#178)
* dev: interact with regtest env via npm scripts

* dev: use default jm_gaplimit in regtest env

* dev: remove tor config from primary regtest container
2022-03-16 13:49:39 +01:00
Thebora Kompanioni
41648c4728
chore: check for dependencies in dev setup scripts (#147)
* chore: check for dependencies in dev setup scripts

* chore: fix some shellcheck warnings in setup scripts

* chore: fix SC2155 shellcheck warnings
2022-03-03 14:16:21 +01:00