Commit Graph

47 Commits

Author SHA1 Message Date
Gerlof van Ek
02ceb89d14 Fix: Rate tolerance. (#339)
* Fix: Rate tolerance.

* Fix GUI Rate tolerance.

* Fix: json/rate

* Fix: Mismatch

* Fix: Use backend handle calc.

* Cleanup

* Fix: format_amount

* Add test.
2025-07-28 21:43:06 +02:00
tecnovert
7df2f1b290 Add check for minimum sqlite version. 2025-05-05 00:38:02 +02:00
tecnovert
4b23834af8 Rename getNewSecretKey 2025-01-03 22:48:00 +02:00
tecnovert
7b03ce4769 Reformat tests with black. 2024-11-15 17:21:33 +02:00
tecnovert
ae1df0b556 Include mnemonic dependency directly. 2024-06-06 22:03:38 +02:00
tecnovert
d3e3c3c95b Remove protobuf dependency. 2024-06-06 22:03:38 +02:00
tecnovert
adc80eabb0 Add simple protobuf encoder and decoder. 2024-06-06 22:03:38 +02:00
tecnovert
76879a2ff5 Decred: Secret hash swap tests. 2024-06-06 22:03:34 +02:00
tecnovert
150caeec40 Add Decred transaction to and from bytes. 2024-06-06 22:03:32 +02:00
tecnovert
761d0ca505 Get Decred account key from seed. 2024-06-06 22:03:32 +02:00
tecnovert
047fe7ba27 Encode and decode Decred addresses. 2024-06-06 22:03:31 +02:00
tecnovert
8a279dc71f Raise version, transmit amount to instead of rate. 2024-04-14 14:45:13 +02:00
tecnovert
1cbc2f44b0 Allow multiple base58 prefix bytes. 2024-03-25 13:52:55 +02:00
tecnovert
5ceaab57d1 Set trusted-daemon for XMR node in basicswap.json
basicswap-prepare will set trusted_daemon true if the daemon host address is a local ip address else false.
Override with --trustremotenode
--trustremotenode can be used with --enabletor
2024-02-09 11:17:28 +02:00
tecnovert
0a9db22828 Replace all hashlib ripemd160 functions. 2023-12-16 09:38:34 +02:00
tecnovert
7053d7ee4b Use gettxout where scantxoutset is not available. 2023-11-25 00:40:52 +02:00
tecnovert
7bc5fc78ba Fix BTC witness size estimate. 2023-07-14 10:44:56 +02:00
tecnovert
75c5f6a905 protocol: Enforce minimum version. 2023-05-19 17:33:33 +02:00
tecnovert
ca264db0d0 Add non-segwit Firo support.
Rework tests to combine atomic and xmr test cases.
Modify btc interface to support P2WSH_nested_in_BIP16_P2SH
Add coin feature tests to test_btc_xmr.py
2022-11-08 13:14:03 +02:00
tecnovert
d74699992b coins: Add PIVX
No CSV or segwit.
sethdseed requires a fully synced chain, manual intervention required to set a key derived from the master mnemonic.
Requires a pivxd version with a backported scantxoutset command.
2022-09-01 12:37:18 +02:00
tecnovert
20c0c372d0 refactor: Move all coin interfaces to a dir 2022-08-09 00:10:37 +02:00
tecnovert
1c4f208d27 refactor: E275 missing whitespace after keyword 2022-07-31 20:09:43 +02:00
tecnovert
b64437db84 coins: Raise Litecoin version to 0.21.2 2022-06-16 15:58:59 +02:00
tecnovert
d1e015962c basicswap-prepare can enable and disable tor config. 2022-03-24 00:00:35 +02:00
tecnovert
843379325f tests: Add use_segwit to required settings. 2022-02-05 01:16:04 +02:00
tecnovert
053c263751 ui: Add option to set debug tweak option from bid page. 2021-12-15 16:14:23 +02:00
tecnovert
8a9f4f9e38 ui: Add rate lookup helper when creating offers. 2021-11-21 22:59:39 +02:00
tecnovert
a40519737d protocol: Enable private offers
Users can send private offers that will only be seen by one address.

To send a private offer:
 1. recipient creates a new address to receive offers on
 2. recipient sends the pubkey for the newly created address to the offerer
 3. offerer imports the recipient's pubkey
 4. offerer sends a new offer to the recipients key instead of the public network

Nodes will ignore offers sent on keys other than the network key or keys created for offer-receiving.
2021-10-20 21:50:45 +02:00
tecnovert
bf00f80b4d ui: Start describing xmr bid states. 2021-10-18 20:48:48 +02:00
tecnovert
6516c6d138 client: Hide offers where coins are not enabled.
Better rate calculation.
2021-02-15 23:49:18 +02:00
tecnovert
deb71856e8 Poll chainstates.
Litecoin download link changed.
Fix fee comparison tx weight difference.
Remove format8.
New stalled for test bid state.
Moved sequence code to coin interfaces.
Display estimated time lock refund tx will be valid.
2021-02-03 16:01:27 +02:00
tecnovert
9a182646f0 Add display for xmr bid tx hex. 2020-12-12 14:45:30 +02:00
tecnovert
49705f0974 Use libsecp256k1 to sign.
Added 'Revoke' button to sent offers page.
2020-12-11 09:11:35 +02:00
tecnovert
8c372cc5dc Simplify lock tx script.
Raise version.
2020-12-11 00:43:36 +02:00
tecnovert
3c4c2c528f Dynamic fee selection.
Display xmr offer fees.
Display bid events.
html create offer uses correct coin amount scales.
2020-12-08 20:23:00 +02:00
tecnovert
4c200fe8d4 XMR withdrawals work.
spendBLockTx uses sweep_all.
2020-12-05 13:22:22 +02:00
tecnovert
5a163e0f86 basicswap-prepare tries to initialise coin wallets from Particl mnemonic
Bitcoin 0.20: 'Cannot set a new HD seed while still in Initial Block Download.' Removed in 0.21
2020-12-04 01:46:01 +02:00
tecnovert
7f4be161d7 Lint fixes and multiple bids test. 2020-11-30 19:13:25 +02:00
tecnovert
2d4131d4ee XMR amounts in http interface. 2020-11-29 01:04:26 +02:00
tecnovert
327394e81b Move js functions to new file. 2020-11-28 00:20:35 +02:00
tecnovert
bc60527940 PART -> XMR tests pass. 2020-11-27 19:52:26 +02:00
tecnovert
009729aa96 Send MSG2F 2020-11-15 00:13:11 +02:00
tecnovert
5d84d54e6f Replace makeInt with make_int 2020-10-31 22:44:52 +02:00
tecnovert
4636d31ea9 LICENSE.txt -> LICENSE 2020-10-30 10:57:26 +02:00
tecnovert
1baf13c5a8 Add clear filters button, display tx statuses on active page. 2019-07-31 10:41:35 +02:00
tecnovert
ef77a9e012 Fix wallet headings, loading existing smsges and amount compare precision. 2019-07-30 23:06:33 +02:00
tecnovert
2882992c4f Move tests to a sub dir.
Else they install to site-packages/tests/
2019-07-26 14:16:02 +02:00