mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-10 23:50:10 -04:00
implement protocol v2
This commit is contained in:
parent
65bcd47446
commit
86f7d090b6
185 changed files with 5117 additions and 4010 deletions
|
@ -80,8 +80,6 @@ public class TradesChartsViewModelTest {
|
|||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
|
@ -97,7 +95,9 @@ public class TradesChartsViewModelTest {
|
|||
false,
|
||||
null,
|
||||
null,
|
||||
1
|
||||
1,
|
||||
null,
|
||||
null
|
||||
);
|
||||
|
||||
@Before
|
||||
|
|
|
@ -102,7 +102,7 @@ public class CreateOfferViewModelTest {
|
|||
var tradeStats = mock(TradeStatisticsManager.class);
|
||||
|
||||
when(xmrWalletService.getOrCreateAddressEntry(anyString(), any())).thenReturn(addressEntry);
|
||||
when(xmrWalletService.getBalanceForAccount(any(Integer.class))).thenReturn(Coin.valueOf(1000L));
|
||||
when(xmrWalletService.getBalanceForSubaddress(any(Integer.class))).thenReturn(Coin.valueOf(1000L));
|
||||
when(priceFeedService.updateCounterProperty()).thenReturn(new SimpleIntegerProperty());
|
||||
when(priceFeedService.getMarketPrice(anyString())).thenReturn(
|
||||
new MarketPrice("USD",
|
||||
|
|
|
@ -596,8 +596,6 @@ public class OfferBookViewModelTest {
|
|||
0,
|
||||
"XMR",
|
||||
tradeCurrencyCode,
|
||||
null,
|
||||
null,
|
||||
paymentMethodId,
|
||||
null,
|
||||
null,
|
||||
|
@ -621,6 +619,8 @@ public class OfferBookViewModelTest {
|
|||
false,
|
||||
null,
|
||||
null,
|
||||
1));
|
||||
1,
|
||||
null,
|
||||
null));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ public class EditOfferDataModelTest {
|
|||
OfferUtil offerUtil = mock(OfferUtil.class);
|
||||
|
||||
when(xmrWalletService.getOrCreateAddressEntry(anyString(), any())).thenReturn(addressEntry);
|
||||
when(xmrWalletService.getBalanceForAccount(any(Integer.class))).thenReturn(Coin.valueOf(1000L));
|
||||
when(xmrWalletService.getBalanceForSubaddress(any(Integer.class))).thenReturn(Coin.valueOf(1000L));
|
||||
when(priceFeedService.updateCounterProperty()).thenReturn(new SimpleIntegerProperty());
|
||||
when(priceFeedService.getMarketPrice(anyString())).thenReturn(
|
||||
new MarketPrice("USD",
|
||||
|
|
|
@ -52,8 +52,6 @@ public class OfferMaker {
|
|||
lookup.valueOf(minAmount, 100000L),
|
||||
lookup.valueOf(baseCurrencyCode, "XMR"),
|
||||
lookup.valueOf(counterCurrencyCode, "USD"),
|
||||
null,
|
||||
null,
|
||||
"SEPA",
|
||||
"",
|
||||
null,
|
||||
|
@ -77,7 +75,9 @@ public class OfferMaker {
|
|||
false,
|
||||
null,
|
||||
null,
|
||||
0));
|
||||
0,
|
||||
null,
|
||||
null));
|
||||
|
||||
public static final Maker<Offer> btcUsdOffer = a(Offer);
|
||||
public static final Maker<Offer> btcBCHCOffer = a(Offer).but(with(counterCurrencyCode, "BCHC"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue