-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from zhangcongcobo/main
babylon staking
- Loading branch information
Showing
5 changed files
with
139 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
src/main/java/com/cobo/custody/api/client/domain/transaction/BabylonStakingTransaction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
package com.cobo.custody.api.client.domain.transaction; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.math.BigDecimal; | ||
import java.math.BigInteger; | ||
|
||
public class BabylonStakingTransaction { | ||
@JsonProperty(value = "request_id") | ||
private String requestId; | ||
@JsonProperty(value = "cobo_id") | ||
private String coboId; | ||
@JsonProperty(value = "staking_info") | ||
private String stakingInfo; | ||
@JsonProperty(value = "fee_rate") | ||
private BigDecimal feeRate; | ||
@JsonProperty(value = "max_staking_fee") | ||
private BigInteger maxStakingFee; | ||
|
||
public String getRequestId() { | ||
return requestId; | ||
} | ||
|
||
public void setRequestId(String requestId) { | ||
this.requestId = requestId; | ||
} | ||
|
||
public String getCoboId() { | ||
return coboId; | ||
} | ||
|
||
public void setCoboId(String coboId) { | ||
this.coboId = coboId; | ||
} | ||
|
||
public String getStakingInfo() { | ||
return stakingInfo; | ||
} | ||
|
||
public void setStakingInfo(String stakingInfo) { | ||
this.stakingInfo = stakingInfo; | ||
} | ||
|
||
public BigDecimal getFeeRate() { | ||
return feeRate; | ||
} | ||
|
||
public void setFeeRate(BigDecimal feeRate) { | ||
this.feeRate = feeRate; | ||
} | ||
|
||
public BigInteger getMaxStakingFee() { | ||
return maxStakingFee; | ||
} | ||
|
||
public void setMaxStakingFee(BigInteger maxStakingFee) { | ||
this.maxStakingFee = maxStakingFee; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "BabylonStakingTransaction{" + | ||
"requestId='" + requestId + '\'' + | ||
", coboId='" + coboId + '\'' + | ||
", stakingInfo='" + stakingInfo + '\'' + | ||
", feeRate=" + feeRate + | ||
", maxStakingFee=" + maxStakingFee + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters