Commit graph

9 commits

Author SHA1 Message Date
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
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
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
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
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
Thebora Kompanioni
354cc97d6a
dev: use joinmarket-webui-dev-standalone in regtest setup (#99)
* feat: use joinmarket-webui standalone container in regtest setup

* dev: use build flag --docker-install in regtest env

* dev: build first jm instance from master; remove image based on btcpayserver

* dev: fix creating wallets in docker setup 'latest'

* update: use newest dev image from public registry

* review: remove checksum of dev-standalone image

* review: add '--pull' arg to docs for rebuilding regtest setup
2022-02-21 14:39:59 +01:00
Thebora Kompanioni
5d886d7a3f
Enable coinjoin on regtest env (#6)
* fix: prevent 'config value not set' on cj in regtest env

'max_cj_fee' config values must be present when invoking a
coinjoin via the api. the default config for the regtest env
did not include these values before, hence they could not
be overridden in docker-compose setup file.

* dev: switch irc server from miniirc to ergochat

* dev: start second joinmarket container

In order to successfully perform a CoinJoin, there must be at least one
maker. This commit adds a second JoinMarket container with
jmwalletd accessible on port 29183.

* dev: add helper script to mine a block

* dev: add container switch to regtest-control script

* dev: invoke mine-block in regtest-control script

* dev: add flag '--unmatured' to regtest-control script

Sometimes it is desired that block rewards do not reach maturity
immediately. This is convenient if you want to supply several wallets
with coins, but do not want to generate many blocks all the time.

* dev: add helper script to start maker service

This script helps in providing both JoinMarket containers a wallet with
spendable coins and starting the Maker Service in the secondary
container. Its main goal is to make CoinJoin transactions possible in the
regtest environment.

* dev: move common functions to script common.sh

* fix: use correct irc host in docker setup

* dev: use ergochat image from ghcr.io

* dev: dont lock secondary wallet in setup script

normally the wallet should be locked, but it seems this leads to the
maker service responding very slowly which causes failing coinjoins.
as the secondary instance is never interacted with directly, we can
refrain from unlocking the wallet for now.

* docs: add debug log command to docker readme

* cleanup: rename script 'regtest-control' to 'fund-wallet'

* dev: upgrade joinmarket from v0.9.3 to use current master branch

* review: add more descriptive comments and cleanup files
2022-01-22 17:09:14 +01:00