-
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
12 changed files
with
262 additions
and
87 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
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
44 changes: 44 additions & 0 deletions
44
back-end-projects/Explorer/src/main/java/com/github/ontio/model/dto/NodeManagementDto.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,44 @@ | ||
package com.github.ontio.model.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.Data; | ||
|
||
/** | ||
* @author lijie | ||
* @version 1.0 | ||
* @date 2024/5/30 | ||
*/ | ||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class NodeManagementDto { | ||
|
||
private String nodeApr = "0.00%"; | ||
|
||
private String userApr = "0.00%"; | ||
|
||
private String feeSharingRatioNodeT = "0%"; | ||
|
||
private String feeSharingRatioNodeT1 = "0%"; | ||
|
||
private String feeSharingRatioNodeT2 = "0%"; | ||
|
||
private String feeSharingRatioUserT = "0%"; | ||
|
||
private String feeSharingRatioUserT1 = "0%"; | ||
|
||
private String feeSharingRatioUserT2 = "0%"; | ||
|
||
private String promiseStake = "0"; | ||
|
||
private String nodeStake = "0"; | ||
|
||
private String userStake = "0"; | ||
|
||
private String totalStake = "0"; | ||
|
||
private String cap = "0"; | ||
|
||
private String withdrawableAmount; | ||
|
||
private String lockedAmount; | ||
} |
25 changes: 25 additions & 0 deletions
25
back-end-projects/Explorer/src/main/java/com/github/ontio/model/dto/PromisePosInfo.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.dto; | ||
|
||
import com.github.ontio.common.Helper; | ||
import com.github.ontio.io.BinaryReader; | ||
import com.github.ontio.io.BinaryWriter; | ||
import com.github.ontio.io.Serializable; | ||
|
||
import java.io.IOException; | ||
import java.math.BigInteger; | ||
|
||
public class PromisePosInfo implements Serializable { | ||
public String peerPubkey; | ||
public BigInteger promisePos; | ||
|
||
public PromisePosInfo() { | ||
} | ||
|
||
public void deserialize(BinaryReader reader) throws IOException { | ||
this.peerPubkey = reader.readVarString(); | ||
this.promisePos = Helper.BigIntFromNeoBytes(reader.readVarBytes()); | ||
} | ||
|
||
public void serialize(BinaryWriter writer) throws IOException { | ||
} | ||
} |
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
3 changes: 2 additions & 1 deletion
3
back-end-projects/Explorer/src/main/resources/db/migration/V1.83__tbl_node_info_on_chain.sql
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
ALTER TABLE tbl_node_info_on_chain ADD INDEX idx_public_key (public_key); | ||
ALTER TABLE tbl_node_info_on_chain ADD INDEX idx_public_key (public_key); | ||
ALTER TABLE tbl_node_info_off_chain ADD INDEX idx_address (address); |
Oops, something went wrong.