-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
280 additions
and
16 deletions.
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
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
25 changes: 25 additions & 0 deletions
25
back-end-projects/Explorer/src/main/java/com/github/ontio/model/common/StakeStatusEnum.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,25 @@ | ||
package com.github.ontio.model.common; | ||
|
||
/** | ||
* @author zhouq | ||
* @version 1.0 | ||
* @date 2020/2/26 | ||
*/ | ||
public enum StakeStatusEnum { | ||
|
||
PENDING(1),//待生效 | ||
IN_STAKE(2),//质押中 | ||
WITHDRAWABLE(3),//可提取 | ||
CANCELLING(4); //取消中 | ||
|
||
private int state; | ||
|
||
StakeStatusEnum(int state) { | ||
this.state = state; | ||
} | ||
|
||
public int state() { | ||
return state; | ||
} | ||
|
||
} |
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
21 changes: 21 additions & 0 deletions
21
back-end-projects/Explorer/src/main/java/com/github/ontio/model/dto/NodeStakeDto.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,21 @@ | ||
package com.github.ontio.model.dto; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @author lijie | ||
* @version 1.0 | ||
* @date 2019/8/6 | ||
*/ | ||
@Data | ||
public class NodeStakeDto { | ||
|
||
private String nodeName; | ||
|
||
private String nodePubKey; | ||
|
||
private String amount; | ||
|
||
private int state; | ||
|
||
} |
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
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
Oops, something went wrong.