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

update mpc api #24

Merged
merged 3 commits into from
Dec 6, 2022
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
@@ -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 + '\'' +
'}';
}
}