Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New trade protocol #3333

Merged
merged 46 commits into from Sep 27, 2019
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2c89c5d
Remove arbitration key, cleanup
chimp1984 Sep 21, 2019
edf71f2
Add BuyerAsMakerProcessDepositTxAndDelayedPayoutTxMessage
chimp1984 Sep 21, 2019
32ec5f6
Adopt trade protocol
chimp1984 Sep 21, 2019
13fda96
Remove arbitratorKey
chimp1984 Sep 21, 2019
7393262
Add new classes
chimp1984 Sep 21, 2019
5610c0e
Add new message classes
chimp1984 Sep 21, 2019
7774abe
Add new task classes
chimp1984 Sep 21, 2019
59a47d0
Renamed classed (no functional change yet)
chimp1984 Sep 21, 2019
0401045
Add lockTime
chimp1984 Sep 21, 2019
6b40c5d
Add delayedPayoutTxSignature field
chimp1984 Sep 21, 2019
db5884c
Add useReimbursementModel field
chimp1984 Sep 21, 2019
e937869
Add new classes
chimp1984 Sep 21, 2019
d8d7f34
Add setting.preferences.useReimbursementModel
chimp1984 Sep 21, 2019
2a3ba2b
Apply renamed classes (new classes not added yet)
chimp1984 Sep 21, 2019
0232ac9
Add useReimbursementModel
chimp1984 Sep 21, 2019
24761d9
Add preferences param
chimp1984 Sep 21, 2019
16a8dac
Add new methods, cleanup
chimp1984 Sep 21, 2019
1cc4205
Add daoFacade param, apply renaming
chimp1984 Sep 21, 2019
90bc4d5
Add delayedPayoutTx, lockTime and delayedPayoutTxId
chimp1984 Sep 21, 2019
d9ccf94
Remove DirectMessage interface
chimp1984 Sep 21, 2019
e75f2a5
Rename emergencySignAndPublishPayoutTx method, add new one for 2of2 MS
chimp1984 Sep 21, 2019
0b8e2e9
Apply new protocol
chimp1984 Sep 21, 2019
57f8f16
Apply new protocol
chimp1984 Sep 21, 2019
ff78aa5
Add renaming (no functional change yet)
chimp1984 Sep 21, 2019
44975be
Add new messages, apply renaming
chimp1984 Sep 21, 2019
82736de
Remove unneeded P2SHMultiSigOutputScript
chimp1984 Sep 21, 2019
3f7dfc6
Remove PREFERRED_PROJECT_CODE_STYLE
chimp1984 Sep 21, 2019
4b94412
Refactor: Rename class
chimp1984 Sep 21, 2019
5bd5d0c
Use InputsForDepositTxRequest instead of TradeMessage in handleTakeOf…
chimp1984 Sep 21, 2019
05a9703
Do not sign deposit tx if maker is seller
chimp1984 Sep 21, 2019
5aa185c
Apply new trade protocol to seller as maker version
chimp1984 Sep 21, 2019
c41b811
Apply new trade protocol
chimp1984 Sep 22, 2019
4de69a6
Set TRADE_PROTOCOL_VERSION to 2
chimp1984 Sep 22, 2019
ab63cad
Add PeerPublishedDelayedPayoutTxMessage
chimp1984 Sep 22, 2019
7988a97
Add refund agent domain
chimp1984 Sep 23, 2019
160c135
Add refundAgentNodeAddress
chimp1984 Sep 23, 2019
f12bf51
Apply refund domain
chimp1984 Sep 23, 2019
68bb842
Add refund views
chimp1984 Sep 23, 2019
912bb07
Apply refundAgent domain
chimp1984 Sep 23, 2019
8a17cc5
Support refundAgent
chimp1984 Sep 24, 2019
172330a
Remove useReimbursementModel field
chimp1984 Sep 24, 2019
1c5d9ef
Apply refundAgent payout
chimp1984 Sep 26, 2019
0300836
Handle tx info and balances
chimp1984 Sep 26, 2019
038347a
Remove mediation activation
chimp1984 Sep 26, 2019
d388d9a
Add new tac accepted flag for v1.2.0 and adjust text
chimp1984 Sep 26, 2019
a30a07e
Fix params for test classes
chimp1984 Sep 26, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Fix params for test classes

  • Loading branch information
chimp1984 committed Sep 26, 2019
commit a30a07e5c5bffdc33a0714df777c089a6a4ad7aa
@@ -40,7 +40,7 @@ public void testStartEditOfferForActiveOffer() {
final OpenOfferManager manager = new OpenOfferManager(null, null, p2PService,
null, null, null, offerBookService,
null, null, null,
null, null, null,
null, null, null, null,
new Storage<TradableList<OpenOffer>>(null, null, corruptedDatabaseFilesHandler));

AtomicBoolean startEditOfferSuccessful = new AtomicBoolean(false);
@@ -76,7 +76,7 @@ public void testStartEditOfferForDeactivatedOffer() {
final OpenOfferManager manager = new OpenOfferManager(null, null, p2PService,
null, null, null, offerBookService,
null, null, null,
null, null, null,
null, null, null, null,
new Storage<TradableList<OpenOffer>>(null, null, corruptedDatabaseFilesHandler));

AtomicBoolean startEditOfferSuccessful = new AtomicBoolean(false);
@@ -104,7 +104,7 @@ public void testStartEditOfferForOfferThatIsCurrentlyEdited() {
final OpenOfferManager manager = new OpenOfferManager(null, null, p2PService,
null, null, null, offerBookService,
null, null, null,
null, null, null,
null, null, null, null,
new Storage<TradableList<OpenOffer>>(null, null, corruptedDatabaseFilesHandler));

AtomicBoolean startEditOfferSuccessful = new AtomicBoolean(false);
@@ -57,6 +57,7 @@ public void testRoundtripFull() {
"string",
new byte[]{10, 0, 0},
null,
Lists.newArrayList(),
Lists.newArrayList()));
vo.setRegisteredArbitrator(ArbitratorTest.getArbitratorMock());
vo.setRegisteredMediator(MediatorTest.getMediatorMock());
@@ -17,8 +17,8 @@

package bisq.desktop.main.funds.transactions;

import bisq.core.support.dispute.arbitration.ArbitrationManager;
import bisq.core.offer.OpenOffer;
import bisq.core.support.dispute.arbitration.ArbitrationManager;
import bisq.core.trade.Tradable;
import bisq.core.trade.Trade;

@@ -34,7 +34,8 @@
public void testCreateWhenNotOpenOfferOrTrade() {
ArbitrationManager arbitrationManager = mock(ArbitrationManager.class);

TransactionAwareTradableFactory factory = new TransactionAwareTradableFactory(arbitrationManager);
TransactionAwareTradableFactory factory = new TransactionAwareTradableFactory(arbitrationManager,
null, null, null);

Tradable delegate = mock(Tradable.class);
assertFalse(delegate instanceof OpenOffer);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.