mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Move GetNetworkRequest down to WalletsServiceRequest
This commit is contained in:
parent
ae41e98db9
commit
b482618403
@ -22,7 +22,6 @@ import bisq.proto.grpc.BalancesInfo;
|
||||
import bisq.proto.grpc.BsqBalanceInfo;
|
||||
import bisq.proto.grpc.BtcBalanceInfo;
|
||||
import bisq.proto.grpc.GetMethodHelpRequest;
|
||||
import bisq.proto.grpc.GetNetworkRequest;
|
||||
import bisq.proto.grpc.GetTradesRequest;
|
||||
import bisq.proto.grpc.GetVersionRequest;
|
||||
import bisq.proto.grpc.OfferInfo;
|
||||
@ -76,8 +75,7 @@ public final class GrpcClient {
|
||||
}
|
||||
|
||||
public String getNetwork() {
|
||||
var request = GetNetworkRequest.newBuilder().build();
|
||||
return grpcStubs.walletsService.getNetwork(request).getNetwork();
|
||||
return walletsServiceRequest.getNetwork();
|
||||
}
|
||||
|
||||
public BalancesInfo getBalances() {
|
||||
|
@ -24,6 +24,7 @@ import bisq.proto.grpc.BtcBalanceInfo;
|
||||
import bisq.proto.grpc.GetAddressBalanceRequest;
|
||||
import bisq.proto.grpc.GetBalancesRequest;
|
||||
import bisq.proto.grpc.GetFundingAddressesRequest;
|
||||
import bisq.proto.grpc.GetNetworkRequest;
|
||||
import bisq.proto.grpc.GetTransactionRequest;
|
||||
import bisq.proto.grpc.GetTxFeeRateRequest;
|
||||
import bisq.proto.grpc.GetUnusedBsqAddressRequest;
|
||||
@ -54,6 +55,11 @@ public class WalletsServiceRequest {
|
||||
this.grpcStubs = grpcStubs;
|
||||
}
|
||||
|
||||
public String getNetwork() {
|
||||
var request = GetNetworkRequest.newBuilder().build();
|
||||
return grpcStubs.walletsService.getNetwork(request).getNetwork();
|
||||
}
|
||||
|
||||
public BalancesInfo getBalances() {
|
||||
return getBalances("");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user