From 41ceeae9e06122066758b8408bc52b4028acc770 Mon Sep 17 00:00:00 2001 From: Cong Zhang Date: Thu, 16 Jan 2025 14:04:13 +0800 Subject: [PATCH] add max fee and max priority fee --- .../domain/transaction/MPCTransaction.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/main/java/com/cobo/custody/api/client/domain/transaction/MPCTransaction.java b/src/main/java/com/cobo/custody/api/client/domain/transaction/MPCTransaction.java index 41ece83..06d18b8 100644 --- a/src/main/java/com/cobo/custody/api/client/domain/transaction/MPCTransaction.java +++ b/src/main/java/com/cobo/custody/api/client/domain/transaction/MPCTransaction.java @@ -3,6 +3,8 @@ import com.cobo.custody.api.client.domain.account.*; import com.fasterxml.jackson.annotation.JsonProperty; +import java.math.BigDecimal; + public class MPCTransaction { @JsonProperty(value = "cobo_id") private String coboId; @@ -86,6 +88,12 @@ public class MPCTransaction { private String remark; + @JsonProperty(value = "max_fee") + private BigDecimal maxFee; + + @JsonProperty(value = "max_priority_fee") + private BigDecimal maxPriorityFee; + @Override public String toString() { return "MPCTransaction{" + @@ -119,9 +127,27 @@ public String toString() { ", memo='" + memo + '\'' + ", isGasStationTx=" + isGasStationTx + ", remark='" + remark + '\'' + + ", maxFee=" + maxFee + + ", maxPriorityFee='" + maxPriorityFee + '\'' + '}'; } + public BigDecimal getMaxFee() { + return maxFee; + } + + public void setMaxFee(BigDecimal maxFee) { + this.maxFee = maxFee; + } + + public BigDecimal getMaxPriorityFee() { + return maxPriorityFee; + } + + public void setMaxPriorityFee(BigDecimal maxPriorityFee) { + this.maxPriorityFee = maxPriorityFee; + } + public Boolean getGasStationTx() { return isGasStationTx; }