[bisq-network/bisq] [WIP] Atomic bsq trades (#5729)

sqrrm notifications at github.com
Sun Oct 10 18:16:19 CEST 2021


@sqrrm pushed 71 commits.

7872dbc1f31c7467539921e344f92a09f1b060af  Add common interface for tradePeer.
0354017281ceb6f162242ee9f86576d56f74ef29  Remove payment method handling
f9d384c200faf0a00ffc5039b20d7f4150484ec5  Add generics for TradePeer
3cc549b9e47f2a57ed7ee2fd26dab9a14a4bdb49  Rename getTradingPeer to getTradePeer
78ddc2da12d3a24ec10d9aedb8d0520828039655  Replace TradingPeer BsqSwapTradePeer in BsqSwapProtocolModel
503a065de84ce646ac43013f3e2bd85dc2303cf1  Add the 4 variants to trade and protocols
739811cd84d781436137c12638559fa304ae1845  Trade protocol update according to other trade protocol
7022505660bc58be33cab52fec1e6411e1d1c787  Use tx confidence listener in SellerSetupTxListener
d77127d6d4544b59140eda898cfd7f02e8b73f31  Cleanups
76982ffe094d22d75b2a80f0beea62984c1d3ed5  Rename bsqSwapProtocolModel to protocolModel
cadef15f6b0188bd304fcc6c8e095e3372ca13f2  Rename bsqSwapTrade to trade
82d05dd95025f968ea6594cd19adf0442c888892  Rename TradeProtocolModel to ProtocolModel
8167d6db3d6835ce631a8bda8cdd8c9b45bc6911  Rename bsqSwapTrade to trade
063dc93aca178f07345f3c7e69bc8c7da8550793  Move package bisq.core.trade.messages to bisq.core.trade.protocol.messages
b432110b4e67f5f99e2a423be43a4babbee15079  Move ClosedTradableManager and FailedTradesManager inside bisq.core.trade.model
011c9292ad72be923e2e87244713e8cd9614b9b8  Remove references from multisigbased trade domain from generic trade classes
7a5ba91a941d9aca77d97e908c1c951b58f935e4  Use concrete state/phase in impl classes
8a2fdb0770d5c5c5d6ae5b058381ec0d8fbdcf66  Move contract into trade package
853848dfa86f2545eaedc0da301a42ab7fc7cc4b  Use Trade as type in tradableList
18193562ad1548364ac63a9f2f60b2eea4d3b308  Remove offer only once trade is completed (tx visisble if maker is seller)
0f8d1c9e11572936f35eaacdf8e06ef47c5c52b9  Rename classes
030cff8fefb12bc3842825e5ca334a53b8bf2e7b  Rename trade package to bisq_v1
1f5f844a8171d3424990be8cb218a5d1defcabc2  Move TradeProtocolFactory level up
6a3c3a148902030ca2ec6d01d9706c435b7ce5c1  Rename bsqswap package to bsq_swap
9a36329c707af671971578a111a59751d343b0a5  Start work on BsqTradeDetailsWindow
b45211ec73bbf435889120f84aef9d393a4e043c  Add comment to make fee allocation in tx more clear
07cdf7062f6f102d313738ff2b43e9578148ad96  Rename BsqSwapWalletWatcher to BsqSwapOfferManager
5b51fd7c3156c628e64fe9b4cf20a155f8cca849  Add methods to DaoFacade and DaoStateService
63f2d2520ed01680fe76623348d6088b0bad70a9  Add fee listener
499302ba50f9ad2ad3cab1367984f6ee3a0d74d3  Use Singleton annotation
6700ca6bf10d418e0303fb08a1099b50c1f8ba83  Let BsqSwapAccountPayload extend PaymentAccountPayload
aa83e5b5856a9ae5484267aa53e041f33d3dc725  Add comment
fa0853a41f89aece36e235cd1ca9b4ca5eb26391  Increase fee tolerance.
4da55ea0ef9bc787e8c2310b74f7caed5a435f34  Rename getTradeVolume to getVolume
303b536ad111fa7bbf23ec5820f9f3135b437827  Add getBsqTradeAmount to BsqSwapCalculation
3e8357a273dd82345a639529d2cf197c1aa2e4ad  Check for witness before setting it
45b99212c156fbc68072d7b9fad6e5df35e9cd97  Remove unnecessary check, add comment
827d60348571f7ae204e0181a331bc1b41d25e45  Add todo
a2fcaa06c1cf6159941b09abbcf76a9f7c25559e  Add comment
725b8eb1cd94b7d89ff17daadf69c0d4282cf8bc  Refactor tx creation and verification
9242ab9d8d40dfaf3ccacf6c4608a176b8a1bb26  Add handling for trade complete in case we have not got it set already
359262560228ac3563edc4537ab9d44097391d10  Extract super class for sending messages
bb643205397c3f8661f8825869ba6356e13ab36a  Cleanups
e44a4313e8ca9de79f4374d4d3226260d1875ee1  Complete trade in case the tx broadcast got a timeout
fd56eef3352c45f327e8daec428d46985f2d7e25  Remove unused methods
9e109ce6683b05fec643508cabf56b56e352ea00  Add scriptTypeId to RawTransactionInput
8dc34c0e553428607d87781d7c25f72b2d7817ed  Replace constructor call with fromProto
efc5d0bba0352347f0def1be89f91ef4b1c23fee  Remove unused methods
095d78009963117fee6cb2e1fe6257c3aec7398e  Use RawTransactionInput constructor instead of getRawInputFromTransactionInput
4e70e5ba11e6a08fe83c212ad084998c2882f27f  Move getRawInputFromTransactionInput to TradeWalletService
73b897a7014c0d7647c5335a7efa56266d119f49  Fix wrong exception, add more log details
8e308e68a192121b67856e126def19575dd4c4f7  Rename getTxSize to getVBytesSize
138fa2a92096be45c58393d3c9b0ff70a69302ff  Fix check for segwit.
b4c1b4e827837f2d49c754cf1d542fa90a507832  Add handling for InsufficientMoneyException
9858c2684700169d7aa78269c2422f70c57e4051  Add verification for peers change amount
2e80f18641a0ff7b40cf665bf34c97b186281aa3  Add verification for peers change
0550fda754ca094de40a30a63605a45b3b4736f7  Store sellersBsqPayoutAmount in protocolModel.setPayout
b53c5449baa784d68e0e5fec420fc3fa08ee8a7e  Fix checks for change with trade fees and tx fees
a266db86544040fd680a6da34a587c6f983791a9  Comment out balance check (temp for dev)
aec5608721b5f333d3db4b07095ef4f5ef7e9a52  Do not handle dust here. We will handle it in caller
0e54439142c2a1e0ad4a8031704af331487acef2  Fix handling for slightly overpaid BTC funds
f5e19c08efa7466b281bb3f4eb1aa3af5e3141d1  Add address validation
6b799f9515e6148906c9e93d21dfb6292c664a65  Add check for change <= expectedChange
13adb3a49d4400a360146a01a9b1ed1b792930bf  Update protocol description
0a09bc0a1a0a90f55406af456442a59aad3dbac5  Rename methods and params
598186329d7ac52098ee71e3560cee21134c8436  Add getParentTxId method
4c1308748eb9dd3f4cf2bc7230c05aa7b752bf7f  Use getParentTxId method
7c1c93e68d3260fe650152d9c7caddc26f8ba952  Use isDust
f0fc08fe28d2ca151a552ff7fa1f861abba2afc7  Add getUnspentTxOutputValue method
30d025a67a4c18d227701176e581e13af8020b35  Handle dust in caller
9c7bdf33f40aff29043f0a40b39fff963c9a53ad  Merge pull request #16 from chimp1984/Complete-trade-protocol


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/bisq-network/bisq/pull/5729/files/c4e129b326a259e0862788bf9468e4d4c1287d13..9c7bdf33f40aff29043f0a40b39fff963c9a53ad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211010/fba5d987/attachment-0001.htm>


More information about the bisq-github mailing list