implement protocol v2

This commit is contained in:
woodser 2021-08-22 16:21:56 -04:00
parent 65bcd47446
commit 86f7d090b6
185 changed files with 5117 additions and 4010 deletions

View file

@ -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

View file

@ -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",

View file

@ -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));
}
}

View file

@ -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",

View file

@ -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"));