mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-03 18:56:59 +01:00
Remove duplicated buyer/seller proto fields (already exist no OfferInfo)
This commit is contained in:
parent
b10cb119f2
commit
69e6c9ce70
4 changed files with 1 additions and 23 deletions
|
@ -37,8 +37,6 @@ public class CanceledTradeInfo {
|
|||
.withTradeAmountAsLong(0) // Ignored
|
||||
.withTradePrice(offer.getPrice().getValue())
|
||||
.withTradeVolume(0) // Ignored
|
||||
.withBuyerDeposit(offer.getBuyerSecurityDeposit().value)
|
||||
.withSellerDeposit(offer.getSellerSecurityDeposit().value)
|
||||
.withTradingPeerNodeAddress("") // Ignored
|
||||
.withState("") // Ignored
|
||||
.withPhase("") // Ignored
|
||||
|
|
|
@ -57,8 +57,6 @@ public class TradeInfo implements Payload {
|
|||
private final long tradeAmountAsLong;
|
||||
private final long tradePrice;
|
||||
private final long tradeVolume;
|
||||
private final long buyerDeposit;
|
||||
private final long sellerDeposit;
|
||||
private final String tradingPeerNodeAddress;
|
||||
private final String state;
|
||||
private final String phase;
|
||||
|
@ -90,8 +88,6 @@ public class TradeInfo implements Payload {
|
|||
this.tradeAmountAsLong = builder.getTradeAmountAsLong();
|
||||
this.tradePrice = builder.getTradePrice();
|
||||
this.tradeVolume = builder.getTradeVolume();
|
||||
this.buyerDeposit = builder.getBuyerDeposit();
|
||||
this.sellerDeposit = builder.getSellerDeposit();
|
||||
this.tradingPeerNodeAddress = builder.getTradingPeerNodeAddress();
|
||||
this.state = builder.getState();
|
||||
this.phase = builder.getPhase();
|
||||
|
@ -312,8 +308,6 @@ public class TradeInfo implements Payload {
|
|||
", tradeAmountAsLong='" + tradeAmountAsLong + '\'' + "\n" +
|
||||
", tradePrice='" + tradePrice + '\'' + "\n" +
|
||||
", tradeVolume='" + tradeVolume + '\'' + "\n" +
|
||||
", buyerDeposit='" + buyerDeposit + '\'' + "\n" +
|
||||
", sellerDeposit='" + sellerDeposit + '\'' + "\n" +
|
||||
", tradingPeerNodeAddress='" + tradingPeerNodeAddress + '\'' + "\n" +
|
||||
", state='" + state + '\'' + "\n" +
|
||||
", phase='" + phase + '\'' + "\n" +
|
||||
|
|
|
@ -46,8 +46,6 @@ public final class TradeInfoV1Builder {
|
|||
private long tradeAmountAsLong;
|
||||
private long tradePrice;
|
||||
private long tradeVolume;
|
||||
private long buyerDeposit;
|
||||
private long sellerDeposit;
|
||||
private String tradingPeerNodeAddress;
|
||||
private String state;
|
||||
private String phase;
|
||||
|
@ -132,16 +130,6 @@ public final class TradeInfoV1Builder {
|
|||
return this;
|
||||
}
|
||||
|
||||
public TradeInfoV1Builder withBuyerDeposit(long buyerDeposit) {
|
||||
this.buyerDeposit = buyerDeposit;
|
||||
return this;
|
||||
}
|
||||
|
||||
public TradeInfoV1Builder withSellerDeposit(long sellerDeposit) {
|
||||
this.sellerDeposit = sellerDeposit;
|
||||
return this;
|
||||
}
|
||||
|
||||
public TradeInfoV1Builder withTradePeriodState(String tradePeriodState) {
|
||||
this.tradePeriodState = tradePeriodState;
|
||||
return this;
|
||||
|
|
|
@ -515,9 +515,7 @@ message TradeInfo {
|
|||
BsqSwapTradeInfo bsqSwapTradeInfo = 28;
|
||||
|
||||
// Needed by open/closed/failed trade list items.
|
||||
uint64 buyerDeposit = 29;
|
||||
uint64 sellerDeposit = 30;
|
||||
string closingStatus = 31;
|
||||
string closingStatus = 29;
|
||||
|
||||
// TODO? Field for displaying correct precision per coin type, e.g., int32 coinPrecision = 32;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue