diff --git a/apitest/src/test/java/haveno/apitest/JUnitHelper.java b/apitest/src/test/java/haveno/apitest/JUnitHelper.java
index eb11607df5..1936ce300c 100644
--- a/apitest/src/test/java/haveno/apitest/JUnitHelper.java
+++ b/apitest/src/test/java/haveno/apitest/JUnitHelper.java
@@ -1,7 +1,6 @@
package haveno.apitest;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.runner.Description;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
diff --git a/apitest/src/test/java/haveno/apitest/method/BitcoinCliHelper.java b/apitest/src/test/java/haveno/apitest/method/BitcoinCliHelper.java
index 03b247fd58..cebaec9893 100644
--- a/apitest/src/test/java/haveno/apitest/method/BitcoinCliHelper.java
+++ b/apitest/src/test/java/haveno/apitest/method/BitcoinCliHelper.java
@@ -17,14 +17,14 @@
package haveno.apitest.method;
+import haveno.apitest.config.ApiTestConfig;
+import haveno.apitest.linux.BitcoinCli;
+
import java.io.IOException;
import static java.lang.String.format;
import static org.junit.jupiter.api.Assertions.fail;
-import haveno.apitest.config.ApiTestConfig;
-import haveno.apitest.linux.BitcoinCli;
-
public final class BitcoinCliHelper {
private final ApiTestConfig config;
diff --git a/apitest/src/test/java/haveno/apitest/method/CallRateMeteringInterceptorTest.java b/apitest/src/test/java/haveno/apitest/method/CallRateMeteringInterceptorTest.java
index d701486a5c..2613212fb5 100644
--- a/apitest/src/test/java/haveno/apitest/method/CallRateMeteringInterceptorTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/CallRateMeteringInterceptorTest.java
@@ -18,9 +18,7 @@
package haveno.apitest.method;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
diff --git a/apitest/src/test/java/haveno/apitest/method/GetMethodHelpTest.java b/apitest/src/test/java/haveno/apitest/method/GetMethodHelpTest.java
index 51b6bb7ca6..d40466f1ca 100644
--- a/apitest/src/test/java/haveno/apitest/method/GetMethodHelpTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/GetMethodHelpTest.java
@@ -18,7 +18,6 @@
package haveno.apitest.method;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
diff --git a/apitest/src/test/java/haveno/apitest/method/GetVersionTest.java b/apitest/src/test/java/haveno/apitest/method/GetVersionTest.java
index 5c66fb9c71..7431c8183f 100644
--- a/apitest/src/test/java/haveno/apitest/method/GetVersionTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/GetVersionTest.java
@@ -18,7 +18,6 @@
package haveno.apitest.method;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
diff --git a/apitest/src/test/java/haveno/apitest/method/MethodTest.java b/apitest/src/test/java/haveno/apitest/method/MethodTest.java
index 8f815e912c..2dbd89863f 100644
--- a/apitest/src/test/java/haveno/apitest/method/MethodTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/MethodTest.java
@@ -17,7 +17,6 @@
package haveno.apitest.method;
-import haveno.proto.grpc.BalancesInfo;
import haveno.apitest.ApiTestCase;
import haveno.apitest.linux.BashCommand;
import haveno.cli.GrpcClient;
@@ -27,22 +26,19 @@ import haveno.core.api.model.PaymentAccountForm;
import haveno.core.payment.F2FAccount;
import haveno.core.payment.NationalBankAccount;
import haveno.core.proto.CoreProtoResolver;
+import haveno.proto.grpc.BalancesInfo;
import io.grpc.Status;
import io.grpc.StatusRuntimeException;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import java.math.BigDecimal;
-
-import java.util.function.Function;
-import java.util.function.Supplier;
-import java.util.stream.Collectors;
-
import org.slf4j.Logger;
import javax.annotation.Nullable;
+import java.io.File;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.math.BigDecimal;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
import static haveno.apitest.config.ApiTestConfig.BTC;
import static haveno.apitest.config.ApiTestRateMeterInterceptorConfig.getTestRateMeterInterceptorConfig;
diff --git a/apitest/src/test/java/haveno/apitest/method/RegisterDisputeAgentsTest.java b/apitest/src/test/java/haveno/apitest/method/RegisterDisputeAgentsTest.java
index 8d63d995ce..5717830d1a 100644
--- a/apitest/src/test/java/haveno/apitest/method/RegisterDisputeAgentsTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/RegisterDisputeAgentsTest.java
@@ -18,9 +18,7 @@
package haveno.apitest.method;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
diff --git a/apitest/src/test/java/haveno/apitest/method/offer/AbstractOfferTest.java b/apitest/src/test/java/haveno/apitest/method/offer/AbstractOfferTest.java
index 70f6f30251..438a41876b 100644
--- a/apitest/src/test/java/haveno/apitest/method/offer/AbstractOfferTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/offer/AbstractOfferTest.java
@@ -17,24 +17,21 @@
package haveno.apitest.method.offer;
-import haveno.proto.grpc.OfferInfo;
import haveno.apitest.method.MethodTest;
import haveno.cli.CliMain;
import haveno.cli.table.builder.TableBuilder;
+import haveno.proto.grpc.OfferInfo;
+import lombok.Setter;
+import lombok.extern.slf4j.Slf4j;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
import protobuf.PaymentAccount;
import java.math.BigDecimal;
import java.math.MathContext;
-
import java.util.List;
import java.util.function.Function;
-import lombok.Setter;
-import lombok.extern.slf4j.Slf4j;
-
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.BeforeAll;
-
import static haveno.apitest.Scaffold.BitcoinCoreApp.bitcoind;
import static haveno.apitest.config.ApiTestConfig.XMR;
import static haveno.apitest.config.HavenoAppConfig.alicedaemon;
diff --git a/apitest/src/test/java/haveno/apitest/method/offer/CancelOfferTest.java b/apitest/src/test/java/haveno/apitest/method/offer/CancelOfferTest.java
index aa33a126bd..3e9bcdff38 100644
--- a/apitest/src/test/java/haveno/apitest/method/offer/CancelOfferTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/offer/CancelOfferTest.java
@@ -17,19 +17,18 @@
package haveno.apitest.method.offer;
-import haveno.proto.grpc.OfferInfo;
import haveno.core.payment.PaymentAccount;
-import java.util.List;
-import java.util.function.Consumer;
-
+import haveno.proto.grpc.OfferInfo;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
+import java.util.List;
+import java.util.function.Consumer;
+
import static org.junit.jupiter.api.Assertions.assertEquals;
import static protobuf.OfferDirection.BUY;
diff --git a/apitest/src/test/java/haveno/apitest/method/offer/CreateOfferUsingFixedPriceTest.java b/apitest/src/test/java/haveno/apitest/method/offer/CreateOfferUsingFixedPriceTest.java
index 604aa82b4c..2f066acf4c 100644
--- a/apitest/src/test/java/haveno/apitest/method/offer/CreateOfferUsingFixedPriceTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/offer/CreateOfferUsingFixedPriceTest.java
@@ -17,8 +17,8 @@
package haveno.apitest.method.offer;
+import haveno.core.payment.PaymentAccount;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
@@ -35,8 +35,6 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import static protobuf.OfferDirection.BUY;
import static protobuf.OfferDirection.SELL;
-import haveno.core.payment.PaymentAccount;
-
@Disabled
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/method/offer/CreateOfferUsingMarketPriceMarginTest.java b/apitest/src/test/java/haveno/apitest/method/offer/CreateOfferUsingMarketPriceMarginTest.java
index 1c95cd9db6..84068bca21 100644
--- a/apitest/src/test/java/haveno/apitest/method/offer/CreateOfferUsingMarketPriceMarginTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/offer/CreateOfferUsingMarketPriceMarginTest.java
@@ -17,20 +17,18 @@
package haveno.apitest.method.offer;
-import haveno.proto.grpc.OfferInfo;
import haveno.core.payment.PaymentAccount;
-import java.text.DecimalFormat;
-
-import java.math.BigDecimal;
-
+import haveno.proto.grpc.OfferInfo;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
+import java.math.BigDecimal;
+import java.text.DecimalFormat;
+
import static haveno.apitest.config.ApiTestConfig.BTC;
import static haveno.apitest.config.ApiTestConfig.USD;
import static haveno.common.util.MathUtils.roundDouble;
diff --git a/apitest/src/test/java/haveno/apitest/method/offer/CreateXMROffersTest.java b/apitest/src/test/java/haveno/apitest/method/offer/CreateXMROffersTest.java
index 49769692eb..4226f8c9cf 100644
--- a/apitest/src/test/java/haveno/apitest/method/offer/CreateXMROffersTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/offer/CreateXMROffersTest.java
@@ -18,11 +18,7 @@
package haveno.apitest.method.offer;
import haveno.proto.grpc.OfferInfo;
-
-import java.util.List;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
@@ -30,6 +26,8 @@ import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
+import java.util.List;
+
import static haveno.apitest.config.ApiTestConfig.BTC;
import static haveno.apitest.config.ApiTestConfig.XMR;
import static org.junit.jupiter.api.Assertions.assertEquals;
diff --git a/apitest/src/test/java/haveno/apitest/method/offer/ValidateCreateOfferTest.java b/apitest/src/test/java/haveno/apitest/method/offer/ValidateCreateOfferTest.java
index 513aa95732..3fcf703877 100644
--- a/apitest/src/test/java/haveno/apitest/method/offer/ValidateCreateOfferTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/offer/ValidateCreateOfferTest.java
@@ -17,24 +17,20 @@
package haveno.apitest.method.offer;
+import haveno.core.payment.PaymentAccount;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
-import static haveno.apitest.config.ApiTestConfig.BTC;
import static java.lang.String.format;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static protobuf.OfferDirection.BUY;
-import haveno.core.payment.PaymentAccount;
-
@Disabled
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/method/payment/AbstractPaymentAccountTest.java b/apitest/src/test/java/haveno/apitest/method/payment/AbstractPaymentAccountTest.java
index 80fff91443..57b26cf718 100644
--- a/apitest/src/test/java/haveno/apitest/method/payment/AbstractPaymentAccountTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/payment/AbstractPaymentAccountTest.java
@@ -10,13 +10,15 @@ import haveno.core.locale.FiatCurrency;
import haveno.core.locale.Res;
import haveno.core.locale.TradeCurrency;
import haveno.core.payment.PaymentAccount;
-import java.nio.file.Paths;
+import lombok.extern.slf4j.Slf4j;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.TestInfo;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
-
+import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
@@ -26,15 +28,14 @@ import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
-import lombok.extern.slf4j.Slf4j;
-
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.TestInfo;
-
import static java.lang.String.format;
import static java.lang.System.getProperty;
import static java.nio.charset.StandardCharsets.UTF_8;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
@Slf4j
public class AbstractPaymentAccountTest extends MethodTest {
diff --git a/apitest/src/test/java/haveno/apitest/method/payment/CreatePaymentAccountTest.java b/apitest/src/test/java/haveno/apitest/method/payment/CreatePaymentAccountTest.java
index 3e7afe9c63..b67489d8b8 100644
--- a/apitest/src/test/java/haveno/apitest/method/payment/CreatePaymentAccountTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/payment/CreatePaymentAccountTest.java
@@ -58,17 +58,7 @@ import haveno.core.payment.payload.SameBankAccountPayload;
import haveno.core.payment.payload.SpecificBanksAccountPayload;
import haveno.core.payment.payload.SwiftAccountPayload;
import io.grpc.StatusRuntimeException;
-
-import java.io.File;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import java.util.Objects;
-import java.util.stream.Collectors;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
@@ -76,6 +66,13 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
import org.junit.jupiter.api.TestMethodOrder;
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
import static haveno.apitest.Scaffold.BitcoinCoreApp.bitcoind;
import static haveno.apitest.config.ApiTestConfig.EUR;
import static haveno.apitest.config.ApiTestConfig.USD;
@@ -83,7 +80,37 @@ import static haveno.apitest.config.HavenoAppConfig.alicedaemon;
import static haveno.cli.table.builder.TableType.PAYMENT_ACCOUNT_TBL;
import static haveno.core.locale.CurrencyUtil.getAllSortedFiatCurrencies;
import static haveno.core.locale.CurrencyUtil.getTradeCurrency;
-import static haveno.core.payment.payload.PaymentMethod.*;
+import static haveno.core.payment.payload.PaymentMethod.ADVANCED_CASH_ID;
+import static haveno.core.payment.payload.PaymentMethod.ALI_PAY_ID;
+import static haveno.core.payment.payload.PaymentMethod.AUSTRALIA_PAYID_ID;
+import static haveno.core.payment.payload.PaymentMethod.CAPITUAL_ID;
+import static haveno.core.payment.payload.PaymentMethod.CASH_DEPOSIT_ID;
+import static haveno.core.payment.payload.PaymentMethod.CLEAR_X_CHANGE_ID;
+import static haveno.core.payment.payload.PaymentMethod.F2F_ID;
+import static haveno.core.payment.payload.PaymentMethod.FASTER_PAYMENTS_ID;
+import static haveno.core.payment.payload.PaymentMethod.HAL_CASH_ID;
+import static haveno.core.payment.payload.PaymentMethod.INTERAC_E_TRANSFER_ID;
+import static haveno.core.payment.payload.PaymentMethod.JAPAN_BANK_ID;
+import static haveno.core.payment.payload.PaymentMethod.MONEY_BEAM_ID;
+import static haveno.core.payment.payload.PaymentMethod.MONEY_GRAM_ID;
+import static haveno.core.payment.payload.PaymentMethod.NATIONAL_BANK_ID;
+import static haveno.core.payment.payload.PaymentMethod.PAXUM_ID;
+import static haveno.core.payment.payload.PaymentMethod.PAYSERA_ID;
+import static haveno.core.payment.payload.PaymentMethod.PERFECT_MONEY_ID;
+import static haveno.core.payment.payload.PaymentMethod.POPMONEY_ID;
+import static haveno.core.payment.payload.PaymentMethod.PROMPT_PAY_ID;
+import static haveno.core.payment.payload.PaymentMethod.REVOLUT_ID;
+import static haveno.core.payment.payload.PaymentMethod.SAME_BANK_ID;
+import static haveno.core.payment.payload.PaymentMethod.SEPA_ID;
+import static haveno.core.payment.payload.PaymentMethod.SEPA_INSTANT_ID;
+import static haveno.core.payment.payload.PaymentMethod.SPECIFIC_BANKS_ID;
+import static haveno.core.payment.payload.PaymentMethod.SWIFT_ID;
+import static haveno.core.payment.payload.PaymentMethod.SWISH_ID;
+import static haveno.core.payment.payload.PaymentMethod.TRANSFERWISE_ID;
+import static haveno.core.payment.payload.PaymentMethod.UPHOLD_ID;
+import static haveno.core.payment.payload.PaymentMethod.US_POSTAL_MONEY_ORDER_ID;
+import static haveno.core.payment.payload.PaymentMethod.WECHAT_PAY_ID;
+import static haveno.core.payment.payload.PaymentMethod.WESTERN_UNION_ID;
import static java.util.Comparator.comparing;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
diff --git a/apitest/src/test/java/haveno/apitest/method/payment/GetPaymentMethodsTest.java b/apitest/src/test/java/haveno/apitest/method/payment/GetPaymentMethodsTest.java
index 77bb3373ff..6b2e5a8019 100644
--- a/apitest/src/test/java/haveno/apitest/method/payment/GetPaymentMethodsTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/payment/GetPaymentMethodsTest.java
@@ -1,12 +1,7 @@
package haveno.apitest.method.payment;
-import protobuf.PaymentMethod;
-
-import java.util.List;
-import java.util.stream.Collectors;
-
+import haveno.apitest.method.MethodTest;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
@@ -14,14 +9,16 @@ import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
+import protobuf.PaymentMethod;
+
+import java.util.List;
+import java.util.stream.Collectors;
import static haveno.apitest.Scaffold.BitcoinCoreApp.bitcoind;
import static haveno.apitest.config.HavenoAppConfig.alicedaemon;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
-import haveno.apitest.method.MethodTest;
-
@Disabled
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/method/trade/AbstractTradeTest.java b/apitest/src/test/java/haveno/apitest/method/trade/AbstractTradeTest.java
index 720b6fc707..21a4145cbe 100644
--- a/apitest/src/test/java/haveno/apitest/method/trade/AbstractTradeTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/trade/AbstractTradeTest.java
@@ -1,31 +1,30 @@
package haveno.apitest.method.trade;
-import haveno.proto.grpc.TradeInfo;
import haveno.apitest.method.offer.AbstractOfferTest;
import haveno.cli.CliMain;
import haveno.cli.GrpcClient;
import haveno.cli.table.builder.TableBuilder;
+import haveno.proto.grpc.TradeInfo;
+import lombok.Getter;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.TestInfo;
+import org.slf4j.Logger;
+
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
-import org.slf4j.Logger;
-
-import lombok.Getter;
-
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.TestInfo;
-
import static haveno.cli.table.builder.TableType.TRADE_DETAIL_TBL;
import static haveno.core.trade.Trade.Phase.DEPOSITS_UNLOCKED;
-import static haveno.core.trade.Trade.Phase.PAYMENT_RECEIVED;
import static haveno.core.trade.Trade.Phase.PAYMENT_SENT;
import static haveno.core.trade.Trade.State.BUYER_SAW_ARRIVED_PAYMENT_SENT_MSG;
import static haveno.core.trade.Trade.State.DEPOSIT_TXS_UNLOCKED_IN_BLOCKCHAIN;
import static haveno.core.trade.Trade.State.SELLER_RECEIVED_PAYMENT_SENT_MSG;
import static java.lang.String.format;
import static java.lang.System.out;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.fail;
public class AbstractTradeTest extends AbstractOfferTest {
diff --git a/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyBTCOfferTest.java b/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyBTCOfferTest.java
index f5e0c1d68c..c7519a399a 100644
--- a/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyBTCOfferTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyBTCOfferTest.java
@@ -17,10 +17,9 @@
package haveno.apitest.method.trade;
+import haveno.core.payment.PaymentAccount;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
@@ -36,8 +35,6 @@ import static org.junit.jupiter.api.Assertions.fail;
import static protobuf.OfferDirection.BUY;
import static protobuf.OpenOffer.State.AVAILABLE;
-import haveno.core.payment.PaymentAccount;
-
@Disabled
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyBTCOfferWithNationalBankAcctTest.java b/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyBTCOfferWithNationalBankAcctTest.java
index 50e5dd03bd..930ba348d8 100644
--- a/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyBTCOfferWithNationalBankAcctTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyBTCOfferWithNationalBankAcctTest.java
@@ -34,10 +34,10 @@
package haveno.apitest.method.trade;
+import haveno.core.payment.PaymentAccount;
+import haveno.core.payment.payload.NationalBankAccountPayload;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
@@ -46,17 +46,17 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
import org.junit.jupiter.api.TestMethodOrder;
-import static haveno.apitest.config.ApiTestConfig.BTC;
import static haveno.core.trade.Trade.Phase.PAYMENT_RECEIVED;
import static haveno.core.trade.Trade.State.SELLER_SAW_ARRIVED_PAYMENT_RECEIVED_MSG;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
import static protobuf.Offer.State.OFFER_FEE_RESERVED;
import static protobuf.OfferDirection.BUY;
import static protobuf.OpenOffer.State.AVAILABLE;
-import haveno.core.payment.PaymentAccount;
-import haveno.core.payment.payload.NationalBankAccountPayload;
-
/**
* Test case verifies trade can be made with national bank payment method,
* and json contracts exclude bank acct details until deposit tx is confirmed.
diff --git a/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyXMROfferTest.java b/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyXMROfferTest.java
index f440691c27..68c3f40cce 100644
--- a/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyXMROfferTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/trade/TakeBuyXMROfferTest.java
@@ -17,10 +17,10 @@
package haveno.apitest.method.trade;
+import haveno.apitest.method.offer.AbstractOfferTest;
+import haveno.cli.table.builder.TableBuilder;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
@@ -38,9 +38,6 @@ import static org.junit.jupiter.api.Assertions.fail;
import static protobuf.Offer.State.OFFER_FEE_RESERVED;
import static protobuf.OfferDirection.SELL;
-import haveno.apitest.method.offer.AbstractOfferTest;
-import haveno.cli.table.builder.TableBuilder;
-
@Disabled
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/method/trade/TakeSellBTCOfferTest.java b/apitest/src/test/java/haveno/apitest/method/trade/TakeSellBTCOfferTest.java
index 11bcaafefb..95ef134bdb 100644
--- a/apitest/src/test/java/haveno/apitest/method/trade/TakeSellBTCOfferTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/trade/TakeSellBTCOfferTest.java
@@ -17,10 +17,9 @@
package haveno.apitest.method.trade;
+import haveno.core.payment.PaymentAccount;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
@@ -30,18 +29,13 @@ import org.junit.jupiter.api.TestMethodOrder;
import static haveno.apitest.config.ApiTestConfig.BTC;
import static haveno.apitest.config.ApiTestConfig.USD;
-import static haveno.core.trade.Trade.Phase.COMPLETED;
import static haveno.core.trade.Trade.Phase.PAYMENT_RECEIVED;
import static haveno.core.trade.Trade.State.SELLER_SAW_ARRIVED_PAYMENT_RECEIVED_MSG;
-import static haveno.core.trade.Trade.State.TRADE_COMPLETED;
import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import static protobuf.Offer.State.OFFER_FEE_RESERVED;
import static protobuf.OfferDirection.SELL;
-import haveno.core.payment.PaymentAccount;
-
@Disabled
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/method/trade/TakeSellXMROfferTest.java b/apitest/src/test/java/haveno/apitest/method/trade/TakeSellXMROfferTest.java
index 2aa996fbe0..f1e98959f7 100644
--- a/apitest/src/test/java/haveno/apitest/method/trade/TakeSellXMROfferTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/trade/TakeSellXMROfferTest.java
@@ -17,10 +17,10 @@
package haveno.apitest.method.trade;
+import haveno.apitest.method.offer.AbstractOfferTest;
+import haveno.cli.table.builder.TableBuilder;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
@@ -38,9 +38,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import static protobuf.OfferDirection.BUY;
-import haveno.apitest.method.offer.AbstractOfferTest;
-import haveno.cli.table.builder.TableBuilder;
-
@Disabled
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/method/wallet/BtcWalletTest.java b/apitest/src/test/java/haveno/apitest/method/wallet/BtcWalletTest.java
index 6de7fd3b6a..5f272afcfa 100644
--- a/apitest/src/test/java/haveno/apitest/method/wallet/BtcWalletTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/wallet/BtcWalletTest.java
@@ -1,10 +1,9 @@
package haveno.apitest.method.wallet;
-import haveno.proto.grpc.BtcBalanceInfo;
import haveno.apitest.method.MethodTest;
import haveno.cli.table.builder.TableBuilder;
+import haveno.proto.grpc.BtcBalanceInfo;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
@@ -22,8 +21,6 @@ import static haveno.apitest.method.wallet.WalletTestUtil.verifyBtcBalances;
import static haveno.cli.table.builder.TableType.ADDRESS_BALANCE_TBL;
import static haveno.cli.table.builder.TableType.BTC_BALANCE_TBL;
import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
@Disabled
diff --git a/apitest/src/test/java/haveno/apitest/method/wallet/WalletProtectionTest.java b/apitest/src/test/java/haveno/apitest/method/wallet/WalletProtectionTest.java
index b86fde3c78..9159948897 100644
--- a/apitest/src/test/java/haveno/apitest/method/wallet/WalletProtectionTest.java
+++ b/apitest/src/test/java/haveno/apitest/method/wallet/WalletProtectionTest.java
@@ -1,9 +1,8 @@
package haveno.apitest.method.wallet;
+import haveno.apitest.method.MethodTest;
import io.grpc.StatusRuntimeException;
-
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
@@ -18,8 +17,6 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.fail;
import static org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
-import haveno.apitest.method.MethodTest;
-
@SuppressWarnings("ResultOfMethodCallIgnored")
@Disabled
@Slf4j
diff --git a/apitest/src/test/java/haveno/apitest/method/wallet/WalletTestUtil.java b/apitest/src/test/java/haveno/apitest/method/wallet/WalletTestUtil.java
index 0ea924c1d4..a2e21205e3 100644
--- a/apitest/src/test/java/haveno/apitest/method/wallet/WalletTestUtil.java
+++ b/apitest/src/test/java/haveno/apitest/method/wallet/WalletTestUtil.java
@@ -1,7 +1,6 @@
package haveno.apitest.method.wallet;
import haveno.proto.grpc.BtcBalanceInfo;
-
import lombok.extern.slf4j.Slf4j;
import static org.junit.jupiter.api.Assertions.assertEquals;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/LongRunningOfferDeactivationTest.java b/apitest/src/test/java/haveno/apitest/scenario/LongRunningOfferDeactivationTest.java
index d8ebd1e902..c2d7b55060 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/LongRunningOfferDeactivationTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/LongRunningOfferDeactivationTest.java
@@ -17,11 +17,10 @@
package haveno.apitest.scenario;
-import haveno.proto.grpc.OfferInfo;
import haveno.apitest.method.offer.AbstractOfferTest;
import haveno.core.payment.PaymentAccount;
+import haveno.proto.grpc.OfferInfo;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/LongRunningTradesTest.java b/apitest/src/test/java/haveno/apitest/scenario/LongRunningTradesTest.java
index e715fc12a1..6f4c299675 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/LongRunningTradesTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/LongRunningTradesTest.java
@@ -17,8 +17,10 @@
package haveno.apitest.scenario;
+import haveno.apitest.method.trade.AbstractTradeTest;
+import haveno.apitest.method.trade.TakeBuyBTCOfferTest;
+import haveno.apitest.method.trade.TakeSellBTCOfferTest;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
@@ -28,10 +30,6 @@ import org.junit.jupiter.api.condition.EnabledIf;
import static java.lang.System.getenv;
-import haveno.apitest.method.trade.AbstractTradeTest;
-import haveno.apitest.method.trade.TakeBuyBTCOfferTest;
-import haveno.apitest.method.trade.TakeSellBTCOfferTest;
-
@EnabledIf("envLongRunningTestEnabled")
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/scenario/OfferTest.java b/apitest/src/test/java/haveno/apitest/scenario/OfferTest.java
index 3b13bca44c..067679ef92 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/OfferTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/OfferTest.java
@@ -25,7 +25,6 @@ import haveno.apitest.method.offer.CreateOfferUsingMarketPriceMarginTest;
import haveno.apitest.method.offer.CreateXMROffersTest;
import haveno.apitest.method.offer.ValidateCreateOfferTest;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/PaymentAccountTest.java b/apitest/src/test/java/haveno/apitest/scenario/PaymentAccountTest.java
index 75973f1b04..3067c6a111 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/PaymentAccountTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/PaymentAccountTest.java
@@ -1,7 +1,9 @@
package haveno.apitest.scenario;
+import haveno.apitest.method.payment.AbstractPaymentAccountTest;
+import haveno.apitest.method.payment.CreatePaymentAccountTest;
+import haveno.apitest.method.payment.GetPaymentMethodsTest;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.MethodOrderer;
@@ -15,10 +17,6 @@ import static haveno.apitest.config.HavenoAppConfig.alicedaemon;
import static haveno.apitest.config.HavenoAppConfig.seednode;
import static org.junit.jupiter.api.Assertions.fail;
-import haveno.apitest.method.payment.AbstractPaymentAccountTest;
-import haveno.apitest.method.payment.CreatePaymentAccountTest;
-import haveno.apitest.method.payment.GetPaymentMethodsTest;
-
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class PaymentAccountTest extends AbstractPaymentAccountTest {
diff --git a/apitest/src/test/java/haveno/apitest/scenario/ScriptedBotTest.java b/apitest/src/test/java/haveno/apitest/scenario/ScriptedBotTest.java
index 6bd3546398..630d6b78eb 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/ScriptedBotTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/ScriptedBotTest.java
@@ -17,8 +17,14 @@
package haveno.apitest.scenario;
+import haveno.apitest.config.ApiTestConfig;
+import haveno.apitest.method.BitcoinCliHelper;
+import haveno.apitest.scenario.bot.AbstractBotTest;
+import haveno.apitest.scenario.bot.BotClient;
+import haveno.apitest.scenario.bot.RobotBob;
+import haveno.apitest.scenario.bot.script.BashScriptGenerator;
+import haveno.apitest.scenario.bot.shutdown.ManualBotShutdownException;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
@@ -36,14 +42,6 @@ import static haveno.apitest.config.HavenoAppConfig.seednode;
import static haveno.apitest.scenario.bot.shutdown.ManualShutdown.startShutdownTimer;
import static org.junit.jupiter.api.Assertions.fail;
-import haveno.apitest.config.ApiTestConfig;
-import haveno.apitest.method.BitcoinCliHelper;
-import haveno.apitest.scenario.bot.AbstractBotTest;
-import haveno.apitest.scenario.bot.BotClient;
-import haveno.apitest.scenario.bot.RobotBob;
-import haveno.apitest.scenario.bot.script.BashScriptGenerator;
-import haveno.apitest.scenario.bot.shutdown.ManualBotShutdownException;
-
// The test case is enabled if AbstractBotTest#botScriptExists() returns true.
@EnabledIf("botScriptExists")
@Slf4j
diff --git a/apitest/src/test/java/haveno/apitest/scenario/StartupTest.java b/apitest/src/test/java/haveno/apitest/scenario/StartupTest.java
index 2e7664aa7e..05e6e13137 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/StartupTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/StartupTest.java
@@ -17,11 +17,12 @@
package haveno.apitest.scenario;
-import java.io.File;
-import java.io.IOException;
-
+import haveno.apitest.method.CallRateMeteringInterceptorTest;
+import haveno.apitest.method.GetMethodHelpTest;
+import haveno.apitest.method.GetVersionTest;
+import haveno.apitest.method.MethodTest;
+import haveno.apitest.method.RegisterDisputeAgentsTest;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.MethodOrderer;
@@ -29,6 +30,9 @@ import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
+import java.io.File;
+import java.io.IOException;
+
import static haveno.apitest.Scaffold.BitcoinCoreApp.bitcoind;
import static haveno.apitest.config.ApiTestRateMeterInterceptorConfig.getTestRateMeterInterceptorConfig;
import static haveno.apitest.config.HavenoAppConfig.alicedaemon;
@@ -37,12 +41,6 @@ import static haveno.apitest.config.HavenoAppConfig.seednode;
import static haveno.common.file.FileUtil.deleteFileIfExists;
import static org.junit.jupiter.api.Assertions.fail;
-import haveno.apitest.method.CallRateMeteringInterceptorTest;
-import haveno.apitest.method.GetMethodHelpTest;
-import haveno.apitest.method.GetVersionTest;
-import haveno.apitest.method.MethodTest;
-import haveno.apitest.method.RegisterDisputeAgentsTest;
-
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
diff --git a/apitest/src/test/java/haveno/apitest/scenario/TradeTest.java b/apitest/src/test/java/haveno/apitest/scenario/TradeTest.java
index c4eaa44014..b1c97cce02 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/TradeTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/TradeTest.java
@@ -24,7 +24,6 @@ import haveno.apitest.method.trade.TakeBuyXMROfferTest;
import haveno.apitest.method.trade.TakeSellBTCOfferTest;
import haveno.apitest.method.trade.TakeSellXMROfferTest;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/WalletTest.java b/apitest/src/test/java/haveno/apitest/scenario/WalletTest.java
index 3dccec7764..17e065b211 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/WalletTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/WalletTest.java
@@ -17,8 +17,10 @@
package haveno.apitest.scenario;
+import haveno.apitest.method.MethodTest;
+import haveno.apitest.method.wallet.BtcWalletTest;
+import haveno.apitest.method.wallet.WalletProtectionTest;
import lombok.extern.slf4j.Slf4j;
-
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.MethodOrderer;
@@ -33,10 +35,6 @@ import static haveno.apitest.config.HavenoAppConfig.arbdaemon;
import static haveno.apitest.config.HavenoAppConfig.bobdaemon;
import static haveno.apitest.config.HavenoAppConfig.seednode;
-import haveno.apitest.method.MethodTest;
-import haveno.apitest.method.wallet.BtcWalletTest;
-import haveno.apitest.method.wallet.WalletProtectionTest;
-
@Slf4j
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class WalletTest extends MethodTest {
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/AbstractBotTest.java b/apitest/src/test/java/haveno/apitest/scenario/bot/AbstractBotTest.java
index f03cdc4426..16c3abd1d8 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/AbstractBotTest.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/AbstractBotTest.java
@@ -17,19 +17,17 @@
package haveno.apitest.scenario.bot;
-import protobuf.PaymentAccount;
-
import com.google.gson.GsonBuilder;
import haveno.apitest.method.MethodTest;
import haveno.apitest.scenario.bot.script.BashScriptGenerator;
import haveno.apitest.scenario.bot.script.BotScript;
import haveno.core.locale.Country;
-import java.nio.file.Paths;
+import lombok.extern.slf4j.Slf4j;
+import protobuf.PaymentAccount;
import java.io.File;
import java.io.IOException;
-
-import lombok.extern.slf4j.Slf4j;
+import java.nio.file.Paths;
import static haveno.core.locale.CountryUtil.findCountryByCode;
import static haveno.core.payment.payload.PaymentMethod.CLEAR_X_CHANGE_ID;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/Bot.java b/apitest/src/test/java/haveno/apitest/scenario/bot/Bot.java
index 9d86a30a63..7fe539a16a 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/Bot.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/Bot.java
@@ -4,9 +4,8 @@ import haveno.apitest.method.BitcoinCliHelper;
import haveno.apitest.scenario.bot.script.BashScriptGenerator;
import haveno.apitest.scenario.bot.script.BotScript;
import haveno.core.locale.Country;
-import protobuf.PaymentAccount;
-
import lombok.extern.slf4j.Slf4j;
+import protobuf.PaymentAccount;
import static haveno.core.locale.CountryUtil.findCountryByCode;
import static haveno.core.payment.payload.PaymentMethod.CLEAR_X_CHANGE_ID;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/BotClient.java b/apitest/src/test/java/haveno/apitest/scenario/bot/BotClient.java
index bc5aed8b0e..e6b1b6d01a 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/BotClient.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/BotClient.java
@@ -17,21 +17,18 @@
package haveno.apitest.scenario.bot;
+import haveno.cli.GrpcClient;
import haveno.proto.grpc.BalancesInfo;
import haveno.proto.grpc.GetPaymentAccountsRequest;
import haveno.proto.grpc.OfferInfo;
import haveno.proto.grpc.TradeInfo;
-import haveno.cli.GrpcClient;
-import haveno.core.api.model.PaymentAccountForm;
+import lombok.extern.slf4j.Slf4j;
import protobuf.PaymentAccount;
import java.text.DecimalFormat;
-
import java.util.List;
import java.util.function.BiPredicate;
-import lombok.extern.slf4j.Slf4j;
-
import static org.apache.commons.lang3.StringUtils.capitalize;
/**
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/BotPaymentAccountGenerator.java b/apitest/src/test/java/haveno/apitest/scenario/bot/BotPaymentAccountGenerator.java
index e6a7af306a..565101f3c1 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/BotPaymentAccountGenerator.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/BotPaymentAccountGenerator.java
@@ -1,19 +1,17 @@
package haveno.apitest.scenario.bot;
-import protobuf.PaymentAccount;
-
-import static haveno.core.payment.payload.PaymentMethod.CLEAR_X_CHANGE_ID;
-import static haveno.core.payment.payload.PaymentMethod.F2F_ID;
-
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import haveno.core.api.model.PaymentAccountForm;
import haveno.core.locale.Country;
-import java.io.File;
+import lombok.extern.slf4j.Slf4j;
+import protobuf.PaymentAccount;
+import java.io.File;
import java.util.Map;
-import lombok.extern.slf4j.Slf4j;
+import static haveno.core.payment.payload.PaymentMethod.CLEAR_X_CHANGE_ID;
+import static haveno.core.payment.payload.PaymentMethod.F2F_ID;
@Slf4j
public class BotPaymentAccountGenerator {
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/RandomOffer.java b/apitest/src/test/java/haveno/apitest/scenario/bot/RandomOffer.java
index a31d49ed0e..e295cd03e0 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/RandomOffer.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/RandomOffer.java
@@ -18,20 +18,15 @@
package haveno.apitest.scenario.bot;
import haveno.proto.grpc.OfferInfo;
-
-import protobuf.PaymentAccount;
-
-import java.security.SecureRandom;
-
-import java.text.DecimalFormat;
-
-import java.math.BigDecimal;
-
-import java.util.Objects;
-import java.util.function.Supplier;
-
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
+import protobuf.PaymentAccount;
+
+import java.math.BigDecimal;
+import java.security.SecureRandom;
+import java.text.DecimalFormat;
+import java.util.Objects;
+import java.util.function.Supplier;
import static haveno.apitest.method.offer.AbstractOfferTest.defaultBuyerSecurityDepositPct;
import static haveno.cli.CurrencyFormat.formatInternalFiatPrice;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/RobotBob.java b/apitest/src/test/java/haveno/apitest/scenario/bot/RobotBob.java
index 30375c9ff7..7787419c84 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/RobotBob.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/RobotBob.java
@@ -17,14 +17,6 @@
package haveno.apitest.scenario.bot;
-import lombok.Getter;
-import lombok.extern.slf4j.Slf4j;
-
-import static haveno.apitest.scenario.bot.protocol.ProtocolStep.DONE;
-import static haveno.apitest.scenario.bot.shutdown.ManualShutdown.isShutdownCalled;
-import static haveno.cli.table.builder.TableType.BTC_BALANCE_TBL;
-import static java.util.concurrent.TimeUnit.SECONDS;
-
import haveno.apitest.method.BitcoinCliHelper;
import haveno.apitest.scenario.bot.protocol.BotProtocol;
import haveno.apitest.scenario.bot.protocol.MakerBotProtocol;
@@ -33,6 +25,13 @@ import haveno.apitest.scenario.bot.script.BashScriptGenerator;
import haveno.apitest.scenario.bot.script.BotScript;
import haveno.apitest.scenario.bot.shutdown.ManualBotShutdownException;
import haveno.cli.table.builder.TableBuilder;
+import lombok.Getter;
+import lombok.extern.slf4j.Slf4j;
+
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.DONE;
+import static haveno.apitest.scenario.bot.shutdown.ManualShutdown.isShutdownCalled;
+import static haveno.cli.table.builder.TableType.BTC_BALANCE_TBL;
+import static java.util.concurrent.TimeUnit.SECONDS;
@Slf4j
public
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/BotProtocol.java b/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/BotProtocol.java
index 5f5875fe6b..6c831d41e9 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/BotProtocol.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/BotProtocol.java
@@ -18,18 +18,18 @@
package haveno.apitest.scenario.bot.protocol;
-import haveno.proto.grpc.TradeInfo;
import haveno.apitest.method.BitcoinCliHelper;
import haveno.apitest.scenario.bot.BotClient;
import haveno.apitest.scenario.bot.script.BashScriptGenerator;
import haveno.apitest.scenario.bot.shutdown.ManualBotShutdownException;
import haveno.cli.table.builder.TableBuilder;
+import haveno.proto.grpc.TradeInfo;
+import lombok.Getter;
+import lombok.extern.slf4j.Slf4j;
import protobuf.PaymentAccount;
-import java.security.SecureRandom;
-
import java.io.File;
-
+import java.security.SecureRandom;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.Consumer;
@@ -38,10 +38,14 @@ import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.stream.Collectors;
-import lombok.Getter;
-import lombok.extern.slf4j.Slf4j;
-
-import static haveno.apitest.scenario.bot.protocol.ProtocolStep.*;
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.SEND_PAYMENT_RECEIVED_CONFIRMATION_MESSAGE;
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.SEND_PAYMENT_SENT_MESSAGE;
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.START;
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.WAIT_FOR_PAYMENT_RECEIVED_CONFIRMATION_MESSAGE;
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.WAIT_FOR_PAYMENT_SENT_MESSAGE;
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.WAIT_FOR_PAYOUT_TX;
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.WAIT_FOR_TAKER_DEPOSIT_TX_CONFIRMED;
+import static haveno.apitest.scenario.bot.protocol.ProtocolStep.WAIT_FOR_TAKER_DEPOSIT_TX_PUBLISHED;
import static haveno.apitest.scenario.bot.shutdown.ManualShutdown.checkIfShutdownCalled;
import static haveno.cli.table.builder.TableType.TRADE_DETAIL_TBL;
import static java.lang.String.format;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/MakerBotProtocol.java b/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/MakerBotProtocol.java
index f5d706e65f..29d5058339 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/MakerBotProtocol.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/MakerBotProtocol.java
@@ -1,23 +1,21 @@
package haveno.apitest.scenario.bot.protocol;
-import haveno.proto.grpc.OfferInfo;
-import haveno.proto.grpc.TradeInfo;
import haveno.apitest.method.BitcoinCliHelper;
import haveno.apitest.scenario.bot.BotClient;
import haveno.apitest.scenario.bot.RandomOffer;
import haveno.apitest.scenario.bot.script.BashScriptGenerator;
import haveno.apitest.scenario.bot.shutdown.ManualBotShutdownException;
import haveno.cli.table.builder.TableBuilder;
+import haveno.proto.grpc.OfferInfo;
+import haveno.proto.grpc.TradeInfo;
+import lombok.extern.slf4j.Slf4j;
import protobuf.PaymentAccount;
import java.io.File;
-
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Supplier;
-import lombok.extern.slf4j.Slf4j;
-
import static haveno.apitest.scenario.bot.protocol.ProtocolStep.DONE;
import static haveno.apitest.scenario.bot.protocol.ProtocolStep.WAIT_FOR_OFFER_TAKER;
import static haveno.apitest.scenario.bot.shutdown.ManualShutdown.checkIfShutdownCalled;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/TakerBotProtocol.java b/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/TakerBotProtocol.java
index b774cc0815..8a28b764cf 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/TakerBotProtocol.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/protocol/TakerBotProtocol.java
@@ -1,22 +1,20 @@
package haveno.apitest.scenario.bot.protocol;
-import haveno.proto.grpc.OfferInfo;
-import haveno.proto.grpc.TradeInfo;
import haveno.apitest.method.BitcoinCliHelper;
import haveno.apitest.scenario.bot.BotClient;
import haveno.apitest.scenario.bot.script.BashScriptGenerator;
import haveno.apitest.scenario.bot.shutdown.ManualBotShutdownException;
import haveno.cli.table.builder.TableBuilder;
+import haveno.proto.grpc.OfferInfo;
+import haveno.proto.grpc.TradeInfo;
+import lombok.extern.slf4j.Slf4j;
import protobuf.PaymentAccount;
import java.io.File;
-
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Supplier;
-import lombok.extern.slf4j.Slf4j;
-
import static haveno.apitest.scenario.bot.protocol.ProtocolStep.DONE;
import static haveno.apitest.scenario.bot.protocol.ProtocolStep.FIND_OFFER;
import static haveno.apitest.scenario.bot.protocol.ProtocolStep.TAKE_OFFER;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/script/BashScriptGenerator.java b/apitest/src/test/java/haveno/apitest/scenario/bot/script/BashScriptGenerator.java
index 0c72058e32..52af873516 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/script/BashScriptGenerator.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/script/BashScriptGenerator.java
@@ -17,23 +17,20 @@
package haveno.apitest.scenario.bot.script;
-import haveno.proto.grpc.OfferInfo;
-import haveno.proto.grpc.TradeInfo;
-
import com.google.common.io.Files;
import haveno.common.file.FileUtil;
-import java.nio.file.Paths;
+import haveno.proto.grpc.OfferInfo;
+import haveno.proto.grpc.TradeInfo;
+import lombok.Getter;
+import lombok.extern.slf4j.Slf4j;
import java.io.File;
import java.io.IOException;
-
+import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import lombok.Getter;
-import lombok.extern.slf4j.Slf4j;
-
import static com.google.common.io.FileWriteMode.APPEND;
import static java.lang.String.format;
import static java.lang.System.getProperty;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/script/BotScriptGenerator.java b/apitest/src/test/java/haveno/apitest/scenario/bot/script/BotScriptGenerator.java
index f6fee1c971..e39e78761e 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/script/BotScriptGenerator.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/script/BotScriptGenerator.java
@@ -23,14 +23,12 @@ import joptsimple.BuiltinHelpFormatter;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import joptsimple.OptionSpec;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.PrintStream;
-
import lombok.extern.slf4j.Slf4j;
import javax.annotation.Nullable;
+import java.io.File;
+import java.io.IOException;
+import java.io.PrintStream;
import static java.lang.System.err;
import static java.lang.System.exit;
diff --git a/apitest/src/test/java/haveno/apitest/scenario/bot/shutdown/ManualShutdown.java b/apitest/src/test/java/haveno/apitest/scenario/bot/shutdown/ManualShutdown.java
index 833379d83d..75416e5185 100644
--- a/apitest/src/test/java/haveno/apitest/scenario/bot/shutdown/ManualShutdown.java
+++ b/apitest/src/test/java/haveno/apitest/scenario/bot/shutdown/ManualShutdown.java
@@ -1,17 +1,15 @@
package haveno.apitest.scenario.bot.shutdown;
+import haveno.common.UserThread;
+import lombok.extern.slf4j.Slf4j;
+
import java.io.File;
import java.io.IOException;
-
import java.util.concurrent.atomic.AtomicBoolean;
-import lombok.extern.slf4j.Slf4j;
-
import static haveno.common.file.FileUtil.deleteFileIfExists;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
-import haveno.common.UserThread;
-
@Slf4j
public class ManualShutdown {
diff --git a/assets/src/main/java/haveno/asset/CryptoNoteUtils.java b/assets/src/main/java/haveno/asset/CryptoNoteUtils.java
index 3b9bcb7427..5169f04cf5 100644
--- a/assets/src/main/java/haveno/asset/CryptoNoteUtils.java
+++ b/assets/src/main/java/haveno/asset/CryptoNoteUtils.java
@@ -19,11 +19,9 @@ package haveno.asset;
import org.bitcoinj.core.Utils;
+import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
-
-import java.math.BigInteger;
-
import java.util.Arrays;
import java.util.Map;
diff --git a/assets/src/test/java/haveno/asset/AbstractAssetTest.java b/assets/src/test/java/haveno/asset/AbstractAssetTest.java
index 3e89245e80..a5cbf562da 100644
--- a/assets/src/test/java/haveno/asset/AbstractAssetTest.java
+++ b/assets/src/test/java/haveno/asset/AbstractAssetTest.java
@@ -22,10 +22,6 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
-import haveno.asset.AddressValidationResult;
-import haveno.asset.Asset;
-import haveno.asset.AssetRegistry;
-
/**
* Abstract base class for all {@link Asset} unit tests. Subclasses must implement the
* {@link #testValidAddresses()} and {@link #testInvalidAddresses()} methods, and are
diff --git a/assets/src/test/java/haveno/asset/coins/BitcoinCashTest.java b/assets/src/test/java/haveno/asset/coins/BitcoinCashTest.java
index 0201374838..90e8f2e2fd 100644
--- a/assets/src/test/java/haveno/asset/coins/BitcoinCashTest.java
+++ b/assets/src/test/java/haveno/asset/coins/BitcoinCashTest.java
@@ -18,7 +18,6 @@
package haveno.asset.coins;
import haveno.asset.AbstractAssetTest;
-import haveno.asset.coins.BitcoinCash;
import org.junit.Test;
public class BitcoinCashTest extends AbstractAssetTest {
diff --git a/assets/src/test/java/haveno/asset/coins/BitcoinTest.java b/assets/src/test/java/haveno/asset/coins/BitcoinTest.java
index dcff5eed90..66264fe314 100644
--- a/assets/src/test/java/haveno/asset/coins/BitcoinTest.java
+++ b/assets/src/test/java/haveno/asset/coins/BitcoinTest.java
@@ -18,7 +18,6 @@
package haveno.asset.coins;
import haveno.asset.AbstractAssetTest;
-import haveno.asset.coins.Bitcoin;
import org.junit.Test;
public class BitcoinTest extends AbstractAssetTest {
diff --git a/assets/src/test/java/haveno/asset/coins/LitecoinTest.java b/assets/src/test/java/haveno/asset/coins/LitecoinTest.java
index 29a7cfd49f..908022bf65 100644
--- a/assets/src/test/java/haveno/asset/coins/LitecoinTest.java
+++ b/assets/src/test/java/haveno/asset/coins/LitecoinTest.java
@@ -18,7 +18,6 @@
package haveno.asset.coins;
import haveno.asset.AbstractAssetTest;
-import haveno.asset.coins.Litecoin;
import org.junit.Test;
public class LitecoinTest extends AbstractAssetTest {
diff --git a/assets/src/test/java/haveno/asset/coins/MoneroTest.java b/assets/src/test/java/haveno/asset/coins/MoneroTest.java
index ca165644b5..9af327fa56 100644
--- a/assets/src/test/java/haveno/asset/coins/MoneroTest.java
+++ b/assets/src/test/java/haveno/asset/coins/MoneroTest.java
@@ -18,7 +18,6 @@
package haveno.asset.coins;
import haveno.asset.AbstractAssetTest;
-import haveno.asset.coins.Monero;
import org.junit.Test;
public class MoneroTest extends AbstractAssetTest {
diff --git a/build.gradle b/build.gradle
index d68d95e541..1bf1a756fa 100644
--- a/build.gradle
+++ b/build.gradle
@@ -27,6 +27,7 @@ configure(subprojects) {
apply plugin: 'com.google.osdetector'
// Apply the jacoco plugin to add support for test coverage
apply plugin: 'jacoco'
+ apply plugin: 'checkstyle'
sourceCompatibility = JavaVersion.VERSION_11
@@ -95,6 +96,12 @@ configure(subprojects) {
options.encoding = 'UTF-8'
}
+ checkstyle {
+ toolVersion = '10.8.1'
+ // https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-10.8.1/src/main/resources/google_checks.xml
+ configFile = rootProject.file("${rootDir}/config/checkstyle.xml")
+ }
+
jacocoTestReport {
reports {
xml.enabled true
@@ -105,7 +112,6 @@ configure(subprojects) {
test.finalizedBy jacocoTestReport
}
-
configure([project(':cli'),
project(':daemon'),
project(':desktop'),
diff --git a/cli/src/main/java/haveno/cli/CliMain.java b/cli/src/main/java/haveno/cli/CliMain.java
index fe373bd967..6063227be8 100644
--- a/cli/src/main/java/haveno/cli/CliMain.java
+++ b/cli/src/main/java/haveno/cli/CliMain.java
@@ -17,8 +17,6 @@
package haveno.cli;
-import haveno.proto.grpc.OfferInfo;
-import haveno.proto.grpc.TradeInfo;
import haveno.cli.opts.ArgumentList;
import haveno.cli.opts.CancelOfferOptionParser;
import haveno.cli.opts.CreateCryptoCurrencyPaymentAcctOptionParser;
@@ -31,45 +29,87 @@ import haveno.cli.opts.GetOffersOptionParser;
import haveno.cli.opts.GetPaymentAcctFormOptionParser;
import haveno.cli.opts.GetTradeOptionParser;
import haveno.cli.opts.GetTradesOptionParser;
-import haveno.cli.opts.GetTransactionOptionParser;
import haveno.cli.opts.OfferIdOptionParser;
import haveno.cli.opts.RegisterDisputeAgentOptionParser;
import haveno.cli.opts.RemoveWalletPasswordOptionParser;
import haveno.cli.opts.SendBtcOptionParser;
-import haveno.cli.opts.SetTxFeeRateOptionParser;
import haveno.cli.opts.SetWalletPasswordOptionParser;
import haveno.cli.opts.SimpleMethodOptionParser;
import haveno.cli.opts.TakeOfferOptionParser;
import haveno.cli.opts.UnlockWalletOptionParser;
import haveno.cli.opts.WithdrawFundsOptionParser;
import haveno.cli.table.builder.TableBuilder;
+import haveno.proto.grpc.OfferInfo;
import io.grpc.StatusRuntimeException;
-
import joptsimple.OptionParser;
import joptsimple.OptionSet;
-
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import lombok.extern.slf4j.Slf4j;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
-
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
import java.util.Date;
import java.util.List;
-import lombok.extern.slf4j.Slf4j;
-
-import static haveno.proto.grpc.GetTradesRequest.Category.CLOSED;
-import static haveno.proto.grpc.GetTradesRequest.Category.OPEN;
import static haveno.cli.CurrencyFormat.formatInternalFiatPrice;
import static haveno.cli.CurrencyFormat.toSatoshis;
-import static haveno.cli.Method.*;
-import static haveno.cli.opts.OptLabel.*;
-import static haveno.cli.table.builder.TableType.*;
+import static haveno.cli.Method.canceloffer;
+import static haveno.cli.Method.closetrade;
+import static haveno.cli.Method.confirmpaymentreceived;
+import static haveno.cli.Method.confirmpaymentsent;
+import static haveno.cli.Method.createcryptopaymentacct;
+import static haveno.cli.Method.createoffer;
+import static haveno.cli.Method.createpaymentacct;
+import static haveno.cli.Method.editoffer;
+import static haveno.cli.Method.failtrade;
+import static haveno.cli.Method.getaddressbalance;
+import static haveno.cli.Method.getbalance;
+import static haveno.cli.Method.getbtcprice;
+import static haveno.cli.Method.getfundingaddresses;
+import static haveno.cli.Method.getmyoffer;
+import static haveno.cli.Method.getmyoffers;
+import static haveno.cli.Method.getoffer;
+import static haveno.cli.Method.getoffers;
+import static haveno.cli.Method.getpaymentacctform;
+import static haveno.cli.Method.getpaymentaccts;
+import static haveno.cli.Method.getpaymentmethods;
+import static haveno.cli.Method.gettrade;
+import static haveno.cli.Method.gettrades;
+import static haveno.cli.Method.gettransaction;
+import static haveno.cli.Method.gettxfeerate;
+import static haveno.cli.Method.getunusedbsqaddress;
+import static haveno.cli.Method.getversion;
+import static haveno.cli.Method.lockwallet;
+import static haveno.cli.Method.sendbtc;
+import static haveno.cli.Method.settxfeerate;
+import static haveno.cli.Method.setwalletpassword;
+import static haveno.cli.Method.stop;
+import static haveno.cli.Method.takeoffer;
+import static haveno.cli.Method.unfailtrade;
+import static haveno.cli.Method.unlockwallet;
+import static haveno.cli.Method.unsettxfeerate;
+import static haveno.cli.Method.withdrawfunds;
+import static haveno.cli.opts.OptLabel.OPT_AMOUNT;
+import static haveno.cli.opts.OptLabel.OPT_HELP;
+import static haveno.cli.opts.OptLabel.OPT_HOST;
+import static haveno.cli.opts.OptLabel.OPT_PASSWORD;
+import static haveno.cli.opts.OptLabel.OPT_PORT;
+import static haveno.cli.opts.OptLabel.OPT_TX_FEE_RATE;
+import static haveno.cli.table.builder.TableType.ADDRESS_BALANCE_TBL;
+import static haveno.cli.table.builder.TableType.BTC_BALANCE_TBL;
+import static haveno.cli.table.builder.TableType.CLOSED_TRADES_TBL;
+import static haveno.cli.table.builder.TableType.FAILED_TRADES_TBL;
+import static haveno.cli.table.builder.TableType.OFFER_TBL;
+import static haveno.cli.table.builder.TableType.OPEN_TRADES_TBL;
+import static haveno.cli.table.builder.TableType.PAYMENT_ACCOUNT_TBL;
+import static haveno.cli.table.builder.TableType.TRADE_DETAIL_TBL;
+import static haveno.proto.grpc.GetTradesRequest.Category.CLOSED;
+import static haveno.proto.grpc.GetTradesRequest.Category.OPEN;
import static java.lang.String.format;
import static java.lang.System.err;
import static java.lang.System.exit;
diff --git a/cli/src/main/java/haveno/cli/CurrencyFormat.java b/cli/src/main/java/haveno/cli/CurrencyFormat.java
index b5a9e2d24a..4686dee1a5 100644
--- a/cli/src/main/java/haveno/cli/CurrencyFormat.java
+++ b/cli/src/main/java/haveno/cli/CurrencyFormat.java
@@ -19,12 +19,10 @@ package haveno.cli;
import com.google.common.annotations.VisibleForTesting;
+import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.NumberFormat;
-
-import java.math.BigDecimal;
-
import java.util.Locale;
import static java.lang.String.format;
diff --git a/cli/src/main/java/haveno/cli/GrpcClient.java b/cli/src/main/java/haveno/cli/GrpcClient.java
index ec59b4a6e6..f08a16df93 100644
--- a/cli/src/main/java/haveno/cli/GrpcClient.java
+++ b/cli/src/main/java/haveno/cli/GrpcClient.java
@@ -17,6 +17,10 @@
package haveno.cli;
+import haveno.cli.request.OffersServiceRequest;
+import haveno.cli.request.PaymentAccountsServiceRequest;
+import haveno.cli.request.TradesServiceRequest;
+import haveno.cli.request.WalletsServiceRequest;
import haveno.proto.grpc.AddressBalanceInfo;
import haveno.proto.grpc.BalancesInfo;
import haveno.proto.grpc.BtcBalanceInfo;
@@ -27,18 +31,12 @@ import haveno.proto.grpc.OfferInfo;
import haveno.proto.grpc.RegisterDisputeAgentRequest;
import haveno.proto.grpc.StopRequest;
import haveno.proto.grpc.TradeInfo;
-import haveno.cli.request.OffersServiceRequest;
-import haveno.cli.request.PaymentAccountsServiceRequest;
-import haveno.cli.request.TradesServiceRequest;
-import haveno.cli.request.WalletsServiceRequest;
+import lombok.extern.slf4j.Slf4j;
import protobuf.PaymentAccount;
-import protobuf.PaymentAccountForm;
import protobuf.PaymentMethod;
import java.util.List;
-import lombok.extern.slf4j.Slf4j;
-
@SuppressWarnings("ResultOfMethodCallIgnored")
@Slf4j
diff --git a/cli/src/main/java/haveno/cli/GrpcStubs.java b/cli/src/main/java/haveno/cli/GrpcStubs.java
index 27e2f262c4..677372d8fc 100644
--- a/cli/src/main/java/haveno/cli/GrpcStubs.java
+++ b/cli/src/main/java/haveno/cli/GrpcStubs.java
@@ -26,7 +26,6 @@ import haveno.proto.grpc.PriceGrpc;
import haveno.proto.grpc.ShutdownServerGrpc;
import haveno.proto.grpc.TradesGrpc;
import haveno.proto.grpc.WalletsGrpc;
-
import io.grpc.CallCredentials;
import io.grpc.ManagedChannelBuilder;
diff --git a/cli/src/main/java/haveno/cli/opts/AbstractMethodOptionParser.java b/cli/src/main/java/haveno/cli/opts/AbstractMethodOptionParser.java
index abfa821e16..d9c372975e 100644
--- a/cli/src/main/java/haveno/cli/opts/AbstractMethodOptionParser.java
+++ b/cli/src/main/java/haveno/cli/opts/AbstractMethodOptionParser.java
@@ -21,13 +21,12 @@ import joptsimple.OptionException;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import joptsimple.OptionSpec;
+import lombok.Getter;
import java.util.List;
import java.util.function.Function;
import java.util.function.Predicate;
-import lombok.Getter;
-
import static haveno.cli.opts.OptLabel.OPT_HELP;
import static java.lang.String.format;
diff --git a/cli/src/main/java/haveno/cli/opts/CreateOfferOptionParser.java b/cli/src/main/java/haveno/cli/opts/CreateOfferOptionParser.java
index 0b495db4db..204e04c3ae 100644
--- a/cli/src/main/java/haveno/cli/opts/CreateOfferOptionParser.java
+++ b/cli/src/main/java/haveno/cli/opts/CreateOfferOptionParser.java
@@ -20,7 +20,14 @@ package haveno.cli.opts;
import joptsimple.OptionSpec;
-import static haveno.cli.opts.OptLabel.*;
+import static haveno.cli.opts.OptLabel.OPT_AMOUNT;
+import static haveno.cli.opts.OptLabel.OPT_CURRENCY_CODE;
+import static haveno.cli.opts.OptLabel.OPT_DIRECTION;
+import static haveno.cli.opts.OptLabel.OPT_FIXED_PRICE;
+import static haveno.cli.opts.OptLabel.OPT_MIN_AMOUNT;
+import static haveno.cli.opts.OptLabel.OPT_MKT_PRICE_MARGIN;
+import static haveno.cli.opts.OptLabel.OPT_PAYMENT_ACCOUNT_ID;
+import static haveno.cli.opts.OptLabel.OPT_SECURITY_DEPOSIT;
import static joptsimple.internal.Strings.EMPTY;
public class CreateOfferOptionParser extends AbstractMethodOptionParser implements MethodOpts {
diff --git a/cli/src/main/java/haveno/cli/opts/GetAddressBalanceOptionParser.java b/cli/src/main/java/haveno/cli/opts/GetAddressBalanceOptionParser.java
index 829e904297..c316b9a1eb 100644
--- a/cli/src/main/java/haveno/cli/opts/GetAddressBalanceOptionParser.java
+++ b/cli/src/main/java/haveno/cli/opts/GetAddressBalanceOptionParser.java
@@ -18,10 +18,10 @@
package haveno.cli.opts;
-import static haveno.cli.opts.OptLabel.OPT_ADDRESS;
-
import joptsimple.OptionSpec;
+import static haveno.cli.opts.OptLabel.OPT_ADDRESS;
+
public class GetAddressBalanceOptionParser extends AbstractMethodOptionParser implements MethodOpts {
final OptionSpec> collection,
@Nullable String value,
diff --git a/core/src/main/java/haveno/core/network/p2p/inventory/model/InventoryItem.java b/core/src/main/java/haveno/core/network/p2p/inventory/model/InventoryItem.java
index 3df57fad20..bd9d1a2544 100644
--- a/core/src/main/java/haveno/core/network/p2p/inventory/model/InventoryItem.java
+++ b/core/src/main/java/haveno/core/network/p2p/inventory/model/InventoryItem.java
@@ -18,15 +18,14 @@
package haveno.core.network.p2p.inventory.model;
import haveno.common.util.Tuple2;
+import lombok.Getter;
+import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
+
import java.util.Collection;
import java.util.List;
import java.util.Map;
-import lombok.Getter;
-
-import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
-
public enum InventoryItem {
// Percentage deviation
OfferPayload("OfferPayload",
diff --git a/core/src/main/java/haveno/core/network/p2p/inventory/model/RequestInfo.java b/core/src/main/java/haveno/core/network/p2p/inventory/model/RequestInfo.java
index edfe8cc4c2..26ad6b377a 100644
--- a/core/src/main/java/haveno/core/network/p2p/inventory/model/RequestInfo.java
+++ b/core/src/main/java/haveno/core/network/p2p/inventory/model/RequestInfo.java
@@ -17,15 +17,14 @@
package haveno.core.network.p2p.inventory.model;
-import java.util.HashMap;
-import java.util.Map;
-
import lombok.Getter;
import lombok.Setter;
import lombok.Value;
-
import org.jetbrains.annotations.Nullable;
+import java.util.HashMap;
+import java.util.Map;
+
@Getter
public class RequestInfo {
// Carries latest commit hash of feature changes (not latest commit as that is then the commit for editing that field)
diff --git a/core/src/main/java/haveno/core/network/p2p/seed/DefaultSeedNodeRepository.java b/core/src/main/java/haveno/core/network/p2p/seed/DefaultSeedNodeRepository.java
index 0418ce9a65..ce2e1be653 100644
--- a/core/src/main/java/haveno/core/network/p2p/seed/DefaultSeedNodeRepository.java
+++ b/core/src/main/java/haveno/core/network/p2p/seed/DefaultSeedNodeRepository.java
@@ -20,13 +20,13 @@ package haveno.core.network.p2p.seed;
import haveno.common.config.Config;
import haveno.network.p2p.NodeAddress;
import haveno.network.p2p.seed.SeedNodeRepository;
+import lombok.extern.slf4j.Slf4j;
+
import javax.inject.Inject;
import javax.inject.Singleton;
-
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
-
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
@@ -36,8 +36,6 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
-import lombok.extern.slf4j.Slf4j;
-
// If a new BaseCurrencyNetwork type gets added we need to add the resource file for it as well!
@Slf4j
@Singleton
diff --git a/core/src/main/java/haveno/core/notifications/MobileMessage.java b/core/src/main/java/haveno/core/notifications/MobileMessage.java
index 27f65f9bd9..445e13c3f9 100644
--- a/core/src/main/java/haveno/core/notifications/MobileMessage.java
+++ b/core/src/main/java/haveno/core/notifications/MobileMessage.java
@@ -18,10 +18,10 @@
package haveno.core.notifications;
import haveno.common.util.JsonExclude;
-import java.util.Date;
-
import lombok.Value;
+import java.util.Date;
+
@Value
public class MobileMessage {
private long sentDate;
diff --git a/core/src/main/java/haveno/core/notifications/MobileMessageEncryption.java b/core/src/main/java/haveno/core/notifications/MobileMessageEncryption.java
index 77d1bb8e2f..a2afc95e37 100644
--- a/core/src/main/java/haveno/core/notifications/MobileMessageEncryption.java
+++ b/core/src/main/java/haveno/core/notifications/MobileMessageEncryption.java
@@ -17,22 +17,18 @@
package haveno.core.notifications;
-import javax.inject.Inject;
-import javax.inject.Singleton;
-
import com.google.common.base.Charsets;
-
+import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.binary.Base64;
import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
-
+import javax.inject.Inject;
+import javax.inject.Singleton;
import java.security.NoSuchAlgorithmException;
-import lombok.extern.slf4j.Slf4j;
-
@Slf4j
@Singleton
public class MobileMessageEncryption {
diff --git a/core/src/main/java/haveno/core/notifications/MobileModel.java b/core/src/main/java/haveno/core/notifications/MobileModel.java
index ed904429e7..6adf318db1 100644
--- a/core/src/main/java/haveno/core/notifications/MobileModel.java
+++ b/core/src/main/java/haveno/core/notifications/MobileModel.java
@@ -17,18 +17,15 @@
package haveno.core.notifications;
-import javax.inject.Inject;
-import javax.inject.Singleton;
-
import com.google.common.annotations.VisibleForTesting;
-
-import java.util.Arrays;
-
import lombok.Data;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import javax.annotation.Nullable;
+import javax.inject.Inject;
+import javax.inject.Singleton;
+import java.util.Arrays;
@Data
@Slf4j
diff --git a/core/src/main/java/haveno/core/notifications/MobileNotificationService.java b/core/src/main/java/haveno/core/notifications/MobileNotificationService.java
index 05f0913dfc..c222f3b704 100644
--- a/core/src/main/java/haveno/core/notifications/MobileNotificationService.java
+++ b/core/src/main/java/haveno/core/notifications/MobileNotificationService.java
@@ -17,8 +17,12 @@
package haveno.core.notifications;
+import com.google.common.util.concurrent.FutureCallback;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
import com.google.gson.Gson;
-
import com.google.inject.Inject;
import com.google.inject.Singleton;
import haveno.common.UserThread;
@@ -27,27 +31,17 @@ import haveno.common.config.Config;
import haveno.common.util.Utilities;
import haveno.core.user.Preferences;
import haveno.network.http.HttpClient;
-import javax.inject.Named;
-
-import com.google.common.util.concurrent.FutureCallback;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.ListeningExecutorService;
-import com.google.common.util.concurrent.MoreExecutors;
-
-import org.apache.commons.codec.binary.Hex;
-
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
-
-import java.util.UUID;
-import java.util.function.Consumer;
-
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
-
+import org.apache.commons.codec.binary.Hex;
import org.jetbrains.annotations.NotNull;
+import javax.inject.Named;
+import java.util.UUID;
+import java.util.function.Consumer;
+
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
diff --git a/core/src/main/java/haveno/core/notifications/MobileNotificationValidator.java b/core/src/main/java/haveno/core/notifications/MobileNotificationValidator.java
index f4ffd89ab7..0004defa41 100644
--- a/core/src/main/java/haveno/core/notifications/MobileNotificationValidator.java
+++ b/core/src/main/java/haveno/core/notifications/MobileNotificationValidator.java
@@ -17,11 +17,11 @@
package haveno.core.notifications;
+import lombok.extern.slf4j.Slf4j;
+
import javax.inject.Inject;
import javax.inject.Singleton;
-import lombok.extern.slf4j.Slf4j;
-
@Slf4j
@Singleton
public class MobileNotificationValidator {
diff --git a/core/src/main/java/haveno/core/notifications/alerts/DisputeMsgEvents.java b/core/src/main/java/haveno/core/notifications/alerts/DisputeMsgEvents.java
index 4dba1a70ac..41e890edbd 100644
--- a/core/src/main/java/haveno/core/notifications/alerts/DisputeMsgEvents.java
+++ b/core/src/main/java/haveno/core/notifications/alerts/DisputeMsgEvents.java
@@ -27,16 +27,14 @@ import haveno.core.support.dispute.mediation.MediationManager;
import haveno.core.support.dispute.refund.RefundManager;
import haveno.core.support.messages.ChatMessage;
import haveno.network.p2p.P2PService;
-import javax.inject.Inject;
-import javax.inject.Singleton;
-
import javafx.collections.ListChangeListener;
import javafx.collections.ObservableList;
-
-import java.util.UUID;
-
import lombok.extern.slf4j.Slf4j;
+import javax.inject.Inject;
+import javax.inject.Singleton;
+import java.util.UUID;
+
@Slf4j
@Singleton
public class DisputeMsgEvents {
diff --git a/core/src/main/java/haveno/core/notifications/alerts/MyOfferTakenEvents.java b/core/src/main/java/haveno/core/notifications/alerts/MyOfferTakenEvents.java
index 2554de573f..1424be3ef1 100644
--- a/core/src/main/java/haveno/core/notifications/alerts/MyOfferTakenEvents.java
+++ b/core/src/main/java/haveno/core/notifications/alerts/MyOfferTakenEvents.java
@@ -17,20 +17,19 @@
package haveno.core.notifications.alerts;
-import javax.inject.Inject;
-import javax.inject.Singleton;
-
-import javafx.collections.ListChangeListener;
import haveno.core.locale.Res;
import haveno.core.notifications.MobileMessage;
import haveno.core.notifications.MobileMessageType;
import haveno.core.notifications.MobileNotificationService;
import haveno.core.offer.OpenOffer;
import haveno.core.offer.OpenOfferManager;
-import java.util.UUID;
-
+import javafx.collections.ListChangeListener;
import lombok.extern.slf4j.Slf4j;
+import javax.inject.Inject;
+import javax.inject.Singleton;
+import java.util.UUID;
+
@Slf4j
@Singleton
public class MyOfferTakenEvents {
diff --git a/core/src/main/java/haveno/core/notifications/alerts/TradeEvents.java b/core/src/main/java/haveno/core/notifications/alerts/TradeEvents.java
index 4f952ecd99..aa9d8eeb69 100644
--- a/core/src/main/java/haveno/core/notifications/alerts/TradeEvents.java
+++ b/core/src/main/java/haveno/core/notifications/alerts/TradeEvents.java
@@ -24,17 +24,15 @@ import haveno.core.notifications.MobileMessageType;
import haveno.core.notifications.MobileNotificationService;
import haveno.core.trade.Trade;
import haveno.core.trade.TradeManager;
+import javafx.collections.ListChangeListener;
+import lombok.extern.slf4j.Slf4j;
+
import javax.inject.Inject;
import javax.inject.Singleton;
-
-import javafx.collections.ListChangeListener;
-
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
-import lombok.extern.slf4j.Slf4j;
-
@Slf4j
@Singleton
public class TradeEvents {
diff --git a/core/src/main/java/haveno/core/notifications/alerts/market/MarketAlertFilter.java b/core/src/main/java/haveno/core/notifications/alerts/market/MarketAlertFilter.java
index 10176811b3..eb83458e28 100644
--- a/core/src/main/java/haveno/core/notifications/alerts/market/MarketAlertFilter.java
+++ b/core/src/main/java/haveno/core/notifications/alerts/market/MarketAlertFilter.java
@@ -20,12 +20,12 @@ package haveno.core.notifications.alerts.market;
import haveno.common.proto.persistable.PersistablePayload;
import haveno.core.payment.PaymentAccount;
import haveno.core.proto.CoreProtoResolver;
-import java.util.ArrayList;
-import java.util.List;
-
import lombok.Value;
import lombok.extern.slf4j.Slf4j;
+import java.util.ArrayList;
+import java.util.List;
+
@Slf4j
@Value
public class MarketAlertFilter implements PersistablePayload {
diff --git a/core/src/main/java/haveno/core/notifications/alerts/market/MarketAlerts.java b/core/src/main/java/haveno/core/notifications/alerts/market/MarketAlerts.java
index 5440c868bd..ae7c965d44 100644
--- a/core/src/main/java/haveno/core/notifications/alerts/market/MarketAlerts.java
+++ b/core/src/main/java/haveno/core/notifications/alerts/market/MarketAlerts.java
@@ -29,21 +29,18 @@ import haveno.core.notifications.MobileNotificationService;
import haveno.core.offer.Offer;
import haveno.core.offer.OfferBookService;
import haveno.core.offer.OfferDirection;
-import haveno.core.offer.OfferPayload;
import haveno.core.provider.price.MarketPrice;
import haveno.core.provider.price.PriceFeedService;
import haveno.core.user.User;
import haveno.core.util.FormattingUtils;
+import lombok.extern.slf4j.Slf4j;
import org.bitcoinj.utils.Fiat;
import javax.inject.Inject;
import javax.inject.Singleton;
-
import java.util.List;
import java.util.UUID;
-import lombok.extern.slf4j.Slf4j;
-
@Slf4j
@Singleton
public class MarketAlerts {
diff --git a/core/src/main/java/haveno/core/notifications/alerts/price/PriceAlert.java b/core/src/main/java/haveno/core/notifications/alerts/price/PriceAlert.java
index 8d576acaa7..61e361527d 100644
--- a/core/src/main/java/haveno/core/notifications/alerts/price/PriceAlert.java
+++ b/core/src/main/java/haveno/core/notifications/alerts/price/PriceAlert.java
@@ -28,13 +28,12 @@ import haveno.core.provider.price.MarketPrice;
import haveno.core.provider.price.PriceFeedService;
import haveno.core.user.User;
import haveno.core.util.FormattingUtils;
+import lombok.extern.slf4j.Slf4j;
import org.bitcoinj.utils.Fiat;
import javax.inject.Inject;
import javax.inject.Singleton;
-import lombok.extern.slf4j.Slf4j;
-
@Slf4j
@Singleton
public class PriceAlert {
diff --git a/core/src/main/java/haveno/core/offer/CreateOfferService.java b/core/src/main/java/haveno/core/offer/CreateOfferService.java
index ff64bf9159..ac8abb0900 100644
--- a/core/src/main/java/haveno/core/offer/CreateOfferService.java
+++ b/core/src/main/java/haveno/core/offer/CreateOfferService.java
@@ -17,8 +17,6 @@
package haveno.core.offer;
-import static haveno.core.payment.payload.PaymentMethod.HAL_CASH_ID;
-
import haveno.common.app.Version;
import haveno.common.crypto.PubKeyRingProvider;
import haveno.common.util.Utilities;
@@ -39,17 +37,17 @@ import haveno.core.xmr.wallet.Restrictions;
import haveno.core.xmr.wallet.XmrWalletService;
import haveno.network.p2p.NodeAddress;
import haveno.network.p2p.P2PService;
+import lombok.extern.slf4j.Slf4j;
import javax.inject.Inject;
import javax.inject.Singleton;
-
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;
-import lombok.extern.slf4j.Slf4j;
+import static haveno.core.payment.payload.PaymentMethod.HAL_CASH_ID;
@Slf4j
@Singleton
diff --git a/core/src/main/java/haveno/core/offer/Offer.java b/core/src/main/java/haveno/core/offer/Offer.java
index e86cbb2db6..e1d27dd956 100644
--- a/core/src/main/java/haveno/core/offer/Offer.java
+++ b/core/src/main/java/haveno/core/offer/Offer.java
@@ -38,28 +38,24 @@ import haveno.core.provider.price.MarketPrice;
import haveno.core.provider.price.PriceFeedService;
import haveno.core.util.VolumeUtil;
import haveno.network.p2p.NodeAddress;
-import org.bitcoinj.utils.Fiat;
-
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ReadOnlyStringProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.extern.slf4j.Slf4j;
+import org.bitcoinj.utils.Fiat;
+import javax.annotation.Nullable;
import java.math.BigInteger;
import java.security.PublicKey;
-
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Optional;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.extern.slf4j.Slf4j;
-
-import javax.annotation.Nullable;
-
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
diff --git a/core/src/main/java/haveno/core/offer/OfferBookService.java b/core/src/main/java/haveno/core/offer/OfferBookService.java
index c9a6dbaca8..e8144b0555 100644
--- a/core/src/main/java/haveno/core/offer/OfferBookService.java
+++ b/core/src/main/java/haveno/core/offer/OfferBookService.java
@@ -37,11 +37,13 @@ import haveno.network.p2p.storage.payload.ProtectedStorageEntry;
import monero.common.MoneroConnectionManagerListener;
import monero.common.MoneroRpcConnection;
import monero.daemon.model.MoneroKeyImageSpentStatus;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.annotation.Nullable;
import javax.inject.Inject;
import javax.inject.Named;
-
import java.io.File;
-
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
@@ -49,11 +51,6 @@ import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import javax.annotation.Nullable;
-
/**
* Handles storage and retrieval of offers.
* Uses an invalidation flag to only request the full offer map in case there was a change (anyone has added or removed an offer).
diff --git a/core/src/main/java/haveno/core/offer/OfferFilterService.java b/core/src/main/java/haveno/core/offer/OfferFilterService.java
index 7ed6a2598d..6ce87ff6ed 100644
--- a/core/src/main/java/haveno/core/offer/OfferFilterService.java
+++ b/core/src/main/java/haveno/core/offer/OfferFilterService.java
@@ -26,20 +26,17 @@ import haveno.core.support.dispute.arbitration.arbitrator.Arbitrator;
import haveno.core.trade.HavenoUtils;
import haveno.core.user.Preferences;
import haveno.core.user.User;
+import javafx.collections.SetChangeListener;
+import lombok.Getter;
+import lombok.extern.slf4j.Slf4j;
import org.bitcoinj.core.Coin;
import javax.inject.Inject;
import javax.inject.Singleton;
-
-import javafx.collections.SetChangeListener;
-
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
-import lombok.Getter;
-import lombok.extern.slf4j.Slf4j;
-
@Slf4j
@Singleton
public class OfferFilterService {
diff --git a/core/src/main/java/haveno/core/offer/OfferForJson.java b/core/src/main/java/haveno/core/offer/OfferForJson.java
index a94e3be28c..53bb7f1ed2 100644
--- a/core/src/main/java/haveno/core/offer/OfferForJson.java
+++ b/core/src/main/java/haveno/core/offer/OfferForJson.java
@@ -17,8 +17,6 @@
package haveno.core.offer;
-import org.bitcoinj.utils.MonetaryFormat;
-
import com.fasterxml.jackson.annotation.JsonIgnore;
import haveno.common.util.MathUtils;
import haveno.core.locale.CurrencyUtil;
@@ -27,13 +25,13 @@ import haveno.core.monetary.Price;
import haveno.core.monetary.Volume;
import haveno.core.payment.payload.PaymentMethod;
import haveno.core.trade.HavenoUtils;
-import java.math.BigInteger;
-import java.util.Date;
-
+import org.bitcoinj.utils.MonetaryFormat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nullable;
+import java.math.BigInteger;
+import java.util.Date;
public class OfferForJson {
private static final Logger log = LoggerFactory.getLogger(OfferForJson.class);
diff --git a/core/src/main/java/haveno/core/offer/OfferPayload.java b/core/src/main/java/haveno/core/offer/OfferPayload.java
index 1a24f72128..c4f48bd2e8 100644
--- a/core/src/main/java/haveno/core/offer/OfferPayload.java
+++ b/core/src/main/java/haveno/core/offer/OfferPayload.java
@@ -21,7 +21,6 @@ import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.google.protobuf.ByteString;
-
import haveno.common.crypto.Hash;
import haveno.common.crypto.PubKeyRing;
import haveno.common.proto.ProtoUtil;
@@ -33,19 +32,19 @@ import haveno.network.p2p.NodeAddress;
import haveno.network.p2p.storage.payload.ExpirablePayload;
import haveno.network.p2p.storage.payload.ProtectedStoragePayload;
import haveno.network.p2p.storage.payload.RequiresOwnerIsOnlinePayload;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.concurrent.TimeUnit;
-import java.lang.reflect.Type;
-import java.security.PublicKey;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import javax.annotation.Nullable;
+import java.lang.reflect.Type;
+import java.security.PublicKey;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.TimeUnit;
// OfferPayload has about 1.4 kb. We should look into options to make it smaller but will be hard to do it in a
// backward compatible way. Maybe a candidate when segwit activation is done as hardfork?
@@ -77,7 +76,7 @@ public final class OfferPayload implements ProtectedStoragePayload, ExpirablePay
protected transient byte[] hash;
@Nullable
protected final Map