Commit graph

48 commits

Author SHA1 Message Date
woodser
cd7f176e2b fix 'trade not found' bug caused by open offer being spent
do not remove open offer with spent funds if reserved for trade
fix concurrent modification exception
2023-01-15 10:58:45 -05:00
woodser
9f8bd77c9e only send push notification if call stream not cancelled 2022-12-30 18:49:07 +00:00
woodser
c5f6aeb4cc sync and save wallet when closing ticket, fix NPE 2022-12-27 12:56:36 +00:00
woodser
31dfdd7710 remove btc fee service 2022-12-16 09:16:11 +00:00
woodser
dd0a307a84 support funding make or take offer directly
QR code encodes payment URI
security deposit absorbs miner fee up to 5%
use binary search to maximize security deposit and minimize dust
show itemized funding popup on create offer
2022-12-04 14:38:22 +00:00
woodser
9aa6bbeff6 must provide fixed price unless using market price 2022-11-26 22:28:30 +00:00
woodser
0d981a2df6 get trade account payloads over grpc, support crypto account forms 2022-11-23 09:42:43 +00:00
woodser
247087ef46 refactor arbitration protocol
add dispute states and open/close messages routed through arbitrator
both traders publish dispute payout tx, winner is default
verify signatures of payment sent and received messages
seller sends deposit confirmed message to arbitrator
buyer sends payment sent message to arbitrator
arbitrator slows trade wallet sync rate after deposits confirmed
various refactoring, fixes, and cleanup
2022-11-07 08:26:30 -05:00
woodser
f36dde2857 refactor payout protocol
send payment key & multisig hex on deposit confirm for resilience
support payout published, confirmed, unlocked states
keep trade wallets open throughout trade
close and delete trade wallets when payout unlocks
arbitrator idles trade wallets after deposits confirm (1/hour)
2022-10-27 08:06:18 -04:00
woodser
dc9c04759f listen for published payout tx
fix "Swapping pending OFFER_FUNDING" warning
move payout tx from TradingPeer to Trade
2022-10-02 14:41:24 -04:00
woodser
3727d12ef6
select online, registered, and least used arbitrator (#400)
support registering and unregistering arbitrators over grpc
maker always sends InitTradeRequest to arbitrator
share original contract for comparision
remove backup arbitator from model
cleanup trade states
2022-08-13 09:47:33 -04:00
woodser
50126874a0 add multisig wallet state and wait for multisig to complete
refactor trade protocol
2022-07-31 14:51:27 -04:00
woodser
f61fd09127 add grpc error handling for confirming payment sent and received 2022-07-31 14:51:27 -04:00
woodser
3dcaf67edd refactor trade protocol latch and timeouts 2022-07-25 22:57:06 -04:00
woodser
14ada60c25 do not start local node when credentialed local node running
rename isMoneroNodeRunning() to isMoneroNodeOnline()
2022-07-16 18:23:02 -04:00
woodser
e2208355b1
support local, stagenet, and mainnet xmr network configuration (#335)
remove btc wallet
disable local zmq
2022-07-07 09:10:59 -04:00
woodser
faeb9ca8db refactor payment account form api to support structured, dynamic forms 2022-06-23 11:24:28 -04:00
woodser
88578bed10 general rebase in order to update payment methods and desktop app
Co-authored-by: Alva Swanson <alvasw@protonmail.com>
Co-authored-by: andyheko <haoen.ko@gmail.com>
Co-authored-by: Bisq GitHub Admin <51445974+bisq-github-admin-3@users.noreply.github.com>
Co-authored-by: BtcContributor <79100296+BtcContributor@users.noreply.github.com>
Co-authored-by: cd2357 <cd2357@users.noreply.github.com>
Co-authored-by: chimp1984 <chimp1984@gmx.com>
Co-authored-by: Chris Beams <chris@beams.io>
Co-authored-by: Christoph Atteneder <christoph.atteneder@gmail.com>
Co-authored-by: Devin Bileck <603793+devinbileck@users.noreply.github.com>
Co-authored-by: ghubstan <36207203+ghubstan@users.noreply.github.com>
Co-authored-by: Huey <hueydane@gmail.com>
Co-authored-by: Jakub Loucký <jakub.loucky@outlook.cz>
Co-authored-by: jmacxx <47253594+jmacxx@users.noreply.github.com>
Co-authored-by: KanoczTomas <tomas.kanocz@cnl.sk>
Co-authored-by: m52go <735155+m52go@users.noreply.github.com>
Co-authored-by: Marcus0x <marcus0x@xrhodium.org>
Co-authored-by: MarnixCroes <93143998+MarnixCroes@users.noreply.github.com>
Co-authored-by: Martin Harrigan <martinharrigan@gmail.com>
Co-authored-by: MwithM <50149324+MwithM@users.noreply.github.com>
Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
Co-authored-by: Stan <36207203+ghubstan@users.noreply.github.com>
Co-authored-by: Stephan Oeste <emzy@emzy.de>
Co-authored-by: Steven Barclay <stejbac@gmail.com>
Co-authored-by: WAT <shiido.it@gmail.com>
Co-authored-by: wiz <j@wiz.biz>
Co-authored-by: xyzmaker123 <84982606+xyzmaker123@users.noreply.github.com>
2022-05-28 13:56:29 -04:00
woodser
ca9bdf7c29 set offer trigger price and state from open offer 2022-05-26 09:46:57 -04:00
woodser
ffccf83ac5 support getXmrPrimaryAddress(), getXmrNewSubaddress() 2022-05-16 13:33:07 -04:00
woodser
f4120b869d support getXmrSeed() 2022-05-11 17:03:34 -04:00
woodser
730bee3e71
renames in proto and api (#277)
rename to getNewDepositAddress()
rename trade phase DEPOSIT_CONFIRMED to DEPOSIT_UNLOCKED
rename fiat sent/received to payment sent/received
2022-04-07 10:45:35 -04:00
woodser
bb95b4b1d6 support multithreading in api and protocols
close trade wallets while unused for scalability
verify txs do not use unlock height
increase trade init timeout to 60s
2022-04-06 11:27:50 -04:00
duriancrepe
9dfbb0d5a6 Add API functions to start and stop local Monero node 2022-04-04 15:28:54 -04:00
duriancrepe
2851319e3b
Add API functions to support trade chat (#257) 2022-03-09 07:42:48 -05:00
duriancrepe
e7b4627102
Add API functions to open and resolve disputes (#244)
Co-authored-by: woodser <woodser@protonmail.com>
2022-03-07 12:56:39 -05:00
woodser
e91b96227f support Bitcoin Cash 2022-02-16 11:59:21 -05:00
woodser
45a61ae835
fix bug getting crypto offers caused by base/counter inversion (#245) 2022-02-16 10:09:52 -05:00
Randall B
5b038697c3
Add market depth info API call (#190) 2022-02-11 18:13:41 -05:00
duriancrepe
e3b9a9962b
Add API functions to initialize Haveno account (#216)
Co-authored-by: woodser@protonmail.com
2022-02-09 04:39:57 -05:00
Fritz Lumnitz
a3586fdef8 Add monero connections manager 2022-01-28 17:01:32 -05:00
Fritz Lumnitz
800b309a4b Add notifications listener 2022-01-13 07:56:59 -05:00
l0nelyc0w
c1699795e7 Add API functions to get wallet transfers and withdraw funds 2021-12-31 14:34:37 -05:00
woodser
e8cc3d20f5 update more names from bisq* to haveno* 2021-12-20 11:47:17 -05:00
woodser
fae477fc51 relax grpc rate limits for getVersion() 2021-12-19 09:22:43 -05:00
woodser
ce538c5ca6 update copyright headers to Haveno 2021-12-16 13:33:12 -05:00
woodser
1be8e53ee9 rename classes and executables from Bisq* to Haveno* 2021-12-16 13:33:12 -05:00
woodser
7c9c35b1b8 improve error handling in protocol pipelines
support getTrades() from grpc api
consistently use timeouts in protocol pipelines
remove trade and repost offer on protocol errors
delete multisig wallet when trade removed
protocol advances on ack messages instead of network onArrived()
re-order protocol class methods to correct order
2021-12-15 13:19:05 -05:00
woodser
dd68760f27 handle errors making or taking offers with insufficient funds 2021-12-08 06:24:35 -05:00
woodser
f1b22a16b3 relax grpc rate limits for tests 2021-11-22 08:02:16 -05:00
premek
f27e3e3d1a Implement getMarketPrices API endpoint
- Increase rate limit to 10 calls per second.
- Use the new API also for the getMarketPrice call, this makes the 'Can get market prices' API test pass
2021-11-20 19:41:26 -05:00
woodser
469c47b0c7 add balance to xmr balances
reduce trade api rate limiting
offer is set to available
2021-11-20 16:28:49 -05:00
l0nelyc0w
cefba8e4b5 remove DAO
Co-authored-by: premek <1145361+premek@users.noreply.github.com>
2021-10-20 06:19:52 -04:00
woodser
6e21508a94 add grpc call to get new deposit subaddress 2021-09-21 10:01:20 -04:00
woodser
6798630dfc filter offers with spent or duplicate funds using key images
reserve tx does not remain in arbitrator pool
2021-09-18 15:02:14 -04:00
woodser
e3b2627944 reduce api rate limiting 2021-09-15 06:44:52 -04:00
woodser
d136815552 support creating offer from grpc api
fee payment currency is xmr
scale atomic units from grpc api to centineros for consistency
implement ParsingUtils.atomicUnitsToCentineros()
2021-09-15 06:44:52 -04:00
woodser
8a38081c04 Bisq 2021-05-04 20:20:01 -04:00