Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add babylon_list_transactions_by_status #153

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,6 @@ ApiResponse<EstimateFeeDetails> estimateFee(String coin, BigInteger amount, Stri

ApiResponse<List<BabylonStakingTransaction>> babylonListWaitingBroadcastTransactions(String coin, String address);

ApiResponse<List<BabylonStakingTransaction>> babylonListTransactionsByStatus(Integer status, String address, String minCoboId, Integer limit);

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public class BabylonStakingTransaction {
private BigInteger maxStakingFee;
@JsonProperty(value = "sign_result")
private String signResult;
@JsonProperty(value = "tx_hash")
private String txHash;
private Integer status;

public String getRequestId() {
return requestId;
Expand Down Expand Up @@ -67,6 +70,22 @@ public void setSignResult(String signResult) {
this.signResult = signResult;
}

public String getTxHash() {
return txHash;
}

public void setTxHash(String txHash) {
this.txHash = txHash;
}

public Integer getStatus() {
return status;
}

public void setStatus(Integer status) {
this.status = status;
}

@Override
public String toString() {
return "BabylonStakingTransaction{" +
Expand All @@ -76,6 +95,8 @@ public String toString() {
", feeRate=" + feeRate +
", maxStakingFee=" + maxStakingFee +
", signResult='" + signResult + '\'' +
", txHash='" + txHash + '\'' +
", status=" + status +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,9 @@ public ApiResponse<BabylonStakingTransaction> babylonGetStakingInfo(String reque
public ApiResponse<List<BabylonStakingTransaction>> babylonListWaitingBroadcastTransactions(String coin, String address) {
return executeSync(coboMPCApiService.babylonListWaitingBroadcastTransactions(coin, address));
}

@Override
public ApiResponse<List<BabylonStakingTransaction>> babylonListTransactionsByStatus(Integer status, String address, String minCoboId, Integer limit) {
return executeSync(coboMPCApiService.babylonListTransactionsByStatus(status, address, minCoboId, limit));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,7 @@ Call<ApiResponse<MPCTssNodeRequests>> listTssNodeRequests(@Query("request_type")

@GET("/v1/custody/mpc/babylon/list_waiting_broadcast_transactions/")
Call<ApiResponse<List<BabylonStakingTransaction>>> babylonListWaitingBroadcastTransactions(@Query("asset_coin") String coin, @Query("address") String address);

@GET("/v1/custody/mpc/babylon/list_transactions_by_status/")
Call<ApiResponse<List<BabylonStakingTransaction>>> babylonListTransactionsByStatus(@Query("status") Integer status, @Query("address") String address, @Query("min_cobo_id") String minCoboId, @Query("limit") Integer limit);
}