Skip to content

Commit

Permalink
Merge pull request #24 from CoboCustody/bug_fix_tss_request_meta
Browse files Browse the repository at this point in the history
update mpc api
  • Loading branch information
haofengjiang committed Dec 6, 2022
2 parents e0e100f + 947e369 commit 8d7a79b
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package com.cobo.custody.api.client.domain.transaction;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class TssNodeKeyGenMeta {
@JsonProperty(value = "cobo_id")
private String coboId;
@JsonProperty(value = "threshold")
private Integer threshold;
@JsonProperty(value = "node_ids")
private List<String> nodeIds;

public String getCoboId() {
return coboId;
}

public void setCoboId(String coboId) {
this.coboId = coboId;
}

public Integer getThreshold() {
return threshold;
}

public void setThreshold(Integer threshold) {
this.threshold = threshold;
}

public List<String> getNodeIds() {
return nodeIds;
}

public void setNodeIds(List<String> nodeIds) {
this.nodeIds = nodeIds;
}

@Override
public String toString() {
return "{" +
"coboId='" + coboId + '\'' +
", threshold='" + threshold + '\'' +
", nodeIds='" + nodeIds + '\'' +
'}';
}
}
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.JacksonInject;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class TssNodeKeyReShareMeta {
@JsonProperty(value = "cobo_id")
private String coboId;
@JsonProperty(value = "old_threshold")
private Integer oldThreshold;
@JsonProperty(value = "old_node_ids")
private List<String> oldNodeIds;
@JsonProperty(value = "new_threshold")
private Integer newThreshold;
@JsonProperty(value = "new_node_ids")
private List<String> newNodeIds;

public String getCoboId() {
return coboId;
}

public void setCoboId(String coboId) {
this.coboId = coboId;
}

public Integer getOldThreshold() {
return oldThreshold;
}

public void setOldThreshold(Integer oldThreshold) {
this.oldThreshold = oldThreshold;
}

public List<String> getOldNodeIds() {
return oldNodeIds;
}

public void setOldNodeIds(List<String> oldNodeIds) {
this.oldNodeIds = oldNodeIds;
}

public Integer getNewThreshold() {
return newThreshold;
}

public void setNewThreshold(Integer newThreshold) {
this.newThreshold = newThreshold;
}

public List<String> getNewNodeIds() {
return newNodeIds;
}

public void setNewNodeIds(List<String> newNodeIds) {
this.newNodeIds = newNodeIds;
}

@Override
public String toString() {
return "{" +
"coboId='" + coboId +
", oldThreshold='" + oldThreshold +
", oldNodeIds='" + oldNodeIds +
", newThreshold='" + newThreshold +
", newNodeIds='" + newNodeIds +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class TssNodeRequestDetail {
private Integer status;
@JsonProperty(value = "failed_reason")
private String failedReason;
private String meta;
private TssNodeRequestMeta meta;

public String getCoboId() {
return coboId;
Expand Down Expand Up @@ -45,11 +45,11 @@ public void setFailedReason(String failedReason) {
this.failedReason = failedReason;
}

public String getMeta() {
public TssNodeRequestMeta getMeta() {
return meta;
}

public void setMeta(String meta) {
public void setMeta(TssNodeRequestMeta meta) {
this.meta = meta;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.cobo.custody.api.client.domain.transaction;

import com.fasterxml.jackson.annotation.JsonProperty;

public class TssNodeRequestMeta {
@JsonProperty(value = "key_gen")
private TssNodeKeyGenMeta genMeta;
@JsonProperty(value = "key_reshare")
private TssNodeKeyReShareMeta reShareMeta;

public TssNodeKeyGenMeta getGenMeta() {
return genMeta;
}

public void setGenMeta(TssNodeKeyGenMeta genMeta) {
this.genMeta = genMeta;
}

public TssNodeKeyReShareMeta getReShareMeta() {
return reShareMeta;
}

public void setReShareMeta(TssNodeKeyReShareMeta reShareMeta) {
this.reShareMeta = reShareMeta;
}

@Override
public String toString() {
return "{" +
"genMeta='" + genMeta + '\'' +
", reShareMeta='" + reShareMeta + '\'' +
'}';
}
}

0 comments on commit 8d7a79b

Please sign in to comment.