Skip to content

Commit

Permalink
Move DaemonProcess to wallets.regtest module
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Sep 4, 2024
1 parent b76d475 commit ed3edf8
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
3 changes: 2 additions & 1 deletion wallets/electrum/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ dependencies {
implementation("bisq:persistence")
implementation(project(":json-rpc"))
implementation(project(":process"))

implementation(project(":regtest"))

implementation(libs.typesafe.config)
implementation(libs.bundles.glassfish.jersey)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import bisq.wallets.electrum.rpc.ElectrumDaemon;
import bisq.wallets.electrum.rpc.ElectrumProcessConfig;
import bisq.wallets.electrum.rpc.responses.ElectrumCreateResponse;
import bisq.wallets.process.BisqProcess;
import bisq.wallets.regtest.process.BisqProcess;
import bisq.wallets.regtest.AbstractRegtestSetup;
import bisq.wallets.regtest.bitcoind.RemoteBitcoind;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import bisq.common.file.InputStreamScanner;
import bisq.common.file.LogScanner;
import bisq.wallets.json_rpc.RpcConfig;
import bisq.wallets.process.DaemonProcess;
import bisq.wallets.regtest.process.DaemonProcess;
import bisq.wallets.process.ProcessConfig;
import lombok.extern.slf4j.Slf4j;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import bisq.common.platform.PlatformUtils;
import bisq.wallets.electrum.rpc.ElectrumDaemon;
import bisq.wallets.electrum.rpc.ElectrumProcessConfig;
import bisq.wallets.process.BisqProcess;
import bisq.wallets.regtest.process.BisqProcess;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import bisq.wallets.json_rpc.JsonRpcClient;
import bisq.wallets.json_rpc.RpcClientFactory;
import bisq.wallets.json_rpc.RpcConfig;
import bisq.wallets.process.DaemonProcess;
import bisq.wallets.process.ProcessConfig;
import bisq.wallets.regtest.process.DaemonProcess;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.common.file.FileUtils;
import bisq.wallets.json_rpc.RpcConfig;
import bisq.wallets.process.BisqProcess;
import bisq.wallets.regtest.process.BisqProcess;

import java.io.IOException;
import java.nio.file.Path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package bisq.wallets.regtest;

import bisq.wallets.process.BisqProcess;
import bisq.wallets.regtest.process.BisqProcess;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.TestInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import bisq.wallets.json_rpc.RpcClientFactory;
import bisq.wallets.json_rpc.JsonRpcClient;
import bisq.wallets.json_rpc.exceptions.InvalidRpcCredentialsException;
import bisq.wallets.process.BisqProcess;
import bisq.wallets.regtest.process.BisqProcess;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package bisq.wallets.regtest;

import bisq.wallets.process.BisqProcess;
import bisq.wallets.regtest.process.BisqProcess;
import org.junit.jupiter.api.Test;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import bisq.wallets.json_rpc.RpcCallFailureException;
import bisq.wallets.json_rpc.RpcClientFactory;
import bisq.wallets.json_rpc.RpcConfig;
import bisq.wallets.process.DaemonProcess;
import bisq.wallets.regtest.process.DaemonProcess;
import bisq.wallets.process.ProcessConfig;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import bisq.wallets.json_rpc.JsonRpcClient;
import bisq.wallets.json_rpc.RpcClientFactory;
import bisq.wallets.json_rpc.RpcConfig;
import bisq.wallets.process.BisqProcess;
import bisq.wallets.regtest.process.BisqProcess;
import lombok.Getter;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/

package bisq.wallets.process;
package bisq.wallets.regtest.process;

public interface BisqProcess {
void start() throws InterruptedException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/

package bisq.wallets.process;
package bisq.wallets.regtest.process;

import bisq.common.file.FileUtils;
import bisq.common.file.LogScanner;
import bisq.wallets.core.exceptions.WalletStartupFailedException;
import bisq.wallets.process.CannotStartProcessException;
import bisq.wallets.process.ProcessConfig;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package bisq.wallets.regtest.process;

import bisq.wallets.core.exceptions.WalletStartupFailedException;
import bisq.wallets.process.BisqProcess;
import com.google.common.collect.Lists;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/

package bisq.wallets.core.exceptions;
package bisq.wallets.regtest.process;

public class WalletStartupFailedException extends RuntimeException {
public WalletStartupFailedException(String message, Throwable cause) {
Expand Down

0 comments on commit ed3edf8

Please sign in to comment.